cvs commit: src/lib/libstand bzipfs.c dosfs.c ext2fs.c fstat.c gzipfs.c nfs.c nullfs.c read.c splitfs.c ufs.c

John Baldwin jhb at FreeBSD.org
Wed Jan 21 12:12:25 PST 2004


jhb         2004/01/21 12:12:24 PST

  FreeBSD src repository

  Modified files:
    lib/libstand         bzipfs.c dosfs.c ext2fs.c fstat.c 
                         gzipfs.c nfs.c nullfs.c read.c splitfs.c 
                         ufs.c 
  Log:
  Clean up error handling in libstand filesystem code to be more consistent:
  - bzipfs and gzipfs now properly return errno values directly from their
    read routines rather than returning -1.
  - missing errno values on error returns for the seek routines on almost
    all filesystems were added.
  - fstat() now returns -1 if an error occurs rather than ignoring it.
  - nfs's readdir() routine now reports valid errno values if an error or
    EOF occurs rather than EPERM  (It was just returning 0 for success and
    1 for failure).
  - nullfs used the wrong semantics for every function besides close() and
    seek().  Getting it right for close() appears to be an accident at that.
  - read() for buffered files no longer returns 0 (EOF) if an error occurs,
    but returns -1 instead.
  
  Revision  Changes    Path
  1.6       +11 -5     src/lib/libstand/bzipfs.c
  1.7       +4 -1      src/lib/libstand/dosfs.c
  1.5       +1 -0      src/lib/libstand/ext2fs.c
  1.4       +2 -0      src/lib/libstand/fstat.c
  1.13      +11 -5     src/lib/libstand/gzipfs.c
  1.12      +3 -2      src/lib/libstand/nfs.c
  1.6       +5 -10     src/lib/libstand/nullfs.c
  1.4       +2 -2      src/lib/libstand/read.c
  1.6       +9 -2      src/lib/libstand/splitfs.c
  1.14      +1 -0      src/lib/libstand/ufs.c


More information about the cvs-src mailing list