unix-history/.git
33 years agoAdd include files to get prototype declarations, and fix bugs found.
Keith Bostic [Mon, 25 Feb 1991 02:34:41 +0000 (18:34 -0800)]
Add include files to get prototype declarations, and fix bugs found.

SCCS-vsn: lib/libc/compat-43/creat.c 5.3
SCCS-vsn: lib/libc/compat-43/killpg.c 5.3
SCCS-vsn: lib/libc/compat-43/setpgrp.c 5.2
SCCS-vsn: lib/libc/compat-43/sigcompat.c 5.3

33 years agoAdjustments and bug fixes after adding prototypes to include files.
Donn Seeley [Sun, 24 Feb 1991 14:56:45 +0000 (06:56 -0800)]
Adjustments and bug fixes after adding prototypes to include files.

SCCS-vsn: lib/libc/stdlib/abort.c 5.11
SCCS-vsn: lib/libc/stdlib/atoi.c 5.7
SCCS-vsn: lib/libc/stdlib/atol.c 5.7
SCCS-vsn: lib/libc/stdlib/bsearch.c 5.4
SCCS-vsn: lib/libc/stdlib/calloc.c 5.6
SCCS-vsn: lib/libc/stdlib/exit.c 5.4
SCCS-vsn: lib/libc/stdlib/getenv.c 5.8
SCCS-vsn: lib/libc/stdlib/malloc.c 5.11
SCCS-vsn: lib/libc/stdlib/putenv.c 5.4
SCCS-vsn: lib/libc/stdlib/qsort.c 5.9
SCCS-vsn: lib/libc/stdlib/radixsort.c 5.7
SCCS-vsn: lib/libc/stdlib/rand.c 5.5
SCCS-vsn: lib/libc/stdlib/setenv.c 5.5
SCCS-vsn: lib/libc/stdlib/strtol.c 5.4
SCCS-vsn: lib/libc/stdlib/strtoul.c 5.3
SCCS-vsn: lib/libc/stdlib/system.c 5.10

33 years agoRuin Keith's finely crafted ANSI C code to make it compile with PCC.
Donn Seeley [Sun, 24 Feb 1991 12:19:14 +0000 (04:19 -0800)]
Ruin Keith's finely crafted ANSI C code to make it compile with PCC.

SCCS-vsn: lib/libc/gen/exec.c 5.6

33 years agoAdd include files to get prototype declarations, and fix bugs found.
Donn Seeley [Sun, 24 Feb 1991 11:50:21 +0000 (03:50 -0800)]
Add include files to get prototype declarations, and fix bugs found.

SCCS-vsn: lib/libc/gen/alarm.c 5.5
SCCS-vsn: lib/libc/gen/closedir.c 5.9
SCCS-vsn: lib/libc/gen/crypt.c 5.4
SCCS-vsn: lib/libc/gen/ctime.c 5.26
SCCS-vsn: lib/libc/gen/disklabel.c 5.17
SCCS-vsn: lib/libc/gen/fnmatch.c 5.4
SCCS-vsn: lib/libc/gen/frexp.c 5.3
SCCS-vsn: lib/libc/gen/fstab.c 5.15
SCCS-vsn: lib/libc/gen/getcwd.c 5.10
SCCS-vsn: lib/libc/gen/getgrent.c 5.8
SCCS-vsn: lib/libc/gen/getlogin.c 5.9
SCCS-vsn: lib/libc/gen/getmntinfo.c 6.4
SCCS-vsn: lib/libc/gen/getpass.c 5.8
SCCS-vsn: lib/libc/gen/getttyent.c 5.9
SCCS-vsn: lib/libc/gen/getusershell.c 5.7
SCCS-vsn: lib/libc/gen/glob.c 5.4
SCCS-vsn: lib/libc/gen/initgroups.c 5.7
SCCS-vsn: lib/libcompat/4.3/insque.c 5.4
SCCS-vsn: lib/libc/gen/isatty.c 5.6
SCCS-vsn: lib/libc/gen/nice.c 5.5
SCCS-vsn: lib/libc/gen/nlist.c 5.8
SCCS-vsn: lib/libc/mips/gen/nlist.c 5.8
SCCS-vsn: lib/libc/gen/opendir.c 5.11
SCCS-vsn: lib/libc/gen/pause.c 5.7
SCCS-vsn: lib/libc/gen/popen.c 5.15
SCCS-vsn: lib/libc/gen/psignal.c 5.6
SCCS-vsn: lib/libcompat/4.3/regex.c 5.4
SCCS-vsn: lib/libcompat/4.3/remque.c 5.4
SCCS-vsn: lib/libc/gen/scandir.c 5.10
SCCS-vsn: lib/libc/compat-43/setrgid.c 5.5
SCCS-vsn: lib/libc/gen/setjmperr.c 5.8
SCCS-vsn: lib/libc/compat-43/setruid.c 5.5
SCCS-vsn: lib/libc/gen/siglist.c 5.6
SCCS-vsn: lib/libc/gen/sigsetops.c 5.3
SCCS-vsn: lib/libc/gen/sleep.c 5.6
SCCS-vsn: lib/libc/gen/syslog.c 5.33
SCCS-vsn: lib/libc/gen/telldir.c 5.9
SCCS-vsn: lib/libc/gen/termios.c 5.4
SCCS-vsn: lib/libc/gen/timezone.c 5.10
SCCS-vsn: lib/libc/gen/ttyname.c 5.8
SCCS-vsn: lib/libc/gen/ttyslot.c 5.6
SCCS-vsn: lib/libc/gen/ualarm.c 5.5
SCCS-vsn: lib/libc/gen/unvis.c 1.4
SCCS-vsn: lib/libc/gen/usleep.c 5.6
SCCS-vsn: lib/libc/gen/utime.c 5.4
SCCS-vsn: lib/libc/gen/valloc.c 5.5
SCCS-vsn: lib/libc/gen/vis.c 5.4
SCCS-vsn: lib/libc/gen/wait.c 5.4
SCCS-vsn: lib/libc/gen/wait3.c 5.6
SCCS-vsn: lib/libc/gen/waitpid.c 5.4

