[MPlayer-dev-eng] Re: [PATCH] make demuxer_get_percent_pos() recheck file length

Rich Felker dalias at aerifal.cx
Tue Oct 4 04:46:26 CEST 2005


On Mon, Oct 03, 2005 at 06:24:52PM -0500, Joey Parrish wrote:
> On Mon, Oct 03, 2005 at 05:25:26PM -0400, Rich Felker wrote:
> > On Mon, Oct 03, 2005 at 10:38:40PM +0300, Jan Knutar wrote:
> > > On Monday 03 October 2005 20:55, Oded Shimon wrote:
> > > > I dunno anything about windows API, but does it have integer file 
> > > > descriptors?
> > > 
> > > More importantly, for example a network file descriptor and a regular file
> > > descriptor are different under Windows and you can't use the same calls
> > > on them (i.e. if you have a network one you can't read() it). Dunno if
> > > mingw/cygwin hides this from you though. I suspect MinGW/MSYS does
> > > not.
> > 
> > Of course cygwin 'hides' it since it's in blatent violation of posix.
> > Unfortunately mingw doesn't. :(
> 
> It does have integral fds.  They are not interchangable with sockets.
> Both are integers.  Cygwin sockets behave like unix sockets.  Cygwin
> sockets and fds are both mapped internally to windows native ones.

It would be nice if mingw did the minimal wrapping necessary to make
windows libc nonbroken, without providing full posix emulation bloat.
BTW isn't win nt/2k/xp/etc. supposed to be posix compliant (or at
least include a layer that is)? Does that mean on modern versions of
windows, sockets can be used as normal file descriptors?

Rich




More information about the MPlayer-dev-eng mailing list