[vlc-devel] [PATCH 1/6] vlc_spawn: vector posix_spawn/fork code
Alexandre Janniaux
ajanni at videolabs.io
Sat Sep 19 13:48:33 CEST 2020
Hi,
On Sat, Sep 19, 2020 at 02:37:10PM +0300, Rémi Denis-Courmont wrote:
> Le lauantaina 19. syyskuuta 2020, 14.32.47 EEST Rémi Denis-Courmont a écrit :
> > > Is int the correct type for portable platform fd here?
> >
> > We've always used integers for FDs, notably in <vlc_fs.h>. I can't say that
> > that will work for every OS ever, but it works for what VLC currently runs
> > on.
>
> PS
>
> And even if a new OS didn't care to maintain compatibility with POSIX unistd.h
> and Windows io.h, it's always possible to underlying handles being integers.
> That's what MSVCRT and others do internally.
Thanks for the explanation!
Regards,
--
Alexandre Janniaux
Videolabs
More information about the vlc-devel
mailing list