33 years agoMake unvis() have more reasonable argument types.
Donn Seeley [Sun, 24 Feb 1991 11:34:15 +0000 (03:34 -0800)]
Make unvis() have more reasonable argument types.

SCCS-vsn: include/vis.h 5.8

33 years agoGet the return type right for setlogmask().
Donn Seeley [Sun, 24 Feb 1991 11:08:41 +0000 (03:08 -0800)]
Get the return type right for setlogmask().

SCCS-vsn: sys/sys/syslog.h 7.20

33 years agoAdjust the type of scandir's function argument.
Donn Seeley [Sun, 24 Feb 1991 10:52:51 +0000 (02:52 -0800)]
Adjust the type of scandir's function argument.

SCCS-vsn: include/dirent.h 5.18

33 years agoAdd a forward declaration of struct rusage.
Donn Seeley [Sun, 24 Feb 1991 10:40:00 +0000 (02:40 -0800)]
Add a forward declaration of struct rusage.

SCCS-vsn: sys/sys/wait.h 7.16

33 years agoredo all the exec routines from scratch in C (well, ANSI C)
Keith Bostic [Sun, 24 Feb 1991 08:37:02 +0000 (00:37 -0800)]
redo all the exec routines from scratch in C (well, ANSI C)
changed path to look at "." last
don't let execlp/execvp ignore execve errors
changed name from execvp.c to exec.c

SCCS-vsn: lib/libc/gen/exec.c 5.5

33 years agofrom POSIX.1 documentation -- specify what *really* happens.
Keith Bostic [Sun, 24 Feb 1991 08:35:04 +0000 (00:35 -0800)]
from POSIX.1 documentation -- specify what *really* happens.
move from execvp.3 to exec.3

SCCS-vsn: lib/libc/gen/exec.3 6.3

33 years agoIt's just fhandle_t, not struct fhandle_t!
Donn Seeley [Sun, 24 Feb 1991 08:24:39 +0000 (00:24 -0800)]
It's just fhandle_t, not struct fhandle_t!

SCCS-vsn: sys/sys/mount.h 7.19

33 years agowarn about missing /etc/dumpdates, and detect errors when rewriting;
Chris Torek [Sun, 24 Feb 1991 08:16:19 +0000 (00:16 -0800)]
warn about missing /etc/dumpdates, and detect errors when rewriting;
perror => strerror; fix gcc warnings; quit via new quit() function;
dump size estimate functions move to dumptraverse.c

SCCS-vsn: sbin/dump/itime.c 5.4

33 years agofix gcc warnings; add dev_bshift and tp_bshift variables
Chris Torek [Sun, 24 Feb 1991 08:16:06 +0000 (00:16 -0800)]
fix gcc warnings; add dev_bshift and tp_bshift variables

SCCS-vsn: sbin/dump/dump.h 5.9

33 years agofix gcc warnings; add quit() function to print message and abort;
Chris Torek [Sun, 24 Feb 1991 08:15:54 +0000 (00:15 -0800)]
fix gcc warnings; add quit() function to print message and abort;
stop cheating on /etc/group functions; use varargs where needed;
check for NULL return from malloc; use strdup instead of recreating it;
do not loop forever if controlling tty disappears

