Commit Graph

1958 Commits

Author SHA1 Message Date
Warner Losh
29ae2e935b Fix buffer overflow. prompt didn't get a size for its buffer,
so it could overflow it.  Also made some filenames MAXPATHLEN long rather
than 80 long.
1997-08-22 22:14:16 +00:00
Peter Wemm
54c521fbd8 Cleanup and remove the not-too-useful examples. The current versions
should be in share/examples if anywhere.
1997-08-22 15:42:33 +00:00
Peter Wemm
3d793cf175 Merge ppp-2.3.1 changes onto mainline 1997-08-22 15:24:36 +00:00
John-Mark Gurney
e8a2a1c555 -I/sys converstion and Id line 1997-08-22 14:22:31 +00:00
John-Mark Gurney
defffb3fcc another -I/sys conversion, and add Id line now it's left the vendor branch 1997-08-22 14:21:51 +00:00
Philippe Charnier
f296f8ebb4 Use err(3). 1997-08-22 06:53:00 +00:00
Philippe Charnier
474cc7fe23 Was limited to 200 users. New entry is now allocated as needed.
Add usage().
Obtained from:OpenBSD.
1997-08-22 06:50:33 +00:00
Philippe Charnier
76f2ca6559 Use err(3) instead of local redefinition. Add usage(). 1997-08-21 06:52:43 +00:00
Philippe Charnier
213915d456 Use err(3) instead of local redefinition. 1997-08-21 06:51:10 +00:00
Philippe Charnier
d4d0763a7d Use err(3). Cosmetic in usage(). Rewrote man page in mdoc format. 1997-08-21 06:49:33 +00:00
Joerg Wunsch
0ee7623d10 Implement "eod" as an alias for "eom". HP-UX uses this name, for
example.

Also cleaned up the man page a little.
1997-08-21 05:49:29 +00:00
Jonathan Lemon
dc3001cf35 Pre-allocate buffer to avoid core dump in corner cases.
PR:		2968
Submitted by:	Gareth McCaughan <gjm11@dpmms.cam.ac.uk>
1997-08-21 03:41:41 +00:00
Philippe Charnier
cccb40360b Use err(3). Add usage(). Remove progname. 1997-08-20 11:07:53 +00:00
Philippe Charnier
56d8f922bf Use err(3) and add usage(). 1997-08-20 11:05:28 +00:00
Philippe Charnier
c7c16beb22 Nm uname -> Nm. 1997-08-20 11:03:54 +00:00
Philippe Charnier
575580b202 Use err(3), add usage() and prototypes.
Move setmode() to setnewmode() because of a conflict with setmode(2 or 3).
1997-08-20 11:01:59 +00:00
Steve Price
b2afcfe1fd Fix example to match ls(1)'s output.
PR:		docs/3681
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1997-08-20 02:05:29 +00:00
Jonathan Lemon
faba086be3 Require all compatability options to begin with '-'.
PR:		4145
1997-08-19 15:58:15 +00:00
Jonathan Lemon
1e17b9450c Permit hex/octal parameters to cmp, to match what the manual page says.
PR:		3850, 3855
1997-08-19 14:34:04 +00:00
Satoshi Asami
e5ed1f5994 Be consistent with other utilities in spelling "Kbytes". (Actually,
there even was one of them about ten lines above in the same file.)

Reminded by:	joerg's commit to usr.bin/ftp/ftp.c rev 1.9
1997-08-19 01:57:53 +00:00
Satoshi Asami
00411e3f12 Fix 1.17 properly by adding ${DESTDIR} in front. (I know this part is
not enabled now.)
1997-08-19 01:52:11 +00:00
Jonathan Lemon
ef2cea8123 divnum is no longer silently restricted to the range 0..9. (cf: 4098)
changequote(,) is now a synonym for changequote().	 	(cf: 803)

buffer size for translit() enlarged to handle a full string

