Commit Graph

1184 Commits

Author SHA1 Message Date
glass 0b84fdb5c1 bootstrap improvements 1994-05-09 06:36:20 +00:00
cgd 5a9cb8543e clean up import 1994-05-09 03:35:55 +00:00
cgd f7329f6875 new w, to match libkvm 1994-05-09 03:32:48 +00:00
mycroft 705891fd43 020 -> IPTOS_LOWDELAY 1994-05-08 20:42:26 +00:00
jtc 353b511d05 Fix bug #241 by adding off_t cast to macro that uses ftruncate(). 1994-05-07 01:09:56 +00:00
cgd 87dc7098ba update 1994-05-05 23:24:26 +00:00
mycroft 22aad6433a Clean up deleted files. 1994-05-05 23:05:14 +00:00
cgd 6e48979283 die! 1994-05-05 23:05:09 +00:00
cgd 39059e3c25 oops 1994-05-05 22:52:36 +00:00
cgd 1dbbb3b701 new 'id' 1994-05-05 22:50:17 +00:00
cgd 06be1d72aa field name foo 1994-05-05 06:38:53 +00:00
cgd 3b59599485 kill stupidity 1994-05-05 06:35:50 +00:00
cgd 72d449e788 update for changed flags 1994-05-05 02:27:31 +00:00
cgd 25718695be update for changed flags 1994-05-05 02:04:10 +00:00
jtc c1a0df95a9 Added POSIX.2 getconf utility; although It won't be really useful until
we get sysconf() & pathconf().
Manpage coming soon.
1994-04-27 19:50:51 +00:00
jtc 0d6a99f38a Added POSIX.2 getconf utility; although It won't be really useful until
we get sysconf() & pathconf().
1994-04-27 19:50:34 +00:00
deraadt 907eea9f85 various off_t fixes 1994-04-24 20:19:17 +00:00
pk a52f16e93a setre[gu]id conversion. 1994-04-20 17:21:28 +00:00
deraadt 8ef0a5ca8b don't trounce on argv[1] 1994-04-17 12:31:05 +00:00
alm b1dcef2867 echo hello | ./sed 'sl[l]lxl'
historically outputs:
hexlo
1994-04-17 04:19:27 +00:00
glass 5760062851 bootstrap changes 1994-04-17 03:09:49 +00:00
andrew f94eaef2a5 Pull in TIOCGWINSZ from <sys/ioctl.h>. 1994-04-17 02:45:13 +00:00
cgd 75556c7593 fix from bostic for multiple match problem 1994-04-17 02:15:13 +00:00
mycroft 5052de79df Clean up deleted files. 1994-04-16 08:31:39 +00:00
cgd c679acd09f kill symorder 1994-04-16 08:31:24 +00:00
andrew 9eb259ab93 Added TERMIOS support. 1994-04-16 08:14:50 +00:00
cgd a13388c78e kill setreuids 1994-04-16 03:41:59 +00:00
cgd 2a83433d4e clean, exported variable (and contents) changes 1994-04-15 07:07:23 +00:00
cgd ecc12ef419 fstypes will be strings soon 1994-04-14 03:34:13 +00:00
pk b6d3849691 Don't core dump on shared objects. We need an a.out flag really.
Some misc cleanup.
1994-04-10 08:54:30 +00:00
cgd 82ed2d9b7d kill uses of gets() 1994-04-10 07:20:35 +00:00
briggs 506dde3090 Need for.o in list of objects when bootstrapping. 1994-04-09 23:35:25 +00:00
deraadt 9e884098d2 fix from <dgy@mcs.com> 1994-04-08 08:09:14 +00:00
mycroft 088a1b076b Fix stack corruption bug. 1994-04-08 05:26:49 +00:00
cgd f699598151 fix a real, live null deref 1994-04-06 17:54:35 +00:00
cgd 6d4a80e947 print quads with q 1994-04-06 17:51:04 +00:00
cgd 4d677d675c kill lseek defn's 1994-04-06 17:50:39 +00:00
cgd e104a4a2bc don't core if -b is given no argument. bug pointed out by nate williams,
fix by me.
1994-04-06 00:04:09 +00:00
cgd 6c0c0c32bd fix from Alan Coopersmith <alanc@ocf.berkeley.edu> for un-initted variable 1994-04-05 02:18:43 +00:00
cgd ea7e0c1cca kill lots of off_t's. 1994-04-01 09:18:06 +00:00
cgd f006d09efa add semicolon as suggested by Mark Weaver. 1994-04-01 08:58:45 +00:00
cgd df393d700c use full path when naming units lib. this file should be converted to
mandoc...
1994-04-01 08:49:59 +00:00
cgd f0a32f8da2 there will be no more /vmunix! from Mark Weaver. 1994-04-01 08:27:29 +00:00
cgd 09b4d0d931 delete unclear comments, from Mark Weaver. 1994-04-01 08:26:13 +00:00
mycroft 5cfca54767 Style cleanup; use err*() and atexit(). 1994-04-01 04:33:48 +00:00
cgd ca003fe926 fix tn3270's idea of where map3270 lives. From Mark Weaver. 1994-04-01 04:09:18 +00:00
cgd c53a9c6660 man page fix from Mark Weaver 1994-04-01 04:01:48 +00:00
cgd 67f7468b24 bad cast 1994-04-01 03:32:38 +00:00
cgd 86be4d6208 long cast 1994-04-01 03:29:58 +00:00
cgd 20d2c86dad lseek/long thing 1994-04-01 01:44:59 +00:00
jtc abfeba19ee Getgroup's second argument is now a gid_t ptr. 1994-04-01 01:19:08 +00:00
deraadt 6a84dc1aba off_t 1994-03-31 11:12:40 +00:00
cgd 0337c53156 fix usage, and printing of size/name for files 1994-03-30 03:08:45 +00:00
cgd 2ab4a0ae5c some changes to make Kerberos a bit easier to use. from
Michael Graff <explorer@vorpal.com>, with some work by myself...
1994-03-30 02:49:15 +00:00
cgd 68e9ccd936 screw it. #ifdef out the i386 disk-name-getting routine. 1994-03-30 01:37:04 +00:00
cgd 117a397c4b don't core when a delete comes after a number. from bostic 1994-03-30 01:31:50 +00:00
cgd 2b12186e93 kill warning/error 1994-03-28 11:17:16 +00:00
cgd 1e6c1e0ef2 clean up, for off_t... ugliest 'cleaning' possible, i think... 1994-03-28 10:29:31 +00:00
cgd e26987fe07 kill lseek def'n. the entire thing needs cleanup badly 1994-03-28 09:19:18 +00:00
cgd ef1fafa7b4 another lseek extern! 1994-03-28 07:26:41 +00:00
cgd 9e9d953286 kill typo 1994-03-28 07:11:18 +00:00
cgd 0e8fd740e8 nvi 1.11(beta) from bostic. reconcile conflicts/kill rcsids. 1994-03-28 04:31:54 +00:00
mycroft 74a26e6971 Clean up deleted files. 1994-03-28 04:31:51 +00:00
cgd 33f08a621d nvi 1.11(beta) from bostic. reconcile conflicts/kill rcsids. 1994-03-28 04:28:20 +00:00
mycroft c2ede54b78 Clean up deleted files. 1994-03-28 04:28:17 +00:00
cgd 47635e2574 nvi 1.11(beta) from bostic. reconcile conflicts/kill rcsids. 1994-03-28 04:28:14 +00:00
mycroft ade656b93b Clean up deleted files. 1994-03-28 04:28:08 +00:00
cgd 57fe5d2894 nvi 1.11(beta) from bostic. reconcile conflicts/kill rcsids. 1994-03-28 04:27:20 +00:00
cgd 6f5fcc76ef nvi/nex 1.11beta from bostic. 1994-03-28 02:52:06 +00:00
cgd ceacf6a332 off_t foo, and MAP_FILE 1994-03-28 02:22:29 +00:00
cgd 78fdfb6fd9 no more MAP_FILE 1994-03-28 02:17:50 +00:00
cgd 95d6a185be no more MAP_FILE 1994-03-28 02:07:04 +00:00
cgd b47c1a949c kill some now-unnecessary casts. 1994-03-27 22:07:31 +00:00
cgd 2ef3f89f23 i386: completely punt on getting disk names until charles is done
config hacking.  better to punt than to do something really abnormal.
1994-03-27 12:26:33 +00:00
cgd ab97926575 off_t foo 1994-03-27 10:05:14 +00:00
cgd d85e4acf72 off_t exp. 1994-03-27 09:26:59 +00:00
cgd 1ba43f6177 off_t exp. 1994-03-27 09:08:58 +00:00
cgd 0fa009a916 off_t exp. 1994-03-27 09:01:41 +00:00
glass 5bee302b77 moved useful contents of netiso/tp_astring.c down 1994-03-26 04:08:45 +00:00
mycroft adf20f8c80 Fix bug in handling short reads. 1994-03-25 17:07:02 +00:00
mycroft f8e2732fe8 Fix bug with D leaving junk at end of pattern space. 1994-03-24 15:55:01 +00:00
cgd 1feda9dc52 use stdio rather than stupid, ill-conceived buffering hack. 1994-03-23 04:37:40 +00:00
cgd a28a03c947 kill perverse syntax 1994-03-23 01:32:50 +00:00
jtc aa67092685 Fixes from Christos Zoulas:
The following two patches fix a couple of problems with make(1)

