several changes today

Thomas Bushnell, BSG tb@MIT.EDU
Sun Oct 18 14:52:00 GMT 1998


   Date: Sun, 18 Oct 1998 00:59:52 -0400
   From: Roland McGrath <roland@frob.com>

   1003.1-1996 requires that opendir detect a nondirectory and return ENOTDIR.
   It is not optional.  Unless the check is known for sure to be done by the
   kernel at the particular time, libc must check with fstat to be correct.
   As well as violating POSIX, allowing the possibility of failing to check 
   would be a subtly incompatible change that might affect existing programs
   in obscure ways.

Are you sure of this?  I'm pretty sure it's one of the "if detected"
errors.




More information about the Libc-hacker mailing list