freebsd-skq/lib/libc/gen
alex a3118e8c68 Sweep through the tree fixing mmap() usage:
- Use MAP_FAILED instead of the constant -1 to indicate
    failure (required by POSIX).
  - Removed flag arguments of '0' (required by POSIX).
  - Fixed code which expected an error return of 0.
  - Fixed code which thought any address with the high bit set
    was an error.
  - Check for failure where no checks were present.

Discussed with:	bde
1997-01-16 21:58:40 +00:00
..
__xuname.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
_rand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
_thread_init.c Obtained from: uthreads package 1996-01-22 00:32:08 +00:00
alarm.3 Correct some xrefs/mlinks. 1996-12-14 23:27:20 +00:00
alarm.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
assert.c Don't include <sys/types.h> when it isn't used. 1996-04-19 18:40:25 +00:00
clock.3 Removed bogus includes of <sys/types.h> from synopses. 1996-04-19 19:00:26 +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 General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
config_open.3 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
config.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
confstr.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
confstr.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
crypt.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
crypt.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
ctermid.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
ctermid.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
daemon.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
daemon.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
devname.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
devname.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
directory.3 Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
disklabel.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +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 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
err.c Don't use __dead or __pure in user code. They were obfuscations 1996-09-14 03:00:32 +00:00
errlst.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
exec.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
exec.c Fixed execvp() of an empty pathname to fail POSIXly. Previously it 1996-11-18 19:24:47 +00:00
fnmatch.3 GNU-style changes: 1996-10-23 16:40:20 +00:00
fnmatch.c collate_range_cmp -> __collate_range_cmp 1996-10-31 04:32:27 +00:00
frexp.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
fstab.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
ftok.3 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
ftok.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
fts-compat.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
fts-compat.h BSD 4.4 Lite Include Sources 1994-05-24 09:57:34 +00:00
fts.3 Corrected a couple of errors in the fts(3) manual page. The prototype 1996-02-15 21:48:54 +00:00
fts.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
getbootfile.3 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
getbootfile.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
getbsize.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
getbsize.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getcap.3 fix .Xr macro 1996-09-21 15:08:10 +00:00
getcap.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
getcwd.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
getcwd.c Corrently null-terminate the path being passed to the opendir() calls, 1996-10-17 00:40:04 +00:00
getdiskbyname.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getdomainname.3 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
getdomainname.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
getfsent.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
getgrent.3 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
getgrent.c Small yet significant tweaks/cleanups: 1996-12-27 19:28:46 +00:00
getgrouplist.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
getgrouplist.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
gethostname.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
gethostname.c gethostname() returns int, not long. Answered my own question by 1996-12-05 18:14:56 +00:00
getloadavg.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
getloadavg.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getlogin.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getmntinfo.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
getmntinfo.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getnetgrent.3 Added some missing MLINKS for section 3 man pages. 1996-02-09 00:45:45 +00:00
getnetgrent.c Small yet significant tweaks/cleanups: 1996-12-27 19:28:46 +00:00
getosreldate.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
getpagesize.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +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 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
getpass.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
getpwent.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
getpwent.c Small yet significant tweaks/cleanups: 1996-12-27 19:28:46 +00:00
getttyent.3 Added group= facility to /etc/ttys for tty grouping for more 1997-01-02 08:05:43 +00:00
getttyent.c Added group= facility to /etc/ttys for tty grouping for more 1997-01-02 08:05:43 +00:00
getusershell.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
getusershell.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
getvfsent.3 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
getvfsent.c Fix an off-by-one error in getvfsent(). 1996-10-26 21:53:21 +00:00
glob.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
glob.c collate_range_cmp -> __collate_range_cmp 1996-10-31 04:32:27 +00:00
initgroups.3 Speeling fix. 1996-12-22 02:14:56 +00:00
initgroups.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
isatty.c Reviewed by: julian and (hsu?) 1996-01-22 00:02:33 +00:00
isinf.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +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 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05: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 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
modf.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +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 .Os NetBSD -> .Os FreeBSD. 1996-09-28 22:46:35 +00:00
msgctl.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgget.3 .Os NetBSD -> .Os FreeBSD. 1996-09-28 22:46:35 +00:00
msgget.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgrcv.3 .Os NetBSD -> .Os FreeBSD. 1996-09-28 22:46:35 +00:00
msgrcv.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
msgsnd.3 .Os NetBSD -> .Os FreeBSD. 1996-09-28 22:46:35 +00:00
msgsnd.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
nice.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
nice.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
nlist.3 Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
nlist.c Sweep through the tree fixing mmap() usage: 1997-01-16 21:58:40 +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 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
opendir.c Cache the result of getpagesize() so we only make one syscall. 1996-05-02 08:43:05 +00:00
pause.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
pause.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
popen.3 Added missing section numbers to a bunch of .Xr macros, or 1996-03-27 20:49:07 +00:00
popen.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
psignal.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
psignal.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
pw_scan.c Submitted by: archie@whistle.com 1996-06-20 19:19:29 +00:00
pw_scan.h BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00
pwcache.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
pwcache.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
raise.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
raise.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
rand48.3 Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +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 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
rewinddir.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
scandir.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
scandir.c Remove trailing whitespace. 1995-05-30 05:51:47 +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
semconfig.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +00:00
semctl.c Added SYSV ipc system calls. 1994-09-13 14:52:45 +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 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
setflags.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
setflagsbyname.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +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 Fixed a bunch of man page cross references that were 1996-02-15 20:07:05 +00:00
setjmperr.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
setmode.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
setmode.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
setproctitle.3 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
setproctitle.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
shmat.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
shmctl.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
shmdt.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
shmget.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
siginterrupt.3 Mention FreeBSD explicitly along with 4.2BSD so that the 1996-12-15 23:23:17 +00:00
siginterrupt.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
siglist.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
signal.3 Document the "sig" function parameter. 1996-07-03 02:44:04 +00:00
signal.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
sigsetops.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
sigsetops.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
sleep.3 Added a note about the return value. Its been so long I can't 1996-04-05 05:35:57 +00:00
sleep.c ts_sec -> tv_sec 1996-09-20 06:06:28 +00:00
srand48.c Added *ran48 functions, and put them in the correct place this time. 1994-09-23 00:37:55 +00:00
strtofflags.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
sysconf.3 Make a note in the standards section that sysconf isn't completely 1996-12-27 03:39:03 +00:00
sysconf.c Include sys/time.h, not sys/user.h. 1995-12-08 08:47:41 +00:00
sysctl.3 Document that the `old' count is returned for the ENOMEM case. 1996-11-04 17:03:34 +00:00
sysctl.c Minor cleanup, mostly unused vars and missing #includes. 1995-10-22 14:37:11 +00:00
syslog.3 Fixed various problems: typos, grammer, missing include files 1996-05-23 01:05:25 +00:00
syslog.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
tcgetpgrp.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
tcsendbreak.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
tcsetattr.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
tcsetpgrp.3 Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
telldir.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
termios.c Back out one of my previous changes: don't clear PARODD, 1996-03-28 13:33:18 +00:00
time.3 Removed bogus includes of <sys/types.h> from synopses. 1996-04-19 19:00:26 +00:00
time.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
times.3 Xref clocks(7). 1996-04-05 08:53:38 +00:00
times.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
timezone.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
timezone.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
ttyname.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
ttyname.c Parameters pthread_getspecific() changed. 1996-11-11 09:11:59 +00:00
ttyslot.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
tzset.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
ualarm.3 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
ualarm.c Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
uname.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
uname.c Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
unvis.3 Correctly use .Fn instead of .Nm to reference function names 1996-08-22 23:31:07 +00:00
unvis.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
usleep.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
usleep.c Fix typo from previous commit (tsvsec --> tv_sec). 1996-09-23 03:54:53 +00:00
utime.3 Update a bunch of man pages to use .Fn instead 1996-08-22 22:05:59 +00:00
utime.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
valloc.3 BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
valloc.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
vis.3 Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
vis.c General -Wall warning cleanup, part I. 1996-07-12 18:57:58 +00:00
wait3.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
wait.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00
waitpid.c BSD 4.4 Lite Lib Sources 1994-05-27 05:00:24 +00:00