unix-history/.git
33 years agolots of prototype corrections
Keith Bostic [Mon, 25 Feb 1991 06:18:21 +0000 (22:18 -0800)]
lots of prototype corrections

SCCS-vsn: include/unistd.h 5.5

33 years agodn_comp and dn_expand all expect u_char's, not chars
Keith Bostic [Mon, 25 Feb 1991 06:17:50 +0000 (22:17 -0800)]
dn_comp and dn_expand all expect u_char's, not chars

SCCS-vsn: include/resolv.h 5.13

33 years agoinclude sys/types.h, no longer need to typedef size_t
Keith Bostic [Mon, 25 Feb 1991 06:17:23 +0000 (22:17 -0800)]
include sys/types.h, no longer need to typedef size_t
typo in RAND_MAX define

SCCS-vsn: include/stdlib.h 5.10

33 years agomove P_tmpdir from /usr/tmp to /var/tmp
Keith Bostic [Mon, 25 Feb 1991 06:16:22 +0000 (22:16 -0800)]
move P_tmpdir from /usr/tmp to /var/tmp
add prototype for tempnam(3)

SCCS-vsn: include/stdio.h 5.12

33 years agogethostbyaddr takes a char *, not a void *
Keith Bostic [Mon, 25 Feb 1991 06:15:48 +0000 (22:15 -0800)]
gethostbyaddr takes a char *, not a void *
gethostbyname modifies what its argument references

SCCS-vsn: include/netdb.h 5.13

33 years agoAdd include files to get prototype declarations, and fix bugs found.
Keith Bostic [Mon, 25 Feb 1991 06:14:51 +0000 (22:14 -0800)]
Add include files to get prototype declarations, and fix bugs found.

SCCS-vsn: lib/libcompat/regexp/regerror.c 5.2
SCCS-vsn: lib/libcompat/regexp/regexp.c 5.2
SCCS-vsn: lib/libcompat/regexp/regsub.c 5.2

33 years agomodf takes a double * as it's second argument
Keith Bostic [Mon, 25 Feb 1991 06:09:50 +0000 (22:09 -0800)]
modf takes a double * as it's second argument

SCCS-vsn: include/math.h 5.3

33 years agoswab takes void *'s, not char *'s
Keith Bostic [Mon, 25 Feb 1991 06:09:09 +0000 (22:09 -0800)]
swab takes void *'s, not char *'s

SCCS-vsn: include/string.h 5.9

33 years agoput "." at the end of the default path
Keith Bostic [Mon, 25 Feb 1991 06:08:55 +0000 (22:08 -0800)]
put "." at the end of the default path

SCCS-vsn: include/paths.h 5.12

33 years agodon't use syslog, application may have already used it.
Keith Bostic [Mon, 25 Feb 1991 06:06:50 +0000 (22:06 -0800)]
don't use syslog, application may have already used it.
Add include files to get prototype declarations, and fix bugs found.

SCCS-vsn: lib/libc/gen/getpwent.c 5.16

33 years agoupdates from Mike to make messages more media independent;
Kirk McKusick [Mon, 25 Feb 1991 06:03:34 +0000 (22:03 -0800)]
updates from Mike to make messages more media independent;
add 'B' flag to specify number of blocks per volume

SCCS-vsn: sbin/dump/main.c 5.11
SCCS-vsn: sbin/dump/tape.c 5.13

33 years agoAdd include files to get prototype declarations, and fix bugs found.
Keith Bostic [Mon, 25 Feb 1991 05:57:56 +0000 (21:57 -0800)]
Add include files to get prototype declarations, and fix bugs found.

SCCS-vsn: lib/libc/string/bcmp.c 5.6
SCCS-vsn: lib/libc/string/bzero.c 5.7
SCCS-vsn: lib/libc/string/index.c 5.7
SCCS-vsn: lib/libc/string/rindex.c 5.9
SCCS-vsn: lib/libc/string/strcat.c 5.6
SCCS-vsn: lib/libc/string/strcpy.c 5.7
SCCS-vsn: lib/libc/string/strdup.c 5.4
SCCS-vsn: lib/libc/string/strerror.c 5.5
SCCS-vsn: lib/libc/string/strftime.c 5.11
SCCS-vsn: lib/libc/string/strtok.c 5.8
SCCS-vsn: lib/libc/string/swab.c 5.9

33 years agotypo
Keith Bostic [Mon, 25 Feb 1991 05:45:12 +0000 (21:45 -0800)]
typo

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

33 years agoAdd include files to get prototype declarations, and fix bugs found.
Keith Bostic [Mon, 25 Feb 1991 05:30:31 +0000 (21:30 -0800)]
Add include files to get prototype declarations, and fix bugs found.

SCCS-vsn: lib/libc/stdio/fdopen.c 5.6
SCCS-vsn: lib/libc/stdio/findfp.c 5.10
SCCS-vsn: lib/libc/stdio/fpurge.c 5.2
SCCS-vsn: lib/libc/stdio/fputs.c 5.6
SCCS-vsn: lib/libc/stdio/freopen.c 5.6
SCCS-vsn: lib/libc/stdio/fseek.c 5.7
SCCS-vsn: lib/libc/stdio/fwalk.c 5.2
SCCS-vsn: lib/libc/stdio/fwrite.c 5.5
SCCS-vsn: lib/libc/stdio/makebuf.c 5.2
SCCS-vsn: lib/libc/stdio/mktemp.c 5.10
SCCS-vsn: lib/libc/stdio/perror.c 5.11
SCCS-vsn: lib/libc/stdio/puts.c 5.6
SCCS-vsn: lib/libc/stdio/refill.c 5.3
SCCS-vsn: lib/libc/stdio/remove.c 5.3
SCCS-vsn: lib/libc/stdio/setbuffer.c 5.4
SCCS-vsn: lib/libc/stdio/stdio.c 5.3
SCCS-vsn: lib/libc/stdio/tmpfile.c 5.3
SCCS-vsn: lib/libc/stdio/tmpnam.c 5.3
SCCS-vsn: lib/libc/stdio/vfprintf.c 5.45
SCCS-vsn: lib/libc/stdio/vfscanf.c 5.6
SCCS-vsn: lib/libc/stdio/vprintf.c 5.6
SCCS-vsn: lib/libc/stdio/wsetup.c 5.2

