Commit Graph

77 Commits

Author SHA1 Message Date
Mark Murray
eb03707082 We no longer have KerberosIV. Remove it here also. 2003-04-30 17:50:08 +00:00
David Malone
fa25e61082 Don't forget to send the Content-length header after calculating it.
PR:		29725
Submitted by:	Eugene Grosbein <eugen@svzserv.kemerovo.su>
2003-04-05 17:15:38 +00:00
David Malone
cda5ba2ceb More warns cleanups and misc cleanups:
1) Make fetch_mode a pointer 'cos we can just use the optarg.
2) Constness.
3) Add/complete prototypes.
4) Change an int to a socklen_t.
5) Don't use C++ style comments.
6) Check return values from read and fork a little more carefully.
7) Avoid closing an uninitialised int.
8) Get rid of unneeded extern declarations.
2003-04-05 15:27:27 +00:00
David Malone
a8b08ce3b1 Don't return with a value in a void function.
Pass a time_t rather than a long to time.
2003-03-13 22:06:10 +00:00
Alfred Perlstein
9e9715e9c0 de-__P() 2002-10-10 00:32:55 +00:00
Luigi Rizzo
d813626f4d Add a few files which are needed to build "passwd" now that
the standard version of these files have been PAMified (and axed).
2002-06-20 21:17:33 +00:00
Luigi Rizzo
18074efb5e Bring in a slightly older version of usr/bin/passwd which does not
require libpam and all the libraries that libpam brings in.
We have no room for those on picobsd images.
2002-05-05 20:43:27 +00:00
Dag-Erling Smørgrav
d397408818 Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
Ruslan Ermilov
f2f306b622 Align for const poisoning in -lutil. 2002-04-08 11:07:51 +00:00
Ruslan Ermilov
6db4dfa90f Synch with login/login.c,v 1.81: Switch to OpenPAM. 2002-04-08 10:58:01 +00:00
Jeroen Ruigrok van der Werven
b3d3fc366e Add a missing void in the parameter list of http_request(). 2002-04-07 17:42:27 +00:00
Jeroen Ruigrok van der Werven
ebd3c05e64 Give functions proper return type, since the default is an integer, where
the author obviously meant a void since he doesn't return any values.

One caveat, http_request has three return()'s, but doesn't do anything
with it.  Either the code needs to be rewritten to take care of proper
error handling on that point, or the returns ripped out.  I made it void
for now.
2002-04-07 17:41:33 +00:00
Jeroen Ruigrok van der Werven
bc45ee7458 Use %lld instead of %d in order to print struct stat's st_size, which is
an off_t.

PR:		29725
Submitted by:	Eugene Grosbein <eugen@svzserv.kemerovo.su>
2002-04-07 17:22:23 +00:00
Jeroen Ruigrok van der Werven
6ef06b5a75 Garbage collect unused variables.
PR:		29725
Submitted by:	Eugene Grosbein <eugen@svzserv.kemerovo.su>
2002-04-07 17:16:28 +00:00
Jeroen Ruigrok van der Werven
41c6cb53dd Actually print the port we are listening too when specified verbose mode.
PR:		29725
Submitted by:	Eugene Grosbein <eugen@svzserv.kemerovo.su>
2002-04-07 17:07:37 +00:00
Andrzej Bialecki
3c0df64f68 Function declared void shouldn't return any value... 2002-03-27 20:10:53 +00:00
Luigi Rizzo
900e78cdda Make this compile again
Reported-by: Bruce Montague
2002-03-11 08:03:50 +00:00
Luigi Rizzo
8de7d83bc0 Add a '-l' flag to show CPU load for the various states, similar to what
"top" does (thinking of it, i could have as well used the same format line!)

This only makes sense when "-w" option is also specified, because the
load is computed as the difference between subsequent samples.

I think this (and the "-d" feature which shows differences in the
network statistics counts) would also make sense in the standard
vmstat and netstat.
2001-12-14 01:10:50 +00:00
Luigi Rizzo
f36f7f8005 Use the correct sysctl names for intrcnt and intrnames. 2001-10-25 01:29:21 +00:00
Luigi Rizzo
ce28e3e9fe Add a -d flag to show deltas as opposed to cumulative counters
in interface statistics.  Most useful when used with the -w flag e.g.

	ns -i -w 1 -d