1. Null Suffixes were not being copied, but they were being free'd
   This caused rules of the form:

   .c:
	${CC} ...

   to access invalid memory and potentially core dump..
   [That was always broken; I did not break that one :-)]

2. My recent fixes to parse ${VAR:%.foo=%.bar} handled the null string
   case incorrectly (${VAR:=.c} was broken).
1994-03-23 00:52:13 +00:00
glass 01b5cbdeb0 i saw, i puked, i rewrote using getopt(), and err(3) 1994-03-21 15:46:43 +00:00
cgd d609255ac3 get section right; Luke Mewburn <lm@rmit.edu.au> 1994-03-19 08:06:28 +00:00
cgd 9d26d3af36 get section right; from Luke Mewburn <lm@rmit.edu.au> 1994-03-19 08:04:16 +00:00
cgd 996d1050eb don't assume that only valid thing starting with 'l' is longname.
Fix from Eric J. Haug <ejh@slueas.slu.edu>
1994-03-19 07:42:18 +00:00
deraadt 75e174b39c hosts alias is different than in ypcat 1994-03-18 18:07:10 +00:00
pk 15b943d427 Do extended-name archives. 1994-03-18 11:32:09 +00:00
cgd 7b3c4a81f6 fix from Keith White <kwhite@csi.UOttawa.CA>, to DTRT when man -w's output
is redirected.
1994-03-18 00:46:49 +00:00
cgd ff01ffc7d8 don't clobber CLOCAL. gah, that could be fun: log in on a line that
needs clocal, use 'reset' to fix your screen after a raw mode muckup,
and there goes your clocal...
1994-03-13 14:29:34 +00:00
cgd 377bda3e78 cast so size/mtime doesn't get hosed 1994-03-13 13:33:28 +00:00
cgd 4198f66135 fix to work with new config. SCSI device name support is totally hosed. 1994-03-13 03:38:30 +00:00
cgd b12240b65d fix for bin/159 from bostic. 1994-03-09 00:45:14 +00:00
cgd 4adebd1261 #if <arch_name> -> #ifdef <arch_name>, per suggestion by phil. 1994-03-09 00:40:39 +00:00
phil ea1ef81d0a Adding the ns32k support. Currently just a copy of the i386 files. 1994-03-09 00:25:14 +00:00
cgd 8c2c34be83 one fix from Javier Martin Rueda <jmrueda@diatel.upm.es>, and one
from me.
1994-03-08 23:49:19 +00:00
cgd 3cb7f8e872 kill some warnings, from Christos. 1994-03-07 22:22:01 +00:00
cgd 5dbdc683e6 feedback on the last, from sklower 1994-03-07 09:19:56 +00:00
cgd 1675d43043 from John F. Woods <jfw@ksr.com>:
don't crap out if -w specified and not in multi-column mode.
my reading of my draft of P.2 indicates that this is allowed, just
ignored...
1994-03-07 05:42:17 +00:00
cgd 035fd3978c re-fix spelling errors. going to kick them back to bostic... 1994-03-07 05:07:19 +00:00
cgd a5bfdf7812 update to newest rdist from berkeley (via uunet). No security fixes, but
general cleanup.
1994-03-07 05:05:16 +00:00
cgd a317cb02e3 print netmask properly 1994-03-06 09:45:24 +00:00
cgd ac105d61e4 fix for bin/155: Mail appended to mbox is preceded by NULs.
From: Arne H}strek Juul <arnej@dsl.unit.no>
1994-03-06 03:03:21 +00:00
jtc 6b1913fcc9 Apply fix that was lost when Christos Zoulas' changes were integrated:
Shell commands start with tabs, not whitespace.  Pmake's
  POSIX behavior must have been derrived from an early draft.
