freebsd-nq/lib
Andrey A. Chernov e0b123f6d0 1) Oops! Insert again if (n == 0) return 0.
Final word is Bruce's quote:

C9x specifies the BSD4.4-Lite behaviour:

       [#3] ...   Thus,  the
       null-terminated  output  has  been completely written if and
       only if the returned value is less than n.

It means that if we not have any null-terminated output as for n == 0
we can't return value less than n, so we forced to return value
equal to n i.e. 0

The next good thing is glibc compatibility, of course.

2) Do check for too big n in machine-independent way.
3) Minor optimization assuming EOF is < 0
1997-12-24 20:24:08 +00:00
..
compat
csu/i386 const correctness for dl*() 1997-11-22 03:34:46 +00:00
libalias
libc 1) Oops! Insert again if (n == 0) return 0. 1997-12-24 20:24:08 +00:00
libc_r Modify the return values to comply with POSIX. Previously these 1997-11-25 01:29:16 +00:00
libcalendar Delete "typedef ... date" (see style(9)). 1997-12-13 11:51:16 +00:00
libcom_err
libcompat
libcrypt
libcurses
libdisk Fix erroneous format string. 1997-11-18 05:34:45 +00:00
libedit
libf2c
libF77
libftpio Change errno usage as a field in a structure and as an argument to a 1997-12-20 04:06:06 +00:00
libgnumalloc
libI77
libipx
libkse Modify the return values to comply with POSIX. Previously these 1997-11-25 01:29:16 +00:00
libkvm
libm
libmd
libmytinfo
libncurses
libopie
libpam/modules
libpcap
libpthread Modify the return values to comply with POSIX. Previously these 1997-11-25 01:29:16 +00:00
libresolv
librpcsvc
libscsi
libskey
libss
libtcl Upgrade minor version 1997-11-27 20:52:28 +00:00
libtelnet
libtermcap Fixed the termcap 3.0 hacks. They were very broken in my configuration 1997-12-19 22:11:29 +00:00
libutil
libvgl
libxpg4
liby
libz
msun
ncurses/ncurses
Makefile Add libcalendar. 1997-12-04 10:48:14 +00:00
Makefile.inc