SCCS-vsn: sbin/dump/optr.c 5.4

33 years agofix gcc warnings
Chris Torek [Sun, 24 Feb 1991 08:15:29 +0000 (00:15 -0800)]
fix gcc warnings

SCCS-vsn: sbin/dump/unctime.c 5.2
SCCS-vsn: sbin/dump/dumprmt.c 5.9

33 years agoadd dev_bshift to reduce multiply and divide by dev_bsize to shifts,
Chris Torek [Sun, 24 Feb 1991 08:15:16 +0000 (00:15 -0800)]
add dev_bshift to reduce multiply and divide by dev_bsize to shifts,
and likewise tp_bshift; fix gcc warnings; quit via new quit() function

SCCS-vsn: sbin/dump/main.c 5.10

33 years agoavoid multiply and divide when possible; fix gcc warnings;
Chris Torek [Sun, 24 Feb 1991 08:15:02 +0000 (00:15 -0800)]
avoid multiply and divide when possible; fix gcc warnings;
perror => strerror; quit via new quit() function

SCCS-vsn: sbin/dump/tape.c 5.12

33 years agoavoid multiply and divide when possible; fix gcc warnings;
Chris Torek [Sun, 24 Feb 1991 08:14:19 +0000 (00:14 -0800)]
avoid multiply and divide when possible; fix gcc warnings;
dump size estimate functions move here from dumpitime.c

SCCS-vsn: sbin/dump/traverse.c 5.6

33 years agowait3 and wait4 aren't POSIX functions.
Donn Seeley [Sun, 24 Feb 1991 06:27:17 +0000 (22:27 -0800)]
wait3 and wait4 aren't POSIX functions.

SCCS-vsn: sys/sys/wait.h 7.15

33 years agoGoof in order of arguments for vis() prototype.
Donn Seeley [Sun, 24 Feb 1991 06:24:20 +0000 (22:24 -0800)]
Goof in order of arguments for vis() prototype.

SCCS-vsn: include/vis.h 5.7

33 years agoAdd const qualifiers to make utime declaration more like POSIX version.
Donn Seeley [Sun, 24 Feb 1991 06:13:01 +0000 (22:13 -0800)]
Add const qualifiers to make utime declaration more like POSIX version.

SCCS-vsn: include/utime.h 5.3

33 years agodefault path, used by sh(1) and C library exec routines
Keith Bostic [Sun, 24 Feb 1991 03:18:00 +0000 (19:18 -0800)]
default path, used by sh(1) and C library exec routines

SCCS-vsn: include/paths.h 5.11

33 years agomove default into <paths.h>, needed by the library exec routines
Keith Bostic [Sun, 24 Feb 1991 03:16:29 +0000 (19:16 -0800)]
move default into <paths.h>, needed by the library exec routines

SCCS-vsn: old/sh/pathnames.h 5.3

33 years agoOne more prototype declaration.
Donn Seeley [Sun, 24 Feb 1991 03:13:09 +0000 (19:13 -0800)]
One more prototype declaration.

SCCS-vsn: sys/sys/fcntl.h 5.12

33 years agoPrototype declarations.
Donn Seeley [Sun, 24 Feb 1991 03:06:53 +0000 (19:06 -0800)]
Prototype declarations.

SCCS-vsn: sys/sys/socket.h 7.11

33 years agoblackbox the token passed between getmode and setmode via the application
Keith Bostic [Sun, 24 Feb 1991 03:02:52 +0000 (19:02 -0800)]
blackbox the token passed between getmode and setmode via the application

SCCS-vsn: lib/libc/gen/setmode.c 5.5

33 years agoreformat to KNF
Keith Bostic [Sun, 24 Feb 1991 02:47:29 +0000 (18:47 -0800)]
reformat to KNF

SCCS-vsn: lib/libc/stdlib/random.c 5.9

33 years agoChanges for prototype declarations.
Donn Seeley [Sun, 24 Feb 1991 02:11:09 +0000 (18:11 -0800)]
Changes for prototype declarations.

SCCS-vsn: lib/libc/stdlib/random.c 5.8
SCCS-vsn: lib/libc/stdlib/getopt.c 4.13

33 years agoChanges to accommodate prototype declarations.
Donn Seeley [Sun, 24 Feb 1991 01:45:44 +0000 (17:45 -0800)]
Changes to accommodate prototype declarations.

SCCS-vsn: lib/libc/gen/exec.c 5.4

33 years agomake flags arguments right
Keith Bostic [Sun, 24 Feb 1991 01:24:02 +0000 (17:24 -0800)]
make flags arguments right

SCCS-vsn: lib/libc/db/hash/hash.c 5.11