2001-10-10 17:52:04 +00:00
Luigi Rizzo
2fbfa5f862 Add code to print interrupt statistics when they will be
exported via sysctl.
2001-10-07 02:13:23 +00:00
Luigi Rizzo
3cbee46209 Fix a typo (missing "; at the end of a string) 2001-10-07 00:29:59 +00:00
Luigi Rizzo
a61f7148ba Add customised version of login for picobsd images on -CURRENT.
This version is basically the same one as login.c 1.67, and does
not require the use of PAM.
2001-10-01 16:58:28 +00:00
Kris Kennaway
56bded8a29 s/adress/address/
Inspired by:    OpenBSD
MFC After:      1 week
2001-07-23 12:05:27 +00:00
Dima Dorfman
70d51341bf mdoc(7) police: remove extraneous .Pp before and/or after .Sh. 2001-07-09 09:54:33 +00:00
Brian Somers
7bc6d0158f Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
Thomas Moestl
df06371f65 Account for the machdep.msgbuf -> kern.msgbuf renaming. 2001-07-03 19:51:53 +00:00
Josef Karthauser
378918c059 Apply style guidelines (using gident to help). 2001-04-23 19:38:41 +00:00
Josef Karthauser
2e8d39560e Fix a syntax error. 2001-04-23 18:41:48 +00:00
Andrzej Bialecki
6d8476df78 Resurrect Minix sh(1), after its license has been changed to BSD one. 2001-02-10 22:57:33 +00:00
Luigi Rizzo
4ff9c03cc5 Add dummy -n option, for compatibility with the standard netstat 2001-01-27 03:18:55 +00:00
Alexander Langer
5a86d4eafc Make the name of the init script and the interpreter compile time options.
If not defined, default to the old values (with _PATH_BSHELL instead
of "/bin/sh", though).

Reviewed by:	markm
2001-01-20 09:12:55 +00:00
Andrzej Bialecki
78d1fe9622 Fix so that the netmask is displayed correctly when it does not
consist of contiguous bits in little endian format. Before the fix
the netmask of 0xfffffff0 (0xf0ffffff in little endian format) was
displayed /24 instead of /28.

Also, add a missing include.

Submitted by:	Maxime Soule <Maxime.Soule@IPricot.com>
2001-01-10 23:06:31 +00:00
Andrzej Bialecki
e1f84360ff Reformat to be a bit closer to style(9). 2001-01-10 22:25:54 +00:00
Andrzej Bialecki
650da9d30a Fix breakage after moving from struct proc/eproc to kinfo_proc. 2001-01-10 22:24:07 +00:00
David E. O'Brien
1a37aa566b Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
2000-12-09 09:35:55 +00:00
Andrzej Bialecki
b974f7d892 Fix bitrot. 2000-11-11 16:12:39 +00:00
Poul-Henning Kamp
f6b5c74c35 Initiate deorbit burn sequence for <machine/mouse.h>.
Replace all in-tree uses with <sys/mouse.h> which repo-copied a few
moments ago from src/sys/i386/include/mouse.h by peter.
This is also the appropriate fix for exo-tree sources.

Put warnings in <machine/mouse.h> to discourage use.
November 15th 2000 the warnings will be converted to errors.
January 15th 2001 the <machine/mouse.h> files will be removed.
2000-10-09 08:08:36 +00:00
Poul-Henning Kamp
00d25f512c Initiate deorbit burn sequence for <machine/console.h>.
Replace all in-tree uses with necessary subset of <sys/{fb,kb,cons}io.h>.
This is also the appropriate fix for exo-tree sources.

Put warnings in <machine/console.h> to discourage use.
November 15th 2000 the warnings will be converted to errors.
January 15th 2001 the <machine/console.h> files will be removed.
2000-10-08 21:34:00 +00:00
Luigi Rizzo
cc89db0c68 Fix bogus reporting of interface names, the field returned
in sdl_data is not 0-terminated
2000-03-21 12:09:23 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Roger Hardiman
e9509fb8fa Changed to get the page size using a sysctl rather than using DEFAULT_PAGE_SIZE
Suggested by: Alan Cox
1999-08-26 11:11:48 +00:00
Doug White
843fcabd9e Major PicoBSD update by luigi with some debugging help from myself.
. Now builds on -STABLE (-CURRENT is broken due to bugs)
. etc directory contents centralized instead of in each
  type directory (can exclude & override as desired)
. Removed extraneous language files (lang files for rc really necessary?)
. dialog-based build tool with support for custom floppy builds
. MFS image loads as a mfs_root module instead of compiled into kernel

THIS IS BROKEN ON CURRENT.  I'll MFC to -STABLE immediately following.
luigi tells me I have an OK from jkh on the MFC.

Submitted by:	luigi
1999-08-22 21:45:24 +00:00
Luigi Rizzo
6bbeddc1ea Enable printing of bridging statistics. 1999-08-17 03:30:34 +00:00
Luigi Rizzo
a18ff8bea7 Fix a problem in printing interface names. 1999-08-12 05:40:07 +00:00
Brian Feldman
c6080e5453 DEFAULT_PAGE_SIZE was removed, pgtok defined in headers, headers cleaned up.
Obtained from:	Jonathan Towne <jontow@sysctl.urban-a.net>
1999-07-08 06:22:04 +00:00
Roger Hardiman
f2488e30c5 MFS: No longer needed in PicoBSD 0.44 1999-06-15 11:45:25 +00:00
Roger Hardiman
27c2745d8a MFS: No longer needed in PicoBSD 0.44 1999-06-15 11:40:13 +00:00
Andrzej Bialecki
a4cc706896 Simple_HTTPd on steroids - major rework of the original program, by
William Lloyd. New features include:

* many additional command line options
* "fetch" mode
* less bugs :-)
* better README.

Submitted by:	William Lloyd <wlloyd@lap.net>
Reviewed by:	abial
1999-05-05 07:22:34 +00:00
Andrzej Bialecki
f8ee1a074a Merge from RELENG_3. 1999-02-12 20:36:13 +00:00