[vlc-devel] [PATCH 1/6] vlc_spawn: vector posix_spawn/fork code

Rémi Denis-Courmont remi at remlab.net
Sat Sep 19 13:37:10 CEST 2020


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.

-- 
レミ・デニ-クールモン
http://www.remlab.net/





More information about the vlc-devel mailing list