33 years agomake flags right
Keith Bostic [Sun, 24 Feb 1991 01:23:52 +0000 (17:23 -0800)]
make flags right

SCCS-vsn: lib/libc/db/btree/bt_open.c 5.6

33 years agominor wordsmithing, make flags right
Keith Bostic [Sun, 24 Feb 1991 01:23:40 +0000 (17:23 -0800)]
minor wordsmithing, make flags right

SCCS-vsn: lib/libc/db/man/dbopen.3 5.14

33 years agoTweaks for psignal().
Donn Seeley [Sat, 23 Feb 1991 14:50:02 +0000 (06:50 -0800)]
Tweaks for psignal().

SCCS-vsn: include/unistd.h 5.4

33 years agoDeclare sys_siglist[] to go with psignal().
Donn Seeley [Sat, 23 Feb 1991 14:37:49 +0000 (06:37 -0800)]
Declare sys_siglist[] to go with psignal().

SCCS-vsn: include/unistd.h 5.4

33 years agoconst char ** => char * const *
Donn Seeley [Sat, 23 Feb 1991 11:50:29 +0000 (03:50 -0800)]
const char ** => char * const *

SCCS-vsn: include/fts.h 5.11

33 years agogdb does not allow writing of constant strings
Kirk McKusick [Sat, 23 Feb 1991 11:08:12 +0000 (03:08 -0800)]
gdb does not allow writing of constant strings

SCCS-vsn: sbin/restore/dirs.c 5.14

33 years agocleanup of byte swapping code
Kirk McKusick [Sat, 23 Feb 1991 11:01:45 +0000 (03:01 -0800)]
cleanup of byte swapping code

SCCS-vsn: sbin/restore/tape.c 5.21

33 years agomust use maximum directory blocksize across all architectures;
Kirk McKusick [Sat, 23 Feb 1991 10:30:15 +0000 (02:30 -0800)]
must use maximum directory blocksize across all architectures;
Be more paranoid about directory structure and print warnings when found

SCCS-vsn: sbin/restore/dirs.c 5.13

33 years agoOn tahoe, must use secsize of 1024, even though the disk label claims 512
Kirk McKusick [Sat, 23 Feb 1991 10:20:04 +0000 (02:20 -0800)]
On tahoe, must use secsize of 1024, even though the disk label claims 512

SCCS-vsn: sbin/fsck/setup.c 5.33

33 years agoANSI prototypes
Keith Bostic [Sat, 23 Feb 1991 09:23:40 +0000 (01:23 -0800)]
ANSI prototypes

SCCS-vsn: lib/libc/db/btree/bt_overflow.c 5.2
SCCS-vsn: lib/libc/db/btree/bt_open.c 5.5
SCCS-vsn: lib/libc/db/btree/btree.h 5.2
SCCS-vsn: lib/libc/db/btree/bt_delete.c 5.2
SCCS-vsn: lib/libc/db/btree/bt_put.c 5.3
SCCS-vsn: lib/libc/db/btree/lrucache.c 5.3
SCCS-vsn: lib/libc/db/btree/lruhash.c 5.2
SCCS-vsn: lib/libc/db/btree/lrutils.c 5.2
SCCS-vsn: lib/libc/db/btree/bt_seq.c 5.3
SCCS-vsn: lib/libc/db/btree/bt_split.c 5.2
SCCS-vsn: lib/libc/db/btree/bt_get.c 5.2
SCCS-vsn: lib/libc/db/btree/updutils.c 5.2
SCCS-vsn: lib/libc/db/btree/bt_utils.c 5.2
SCCS-vsn: lib/libc/db/hash/hash_bigkey.c 5.2
SCCS-vsn: lib/libc/db/hash/hash_buf.c 5.5
SCCS-vsn: lib/libc/db/hash/hash.c 5.10
SCCS-vsn: lib/libc/db/hash/hsearch.c 5.3
SCCS-vsn: lib/libc/db/hash/ndbm.c 5.4
SCCS-vsn: lib/libc/db/hash/hash_page.c 5.9

33 years agoFix some overeager use of 'const'.
Donn Seeley [Sat, 23 Feb 1991 09:06:57 +0000 (01:06 -0800)]
Fix some overeager use of 'const'.

SCCS-vsn: include/time.h 5.11

33 years agomktime()'s argument isn't const.
Donn Seeley [Sat, 23 Feb 1991 09:02:56 +0000 (01:02 -0800)]
mktime()'s argument isn't const.

SCCS-vsn: include/time.h 5.11

33 years agocleanup, update, reimplement to work as correctly as possible
Keith Bostic [Sat, 23 Feb 1991 09:00:01 +0000 (01:00 -0800)]
cleanup, update, reimplement to work as correctly as possible