1994-03-05 01:58:23 +00:00
mycroft f4d252cff0 Clean up deleted files. 1994-03-05 00:35:58 +00:00
cgd 298fa8e587 fixes/improvements from Christos Zoulas <christos@deshaw.com>. 1994-03-05 00:35:26 +00:00
mycroft ea40a9138d Clean up deleted files. 1994-03-05 00:35:19 +00:00
cgd 3db59563ee fixes/improvements from Christos Zoulas <christos@deshaw.com>. 1994-03-05 00:34:29 +00:00
mycroft c1c5482f3f Do the right thing if the pattern has an escaped escape character followed
immediately by a delimiter.
1994-03-03 23:26:31 +00:00
deraadt 2a6abdae04 netname() takes a struct in_addr, not an int. Breaks on sparc.
fix from Chuck Cranor <chuck@maria.wustl.edu>
1994-03-03 22:03:33 +00:00
pk a5d3e918bd Fixes from <thomas@mathematik.uni-Bremen.de> + some minor cleanup:
> re-initialize for before processing each archive.
> release memory.
> get temp file creation right.
1994-03-03 10:20:06 +00:00
cgd 8a2551e497 fix to misc/130, from Christos Zoulas <christos@deshaw.com>. don't do
stuff to the controlling tty if we don't have one!
1994-03-02 01:54:04 +00:00
deraadt 550d3ccb93 fix for file descriptor leak from Robert Crowe <bob@speakez.com> 1994-03-01 11:37:49 +00:00
cgd 6cc95e4fee DTRT with empty RE matches. or at least, do something better. fix off
to bostic and dspin.
1994-03-01 06:32:54 +00:00
andrew 14f1242b37 Restore the traditional behaviour of the "n" command. 1994-02-28 07:00:00 +00:00
cgd 39cfbff074 complete fix for the 'reset' problems, based on patch sent by
vdlinden@fwi.uva.nl (Frank van der Linden).
1994-02-27 03:41:30 +00:00
cgd d9e3a8d482 oops 1994-02-25 06:56:57 +00:00
cgd 428c2449a9 install sgid kmem 1994-02-25 06:55:39 +00:00
cgd f728b8e770 move include file to where it belongs 1994-02-25 03:40:25 +00:00
mycroft 11f187b6a3 Clean up deleted files. 1994-02-25 03:40:12 +00:00
cgd 0582c91393 new telnet from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
1994-02-25 03:00:16 +00:00
cgd 817b0f26ba first crack at a man page. 1994-02-24 02:17:06 +00:00
cgd 749dc802ca fix "bin/135: calendar bug", and another bug found while looking into it.
the reported bug was fixed with the reported fix, from Keith White
<kwhite@csi.UOttawa.CA>.  The newly-found bug was fixed by me.
1994-02-22 09:46:29 +00:00
cgd f087cc1d05 fix to print netstat unit number right; from Greenman 1994-02-22 04:19:37 +00:00
mycroft 1f7a831709 Everyone uses GCC now. 1994-02-21 18:18:35 +00:00
mycroft fbe0094cc7 Same .o fix as mkdep.gcc.sh; not currently relevant as we use GCC. 1994-02-21 18:17:17 +00:00
pk 1a674dfd60 Check for reasonable syslog pid before HUPing.
Replace arbitrary constant by MAXPATHLEN.
1994-02-20 09:54:45 +00:00
cgd bc7a7b9726 clean up, include, strictness, chmod mode, and don't forget a chmod 1994-02-19 09:11:33 +00:00
cgd 4e9e469010 kill BINDIR stuff 1994-02-18 03:09:58 +00:00
cgd 8d28d31cc5 break out yp stuff 1994-02-18 03:09:10 +00:00
andrew ec255a65c8 -nouser and -nogroup tests were negated. 1994-02-16 03:59:52 +00:00
pk dca1fff974 Sparc uses gcc too... 1994-02-15 17:09:31 +00:00
cgd 0563f20cc0 after -> before 1994-02-14 19:07:33 +00:00
cgd 10a0484ffc don't include match() if REGEX defined. pointed out by
slager@kidd.vet.purdue.edu.
1994-02-14 08:58:22 +00:00
cgd e8d19a7a32 fix bin/120: "su -" buglet when empty "shell" field in passwd 1994-02-12 07:06:07 +00:00
jtc f4db87c6e4 Fix typos & spelling errors 1994-02-10 18:24:46 +00:00
mycroft cb9f7b955c Make sure we don't touch a file that is already stripped. 1994-02-10 16:48:56 +00:00
cgd c440ffb67d kill bogus install -d's, and clean slightly 1994-02-10 01:54:10 +00:00
deraadt c5a096fcf1 do not -DKERNEL please 1994-02-09 15:00:32 +00:00
cgd 68e8ab5797 provisional fix to understand 57.6k and 115.2k 1994-02-09 07:06:11 +00:00
cgd 054d17fafb patch from Diomidis Spinellis to fix 'infinite' loop 1994-02-09 00:06:07 +00:00
cgd ecb9421ced compatibility fixes suggested by Luke Mewburn <lm@rmit.edu.au> 1994-02-07 07:00:26 +00:00
cgd e66d2ec65d fix from Matthieu Herrb <matthieu@laas.fr> to do multiple arguments. 1994-02-06 05:27:40 +00:00
pk 7080a02c57 clnt_call requires timeval argument 1994-02-05 14:58:14 +00:00
cgd 65b04c1f17 from: Christoph Robitschko <chmr@edvz.tu-graz.ac.at>
>fixed segmentation fault when connecting to nowhere.
>Also changed all gets() to fgets().
1994-02-05 00:25:55 +00:00
mycroft bf5ef648f7 Pass the correct # of args to command(), so we don't core dump later. 1994-02-04 20:11:13 +00:00
mycroft 6472543c6b Clean up deleted files. 1994-02-04 19:15:40 +00:00
jtc d111379d91 The Lex library is now built from ~/lib/libl by pulling the appropriate
sources from ~/usr.bin/lex.  This will allow us to start "importing"
future flex releases.
1994-02-04 19:15:27 +00:00
jtc dd42b1f9c6 spelling error 1994-02-04 18:04:55 +00:00
jtc d92e02c078 Create links from libl.a & libl_p.a to libfl.a & libfl_p.a.
Programs configured with GNU autoconf notice flex, and assume that
executables should be linked with the -lfl library.
1994-02-04 18:01:37 +00:00
cgd cdf91415a0 use err*() and warn() 1994-02-04 07:18:27 +00:00
cgd 30ac3de0e9 update with latest, from christos@deshaw.com 1994-02-04 07:02:09 +00:00
cgd 8a8b69552f RCS id's 1994-02-03 23:44:40 +00:00
cgd c9f13cff75 update from Diomidis Spinellis <dspin@leon.nrcps.ariadne-t.gr> 1994-02-03 23:32:35 +00:00
mycroft 9be21c6baa Clean up deleted files. 1994-02-03 23:32:29 +00:00
cgd 5beaa48900 update from Diomidis Spinellis <dspin@leon.nrcps.ariadne-t.gr> 1994-02-03 23:32:10 +00:00
jtc 41954280cb spelling mistakes 1994-02-03 17:47:18 +00:00
jtc 281c9594a0 vmunix -> netbsd 1994-02-03 17:41:21 +00:00
jtc 5d5d116e4a Simplify conversion of "quoted" numeric arguments. 1994-02-03 01:10:49 +00:00
jtc 14f244e88f Code to check if conversion (by strtol(), strtoul(), or strtod()) was
identical, so I moved it into its own function.
1994-02-03 00:35:18 +00:00
jtc 3c10d8e071 Add and use getulong() to handle %u, %o, %x & %X formatting directives.
It was using getlong(), which caused values larger than LONG_MAX to be
truncated to LONG_MAX.
As recommended by 1003.2, print warning messages when argument cannot be
converted to value or is out of range.
1994-02-03 00:16:11 +00:00
pk 54991d7c27 Adapt to changed <sys/ptrace.h> 1994-02-02 19:52:46 +00:00
jtc fc1d8f3bac Fix spelling error in Copyright notice 1994-01-29 01:54:01 +00:00
jtc 42f840d29d Fix spelling error in Copyright notice 1994-01-29 01:43:03 +00:00
cgd 851f7cd38e get rid of getloadavg() linking hack 1994-01-28 18:12:27 +00:00
mycroft e68052d064 No more sccs. 1994-01-28 01:09:58 +00:00
mycroft 28feb15c09 Clean up deleted files. 1994-01-28 01:09:15 +00:00
cgd 542fa2fb04 hack to make getloadavg() link properly 1994-01-28 00:49:46 +00:00
cgd da1d84230b needs -lkvm, not -lutil 1994-01-28 00:48:33 +00:00
cgd 8a871addee don't need -lutil 1994-01-28 00:46:39 +00:00
cgd e801ed50b5 needs -lkvm, not -lutil 1994-01-28 00:45:44 +00:00
cgd 5123f7879d don't need -lutil 1994-01-28 00:36:28 +00:00
cgd fa206f9eb6 get rid of local err(); convert to err() and warn() as appropriate 1994-01-27 20:32:37 +00:00
jtc 0b5acf9881 Completely new implementation, by me.
Original version by Jeff Comstock did not have a copyright notice, nor did
it release the code into the public domain.
1994-01-27 18:00:06 +00:00
jtc e23a19d38b Rewrite to eliminate "UNIX" from manpage. 1994-01-27 17:57:48 +00:00
cgd 6ea371cbd3 new definition of getbsize 1994-01-25 20:25:08 +00:00
deraadt 0479ea62bc use the value of $MAIL (if set) as the default mailbox (like SunOS)
from christos@deshaw.com (Christos Zoulas)
1994-01-25 08:43:38 +00:00
cgd 20469574af make sure strings are null-terminated, from christos@deshaw.com 1994-01-25 00:49:35 +00:00
cgd 0bdc4d8746 man page update from christos 1994-01-25 00:43:07 +00:00
cgd 03cf464d00 DTRT with termcap string arguments. from Christos-Zoulas@deshaw.com.
needs man page update.
1994-01-24 23:54:57 +00:00
mycroft d92205fa7f Clean up deleted files. 1994-01-24 23:17:10 +00:00
cgd ed214f33de UNREF(ref) 1994-01-24 23:16:11 +00:00
jtc 35104de52f Changed order of the subexpressions in a conditional to guard against
the case of zero length arguments.
1994-01-24 23:08:15 +00:00
cgd 335cfa780f a core is a bad thing to drop; check NULL 1994-01-24 22:03:04 +00:00
cgd 4c580b5582 clean up a few warnings 1994-01-24 07:12:26 +00:00
cgd 311c0b9be3 build as nvi, install as vi, view, and ex 1994-01-24 07:09:12 +00:00
cgd 817a1c7ab8 more Ids than you'll ever want. 1994-01-24 06:38:43 +00:00
cgd 390b9bce40 all hail the risen vi 1994-01-24 06:01:02 +00:00
mycroft 2b9550b580 Clean up deleted files. 1994-01-24 05:56:05 +00:00
cgd c7f69ec3a1 ELVIS IS DEAD, DAMNIT! 1994-01-24 05:55:45 +00:00
cgd 4bf6a716c1 nvi 1.03, from ftp.cs.berkeley.edu, per keith bostic's permission. 1994-01-24 05:52:58 +00:00
cgd d0ffbae00c mixing setreuid and seteuid can really screw you, in terms of security 1994-01-23 06:31:35 +00:00
cgd 90ea102113 patch from Roland McGrath <roland@frob.com> to get invoked 'make's correct 1994-01-22 01:52:56 +00:00
jtc 0760ea89b4 Flush stdout and stderr before processing an -exec (or -ok), so the output
of the exec'd command and find's output will be correctly interspersed.
(Bug noticed by Terry Lambert, of FreeBSD.  Fix by me).
1994-01-21 02:59:38 +00:00
jtc 8f9bfdc56a Generated files were placed in the same directory as the source file
(instead of the current working directory) and #include directives
contained the path of the source file.
1994-01-20 18:21:56 +00:00
jtc 837601413b Don't compile with compat.c, since our C library allready has all the
functions it provides.
1994-01-20 02:56:55 +00:00
mycroft 591ec2bf77 Clean up deleted files. 1994-01-17 17:10:59 +00:00
mycroft 540438e596 Ignore multiple \r's. 1994-01-14 03:50:50 +00:00
jtc 60b9b558b1 Fix spelling and formatting errors 1994-01-14 02:19:09 +00:00
deraadt 90880753b2 correct pathnames 1994-01-14 00:50:17 +00:00
deraadt e538061ae1 few minor things, one pointed out by <kuku@acds.physik.rwth-aachen.de> 1994-01-13 23:42:28 +00:00
jtc e890eb6415 Include appropriate header files to bring prototypes into scope. 1994-01-13 21:01:40 +00:00
cgd e11feae6b8 add missing arg to setenv(). reported by downsj@csos.orst.edu 1994-01-13 17:18:30 +00:00
cgd c40eae0000 note fact that 'cron' moved 1994-01-12 19:29:31 +00:00
mycroft d30fa11d9d Clean up deleted files. 1994-01-12 18:12:43 +00:00
mycroft 231463b415 Don't print an extra character after a Unix domain socket name. 1994-01-11 23:27:10 +00:00
brezak 4b860495c5 Incorporate changes for IP mcast and IGMP from cmaeda@cs.washington.edu. 1994-01-11 19:42:48 +00:00
jtc 70a4f3c1c1 Fix spelling errors. 1994-01-11 18:49:16 +00:00
jtc 4f5c7cccc2 Fix spelling errors. 1994-01-11 18:36:16 +00:00
jtc 2c7d5d92c9 Fix spelling errors. 1994-01-11 18:22:48 +00:00
jtc 7e06b2a1e2 Fix spelling errors. 1994-01-11 02:21:43 +00:00
jtc e04c8e0705 Fix spelling errors. 1994-01-11 02:10:48 +00:00
deraadt 3416ce4d72 make bpf's BIO* ioctl's print nicely. from <Havard.Eidnes@runit.sintef.no> 1994-01-09 17:42:17 +00:00
mycroft 66b967af30 Patches from Alan Batie <batie@agora.rain.com> and mte@hpy.fi to make
msgs(1) work, add a `-r' option for restricted operation, and use $PAGER.
1994-01-07 16:22:15 +00:00
mycroft 179f4cbf14 Fix bizarre handling of cleanenv, and set the subshells argv[0] according
to standard practice.  Changes from Alan Batie, David Greenman, and myself.
1994-01-07 16:05:42 +00:00
mycroft 2f6c95dad5 Fix typo. 1994-01-07 14:46:15 +00:00
deraadt fc3bd9d7b3 change -I/sys to it's correct form. reported by <G.Michaelson@cc.uq.oz.au> 1994-01-07 12:35:30 +00:00
jtc 1fd6c0e435 These files are no longer used by flex 2.4.6. 1994-01-07 00:02:14 +00:00
jtc 7340d816d0 Upgrade to version 2.4.6 1994-01-06 23:58:18 +00:00
jtc 5466e141b0 Upgrade to version 2.4.6 1994-01-06 23:58:11 +00:00
jtc 201bc757f6 st_blocks & st_size aren't quads (at least not yet). 1994-01-06 23:13:13 +00:00
cgd aa8f4ca3f3 add berkeley pr 1994-01-06 15:57:25 +00:00
cgd c4b27fe2cd add berkeley pr 1994-01-06 15:57:10 +00:00
jtc d6afb2d353 Hack to get both crontab.1 and crontab.5 manpages installed without having
to rename either file (before crontab.5 was renamed crontab.5.5).
1994-01-05 21:57:48 +00:00
mycroft 525fbd9129 Clean up deleted files. 1994-01-05 21:04:38 +00:00
jtc f8caf41af1 Update for Vixie Cron 3.0 1994-01-05 21:03:46 +00:00
mycroft a142b7ef96 Remove the trailing zero hack. It cannot be made to work correctly without
changing the loader.
1994-01-05 19:02:09 +00:00
cgd 156269bbe4 off-by-one fix, from fen@netcom.com (Fen Labalme, and more (from me) 1994-01-05 13:13:00 +00:00
deraadt 1f827d4b07 rationalize & cleanup -y/-k/-l code
update man page for -y
yp password setting now works again!
relax passwd setting retry code a teeny bit
1994-01-05 11:20:34 +00:00
cgd f45b975fa5 rename fgetline() 1994-01-04 05:36:22 +00:00
cgd 02254e0c37 rename fgetline() and sharpen axe for bostic... 1994-01-04 05:16:44 +00:00
mycroft 261021fdec Make sure VMIN and VTIME are set to sane values. 1994-01-04 02:41:08 +00:00
jtc 8e39f05b17 Allow user to override the temporary directory with the TMPDIR env variable.
(Derived from a FreeBSD patch by Ed Hudson).
1994-01-03 19:14:18 +00:00
cgd a6b0e27a3a get the expire and change dates right if they're after 1/1/2000 1994-01-03 08:21:14 +00:00
andrew cfe33803b1 Fixed problems with wc -c when reading from stdin. 1994-01-03 03:11:06 +00:00
jtc b148ed66e2 Localization changes.
Updated to use standard error message routines.
1993-12-31 19:34:53 +00:00
jtc e939834745 Localization changes. 1993-12-31 19:33:53 +00:00
jtc b5cb7536b3 Localization changes + minor bug fix. 1993-12-31 19:33:02 +00:00
jtc 9aa0df82a8 Updated to use "standard" error message routines. 1993-12-31 19:31:52 +00:00
jtc 03c47e6827 #include <stdlib.h> to bring function prototypes into scope. 1993-12-31 19:28:15 +00:00
jtc 1c22cd3b4f Provide local function declaration. 1993-12-31 19:27:18 +00:00
jtc 78d7367603 Provide prototypes in static function declarations. 1993-12-31 19:26:21 +00:00
jtc 105b403a51 Minor tweaks.
The most significant problem of not being able to handle text files with
infinately long lines (required by POSIX.2) has not been addressed.
1993-12-31 19:24:42 +00:00
jtc e63929d7f5 Handle format strings error correctly. 1993-12-31 01:46:16 +00:00
jtc 3dfa59ec4a Merged our bugfixes with the 4.4BSD find from uunet. 1993-12-30 21:15:18 +00:00
jtc 4ffe868003 Remove special case for root-level symlinks. 1993-12-30 20:09:51 +00:00
jtc 5b6c771aeb Update the list of primaries that are extensions of POSIX.2. 1993-12-29 22:22:44 +00:00
jtc 7c609895ee Changed to conform to POSIX.2, 4.24.4: the first argument that starts with
a -, or is a ! or a (, and all subsequent arguments shall be interpreted
as an expression ...
The behavior before this change can cause a non-option (eg -owner instead
of -user) to be interpreted as a file name.  Depending on the expression
used, this could cause serious damage:

	find . -owner jtc -exec rm \{\} \;

Will delete every file.
1993-12-29 22:00:13 +00:00
davidb 3a435f99f9 Changed to use make's new .OBJDIR 1993-12-28 10:59:05 +00:00
deraadt 8b5553a3e7 fix previous security patch 1993-12-25 02:54:36 +00:00
jtc 550dfe1aa0 Be a bit paranoid... This will prevent core dumps when a user gives us
complete garbage as input.
1993-12-23 20:13:15 +00:00
cgd 76553b5de8 update for fgetline 1993-12-22 07:38:51 +00:00
cgd a60129f588 update for fgetline 1993-12-22 07:23:27 +00:00
cgd 34284b5274 kill a bit of redudancy 1993-12-22 07:11:45 +00:00
cgd cdfde1778e kill that hack 1993-12-22 07:11:20 +00:00
cgd 87815db712 update for fgetline 1993-12-22 07:10:50 +00:00
cgd 8a3e18b590 punt on newsyslog.conf.5 -- it wasn't appropriate. if somebody writes it... 8-) 1993-12-22 04:38:45 +00:00
cgd 14fc658d66 fix from James Jegers <jimj@miller.cs.uwm.edu>. Netstat -w didn't work
(and would seg fault, too).  solution: tell getopt to expect an argument,
and set the appropriate flags when -w is given.
1993-12-22 04:00:31 +00:00
pk f0e170dc10 Introduced ${.OBJDIR}. The variable is similar to .CURDIR but points at
the directory where make builds the targets. It can be used to clean up
those cumbersome Makefiles that have to guess at the "obj" directory.
1993-12-22 00:25:57 +00:00
davidb 473e509469 Removed assumption of obj/ directories.
Now checks for obj and obj.$MACHINE
1993-12-21 22:16:33 +00:00
jtc daa1856881 Clean up generated parser so Lint and Gcc -Wall are happy.
Fix from Thorsten Lockert.
1993-12-21 18:45:32 +00:00
mycroft 9303f3696c Clean up deleted files. 1993-12-21 03:29:48 +00:00
cgd c41f6971c4 #ifdef out a changed interface, for now 1993-12-21 03:05:59 +00:00
cgd b7b446dbbb fix slight docbug 1993-12-21 03:05:17 +00:00
cgd 091f0a7a58 add man(1) ; part of new man(1) package from Bostic 1993-12-21 02:59:25 +00:00
mycroft 8f7d2929f8 Clean up deleted files. 1993-12-21 02:58:07 +00:00
cgd 4b370535ab add whatis(1); part of new man(1) package from Bostic 1993-12-21 02:56:54 +00:00
cgd 44aa388738 add apropos(1); part of new man(1) package from Bostic 1993-12-21 02:56:27 +00:00
cgd 91c4fffe1f add apropos and whatis 1993-12-21 02:54:58 +00:00
cgd 0e3d3e345e plug security hole in "crontab -r".
fix from Todd C. Miller <millert@cs.Colorado.EDU>
1993-12-18 02:42:17 +00:00
jtc 5a178ffc9b POSIX.2 added the -S flag (opposite of -k). It was allready there,
just #ifdef'ed out.
1993-12-17 23:55:57 +00:00
jtc d253881943 Fix bug #47. Shell commands start with tabs, not whitespace. Pmake's
POSIX behavior must have been derrived from an early draft.
1993-12-17 23:52:04 +00:00
pk a6aa50489e Add fflush(stdout) to get output in a intuitive order. 1993-12-16 08:33:36 +00:00
jtc 77e8bced10 Fix bug (PR #42) with -j flag. Doesn't seem to do anything, but at
least it doesn't dump core anymore.
1993-12-15 18:26:40 +00:00
jtc 86546a593f Lost its RCS Id. 1993-12-14 19:49:06 +00:00
jtc ae2b6ea2c2 Compile with -DPOSIX --- enables reasonable behavior for MAKE and
MAKEFLAGS variables.
1993-12-14 18:27:15 +00:00
jtc c713bc64aa Upgrade to version 2.4.5. 1993-12-14 02:09:50 +00:00
cgd 10000de89e lex is in here now 1993-12-12 00:38:58 +00:00
mycroft 64e5841061 N_RELOFF --> N_TRELOFF 1993-12-11 03:53:23 +00:00
jtc c1e339da11 Must use a struct timeval, not NULL, for the timeout in clnt_call. 1993-12-10 19:33:58 +00:00
jtc 2a45581848 Must use a struct timeval, not NULL, for the timeout in clnt_call.
Include appropriate header files to bring prototypes into scope.
Enlarge buffer used for tempfile name -- were trying to stuff ~20
chars into a 15 char buffer.
1993-12-10 19:24:39 +00:00
jtc fe6e50dbb6 Implemented sorting options found in Sun's rup. 1993-12-09 23:58:02 +00:00
jtc ba416b30ee Fix formatting bug. 1993-12-09 19:16:15 +00:00
jtc 0bac3c4487 Upgrade to version 2.4.4. 1993-12-09 19:06:03 +00:00
cgd fcea20f055 fix from piero@strider.st.dsi.unimi.it (Piero Serini) to get
"id <login>" to dtrt with primary group name.
1993-12-09 10:28:26 +00:00
pk efa4a5a7aa *** empty log message *** 1993-12-08 10:16:08 +00:00
jtc f39d0cfe88 Update to use <dirent.h>. 1993-12-08 00:37:37 +00:00
jtc 59211e3229 Updated to use <dirent.h>. 1993-12-08 00:33:06 +00:00
mycroft 305fdd943a Eliminate a compiler warning. 1993-12-07 17:46:56 +00:00
mycroft 3071125013 Eliminate a compiler warning. 1993-12-07 10:30:52 +00:00
mycroft bac7acfdfb Eliminate some compiler warnings. 1993-12-07 10:27:05 +00:00
mycroft f82cb5b5b6 Eliminate a compiler warning. 1993-12-07 10:22:06 +00:00
jtc 1ec64166fe Upgrade to Flex version 2.4.3. 1993-12-06 19:29:01 +00:00
jtc e3597376a1 Update for flex 2.4.3. 1993-12-06 19:26:01 +00:00
cgd 54d20849c8 get rid of bad #ifndef 1993-12-06 09:29:36 +00:00
cgd aacc00e1f9 get rid of __386BSD__ and replace as appropriate with __NetBSD__ and i386 1993-12-06 09:21:56 +00:00
mycroft 1caea71e09 Clean up deleted files. 1993-12-06 05:28:45 +00:00
cgd ba0b79a100 update for MACHINE_ARCH 1993-12-06 05:28:34 +00:00
cgd 2f30f0fdf0 two fixes from thomas@mathematik.uni-Bremen.de (bug bin/37):
create the lock file with a non-random mode
	make sure the lock struct is properly initialized.
1993-12-06 04:10:42 +00:00
mycroft 09dc5c690d Further patch by Havard Eidnes <Havard.Eidnes@runit.sintef.no> to avoid access
to uninitialized memory.
1993-12-05 21:43:57 +00:00
cgd 940867e342 add at, by Thomas Koenig, ig25@rz.uni-karlsruhe.de 1993-12-05 11:34:40 +00:00
cgd edcba29bc8 add MACHINE_ARCH 1993-12-04 02:12:34 +00:00
jtc 46d81d5d45 Use <dirent.h> instead of <sys/dir.h>. 1993-12-04 02:11:23 +00:00
jtc a3881ff7a8 Use <dirent.h> instead of <sys/dir.h>. 1993-12-04 01:49:05 +00:00
jtc 0ff865f224 Use <dirent.h> instead of <sys/dir.h>. 1993-12-04 01:08:35 +00:00
deraadt 27e94f1e34 fill hostname:tty field in same way as SunOS 1993-12-03 23:39:15 +00:00
deraadt 28b31be6fa put -t in the usage line 1993-12-03 23:34:10 +00:00
jtc 5f2d1e881c Since we're not installing a shared library, don't compile PIC objects. 1993-12-03 19:01:24 +00:00
deraadt feb763311e i love ansi 1993-12-03 10:37:14 +00:00
mycroft f6b073c4ee Patch from Frank van der Linden <vdlinden@fwi.uva.nl> to handle 57600 and
115200 baud.  Baud rate checking code disabled completely when using termios.
1993-12-02 22:58:58 +00:00
mycroft 10d825f2df Frank van der Linden <vdlinden@fwi.uva.nl> reported that tset could not handle
baud rates of 57600 and 115200.  Just eliminate the explicit baud rate checking
altogether and use atoi().
1993-12-02 22:42:50 +00:00
mycroft 0eb7e4d17a Patch from Frank van der Linden <vdlinden@fwi.uva.nl> to deal with 57600 and
115200 baud.  I disabled it altogether unless OLD_TTY is defined, since we
don't need to deal with quantum baud rates.
1993-12-02 22:34:42 +00:00
pk 10e08ca597 #include <sys/types.h> (needed for future <sys/resource.h>) 1993-12-02 19:58:29 +00:00
pk 8ba2ec6a06 Include <sys/types.h> (needed in future because of <sys/resource.h>) 1993-12-02 19:52:01 +00:00
jtc 5bf99b7657 Upgraded to Flex 2.4.2. 1993-12-02 19:17:24 +00:00
jtc e00306a5bb Lex library for Flex 2.4.2. 1993-12-02 19:14:27 +00:00
pk 43bfc12541 Another dummy call graph module. 1993-12-02 19:12:21 +00:00
jtc 004d3ba93e First pass at documenting YP clients. 1993-12-02 18:37:54 +00:00
mycroft a284fbc30e Remove ${DESTDIR} from BINDIR. 1993-12-02 07:21:19 +00:00
mycroft 23cbd7cc0b Oops. Fix typo. 1993-12-02 04:30:47 +00:00
mycroft 7888a80f6c Make sure we check the tty `secure' status even if root has no password.
Suggested by Havard Eidnes <Havard.Eidnes@runit.sintef.no>, but reimplemented
due to bugs in his patch.
Also, don't display `root login refused ...' if the password was mistyped.
1993-12-02 04:24:05 +00:00
mycroft 84f6895ad3 As suggested by Xavier Leroy <xavier@Theory.Stanford.EDU>, make sure we don't
flag a short read on the 2nd file as an EOF when it isn't.  This implementation
differs in that at most one read is done per file per comparison, so that an
early mismatch may avoid hanging on input or continuing some expensive process
if reading from a pipe.
1993-12-02 01:56:04 +00:00
cgd fedc5faddb fix from Frank van der Linden <vdlinden@fwi.uva.nl> to DTRT when given a
filename on the command line.
1993-12-01 22:31:06 +00:00
pk 1f4ccfa0cd Recognise AR_EFMT1 format. 1993-12-01 08:56:58 +00:00
cgd f788e05de2 from Jarle.F.Greipsland@idt.unit.no:
find_cycle was trying to find the longest cycle that a given node is part of,
which is a really, really hard problem (exponential?).  instead, just detect
cycles.  since the only difference is the (std error) output which is printed,
all works out OK.
1993-12-01 05:34:16 +00:00
jtc 5187624c00 Use ".St -p1003.2-92" macro instead of spelling it out. 1993-11-30 00:36:01 +00:00
jtc b9e1a8c55a Use ".At v6" macro instead of spelling out "Version 6 AT&T UNIX". 1993-11-30 00:19:51 +00:00
jtc b79c476d97 Use ".At v7" macro instead of spelling out "Version 7 AT&T UNIX". 1993-11-30 00:18:19 +00:00
jtc 93a125034a Use ".At v6" macro instead of spelling out "Version 6 AT&T UNIX". 1993-11-30 00:11:45 +00:00
jtc 0e4b463504 Error in hextobin() macro messed up hex escape constants. 1993-11-25 04:42:11 +00:00
jtc 4d9f06c8e5 Get rid of otoi(), use strtoul() instead. Not only gets rid of a function,
but allows hex offsets as well.
Misc other minor tweaks.
1993-11-23 00:50:46 +00:00
brezak 8af3b17eb0 Use rnusers XDR's in librpcsvc. 1993-11-21 20:18:22 +00:00
mycroft c018c0e0fe Oops. Don't want the name spaced out. 1993-11-21 20:02:28 +00:00
mycroft 29ed1ec94a Make sure we don't run off the end of ut_name when printing the short way. 1993-11-21 19:54:19 +00:00
brezak a4fc624fbb Cleanup to use hand-crafted version2 xdr's 1993-11-21 19:01:01 +00:00
mycroft 5a05271ae9 From: Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
Fix typo in comment line for RCS id.
1993-11-20 22:25:19 +00:00
mycroft 824c494570 From: Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
Patch to prevent core dumping when linked dynamically.
1993-11-20 22:24:17 +00:00
jtc 4c35e0b3ba Oops! get rid of the free(), mklong()'s buffer no longer malloc()'d. 1993-11-19 21:08:17 +00:00
jtc fac5e167cc Return from main() if a \c escape is encountered in a %b string (was an exit()).
Use macro constants for "skip1" and "skip2" instead of assigning them
each loop iteration.
Reformat the multi-case entries in the "big switch" so the lines don't wrap.
1993-11-19 21:05:37 +00:00
jtc 563de0f1c5 Move all the code from do_printf() into do-while loop in main(). I need
to be able to return from main() when a "\c" in a %b string is encountered.
1993-11-19 20:50:27 +00:00
jtc d1a877c5ed Merged in most of the changes from 4.4 necessary to make printf a sh
and csh builtin --- still need to handle the one remaining exit() in
the SysV escape string handling code.
1993-11-19 20:30:57 +00:00
jtc 6b9684b200 As of POSIX.2, getopt returns -1 instead of EOF on error. Changed the code
to match just in case someone changes the value of EOF.
1993-11-19 20:07:13 +00:00
jtc 404b36ffd9 POSIX.2 utilities must call setlocale(LC_ALL, ""); 1993-11-19 20:06:41 +00:00
jtc 2f96f1561b As of POSIX.2, getopt returns -1 instead of EOF on error. Changed the code
to match just in case someone changes the value of EOF.
1993-11-19 19:58:46 +00:00
pk 7d1b345792 `undo' should mark the file as modified. 1993-11-19 12:53:32 +00:00
cgd 57d09332b9 use fread(), not read(), pending Vern Paxson's decision of what
to do in the next version of flex.  bug reported by klier@cs.tu-berlin.de.
1993-11-19 05:11:46 +00:00
mycroft 6d45a1eb4c Another patch from Thomas Eberhardt. Don't bother to poke at the data segment
if it looks like it's already been minimized.
1993-11-19 02:40:46 +00:00
mycroft 2dc7cf301c Patch originally from Thomas Eberhardt to strip trailing zeroes at the end of
the data segment.  Further modifications by me.
1993-11-19 02:24:40 +00:00
mycroft 20750ec6fd From: Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
2.  strip(1) shouldn't abort when processing a file and it detects
    an error (rationale: nm and size don't do this either).
3.  strip(1) doesn't free the memory it has allocated.
4.  added a very simple minded check so strip(1) doesn't dump core on
    bad files.
1993-11-18 21:09:10 +00:00
mycroft bae698d319 From: Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
Remember to close the file if it's bad.
1993-11-18 21:00:39 +00:00
cgd 13a05bbbac fix that last 1993-11-17 12:05:46 +00:00
cgd 9dbc9844f9 long lost fix from Christos Zoulas (?) for inf. loop problem 1993-11-17 12:01:04 +00:00
cgd cf60e8dfa8 fix from Dave Matthews <dave@prlng.co.uk>, with modifications by cgd:
Bug Description:
	Two different bugs in join.  One causes a segmentation fault if
	increasing the space by 100 is not enough.  The other gives the
	wrong results because the program saves a pointer to the original
	buffer rather than to the area where the lines have been copied.
1993-11-15 09:30:52 +00:00
cgd da7153daca add ipcs and ipcrm 1993-11-14 16:30:45 +00:00
cgd 3683d805ff System V -style IPC removal utility. Implemented by Daniel Boulet
<danny@BouletFermat.ab.ca>.  Needs a man page and serious cleanup.
also: sysvshm support is #ifdef'd out, because it's not been tested.
1993-11-14 16:27:58 +00:00
cgd 0444b9fbd1 Add a System V -style ipc status monitor. Implemented by Daniel Boulet
<danny@BouletFermat.ab.ca>  Needs a man page, and *much* cleanup.
1993-11-14 16:17:55 +00:00
cgd 9838936e57 from Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>:
fix RCS id's comment
1993-11-14 15:40:42 +00:00
cgd 6c547adbae add VERSION file 1993-11-14 13:07:28 +00:00
cgd 97fe973b31 slight cleanup 1993-11-14 13:07:22 +00:00
jtc 00d77f440a Make POSIX.2 compliant by adding -t (offset radix) flag. 1993-11-13 01:51:00 +00:00
hpeyerl 14197c1c8a make "strings -n 3" work. From tmalaher@nt.com 1993-11-12 18:06:06 +00:00
jtc 5ce3d664fb Use new POSIX.2 compatible regex routines in C library instead of -lgnuregex. 1993-11-11 01:29:52 +00:00
jtc 3ee54fb39e simplify error message handling by using err() function. 1993-11-10 20:06:00 +00:00
jtc 81fd674b7b Fix bug that occured when exec-ing program name containing "%" characters
failed --- the "%" chars would be interpreted as printf directives.
1993-11-10 20:01:20 +00:00
deraadt 2576177364 some nice new things 1993-11-10 15:00:41 +00:00
cgd ce2c5525cf do the right thing with EDITOR and PATH. reported (with fix) by
Roland McGrath <roland@frob.com>
1993-11-10 12:35:06 +00:00
deraadt 85889786ad de-ansify
format better, now readable in most cases on 80-char wide screens
and it looks pretty.
1993-11-10 04:19:03 +00:00
deraadt b52aae9d1e more sane output.
option -t: print remote-host's time
1993-11-10 03:52:18 +00:00
cgd 70e18e726e add rcsid's; tag CSRG-93-11-06 is the previous sources 1993-11-09 05:07:24 +00:00
mycroft a2a43d60e4 Clean up deleted files. 1993-11-09 02:59:50 +00:00
alm bc24dd374e Add 4.4BSD more(1) from UUNET. Patched to support regex(3)
and implement historical more commands.
1993-11-09 02:59:05 +00:00
jtc 0605e44a71 Well behaved POSIX.2 utilities always call setlocale() and getopt(). 1993-11-09 01:46:38 +00:00
alm 723804e46a Added regex(3) support.
The syntax:
:!!text
should now append `text' to the last :command.
1993-11-08 05:05:44 +00:00
jtc 62f30e8257 Changes required to make printf utility POSIX.2 compliant:
* Escape characters in the string needed to be processed as they were
   encountered, otherwise a "\000" octal constant would prematurely
   terminate the formatting string.
 * Implemented the %b, SysV echo(1) compatibility, formatting directive.