PR:		803, 4098
1997-08-18 21:01:45 +00:00
Jonathan Lemon
6f86349ac3 Add doscmd. 1997-08-18 18:51:46 +00:00
Jonathan Lemon
1e9267fe2d Clean up Makefile, make compiling in X support dependent on ${X11BASE}. 1997-08-18 18:48:33 +00:00
Peter Wemm
1e6f3a5daf use -I${DESTDIR}/usr/include/tcl, not -I/usr/include/tcl 1997-08-18 11:39:19 +00:00
Philippe Charnier
759bde1062 Add usage(). 1997-08-18 07:30:15 +00:00
Philippe Charnier
0e879078f3 Nm tsort -> Nm. 1997-08-18 07:28:50 +00:00
Philippe Charnier
71346dd104 Use err(3) insteadof local redefinition. Sync usage string with man page. 1997-08-18 07:27:59 +00:00
Philippe Charnier
14aebc178d Nm true -> Nm. 1997-08-18 07:25:50 +00:00
Philippe Charnier
af647767ed Use err(3) instead of local redefinition. Cosmetic in usage(). 1997-08-18 07:24:58 +00:00
Philippe Charnier
aa736575ab Cosmetic. 1997-08-18 07:22:53 +00:00
Philippe Charnier
4e9b4d0568 Add usage. Use /usr/share/misc/map3270 instead of /etc/map3270. 1997-08-18 07:21:48 +00:00
Philippe Charnier
804d2dab87 Add prototypes, usage(). Use err(3). 1997-08-18 07:16:12 +00:00
Andreas Klemm
291cacf91a had to add CFLAGS+=-I/usr/include/tcl
otherwise it doesn't find tcl.h
1997-08-18 06:08:56 +00:00
Peter Wemm
92aa56df40 Drop the TCL hook for the time being until the tcl dust settles some more. 1997-08-18 05:25:14 +00:00
Andreas Klemm
4e0636b91d Fixed another make world stopper ;)
If TCLINTERP is defined, CFLAGS needs an additional include path:
	 -I/usr/include/tcl
