Commit Graph

77658 Commits

Author SHA1 Message Date
alfred
005eec7dbe de-__P().
WARNS=4 cleanup:
  include headers needed.
  don't initialize char * with const char *.
  fix main() declaration.
  fix shadowed variable.
  properly cast tcpcb members for printf(3) output.
  remove 'register'.
  remove unused arg.

Reviewed by: tmm, bde
2002-07-15 17:44:34 +00:00
markm
711bccb1b9 Fix a bazillion lint and WARNS warnings. One major fix is the removal of
semicolons from the end of macros:

#define FOO() bar(a,b,c);

becomes

#define FOO() bar(a,b,c)

Thus requiring the semicolon in the invocation of FOO. This is much
cleaner syntax and more consistent with expectations when writing
function-like things in source.

With both peril-sensitive sunglasses and flame-proof undies on, tighten
up some types, and work around some warnings generated by this. There
are some _horrible_ const/non-const issues in this code.
2002-07-15 17:28:34 +00:00
markm
a9edfd286e Use ISO 9X variadic macro format; arguments are not optional, just
variable.
2002-07-15 17:17:56 +00:00
markm
c13f9f8123 Convert macros with variadic arguments from GNU format to ISO 9X. 2002-07-15 17:15:41 +00:00
des
5332a2b179 Comment out WARNS?=4 to unbreak the Alpha build. 2002-07-15 17:11:20 +00:00
wollman
59fe75dd81 Identify the C Language Binding Option of IEEE Std. 1003.2-1992.
This represents the original standardization of the following functions
and headers:

	popen()
	<regex.h>: regcomp(), regexec(), regerror(), regfree()
	<fnmatch.h>: fnmatch()
	getopt(), optarg, optind, opterr, optopt
	<glob.h>: glob()
	<wordexp.h>: wordexp(), wordfree()
	confstr()
2002-07-15 16:44:07 +00:00
trhodes
3a2f2e6f8f Fix grammar 'the administrator'
PR:		39093
Submitted by:	Mike Makonnen <makonnen@packbell.net>
2002-07-15 16:23:56 +00:00
des
71010f6257 Get rid of %qd, and unbreak Alpha build. 2002-07-15 16:05:15 +00:00
jhb
2cb3bd675e Move all the sio(4) attachments (except for pc98's cbus attachment) to the
MI files file.  We can't move sio.c because pc98 uses a custom version.
2002-07-15 15:47:34 +00:00
jhb
82c8bf8cf3 The puc(4) driver/bridge is MI, so don't bury it in MD options and files
config files.  It also depends on PCI.
2002-07-15 15:39:10 +00:00
bmilekic
a574df8241 o Introduce new m_getcl() interface routine that allocates an mbuf
and a cluster in one shot.
o Introduce MBP_PERSIST and MBP_PERSISTENT control bits to mb_alloc();
  MBP_PERSIST means "if you can allocate, then keep the cache lock
  held on exit," and MBP_PERSISTENT means "a cache lock is alredy held
  on entry, so allocate from the specified (already locked) cache."
  They may be used in combination.
o m_getcl() uses the MBP_PERSIST/MBP_PERSISTENT interface so that it
  doesn't drop the cache lock in between the mbuf and cluster allocations.
o m_getm(), which takes a size and allocates an mbuf + cluster "best fit"
  chain, has been moved from uipc_mbuf.c to subr_mbuf.c and shown how to
  use MBP_PERSIST/MBP_PERSISTENT to attempt to do a grouped allocation
  without dropping the cache lock in between.

Why this is good: much less bus-locked lock acquires/drops when they're
not needed.  Also, prototype for m_getcl():
struct mbuf * m_getcl(int how, short type, int flags);
"how" and "type" are self-explanatory.  "flags" may be M_PKTHDR, in
which case m_getcl() will make the mbuf a pkthdr-mbuf.

While I'm in subr_mbuf.c:
o Every exported routine now has a nice comment with a description of
  the expected arguments.  Eventually, mbuf(9) needs to be re-vamped
  but there's still more code to write/finalize before I get to that.
o internal macros have been changed a bit.
o consistently use 'short' for "type."  This somehow slipped through
  before (that 'type' was sometimes declared as int).

Alfred has been pushing for the MBP_PERSIST{,ENT} thing for almost a
year now.  Luigi asked for m_getcl(), and will probably MFC that
part of this commit.

TODO [Related]: teach mb_free() about MBP_PERSIST{, ENT}.
2002-07-15 15:32:59 +00:00
jhb
b5e51beccc Sort all the SYSV IPC options. They are still all clumped together, but
at least they are sorted relative to themselves now.
2002-07-15 15:28:16 +00:00
jhb
e8337d0ea2 - Properly sort GEOM and NODEVFS.
- GEOM doesn't need to specify a filename, the correct one is chosen by
  default.
2002-07-15 15:25:08 +00:00
jhb
2ec58be99a Make WLCACHE and WLDEBUG MI options. 2002-07-15 15:21:51 +00:00
jhb
87f334cc9d Make NDGBPORTS an MI option since the dgb(4) driver is an MI driver.
Remove comments about NDGBPORTS from the options* files.  Please document
options in NOTES, not in the options* files.
2002-07-15 15:18:34 +00:00
jhb
25e7fa17d4 Properly document NDGBPORTS and use a better value in NOTES. The normal
values for settings in NOTES is to use the default value + 1.
2002-07-15 15:17:22 +00:00
jhb
8700128ef6 Remove SIMOS option from here. It will be moving to a new home shortly. 2002-07-15 15:07:51 +00:00
jhb
8edb2d8dbc Adjust a comment, the vga device only supports VGA cards. 2002-07-15 14:56:44 +00:00
jhb
7e179908e1 The sources to the non-working esp device are no longer present in current. 2002-07-15 14:54:36 +00:00
jhb
64dbf9fded Alpha does not support the PERFMON kernel option and does not have a
perfmon.c.
2002-07-15 14:45:32 +00:00
jhb
a046d1c3c9 Neither options SLICE or sys/alpha/alpha/mountroot.c exist anymore. 2002-07-15 14:43:40 +00:00
iedowse
43638d29a8 Re-fetch the interface handle after setting the config number,
because the previous interface handle gets freed when the config
number is set. This fixes a problem where memory could be accessed
after it was freed when the interface was ifconfig'd up.

Reviewed by:	n_hibma
2002-07-15 14:37:36 +00:00
jhb
cc6a81f898 - Remove an irrelevant comment from i386 GENERIC.
- Remove unneeded quotes.
- Remove 'config' line.
- Rename ident to SIMOS.
2002-07-15 14:33:20 +00:00
jhb
dc2c0583a1 Move ACPI device and options from MI NOTES to the i386 MD NOTES file. 2002-07-15 14:28:20 +00:00
markm
6fb33aa4e4 Very minor warns fix. Add a declaration for an unused parameter. 2002-07-15 14:06:03 +00:00
markm
27fd6b1c7f Help lint out a bit; wrap some functions (redefined as macros) in #ifdef. 2002-07-15 14:04:08 +00:00
markm
2370535caa Upgrade the random device to use a "real" hash instead of building
one out of a block cipher. This has 2 advantages:
1) The code is _much_ simpler
2) We aren't committing our security to one algorithm (much as we
   may think we trust AES).