1993-11-05 20:12:38 +00:00
jtc 83efb17c8e Checkin minor tweaks before giving a copy to the FreeBSD folks. 1993-11-04 05:43:30 +00:00
andrew 1b0bd76d80 make with -DHISTORIC_PRACTICE to obtain the common EOF behavior of the "n"
command.  Don't be fussy about requiring spaces after the "w" command
though.
1993-11-04 01:36:21 +00:00
mycroft 89a4474a07 Build units(1). 1993-11-03 15:25:15 +00:00
cgd ee26bd5d86 fix inconsistent definition of exitcode. change things so that it
(correctly) exits with code 0 if the doc hasn't been modified.
"wah!  i want nvi..."
1993-11-03 08:27:14 +00:00
mycroft d61899ce79 mid+magic is 26 bits, not 24. 1993-11-03 08:03:16 +00:00
mycroft ec894d851c Correct page sizes for M68k and SPARC. 1993-11-03 07:45:55 +00:00
mycroft 34b10abe06 Add entries for object files. Someone should update GAS to generate new-style
magic numbers; otherwise file(1) will just say `big-endian' or `little-endian',
which is not terribly informative.
1993-11-03 07:33:28 +00:00
mycroft 1b543e994f Don't generate two warnings if OSI isn't configured in the kernel. 1993-11-03 06:17:08 +00:00
mycroft a2cdcbb0e1 Add entries for the 386BSD and BSDI executables that we also run, and
gratuitously capitalize `NetBSD'.
1993-11-03 06:03:15 +00:00
mycroft a0b6a72200 Clean up deleted files. 1993-11-03 05:58:02 +00:00
cgd ab60a0b473 include the NetBSD magic file seperately. call it 'NetBSD' rather
than 'netbsd'.  cvs tree magic by cgd will move it to the right place.
1993-11-03 05:56:58 +00:00
cgd 7cb8a1a24d comment out the check for "8086 relocatable (Microsoft)", because
our dynamically linked programs match that (!!), and because
few are likely to have it files of that type on NetBSD systems
1993-11-03 05:27:48 +00:00
cgd 402e6e1c32 'official' patch from Ozan S. Yigit <oz@ursa.sis.yorku.ca>:
bug:if there are multiple files on the command line, file index is not
reset properly, ie. it falls off the side. sigh. also, somewhere along
the line, i again lost the proper m4wrap/autodiversion semantics
[sorry, eric. :-|] but fixed with this patch.
1993-11-03 05:16:21 +00:00
mycroft 7ec1b16a85 Oops. Don't spew garbage if the type is string. 1993-11-03 04:40:04 +00:00
mycroft 11b47679ef Update to reflect changes. 1993-11-03 04:31:34 +00:00
mycroft 155d28e87e Add explicit endians so file(1) works well across architectures. 1993-11-03 04:09:39 +00:00
mycroft ab61bc03f0 Fix numerous sign-extension problems, and add support for explicitly unsigned
comparisons.
1993-11-03 04:04:19 +00:00
mycroft 9fc3df91d1 No, I don't need anyone to point out that I was asleep at the keyboard.
Last change revoked.
1993-11-03 00:40:19 +00:00
mycroft 3544adb2b5 Correct test for dynamically linked executables. (Someone forgot that the
386 is little-endian.)
1993-11-03 00:24:59 +00:00
jtc 4678be880f Don't dump core when processing more than one file.
Bugfix has been forwarded to Ozan, and should be in his next release.
1993-11-02 17:42:17 +00:00
cgd 19f1d2d611 update to the latest cksum utility from uunet. this one is posix
compliant (i think), and fixes a bogon in the old CRC calculation.
yes, that's right, the CRC's it generates are different.
1993-11-02 07:33:08 +00:00
pk be6ea65f08 Close those file descriptors. 1993-10-31 14:54:29 +00:00
pk 3f26fe8498 Check for EX_DYNAMIC flag in exec header. 1993-10-31 14:41:46 +00:00
glass c33a954998 latest m4 from ozan. now does the right thing w/respect to sendmail 1993-10-30 00:28:42 +00:00
phil 23c2fcd278 Added ns32532 and the sparc magic numbers. 1993-10-28 19:29:48 +00:00
jtc 3a2b9d8c2b Added -print0 (like GNU find). This will allow file names that contain
newlines to be correctly interpreted by programs that process find
output.
1993-10-27 17:52:30 +00:00
cgd 1701238139 add units command, written by Adrian Mariano (adrian@cam.cornell.edu or
mariano@geom.umn.edu), cleaned up, KNF'd, etc., by cgd
1993-10-27 03:31:49 +00:00
mycroft 6be6fca207 Print `-' rather than ` ' for 0 idle time. 1993-10-26 20:52:51 +00:00
jtc 2e3e4d6fc1 Change fopen(fname, "a") to fopen(fname, "w") so that the current message
number is updated in place rather than appended to the end.
1993-10-26 18:24:02 +00:00
jtc ddef4b09bc Remove ${LIBCOMPAT} from DPADD --- it was removed from LDADD a long time ago. 1993-10-26 18:21:36 +00:00
cgd 7536dc1148 Fixed multiple off-by-one bugs which caused the open file printing to
not print the last open file.  patch from David Greenman
<davidg@implode.rain.com>.
1993-10-26 02:04:49 +00:00
cgd 670f052fd7 add support for an obj.${MACHINE} dir, which will be used rather than obj,
if both exist.  basically, precedence is now:
	MAKEOBJDIR or (obj.${MACHINE} then obj)
	.