Otherwise tcl.h can't be found during make world.
1997-08-17 21:33:39 +00:00
Peter Wemm
5cc5ba1dd3 Bandaid to make this compile.. These old mbuf types should probably be
ripped out.
1997-08-17 09:12:43 +00:00
Chris Timmons
0ed651bfae Retire v1.81 sources and build instead from src/contrib/global sources. Reviewed by: jdp 1997-08-16 04:42:45 +00:00
Jonathan Lemon
79566bc427 Enable the use of keypad cursor motion keys.
Submitted by:	John Hay <jhay@mikom.csir.co.za>
1997-08-16 00:16:48 +00:00
Jonathan Lemon
d4e591ffcb Add support for XMS memory to doscmd.
Submitted by:	Helmut F. Wirth <hfwirth@ping.at>
1997-08-15 23:41:26 +00:00
Wolfram Schneider
e569836c71 make install should not install mail.rc in /etc 1997-08-15 21:50:02 +00:00
Steve Passe
6e0d2d5172 Better fix, as originally submitted by reporter.
Submitted by:	 N.Dudorov <nnd@itfs.nsk.su>
1997-08-14 19:24:11 +00:00
Philippe Charnier
80c486a414 Add usage() and use err(3). 1997-08-14 06:48:59 +00:00
Philippe Charnier
fd129a0245 Use err(3). 100 -> MAXHOSTNAMELEN from OpenBSD.
Obtained from: OpenBSD
1997-08-14 06:47:41 +00:00
Philippe Charnier
7a8dd9fee0 Hardcode progname in usage string. 1997-08-14 06:44:41 +00:00
Philippe Charnier
c10d7afbab Use err(3) instead of local redefinition. Add usage(). 1997-08-14 06:42:43 +00:00
Philippe Charnier
54d183e244 Use err(3). Correct usage string. Change default tape to /dev/rst0. 1997-08-14 06:41:00 +00:00
Steve Passe
74a19f1229 Fix PR bin/4291: /usr/bin/make - inconsistent -j<n> flag parsing.
Submitted by:	N.Dudorov <nnd@itfs.nsk.su>
1997-08-14 04:46:20 +00:00
Philippe Charnier
07de424e35 Cosmetic in usage(). Mdoc'ify man page. 1997-08-13 06:58:45 +00:00
Philippe Charnier
a27bb57a02 Nm talk -> Nm. 1997-08-13 06:48:56 +00:00
Philippe Charnier
ea7cc4954d Remove trailing \n in warn() string. 1997-08-13 06:46:57 +00:00
Philippe Charnier
d8793dfac3 Use err(3). /sys/dkstat.h -> /usr/include/sys/dkstat.h 1997-08-13 06:45:11 +00:00
Steve Price
d57f88658b Fix a typo that caused an incorrect path to be displayed.
PR:		docs/4258
1997-08-13 02:14:43 +00:00
Andrey A. Chernov
7d8610b5dc Cleanup and use /usr/libdata/doscmd now 1997-08-12 16:08:02 +00:00
Eivind Eklund
e351dd657b Fix fencepost error.
PR:		4170
Submitted by:	Harlan Stenn <Harlan.Stenn@pfcs.com>
1997-08-12 14:42:39 +00:00
Philippe Charnier
685cca7da6 Use err(3) instead of local redefinition. Add prototypes. 1997-08-12 06:46:56 +00:00
Philippe Charnier
7be91299b0 Add usage(). 1997-08-12 06:45:43 +00:00
Philippe Charnier
885dbf9c1f Use err(3) instead of local redefinition. 1997-08-12 06:44:57 +00:00
Philippe Charnier
db4f31b740 Use err(3). 1997-08-11 07:31:28 +00:00
Philippe Charnier
c002b33b60 Cosmetic in err() string. 1997-08-11 07:30:22 +00:00
Philippe Charnier
d6c7156e61 Use err(3). Add prototype. 1997-08-11 07:29:17 +00:00
Philippe Charnier
3042ea1f52 Use err(3) instead of local redefinition. 1997-08-11 07:28:19 +00:00
Philippe Charnier
439165e504 Use err(3). Add prototypes. 1997-08-11 07:27:27 +00:00
Philippe Charnier
bca89c5985 Cosmetic. 1997-08-11 07:22:04 +00:00
Philippe Charnier
73a08bb2ad Remove local redefinition for err(). Add usage(). 1997-08-11 07:21:08 +00:00
Andrey A. Chernov
4e65b7b35c Build instbsdi.exe in obj directory (make world stopper) 1997-08-09 20:04:04 +00:00
John Dyson
c62408d71f Add a valuable binary that enables I/O to U**X mounted disks. 1997-08-09 02:08:32 +00:00
John Dyson
c82100b956 Commit the manpage for doscmd.
Submitted by:	Jonathon Lemon <jlemon@americantv.com>
Obtained from:	BSDI
1997-08-09 02:07:03 +00:00
John Dyson
923a975137 Add the makefile for doscmd. 1997-08-09 01:52:58 +00:00
John Dyson
90c38ed200 Add our doscmd to the tree. This is a result of work from BSDI, and
a group of dos emulator developers.
Submitted by:	Jonathan Lemon <jlemon@americantv.com>
Obtained from:	BSDI
1997-08-09 01:43:15 +00:00
Philippe Charnier
236d2f5583 Add usage(). Use err(3) instead of local redefinition. 1997-08-08 12:24:49 +00:00
Philippe Charnier
2545677c14 Use err(3). Cosmetic in usage(). Rewrote man page in mdoc format. 1997-08-08 12:22:30 +00:00
Philippe Charnier
157f1c6c00 Use err(3). Add usage() and prototypes. Add Xr to who(1). 1997-08-08 12:20:24 +00:00
Philippe Charnier
3f9b28f9d0 Use err(3). Add usage(). 1997-08-08 12:18:16 +00:00
Philippe Charnier
223884e545 Remove argv0, cosmetic in usage(), use err(3), add Xr to rwho(1) and users(1). 1997-08-08 12:12:54 +00:00
Steve Price
9d19feb501 #include <unistd.h> for getopt(3) call. 1997-08-07 21:47:31 +00:00
Philippe Charnier
692bc4fdc9 Use err(3), so eliminate use of `argv0'. 1997-08-07 06:50:02 +00:00
Philippe Charnier
ed43a0f914 Use err(3) instead of local definition.
Cosmetic in man page: do not start describing a flag with `The option -X ..'.
1997-08-07 06:46:45 +00:00
Philippe Charnier
e25f6756fb Use err(3). Add usage(). Rewrote man page in mdoc format. 1997-08-07 06:42:37 +00:00
Philippe Charnier
81c44dca8a Use err(3), cosmetic in usage(). 1997-08-06 06:49:06 +00:00
Philippe Charnier
0e76f40d09 Use err(3), cosmetic in usage(), remove `cmdname'. 1997-08-06 06:47:41 +00:00
Andrey A. Chernov
f4e4504f06 Add -t option which turns T/TCP off as workaround for some broken servers
Submitted by: Marc Slemko <marcs@znep.com>
1997-08-05 20:18:39 +00:00
Philippe Charnier
4c26232f70 Use err(3). Document -l flag.
Obtained from: OpenBSD
1997-08-05 06:46:46 +00:00
Philippe Charnier
f03377a6c9 Document that multiple args are allowed, i.e Ar file -> Ar file ... 1997-08-05 06:44:28 +00:00
Philippe Charnier
0bb6b796dd Use err(3). Add usage() and prototypes. 1997-08-05 06:42:48 +00:00
Philippe Charnier
321e481502 Cosmetic in usage string. 1997-08-05 06:41:26 +00:00
Satoshi Asami
308f1befca Remove bogus malloc() decl. 1997-08-05 03:40:04 +00:00
Philippe Charnier
ee461acc1a Use err(3). Use #include "" instead of <> for local headers. 1997-08-04 06:48:25 +00:00
Philippe Charnier
9d63ad4978 Use err(3). Cosmetic in usage string. Typo in man page. 1997-08-04 06:45:11 +00:00
Philippe Charnier
69d8513530 Correct Synopsys section. 1997-08-04 06:42:51 +00:00
Philippe Charnier
43b70d782d environmental -> environment. 1997-08-04 06:40:41 +00:00
Philippe Charnier
b637dfa85f Cosmetic and typos. 1997-08-04 06:39:19 +00:00
Garrett Wollman
4c33feed58 Document the bogus standard requirement of delaying the close.
Also include a reference to the FINGER RFC.
1997-08-01 20:26:47 +00:00
Garrett Wollman
a32cbefa87 So somebody actually found language in the FINGER RFC which requires
implementations to leave the client side open until the server closes.
While this is totally idiotic, it seems as if some servers actually require
it (e.g., the one at mit.mit.edu).  So, we bow to the weight of the bogus
standard and disable the initial close.  Hopefully now fetch(1) can serve
the role of T/TCP demonstration application.
1997-08-01 20:10:44 +00:00
Philippe Charnier
1e133604e1 Use err(3). Add prototypes. Silent -Wall. 1997-07-31 06:59:26 +00:00
Philippe Charnier
7e19b1ec24 Cosmetic in usage string and err() messages. 1997-07-31 06:57:47 +00:00
Philippe Charnier
7eb436730f Use err(3). 1997-07-31 06:54:45 +00:00
Philippe Charnier
885a85b6c1 Use err(3). Add missing flags in usage string. 1997-07-31 06:53:36 +00:00
Bill Paul
d4a27db19e Modify passwd and chpass to use new AF_LOCAL RPC interface instead of
old kludged-up 'yppasswd_comm' support.
1997-07-29 15:45:36 +00:00
Philippe Charnier
f2abddceac Add usage(), use err(3).
Rewrote man page in mdoc format.
1997-07-29 06:54:16 +00:00
Philippe Charnier
5d422d6aa7 Remove prog, unused variables.
Cosmetic in usage string.
1997-07-29 06:51:41 +00:00
Philippe Charnier
ff456ca439 Use err(3) instead of local redefinition. 1997-07-29 06:49:16 +00:00
Philippe Charnier
e46a3508d0 Use err(3).
sprintf -> snprintf from OpenBSD.
Add usage(), prototypes.
Use MAXPATHLEN instead of 128 from OpenBSD.
Obtained from: OpenBSD
1997-07-29 06:47:18 +00:00
Philippe Charnier
096118ee27 Add usage(). 1997-07-29 06:42:33 +00:00
Philippe Charnier
053f348568 Cosmetic in usage string. 1997-07-28 07:01:02 +00:00
Garrett Wollman
12b7829739 Work around a brokenness in the HTTP spec by generating the Host header
for ftp: URLs as well.  This can't possibly be done in the general case,
but since we only claim to support http and ftp, we'll adhere to the
bogus requirement (RFC 2068, s. 14.25) anyway...  >sigh<

Submitted by: =?iso-8859-1?Q?=C5ge_R=F8bekk?= <aagero@aage.priv.no>
1997-07-26 20:18:43 +00:00
Garrett Wollman
efd4ad4cd2 Fix the error message for when mirroring and restarting are rejected
due to the output not being a regular file.  Also split the error message
in any error case here to be on two lines to lessen the likelihood of it
being too long to fit on just one.
1997-07-26 20:00:05 +00:00
Garrett Wollman
2ec04c7076 Implement HTTP 1.1's ``chunked'' Transfer-Encoding (ick). This hasn't
been extensively tested, but I now can successfully retrieve
<http://www.apache.org/index.html>, so I guess that's a victory of some
sort.

Also move the initialization of ``autherror'' to hopefully eliminate
the reported loop involving authentication.  Still need to implement
MD5 digest authentication.
1997-07-26 19:25:56 +00:00
Garrett Wollman
0c8cc99e5b Provide a new `-b' flag to work around some broken HTTP/TCP implementations
that can't deal with a half-closed connection.
1997-07-25 19:35:44 +00:00
Philippe Charnier
2487a449d3 Use err(3), add usage(), silent -Wall. 1997-07-24 07:05:02 +00:00
Philippe Charnier
3974610c18 Add includes and prototype. 1997-07-24 07:02:55 +00:00
Philippe Charnier
1988cbc558 .Nm mkdep -> .Nm. 1997-07-24 07:01:18 +00:00
Philippe Charnier
7501dcaa36 Add usage(). 1997-07-24 07:00:17 +00:00
Philippe Charnier
950622c987 Use err(3). Cosmetic in usage string. 1997-07-24 06:58:08 +00:00
Philippe Charnier
0e11b68bdd Use err(3). 1997-07-24 06:56:33 +00:00
Philippe Charnier
9510535891 Use err(3) instead of local redefinition. Remove progname. 1997-07-23 06:50:06 +00:00
Philippe Charnier
176d344d18 Typo. 1997-07-23 06:48:01 +00:00
Philippe Charnier
9baefe4a3f Use err(3) instead of local redefinition. 1997-07-23 06:46:10 +00:00
Philippe Charnier
9c9cb2bffe = -> ==, strcpy -> strncpy from OpenBSD.
update man page. Add usage().
Obtained from: OpenBSD
1997-07-22 07:39:43 +00:00
Philippe Charnier
df0715563d Use err(3). 1997-07-22 07:33:48 +00:00
Philippe Charnier
3ec665d482 lockf: usage : lockf -> usage: lockf by using fprintf instead of errx. 1997-07-22 07:32:23 +00:00
Wolfram Schneider
b5b5fc9dc3 Add ref to idprio(1). 1997-07-21 23:05:06 +00:00
Bruce Evans
745ec60f07 Added top.1 to CLEANFILES. 1997-07-21 16:06:00 +00:00
Philippe Charnier
a4a2bc1716 Use err(3). Add usage(). 1997-07-21 12:09:34 +00:00
Philippe Charnier
bef3ca0315 Use err(3). Use .Pa macro for filenames in man page. 1997-07-21 12:08:14 +00:00
Philippe Charnier
78cad0814f Cosmetic in usage string. Typos in man page. 1997-07-21 12:06:18 +00:00
Philippe Charnier
492dbf7344 Check fgets' return value, silent -Wall.
Obtained from: OpenBSD
1997-07-21 12:04:31 +00:00
Philippe Charnier
342548bf0f Cosmetic in usage string. 1997-07-21 12:01:47 +00:00
John Fieber
2ef9b73dba Remove SGML tools from -current. 1997-07-19 15:19:08 +00:00
Wolfram Schneider
f71a4cccdc A not initialized variable forced malloc to abort if the user
press ^Z (undelete line).