33 years agobcmp, bzero take void *, not char *
Keith Bostic [Mon, 25 Feb 1991 05:20:38 +0000 (21:20 -0800)]
bcmp, bzero take void *, not char *

SCCS-vsn: lib/libc/string/bcmp.c 5.5
SCCS-vsn: lib/libc/string/bzero.c 5.6

33 years agobcopy takes a void *, not a char *
Keith Bostic [Mon, 25 Feb 1991 05:20:04 +0000 (21:20 -0800)]
bcopy takes a void *, not a char *

SCCS-vsn: lib/libc/string/bcopy.c 5.10

33 years agoexec family (except for exect) are now machine-independent
Keith Bostic [Mon, 25 Feb 1991 05:19:12 +0000 (21:19 -0800)]
exec family (except for exect) are now machine-independent

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

33 years agolots of minor changes
Keith Bostic [Mon, 25 Feb 1991 05:18:32 +0000 (21:18 -0800)]
lots of minor changes

SCCS-vsn: lib/libc/stdio/Makefile.inc 5.2

33 years agoneed ctype.h, shouldn't have deleted it
Keith Bostic [Mon, 25 Feb 1991 05:14:38 +0000 (21:14 -0800)]
need ctype.h, shouldn't have deleted it

SCCS-vsn: lib/libc/net/gethostnamadr.c 6.45
SCCS-vsn: lib/libc/net/inet_addr.c 5.10
SCCS-vsn: lib/libc/net/inet_network.c 5.8
SCCS-vsn: lib/libc/net/rcmd.c 5.24
SCCS-vsn: lib/libc/net/res_query.c 5.10

33 years agodoesn't need ctype.h
Keith Bostic [Mon, 25 Feb 1991 04:56:20 +0000 (20:56 -0800)]
doesn't need ctype.h

SCCS-vsn: lib/libc/net/gethostnamadr.c 6.44

33 years agoAdd include files to get prototype declarations, and fix bugs found.
Keith Bostic [Mon, 25 Feb 1991 04:40:31 +0000 (20:40 -0800)]
Add include files to get prototype declarations, and fix bugs found.

SCCS-vsn: lib/libc/net/gethostnamadr.c 6.43
SCCS-vsn: lib/libc/net/getnetbyname.c 5.7
SCCS-vsn: lib/libc/net/getnetent.c 5.8
SCCS-vsn: lib/libc/net/getprotoent.c 5.8
SCCS-vsn: lib/libc/net/getprotoname.c 5.7
SCCS-vsn: lib/libc/net/getservbyname.c 5.7
SCCS-vsn: lib/libc/net/getservbyport.c 5.7
SCCS-vsn: lib/libc/net/getservent.c 5.9
SCCS-vsn: lib/libc/net/herror.c 6.6
SCCS-vsn: lib/libc/net/inet_addr.c 5.9
SCCS-vsn: lib/libc/net/inet_lnaof.c 5.7
SCCS-vsn: lib/libc/net/inet_makeaddr.c 5.6
SCCS-vsn: lib/libc/net/inet_netof.c 5.7
SCCS-vsn: lib/libc/net/inet_network.c 5.7
SCCS-vsn: lib/libc/net/inet_ntoa.c 5.6
SCCS-vsn: lib/libc/net/iso_addr.c 5.4
SCCS-vsn: lib/libc/net/linkaddr.c 5.2
SCCS-vsn: lib/libc/net/ns_addr.c 6.7
SCCS-vsn: lib/libc/net/ns_ntoa.c 6.6
SCCS-vsn: lib/libc/net/rcmd.c 5.23
SCCS-vsn: lib/libc/net/recv.c 5.3
SCCS-vsn: lib/libc/net/res_comp.c 6.20
SCCS-vsn: lib/libc/net/res_debug.c 5.33
SCCS-vsn: lib/libc/net/res_init.c 6.15
SCCS-vsn: lib/libc/net/res_mkquery.c 6.15
SCCS-vsn: lib/libc/net/res_query.c 5.9
SCCS-vsn: lib/libc/net/res_send.c 6.27
SCCS-vsn: lib/libc/net/send.c 5.3
SCCS-vsn: lib/libc/net/sethostent.c 6.8

33 years agoincluded by arpa/inet.h, so protect it.
Keith Bostic [Mon, 25 Feb 1991 02:59:19 +0000 (18:59 -0800)]
included by arpa/inet.h, so protect it.

SCCS-vsn: sys/netinet/in.h 7.11

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

SCCS-vsn: lib/libc/locale/setlocale.c 5.2

33 years agoneeds limits.h
Keith Bostic [Mon, 25 Feb 1991 02:41:04 +0000 (18:41 -0800)]
needs limits.h

SCCS-vsn: lib/libc/locale/lconv.c 5.2

33 years agofirst pass at function prototypes with cdefs.h
Keith Bostic [Mon, 25 Feb 1991 02:40:28 +0000 (18:40 -0800)]
first pass at function prototypes with cdefs.h

SCCS-vsn: include/locale.h 5.2

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