opnsense-src/lib/libc/gen
Garance A Drosehn bbe8edb0ac Fix some error-handling logic so that ferror is called before fclose,
instead of immediately after the fclose.  The previous logic did work
on freebsd, but is somewhat risky practice (and causes trouble when
porting to other OS's).

PR:		bin/22965
Reviewed by:	Garrett Wollman
2000-12-02 00:07:56 +00:00
..
__xuname.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
_rand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
_spinlock_stub.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
alarm.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
alarm.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
arc4random.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
arc4random.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
assert.c Don't include <sys/types.h> when it isn't used. 1996-04-19 18:40:25 +00:00
basename.3 mdoc(7) police: use certified section headers wherever possible. 2000-11-17 11:44:16 +00:00
basename.c Import XPG4-compliant basename(3) and dirname(3) from OpenBSD. 2000-08-31 15:56:15 +00:00
clock.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
clock.c Change CLK_TCK to CLOCKS_PER_SEC. (CLK_TCK is a deprecated POSIX feature 1995-02-03 21:59:45 +00:00
closedir.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
confstr.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
confstr.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
crypt.c $Header$ -> $FreeBSD$ 1999-08-28 05:11:36 +00:00
ctermid.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
ctermid.c Provide and document ctermid_r function. 1999-11-28 23:28:49 +00:00
daemon.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
daemon.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
devname.3 Add code to devname(3) so it can find the names of devices which 2000-09-09 11:39:59 +00:00
devname.c Pickup SPECNAMELEN from <sys/param.h> and use it. 2000-09-16 21:58:53 +00:00
directory.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
dirname.3 mdoc(7) police: use certified section headers wherever possible. 2000-11-17 11:44:16 +00:00
dirname.c Import XPG4-compliant basename(3) and dirname(3) from OpenBSD. 2000-08-31 15:56:15 +00:00
disklabel.c Add unsigned char cast to isdigit 1999-11-04 04:46:18 +00:00
dladdr.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
dlfcn.c Add a new function dllockinit() for registering thread locking 1999-12-27 04:44:04 +00:00
dllockinit.3 Use Fx macro wherever possible. 2000-11-14 11:20:58 +00:00
dlopen.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
drand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
erand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
err.3 Note that the `fmt' parameter is a printf()-like string. 2000-11-26 23:33:40 +00:00
err.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
errlst.c Add missing strings. 1999-04-24 18:28:24 +00:00
exec.3 Remove fullstops from the end of .Xr lines in SEE ALSO section. 2000-11-15 14:40:14 +00:00
exec.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
fnmatch.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
fnmatch.c Style optimization in newly added POSIX range []] conformance, redo 1997-06-07 01:33:10 +00:00
frexp.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
fstab.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
ftok.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
ftok.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
fts-compat.c Fix style bugs (including ones introduced from OpenBSD). 2000-08-16 23:37:16 +00:00
fts-compat.h Back out all of yesterdays include file changes. 1997-05-07 20:01:10 +00:00
fts.3 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 14:08:07 +00:00
fts.c Fix style bugs (including ones introduced from OpenBSD). 2000-08-16 23:37:16 +00:00
getbootfile.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
getbootfile.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getbsize.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
getbsize.c Fixed printf format errors. 1998-08-02 14:41:34 +00:00
getcap.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
getcap.c Fix some error-handling logic so that ferror is called before fclose, 2000-12-02 00:07:56 +00:00
getcwd.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
getcwd.c Remove the SIGSYS handler and wrapper around the __getcwd() syscall. 2000-09-05 09:35:36 +00:00
getdiskbyname.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
getdomainname.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
getdomainname.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getfsent.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
getgrent.3 Remove blank line introduced in rev 1.13. 2000-11-20 16:18:45 +00:00
getgrent.c Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
getgrouplist.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
getgrouplist.c Fixed merging error. Lite2 fixed premature failure and didn't 1997-03-12 14:54:22 +00:00
gethostname.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
gethostname.c gethostname() returns int, not long. Answered my own question by 1996-12-05 18:14:56 +00:00
getloadavg.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
getloadavg.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getlogin.c Provide the getlogin_r function. 1999-11-28 22:41:38 +00:00
getmntinfo.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
getmntinfo.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getnetgrent.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
getnetgrent.c Add unsigned char cast to isspace arg 1999-11-04 04:16:28 +00:00
getobjformat.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
getobjformat.c Initialize a var to quiet -Wall. 1999-12-18 04:47:43 +00:00
getosreldate.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getpagesize.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
getpagesize.c Cache the result of getpagesize() so we only make one syscall. 1996-05-02 08:43:05 +00:00
getpass.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
getpass.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
getpwent.3 Add a period missing from rev 1.13. 2000-11-20 16:19:37 +00:00
getpwent.c Fix bug introduced in previous commit: users obtained via compat mode 2000-11-13 21:22:50 +00:00
getttyent.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
getttyent.c Add unsigned char cast to isspace arg 1999-11-04 04:16:28 +00:00
getusershell.3 Fix hard sentence break introduced in rev 1.7. 2000-11-20 16:25:10 +00:00
getusershell.c Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
getvfsbyname.3 mdoc(7) police: Nm -> Fn where appropriate. 2000-11-20 14:11:46 +00:00
getvfsbyname.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
getvfsent.3 log 2000-11-22 09:23:54 +00:00
getvfsent.c vfsload maps into kldload only now, no more fork/exec of modload(8). 1999-04-19 14:28:45 +00:00
glob.3 mdoc(7) police: Er macro usage cleanup. 2000-11-22 16:02:00 +00:00
glob.c NetBSD kernels don't have issetugid(), so #ifdef this out when 1998-02-20 07:54:56 +00:00
initgroups.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
initgroups.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
isatty.c Implement compile time debug mode for thread locks. 1998-06-09 08:32:23 +00:00
isinf.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
jrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
lcong48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
ldexp.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
lockf.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
lockf.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
lrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
Makefile.inc Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
modf.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
mrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
msgctl.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
msgctl.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgget.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
msgget.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgrcv.3 Use Fx macro wherever possible. 2000-11-14 11:20:58 +00:00
msgrcv.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgsnd.3 Use Fx macro wherever possible. 2000-11-14 11:20:58 +00:00
msgsnd.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
nice.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
nice.c Remove extern int errno and #include <errno.h> to get the proper definition. 1998-05-05 22:04:13 +00:00
nlist.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
nlist.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
nrand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
ntp_gettime.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
opendir.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
pause.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
pause.c Take care to avoid having "strong" and "weak" symbols of the same name in 2000-03-16 02:14:41 +00:00
popen.3 mdoc(7) police: use certified section headers wherever possible. 2000-11-17 11:44:16 +00:00
popen.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
posixshm.c Remove cancellation point propagation. 2000-04-26 23:17:17 +00:00
psignal.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
psignal.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
pw_scan.c Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
pw_scan.h Add nsswitch support. By creating an /etc/nsswitch.conf file, you can 2000-09-06 18:16:48 +00:00
pwcache.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
pwcache.c Honor the nouser/nogroup flag when determing if NULL should 1997-04-03 01:51:34 +00:00
raise.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
raise.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
rand48.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
rand48.h Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
readdir.c #include <string.h> for memcpy() prototype 2000-06-03 00:27:54 +00:00
rewinddir.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
rfork_thread.3 Add a skeleton rfork_thread(3) man page. 2000-07-29 12:12:39 +00:00
scandir.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
scandir.c Fix a memory leak 1998-10-07 01:30:02 +00:00
seed48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
seekdir.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
sem_destroy.3 mdoc(7) police: Er macro usage cleanup. 2000-11-22 16:02:00 +00:00
sem_getvalue.3 Change my email address in the copyright notices for the sake of consistency 2000-07-18 01:38:19 +00:00
sem_init.3 mdoc(7) police: Er macro usage cleanup. 2000-11-22 16:02:00 +00:00
sem_open.3 Change my email address in the copyright notices for the sake of consistency 2000-07-18 01:38:19 +00:00
sem_post.3 Make sem_post() safe to call from within a signal handler, as required by 2000-08-01 21:19:09 +00:00
sem_wait.3 Change my email address in the copyright notices for the sake of consistency 2000-07-18 01:38:19 +00:00
semconfig.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
semctl.c Fix this so that it compiles in the !__STDC__ case. 1998-06-06 18:52:43 +00:00
semget.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
semop.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
setdomainname.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
sethostname.c sethostname() returns int, not long. I could get used to having this 1996-12-05 18:27:20 +00:00
setjmp.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
setjmperr.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
setmode.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
setmode.c Add unsigned char cast to isdigit 1999-11-04 04:46:18 +00:00
setproctitle.3 log 2000-11-22 09:23:54 +00:00
setproctitle.c If the format string passed to setproctitle begins with a '-' 2000-08-01 06:37:09 +00:00
shm_open.3 mdoc(7) police: Nm -> Fn where appropriate. 2000-11-20 14:11:46 +00:00
shmat.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
shmctl.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
shmdt.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
shmget.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
siginterrupt.3 mdoc(7) police: Er macro usage cleanup. 2000-11-22 16:02:00 +00:00
siginterrupt.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
siglist.c Add a strsignal(3) (like strerror(3)) for libc compatability with other 1999-05-18 04:48:58 +00:00
signal.3 mdoc(7) police: Nm -> Fn where appropriate. 2000-11-20 14:11:46 +00:00
signal.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
sigsetops.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
sigsetops.c o Add $FreeBSD$ as a rcsid instead of in a comment 1999-10-02 19:37:14 +00:00
sleep.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
sleep.c Take care to avoid having "strong" and "weak" symbols of the same name in 2000-03-16 02:14:41 +00:00
srand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
stringlist.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
stringlist.c Replace memory leaking instances of realloc with non-leaking reallocf. 1998-09-16 04:17:47 +00:00
strtofflags.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
strtofflags.c Modify strtofflags so that it returns a malloced string instead of a 2000-06-17 11:09:24 +00:00
sysconf.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
sysconf.c Add a trivial mechanism for returning a useful default value if one is 1998-06-01 20:58:03 +00:00
sysctl.3 mdoc(7) police: Er macro usage cleanup. 2000-11-22 16:02:00 +00:00
sysctl.c Make the implementation and documentation agree. Specifically: 1999-01-06 18:11:53 +00:00
sysctlbyname.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
syslog.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
syslog.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
tcgetpgrp.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
tcsendbreak.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
tcsetattr.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
tcsetpgrp.3 mdoc(7) police: Nm -> Fn where appropriate. 2000-11-20 14:11:46 +00:00
telldir.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
termios.c Take care to avoid having "strong" and "weak" symbols of the same name in 2000-03-16 02:14:41 +00:00
time.3 Use `Er' variable to define first column width in ERRORS section. 2000-05-06 12:07:59 +00:00
time.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
times.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
times.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
timezone.3 Avoid use of direct troff requests in mdoc(7) manual pages. 2000-11-10 17:46:15 +00:00
timezone.c Eliminate sprintf 1998-01-21 21:46:36 +00:00
ttyname.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
ttyname.c Implement compile time debug mode for thread locks. 1998-06-09 08:32:23 +00:00
ttyslot.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
tzset.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
ualarm.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
ualarm.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
uname.3 Introduce ".Lb" macro to libc manpages. 2000-04-21 09:42:15 +00:00
uname.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
unvis.3 mdoc(7) police: Nm -> Fn where appropriate. 2000-11-20 14:11:46 +00:00
unvis.c Add URI encoding to the vis/unvis routines courtesy of VIS_HTTPSTYLE. 2000-07-01 15:55:49 +00:00
usleep.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
usleep.c Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(), 2000-01-27 23:07:25 +00:00
utime.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
utime.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
valloc.3 Whitespace only change: trim trailing whitespace. 2000-10-30 13:23:19 +00:00
valloc.c Fix a cast from a pointer to a long instead of an int which was enough 1998-01-24 20:57:38 +00:00
vis.3 Remove trailing whitespace only. 2000-07-03 08:31:02 +00:00
vis.c Style fixes. 2000-07-01 17:49:34 +00:00
wait.c Take care to avoid having "strong" and "weak" symbols of the same name in 2000-03-16 02:14:41 +00:00
wait3.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
waitpid.c Take care to avoid having "strong" and "weak" symbols of the same name in 2000-03-16 02:14:41 +00:00