[vlc-devel] vlc_loaddir always falis on Mac OSX

Naohiro KORIYAMA nkoriyama at gmail.com
Tue Oct 11 11:04:25 CEST 2011


2011/10/11 Rémi Denis-Courmont <remi at remlab.net>:
> On Tue, 11 Oct 2011 17:40:03 +0900, Naohiro KORIYAMA <nkoriyama at gmail.com>
> wrote:
>>> Yes, the bug must be somewhere else or ,,,. but it exists no doubt on
>>> Mac.
>>> Everywhere using vlc_readdir(), fpathconf always renturns -1 and errno
>>> = EBADF(9).
>
> If that's true, then it looks like a bug in MacOS.
>
> Mostly because it's easier not to care about errors. That does not mean
> it's a good thing.

I understand.

>
>> Just a reminder. I don't say that it's better to ignore the error.
>
> The point is, scandir() is specified w.r.t. error handling. It would be
> extremely confusing for vlc_scandir() not to behave like scandir(). We have
> had some problems in the past where VLC helper functions behaved in
> peculiar ways, causing developers to make wrong assumptions and introducing
> bugs.
>

I  totally agree your opinion.

If I can find the reason why fpathconf always returns -1, I will
report it to you and ML.

Thank you for your cooperation!

-- 
KORIYAMA, Naohiro
nkoriyama at gmail.com



More information about the vlc-devel mailing list