SCCS-vsn: lib/libc/stdio/tmpfile.c 5.2
SCCS-vsn: lib/libc/stdio/tmpnam.c 5.2
SCCS-vsn: lib/libc/stdio/tempnam.c 5.1
SCCS-vsn: lib/libc/stdio/tmpnam.3 5.11

33 years agoMake exect()'s prototype more like the (correct) one for execv().
Donn Seeley [Sat, 23 Feb 1991 07:19:22 +0000 (23:19 -0800)]
Make exect()'s prototype more like the (correct) one for execv().

SCCS-vsn: include/unistd.h 5.3

33 years agoadd sys/time.h, prototype for select needs it.
Keith Bostic [Sat, 23 Feb 1991 07:15:46 +0000 (23:15 -0800)]
add sys/time.h, prototype for select needs it.

SCCS-vsn: include/unistd.h 5.2

33 years agoFix 'const' problems with getopt()'s prototype.
Donn Seeley [Sat, 23 Feb 1991 07:14:06 +0000 (23:14 -0800)]
Fix 'const' problems with getopt()'s prototype.

SCCS-vsn: include/stdlib.h 5.9

33 years agoa little less verbose, please
Keith Bostic [Sat, 23 Feb 1991 06:35:07 +0000 (22:35 -0800)]
a little less verbose, please

SCCS-vsn: lib/libc/sys/Makefile.inc 5.5

33 years agouse stdarg.h, not varargs.h
Keith Bostic [Sat, 23 Feb 1991 06:25:07 +0000 (22:25 -0800)]
use stdarg.h, not varargs.h

SCCS-vsn: libexec/mail.local/mail.local.c 5.3

33 years agooflags-FOPEN => FFLAGS(oflags)
Mike Karels [Sat, 23 Feb 1991 06:13:01 +0000 (22:13 -0800)]
oflags-FOPEN => FFLAGS(oflags)

SCCS-vsn: sys/kern/vfs_syscalls.c 7.64

33 years agoprotect stdarg.h -- used by syslog.h and probably by others
Keith Bostic [Sat, 23 Feb 1991 06:02:38 +0000 (22:02 -0800)]
protect stdarg.h -- used by syslog.h and probably by others

SCCS-vsn: include/stdarg.h 5.5

33 years agouse stdarg, not varargs
Keith Bostic [Sat, 23 Feb 1991 06:01:18 +0000 (22:01 -0800)]
use stdarg, not varargs

SCCS-vsn: sys/sys/syslog.h 7.19

33 years agocheck for ranlib magic string was wrong, so if the ranlib archive
Keith Bostic [Sat, 23 Feb 1991 05:03:25 +0000 (21:03 -0800)]
check for ranlib magic string was wrong, so if the ranlib archive
happened to have an okay exec magic number, entered the twilight zone.

SCCS-vsn: usr.bin/nm/nm.c 5.7

33 years agorearrange, put all open() and file f_flags definitions here,
Mike Karels [Sat, 23 Feb 1991 04:35:21 +0000 (20:35 -0800)]
rearrange, put all open() and file f_flags definitions here,
put fcntl stuff together, move all seek, etc. defs to unistd.h

SCCS-vsn: sys/sys/fcntl.h 5.11

33 years agofix GUNIT ioctl
Mike Karels [Sat, 23 Feb 1991 04:33:19 +0000 (20:33 -0800)]
fix GUNIT ioctl

SCCS-vsn: sys/net/if_slvar.h 7.6

33 years agoPrototype declarations.
Donn Seeley [Sat, 23 Feb 1991 04:12:30 +0000 (20:12 -0800)]
Prototype declarations.

SCCS-vsn: sys/sys/syslog.h 7.18
SCCS-vsn: sys/sys/termios.h 7.21
SCCS-vsn: sys/sys/time.h 7.6

33 years agodate and time created 91/02/22 11:34:25 by bostic
Keith Bostic [Sat, 23 Feb 1991 03:34:25 +0000 (19:34 -0800)]
date and time created 91/02/22 11:34:25 by bostic

SCCS-vsn: include/unistd.h 5.1

33 years agobreak unistd.h up into <unistd.h> and <sys/unistd.h>
Keith Bostic [Sat, 23 Feb 1991 03:34:07 +0000 (19:34 -0800)]
break unistd.h up into <unistd.h> and <sys/unistd.h>

SCCS-vsn: sys/sys/unistd.h 5.13

33 years agoOne more prototype declaration.
Donn Seeley [Sat, 23 Feb 1991 03:20:43 +0000 (19:20 -0800)]
One more prototype declaration.

SCCS-vsn: sys/sys/stat.h 7.10