Detected by: /etc/malloc.conf -> AJ
1997-07-18 13:51:54 +00:00
Philippe Charnier
df8996586c Use err(3) instead of local redefintion. Add usage() as a separate
function. Rewrote man page in mdoc format.
1997-07-18 06:43:15 +00:00
Philippe Charnier
517c663956 Use err(3). Mdoc'ify man page. 1997-07-18 06:40:46 +00:00
Philippe Charnier
4a744ef67d Cosmetic in usage string. 1997-07-17 06:45:22 +00:00
Philippe Charnier
2eecfa7416 Mdoc'ify man page. 1997-07-17 06:44:11 +00:00
Philippe Charnier
34d890bafe Use err(3). Mdoc'ify man page. 1997-07-17 06:42:26 +00:00
David Nugent
b3848628ff Fix typos.
PR:		4101
Submitted by:	Horikawa Kazuo <k-horik@mail.yk.rim.or.jp>
1997-07-16 11:35:18 +00:00
Philippe Charnier
5827e97390 Rewrote man page in mdoc format. 1997-07-16 06:52:13 +00:00
Philippe Charnier
ca22ec7d08 Use err(3). Rewrote man page in mdoc format. 1997-07-16 06:51:12 +00:00
Philippe Charnier
15fc002be8 Use err(3). Correct incomplete man page. 1997-07-16 06:49:49 +00:00
Philippe Charnier
7bd7ad50aa Use err(3) instead of local redefinition. Add usage(). 1997-07-15 09:59:30 +00:00
Philippe Charnier
21a3d1655c Cosmetic in usage string. 1997-07-15 09:57:28 +00:00
Philippe Charnier
00bbaadcfd Add rcsid, Remove unused vars. 1997-07-15 09:55:59 +00:00
Philippe Charnier
1a6abc0f27 Add rcsid. Cosmetic in usage string. Typo in man page. 1997-07-15 09:54:34 +00:00
Philippe Charnier
958d7c9f1d Use err(3) instead of local redefinition. Add usage(). 1997-07-15 09:50:59 +00:00
Philippe Charnier
d48dbc786e Use err(3) instead of local redefinition. Silent -Wall. 1997-07-15 09:48:49 +00:00
Philippe Charnier
297b94929a Revert to original style. 1997-07-15 08:04:40 +00:00
Peter Wemm
a2aff8b2bd Hack to work around the large username field... scan for the largest
username present on the system at startup and use that for the field width.
It's not ideal but (I think) better than it was before.  The width is
limited to within 8..16.
1997-07-14 09:06:46 +00:00
Bruce Evans
ffbce11fea 32-bit counters aren't large enough for 100+MHz clocks. Use 64-bit
counters.  `4' in GPROF4 and gprof4 now means 8.  gprof4 needs to be
recompiled to match the kernel.
1997-07-13 16:38:39 +00:00
Peter Wemm
65b3003d2d kill the undead 1997-07-13 14:26:00 +00:00
Guido van Rooij
11523cf5fb Remove -I/sys 1997-07-13 11:51:42 +00:00