1993-10-23 02:32:03 +00:00
jtc 79c47ced71 Both compress and gzip installed themselves as "zcat". I've changed the
makefiles so only gzip is installed as zcat (and now uncompress) because
gzip is faster than compress and it is able to detect corrupted files.
1993-10-23 01:13:35 +00:00
cgd 9ded154964 slight fix from Mark Weaver <Mark_Weaver@brown.edu> 1993-10-23 00:23:07 +00:00
jtc 5587236c81 From Jeremy Scofield -- correctly terminate ranges with backquoted endpoint. 1993-10-22 22:40:17 +00:00
pk 6f8b7828cd Oops, we do have a man page. 1993-10-22 21:10:42 +00:00
pk 32c8052648 ldd: list shared library dependencies. 1993-10-22 21:09:57 +00:00
jtc 2ddbb97f0f #include <unistd.h>, so getopt(), optarg, opterr, optind, and optopt
declarations can be removed from <stdlib.h>.
1993-10-13 18:33:45 +00:00
jtc 029a63116f Streamline the char/word/line counting logic in anticipation of multibyte
character support.
1993-10-12 23:32:20 +00:00
jtc a3d7805594 Like cat, set the return-value variable "rval" instead of exiting when
we encounter run-time errors.
Update usage message.
1993-10-12 22:39:43 +00:00
cgd 8b2f878d38 get rid of some (bad) setreuid() calls, which caused a security problem.
bug fix from Rick J Weldon <rick@badboy-jr.hq.af.mil>, and also confirmed
by looking at the latest rdist sources.
1993-10-09 01:11:39 +00:00
cgd f771d07953 no more librpc 1993-10-08 02:34:16 +00:00
brezak 4eae27f3eb Whilst hacking the Net/2 version of finger to work on Solaris 2.2 (we
needed a finger on that platform which grokked the office/phone # GCOS
info), I decided to put mail status in (as the solaris version has
that).