33 years agofsync the mailbox file descriptor
Keith Bostic [Sat, 23 Feb 1991 03:20:30 +0000 (19:20 -0800)]
fsync the mailbox file descriptor

SCCS-vsn: libexec/mail.local/mail.local.c 5.2

33 years agoPrototype declarations.
Donn Seeley [Sat, 23 Feb 1991 03:15:11 +0000 (19:15 -0800)]
Prototype declarations.

SCCS-vsn: sys/sys/ptrace.h 7.4
SCCS-vsn: sys/ufs/ffs/quota.h 7.9
SCCS-vsn: sys/ufs/ufs/quota.h 7.9

33 years agoNew-style prototype declarations.
Donn Seeley [Sat, 23 Feb 1991 02:41:42 +0000 (18:41 -0800)]
New-style prototype declarations.

SCCS-vsn: sys/netns/ns.h 7.8

33 years agoPrototype declarations.
Donn Seeley [Sat, 23 Feb 1991 02:37:01 +0000 (18:37 -0800)]
Prototype declarations.

SCCS-vsn: sys/sys/mount.h 7.18

33 years agoPrototype declarations. Currently we're using 'int' lengths; these ought
Donn Seeley [Sat, 23 Feb 1991 02:31:35 +0000 (18:31 -0800)]
Prototype declarations.  Currently we're using 'int' lengths; these ought
to be size_t, I suppose, but we can fix that later.

SCCS-vsn: sys/sys/mman.h 7.4

33 years agoANSI fix
Keith Bostic [Sat, 23 Feb 1991 02:29:27 +0000 (18:29 -0800)]
ANSI fix

SCCS-vsn: lib/libc/db/hash/hash_page.c 5.8

33 years agoANSI and c++ stuff
Keith Bostic [Sat, 23 Feb 1991 02:21:49 +0000 (18:21 -0800)]
ANSI and c++ stuff

SCCS-vsn: lib/libc/db/hash/ndbm.c 5.3
SCCS-vsn: lib/libc/db/hash/hash.c 5.9

33 years agoPrototype declarations.
Donn Seeley [Sat, 23 Feb 1991 02:19:37 +0000 (18:19 -0800)]
Prototype declarations.

SCCS-vsn: sys/sys/sysctl.h 7.7

33 years agob{cmp,copy,zero} all take void *, not char *
Keith Bostic [Sat, 23 Feb 1991 02:18:54 +0000 (18:18 -0800)]
b{cmp,copy,zero} all take void *, not char *

SCCS-vsn: include/string.h 5.8

33 years agomore compatibility
Keith Bostic [Sat, 23 Feb 1991 02:11:17 +0000 (18:11 -0800)]
more compatibility

SCCS-vsn: lib/libc/db/hash/README 5.3

33 years agomake safe for c++
Keith Bostic [Sat, 23 Feb 1991 02:08:54 +0000 (18:08 -0800)]
make safe for c++

SCCS-vsn: include/db.h 5.4

33 years agoPrototype declarations.
Donn Seeley [Sat, 23 Feb 1991 01:59:57 +0000 (17:59 -0800)]
Prototype declarations.

SCCS-vsn: sys/netiso/iso.h 7.5

33 years agoPrototype declaration.
Donn Seeley [Sat, 23 Feb 1991 01:53:58 +0000 (17:53 -0800)]
Prototype declaration.

SCCS-vsn: sys/sys/ioctl.h 7.16

33 years agomove old lseek values here from sys/file.h; #ifdef KERNEL prototypes
Mike Karels [Sat, 23 Feb 1991 01:46:26 +0000 (17:46 -0800)]
move old lseek values here from sys/file.h; #ifdef KERNEL prototypes

SCCS-vsn: sys/sys/unistd.h 5.12

33 years agoPrototype declarations.
Donn Seeley [Sat, 23 Feb 1991 01:44:06 +0000 (17:44 -0800)]
Prototype declarations.

SCCS-vsn: sys/pmax/include/endian.h 7.7
SCCS-vsn: sys/pmax/include/endian.h 7.7

33 years agoall the p_ routines are static to the library
Keith Bostic [Sat, 23 Feb 1991 01:30:46 +0000 (17:30 -0800)]
all the p_ routines are static to the library

SCCS-vsn: include/resolv.h 5.12

33 years agoDeclarations for link_addr and link_ntoa.
Donn Seeley [Sat, 23 Feb 1991 01:22:17 +0000 (17:22 -0800)]
Declarations for link_addr and link_ntoa.

SCCS-vsn: sys/net/if_dl.h 7.2