While I'm here, make an explicit reseed do a slow reseed instead
of a fast; this is in line with what the original paper suggested.
2002-07-15 13:58:35 +00:00
markm
a22b6ae7fb Fix some really pedantic GCC warnings. 2002-07-15 13:45:15 +00:00
markm
604c6c5ec9 Convert GNU variadic macros to the ISO 9X variety. 2002-07-15 13:34:50 +00:00
markm
5ac51e5b21 Wrap GNU specific code in ifdefs, and help lint out by providing
some alternative definitions.
2002-07-15 13:29:40 +00:00
markm
ba39a3d3df Cast to prevent "signed/unsigned comparison" warnings. 2002-07-15 13:27:43 +00:00
markm
1461a2fddc Warnings and lint-assisting fixes; mark unused function parameters as
unused; wrap GNUisms (asm code) in appropriate #ifdefs.
2002-07-15 13:25:15 +00:00
markm
e7953b52d9 Consistently use semicolons to terminate macro invocations. Cleaner
style and fixes later warnings.
2002-07-15 13:17:23 +00:00
markm
6e3c874bfd Convert GNU-styled variadic macros to ISO(9x) style. 2002-07-15 13:15:31 +00:00
markm
aee41bc9a8 Use a semicolon at the end of a function-like macro invocation. Kills
warnings and makes the visual style easier.
2002-07-15 13:13:04 +00:00
markm
e172b2b114 Fix warning by marking unused function parameter. 2002-07-15 13:10:19 +00:00
markm
b8b883e344 ISOfy and minor warnsfix. 2002-07-15 13:08:44 +00:00
markm
511b33620e Use semicolons at the end of function-like macros for the sake of
consistency, style and future cleanliness.
2002-07-15 13:03:10 +00:00
des
e0ecf9a222 Get rid of %qd, and unbreak Alpha build. 2002-07-15 12:17:31 +00:00
sheldonh
eaeed7f0ff Revert previous delta, which is not required with rev 1.5 of
src/contrib/gcc/c-format.c .
2002-07-15 12:08:21 +00:00
rse
5b0288dd0c s/progname/procname/ to be consistent with the other occurrences
of the option -c argument in SYNOPSIS and DESCRIPTION.
2002-07-15 11:33:30 +00:00
rse
80f61fa8f1 Replace extra call to "tunefs" with the equivalent of "newfs -U".
Reviewed by:	phk
2002-07-15 11:30:21 +00:00
ume
a906f0c48c Correct module name of my previous commit. 2002-07-15 11:22:37 +00:00
alfred
0524c94cee revert WARNS=4, it makes the alpha compile sad. 2002-07-15 09:53:34 +00:00
keramida
bc32551746 Fix whitespace in .Bd -literal display of S_IXXX constants.
Noticed by:     jmallett
2002-07-15 08:58:16 +00:00
keramida
f7cbdf51ed mdoc fun: add a few more sentence breaks. 2002-07-15 07:51:10 +00:00
keramida
bfae74eab6 Kill excessive whitespace between macro arguments. 2002-07-15 07:35:36 +00:00
keramida
be36fd0f14 mdoc style: break up sentences 2002-07-15 07:16:54 +00:00
jmallett
fed551e328 Bit-width fields should be of type 'int'. 2002-07-15 06:57:25 +00:00
jmallett
35fdcc10ba Use %zu to print size_t. 2002-07-15 06:57:01 +00:00