libcdio-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libcdio-devel] open(x, O_RDONLY|O_NONBLOCK) vs. O_RDONLY) on FreeBS


From: R. Bernstein
Subject: Re: [Libcdio-devel] open(x, O_RDONLY|O_NONBLOCK) vs. O_RDONLY) on FreeBSD (Solaris, GNU/Linux)?
Date: Sun, 8 May 2005 16:54:40 -0400

Steven M. Schultz writes:
 >      Should that be O_NONBLOCK rather than simply NONBLOCK?
Yep O_NONBLOCK.

 > 
 > > Anyone have comments, suggestions, thoughts? Anyone want to venture
 > > what might be correct for FreeBSD, Solaris (BSDI, etc)?
 > 
 >      BSDI uses "O_RDONLY | O_NONBLOCK".

So line 218 of lib/driver/bsdi.c should become
  p_env->gen.fd = open (p_env->gen.source_name, O_RDONLY|O_NONBLOCK, 0);

?

Right now there is only O_RDONLY. 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]