33 years agoThis baby is included by the kernel... Declare getdirentries() here.
Donn Seeley [Sat, 23 Feb 1991 01:04:33 +0000 (17:04 -0800)]
This baby is included by the kernel...  Declare getdirentries() here.

SCCS-vsn: include/dirent.h 5.17

33 years agodirent.h is in /usr/include, not /usr/include/sys
Keith Bostic [Sat, 23 Feb 1991 01:00:39 +0000 (17:00 -0800)]
dirent.h is in /usr/include, not /usr/include/sys

SCCS-vsn: lib/libc/sys/getdirentries.2 6.3

33 years agosetpwfile has gone away
Keith Bostic [Sat, 23 Feb 1991 00:43:58 +0000 (16:43 -0800)]
setpwfile has gone away

SCCS-vsn: include/pwd.h 5.9

33 years agoRemove prototype parameter names, both because they didn't begin with
Donn Seeley [Sat, 23 Feb 1991 00:30:03 +0000 (16:30 -0800)]
Remove prototype parameter names, both because they didn't begin with
underscores and because they contained three of the four uses of C++ keywords.

SCCS-vsn: include/db.h 5.3

33 years agoBe consistent about using names for prototype parameters (they go) and
Donn Seeley [Sat, 23 Feb 1991 00:24:45 +0000 (16:24 -0800)]
Be consistent about using names for prototype parameters (they go) and
compensate slightly by being clearer about what functions are POSIX functions.

SCCS-vsn: include/stdio.h 5.11

33 years agoneed stdio for DEBUG and HASH_STATISTICS
Keith Bostic [Sat, 23 Feb 1991 00:18:55 +0000 (16:18 -0800)]
need stdio for DEBUG and HASH_STATISTICS

SCCS-vsn: lib/libc/db/hash/hash.c 5.8

33 years agoAdded prototype declarations for documented interfaces.
Donn Seeley [Sat, 23 Feb 1991 00:06:42 +0000 (16:06 -0800)]
Added prototype declarations for documented interfaces.

SCCS-vsn: include/resolv.h 5.11

33 years agoReorganized declarations to accommodate both ANSI and POSIX. We still
Donn Seeley [Sat, 23 Feb 1991 00:05:57 +0000 (16:05 -0800)]
Reorganized declarations to accommodate both ANSI and POSIX.  We still
don't have implementations of sigsetjmp() and siglongjmp().

SCCS-vsn: include/setjmp.h 5.4

33 years agoAdded new prototype declarations and cleaned up.
Donn Seeley [Sat, 23 Feb 1991 00:03:41 +0000 (16:03 -0800)]
Added new prototype declarations and cleaned up.

SCCS-vsn: include/glob.h 5.3
SCCS-vsn: include/netdb.h 5.12
SCCS-vsn: include/stdlib.h 5.8
SCCS-vsn: include/time.h 5.10
SCCS-vsn: include/vis.h 5.6

33 years agofixes for multiple calls to namei (for rename in NFS)
Kirk McKusick [Fri, 22 Feb 1991 15:02:02 +0000 (07:02 -0800)]
fixes for multiple calls to namei (for rename in NFS)

SCCS-vsn: sys/sys/namei.h 7.13
SCCS-vsn: sys/nfs/nfs_vnops.c 7.52
SCCS-vsn: sys/ufs/ffs/ffs_vnops.c 7.54
SCCS-vsn: sys/ufs/ffs/ufs_vnops.c 7.54
SCCS-vsn: sys/ufs/lfs/lfs_vnops.c 7.54
SCCS-vsn: sys/ufs/ufs/ufs_vnops.c 7.54
SCCS-vsn: sys/ufs/ffs/ufs_lookup.c 7.25
SCCS-vsn: sys/ufs/ufs/ufs_lookup.c 7.25
SCCS-vsn: sys/nfs/nfs_serv.c 7.34
SCCS-vsn: sys/nfs/nfs_subs.c 7.36

33 years agofixes for rename in NFS
Kirk McKusick [Fri, 22 Feb 1991 14:53:16 +0000 (06:53 -0800)]
fixes for rename in NFS

SCCS-vsn: sys/kern/vfs_lookup.c 7.25

33 years agosigsetjmp changes were wrong; back out for now
Keith Bostic [Fri, 22 Feb 1991 14:46:21 +0000 (06:46 -0800)]
sigsetjmp changes were wrong; back out for now

SCCS-vsn: include/setjmp.h 5.4

33 years agofixes for range locking
Kirk McKusick [Fri, 22 Feb 1991 11:32:56 +0000 (03:32 -0800)]
fixes for range locking