The attached patch adds:
- manual page typos fixed: finger doesn't scan .forward, contrary to
  what the man page says (and really shouldn't either, IMHO - that's
  what telnet host SMTP & VRFY are for :)

- added a mail check (printed between login info and the project).
  three different messages possible:
  - if you have no mail:
        No Mail.
  - if you have mail, but there's no unread mail:
        Mail last read DDD MMM ## HH:MM (TZ)
  - if you have new mail:
        New mail received DDD MMM ## HH:MM (TZ)
             Unread since DDD MMM ## HH:MM (TZ)

- fixed the manual page.

lm@yallara.cs.rmit.OZ.AU (Luke Mewburn)
1993-10-07 19:58:28 +00:00
cgd d6ff5db170 converted to use gnu malloc, and depend on it correctly 1993-10-07 07:23:44 +00:00
cgd 4b30c543a0 always use libcrypt 1993-10-07 02:16:39 +00:00
jtc c39233bfc4 Got bored, converted yet another manpage to use the -mandoc macroes. 1993-10-06 19:16:41 +00:00
cgd 5f5f68f982 the config file is in /etc, not /var/adm (which doesn't exist) 1993-10-05 00:51:20 +00:00
jtc 64c09c1d3c Comma separate items in SEE ALSO section.
It's crond(8), not cron(8).
1993-10-04 23:16:31 +00:00
jtc a157cf6721 Comma separate items in SEE ALSO list. 1993-10-04 22:44:10 +00:00
cgd 1ac3fb6639 widen "Type" field of vmstat -m by 2 characters 1993-10-02 03:26:52 +00:00
jtc 78fc17bf42 Fix grammar error. 1993-10-01 22:42:23 +00:00
jtc 4bbb2333ff Added setlocale(LC_ALL, "") --- all POSIX.2 utilities are supposed to
do this --- although this won't change the behavior of this utility
until we have message catalogs implemented.
Pass through FlexeLint.
1993-10-01 22:41:28 +00:00
jtc 9acd4cced0 Added setlocale(LC_ALL, "") --- all POSIX.2 utilities are supposed to
do this --- although this won't change the behavior of this utility
until we have message catalogs implemented.
Passed through FlexeLint.
1993-10-01 22:23:58 +00:00
jtc 99cd400e2e Use *->fts_errno instead of errno after fts_read(). The fts manpage
indicates that the fts_errno will be set to the correct value, but there
are no guarentees about errno.
1993-10-01 01:03:22 +00:00
jtc 3751e964dc Always use `install -d' to make sure destination directory exists & has
correct ownership and permissions.
1993-10-01 00:35:19 +00:00
pk 0915419517 -I/sys --> -I${DESTDIR}/sys, to support cross-compilation. 1993-09-25 13:19:49 +00:00
mycroft 1749f47c4a Display bytes/second rather than kbytes/sec, and use 3 digits of
precision for transfer time.
1993-09-23 23:15:42 +00:00
jtc 10c0a04cce Added asa utility. 1993-09-23 21:07:37 +00:00
jtc b2be4a7753 The POSIX.2 (POSIX2_FORT_RUN) asa utility, used to format the output of
FORTRAN programs into something usable by a line printer, etc..
1993-09-23 21:04:15 +00:00
jtc ac5c852d4b Make sure we use rstat's protocol's values of FSCALE. We were picking up
the FSCALE from sys/param.h which caused all of the load averages from
remote machines to be incorrect.
1993-09-23 18:37:28 +00:00
jtc 3e7bd7ef44 Document "blank" character class. 1993-09-21 23:39:21 +00:00
jtc f83d35d084 Remove cruft from getopt processing (`-' need not be special cased).
Include appropriate header files to bring prototypes into scope.
Use setlocale() to set locale, and strcoll() for comparisions even though
this won't work until full localization support is completed.
Document the fact that comm now conforms to POSIX.2.
1993-09-21 23:20:34 +00:00
jtc ed96eac23a Document the fact that cmp now conforms to POSIX.2. 1993-09-21 22:37:52 +00:00
jtc 8ad38f4118 Changed to conform to POSIX.2:
EOF message printed to stderr.
Removed bogositys wrt. getopt() processing (special casing `-' is unnecessary).
Updated usage message to document fact that -s and -l options are mutually
exclusive.
1993-09-21 22:35:56 +00:00
mycroft a50f6940ae Well, Andrew's message was totally useless, but there was indeed a bug in
the case where no tabs are inserted.  All hail modulus arithmetic.  The real
fix for this is trivial, but I made a couple of stylistic changes also.
1993-09-21 00:44:36 +00:00
jtc d3027df0ae Include header files to bring appropriate header files into scope. 1993-09-20 23:53:24 +00:00
jtc 9bdffa97b2 Converted to use -mandoc macros. 1993-09-16 23:21:10 +00:00
jtc b3709e3893 Fix typo: magic(5), not magic(__SECTION__) 1993-09-16 22:47:28 +00:00
cgd 8002428397 fix for "touch -t CCYYMMDDhhmm[.SS]". the CC part didn't work. from
Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
1993-09-16 21:44:35 +00:00
cgd 62d3b2073c fix to the 'size' primary; -size <n>c didn't work. from
Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
1993-09-16 21:41:30 +00:00
jtc 5068ba496f Add cross references to "SEE ALSO" section. 1993-09-16 01:56:34 +00:00
jtc 1ace33786c Add "SEE ALSO" cross references.
rwho was changed so a host is considered "down" if it hasn't sent a
response in 11 minutes (it used to be 5) but the manpage was never
updated.
1993-09-16 01:50:33 +00:00
jtc d4b99cd909 Add rup to SEE ALSO section.
Data files are stored in /var/rwho, not /usr/var/rwho.
1993-09-16 01:42:41 +00:00
jtc 4071edc949 Change Sun-OS to SunOS. Every other instance of in manual our manual
is typeset that way.
Remove BUG about sorting options not being supported as rwall never had
sorting.  Probably caused when manpage for rup or rusers was used as a
template.
1993-09-16 01:31:18 +00:00