SCCS-vsn: sys/ufs/ffs/ffs_vnops.c 7.53
SCCS-vsn: sys/ufs/ffs/ufs_vnops.c 7.53
SCCS-vsn: sys/ufs/lfs/lfs_vnops.c 7.53
SCCS-vsn: sys/ufs/ufs/ufs_vnops.c 7.53

33 years agomake sure oaddr doesn't get set on empty pages
Keith Bostic [Fri, 22 Feb 1991 11:00:54 +0000 (03:00 -0800)]
make sure oaddr doesn't get set on empty pages

SCCS-vsn: lib/libc/db/hash/hash_buf.c 5.4

33 years agocount bitmaps so they can be free'd
Keith Bostic [Fri, 22 Feb 1991 10:57:47 +0000 (02:57 -0800)]
count bitmaps so they can be free'd

SCCS-vsn: lib/libc/db/hash/hash.h 5.3
SCCS-vsn: lib/libc/db/hash/hash_page.c 5.7

33 years agoclear errno on open/create after stat; count bitmaps so can be free'd
Keith Bostic [Fri, 22 Feb 1991 10:57:20 +0000 (02:57 -0800)]
clear errno on open/create after stat; count bitmaps so can be free'd

SCCS-vsn: lib/libc/db/hash/hash.c 5.7

33 years agomake sure free'd overflow pages are not reread from disk and handle
Keith Bostic [Fri, 22 Feb 1991 10:54:02 +0000 (02:54 -0800)]
make sure free'd overflow pages are not reread from disk and handle
back-to-back big key pairs during split

SCCS-vsn: lib/libc/db/hash/hash_page.c 5.6
SCCS-vsn: lib/libc/db/hash/hash_buf.c 5.3

33 years agoupdate from Margo Seltzer, for her partial distribution
Keith Bostic [Fri, 22 Feb 1991 09:58:33 +0000 (01:58 -0800)]
update from Margo Seltzer, for her partial distribution

SCCS-vsn: lib/libc/db/hash/README 5.2

33 years agoL_SET -> SEEK_SET
Keith Bostic [Fri, 22 Feb 1991 09:19:58 +0000 (01:19 -0800)]
L_SET -> SEEK_SET

SCCS-vsn: lib/libc/db/hash/hash_page.c 5.5
SCCS-vsn: lib/libc/db/hash/hash.c 5.6

33 years agodon't put namestr into text space -- Thanks ANSI!
Keith Bostic [Fri, 22 Feb 1991 09:15:39 +0000 (01:15 -0800)]
don't put namestr into text space -- Thanks ANSI!

SCCS-vsn: lib/libc/db/hash/hash_page.c 5.4

33 years agomove O_ACCMODE into ../dist/sysv.h
Keith Bostic [Fri, 22 Feb 1991 09:12:46 +0000 (01:12 -0800)]
move O_ACCMODE into ../dist/sysv.h

SCCS-vsn: lib/libc/db/hash/hash.c 5.5

33 years agomove from libc into libdbm
Keith Bostic [Fri, 22 Feb 1991 08:41:53 +0000 (00:41 -0800)]
move from libc into libdbm

SCCS-vsn: old/libndbm/Makefile 5.10
SCCS-vsn: old/libndbm/ndbm.c 5.5

33 years agomake dn_skipname, fp_query, hostalias, p_cdname, p_class, p_query,
Keith Bostic [Fri, 22 Feb 1991 08:23:40 +0000 (00:23 -0800)]
make dn_skipname, fp_query, hostalias, p_cdname, p_class, p_query,
p_rr, p_time, p_type, putlong and putshort hidden

SCCS-vsn: lib/libc/net/Makefile.inc 5.3
SCCS-vsn: lib/libc/net/gethostnamadr.c 6.42
SCCS-vsn: lib/libc/net/res_comp.c 6.19
SCCS-vsn: lib/libc/net/res_debug.c 5.32
SCCS-vsn: lib/libc/net/res_mkquery.c 6.14
SCCS-vsn: lib/libc/net/res_query.c 5.8
SCCS-vsn: lib/libc/net/res_send.c 6.26

33 years agochanges to fflags FCNTLCANT => FCNTLFLAGS, FFLAGS/OFLAGS
Mike Karels [Fri, 22 Feb 1991 08:16:22 +0000 (00:16 -0800)]
changes to fflags FCNTLCANT => FCNTLFLAGS, FFLAGS/OFLAGS

SCCS-vsn: sys/kern/kern_descrip.c 7.19

33 years agodelete sethostfile(3)
Keith Bostic [Fri, 22 Feb 1991 06:10:25 +0000 (22:10 -0800)]
delete sethostfile(3)

SCCS-vsn: lib/libc/net/Makefile.inc 5.2
SCCS-vsn: lib/libc/net/sethostent.c 6.7