Commit Graph

23891 Commits

Author SHA1 Message Date
charnier
7f44bec4ad Cosmetic in usage string. 1997-08-26 11:17:16 +00:00
charnier
19da442f11 Use err(3). 1997-08-26 11:16:08 +00:00
charnier
a5eee593ac Use err(3). Add usage(). 1997-08-26 11:14:57 +00:00
charnier
80e0f83375 Cosmetic in usage string. Mdocify author section. 1997-08-26 11:13:39 +00:00
charnier
287f219c02 Main() returns int. 1997-08-26 11:08:24 +00:00
eivind
0e114b0322 Removed a buffer overflow in args().
While I'm here, fix a bug with 'register' in conjunction with setjmp(),
staticize and do some -Wall cleaning.
1997-08-26 10:25:19 +00:00
phk
fddfc9d5bb Uncut&paste cache_lookup().
This unifies several times in theory indentical 50 lines of code.

The filesystems have a new method: vop_cachedlookup, which is the
meat of the lookup, and use vfs_cache_lookup() for their vop_lookup
method.  vfs_cache_lookup() will check the namecache and pass on
to the vop_cachedlookup method in case of a miss.

It's still the task of the individual filesystems to populate the
namecache with cache_enter().

Filesystems that do not use the namecache will just provide the
vop_lookup method as usual.
1997-08-26 07:32:51 +00:00
charnier
f320b3a306 Just forgot a moment that mdoc macros are limited to 9 parameters.
Found by: Bruce.
1997-08-26 07:04:20 +00:00
charnier
98f0299552 Revert some casts I introduced.
Requested by: Bruce.
1997-08-26 06:59:34 +00:00
fsmp
466450db24 Removed suggested "options AUTO_START", no longer used.
Noticed by:	 Vincent Poy <vince@mail.MCESTATE.COM>
1997-08-26 05:12:45 +00:00
dyson
b90433b1a9 Back out some incorrect changes that was worse than the original bug. 1997-08-26 04:36:27 +00:00
bde
c86802a2ae Don't return EINVAL for negative timespecs in the nanosleep functions.
Negative timespecs are perfectly valid.  Just return 0 immediately
for them.  Also, return 0 immediately for zero timespecs.

Fixed some style bugs.
1997-08-26 00:40:04 +00:00
imp
015fbf2e02 .Xr vnconfig 8. This was suggested by Dworkin Muller <dworkin@village.org>
when he tried to figure out how to swap to a file and had to ask me for
help.
1997-08-26 00:32:06 +00:00
bde
b4bd137bbd Finished staticizing. 1997-08-26 00:31:04 +00:00
bde
cd40f0f029 Fixed some formatting and style bugs.
Fixed a gratuitous ANSIism.
1997-08-26 00:24:25 +00:00
bde
91d3d7f428 Print more info in the "calcru: negative time" message. 1997-08-26 00:20:11 +00:00
bde
35a98c3590 Fixed some gratuitous ANSIisms. 1997-08-26 00:15:04 +00:00
bde
6fcfc89b8c Removed some stale comments.
Fixed a gratuitous ANSIism.
1997-08-26 00:09:44 +00:00
bde
62b8e79acd Removed redundant test against MAXDSIZ (the rlimit test is stronger). 1997-08-26 00:02:24 +00:00
bde
9fb61aa49b Don't depend on the gcc feature of permitting conditional expressions
with only one void operand.
1997-08-25 23:45:50 +00:00
bde
04b5795c64 Fixed misplaced declaration. 1997-08-25 23:41:39 +00:00
bde
ec670fd1e0 Minor formatting and style fixes. 1997-08-25 23:36:23 +00:00
bde
a0f9d8afb0 Fixed pedantic syntax error (trailing comma in enum). 1997-08-25 23:31:05 +00:00
bde
a959c46ad4 Removed more abuses of timeout_func_t. 1997-08-25 23:28:58 +00:00
bde
2d311d905e Removed unused misplaced definition of TIMER_FREQ.
Use less-magic numbers in the definition of HISTORY_SIZE.
1997-08-25 23:21:55 +00:00
bde
9912dd8f10 Fixed reversed arguments and poor formatting and comments for OUT*.
The reversals were doubled except in comments so there was no problem
at runtime.
1997-08-25 23:17:33 +00:00
bde
ae8b1527fd Fixed some not-so-recently broken indentation.
Fixed pedantic syntax error (trailing comma in enum).
1997-08-25 23:06:29 +00:00
bde
787955a8c7 Fixed some not-so-recently broken indentation.
Fixed pedantic syntax error (trailing comma in enum).
1997-08-25 22:58:29 +00:00
bde
fbc4f096cf Check for irq conflicts even if conflicts are allowed. Conflicting
irqs can't work (at best, the first one attached wins).  It used to
be necessary to skip this check because of bogus irqs in the sound
drivers, but the sound drivers have been fixed, except possibly the
OSS ones.
1997-08-25 22:52:59 +00:00
bde
5fcc0d3d40 Fixed type mismatch for a (low quality interface) function with an
arg of type u_short (just write the function in ANSI C like most
other functions in this file instead of fixing the interface or
depending on a gcc feature).
1997-08-25 22:34:25 +00:00
bde
cb45fbaef8 Police 4.4Lite #include style. 1997-08-25 22:28:57 +00:00
bde
6689231c95 Fixed type mismatch for a (low quality interface) function with an arg
of type u_char (break K&R support instead of fixing the interface or
depending on a gcc feature).
1997-08-25 22:23:46 +00:00
bde
c978fb3652 Fixed type mismatches for functions with args of type vm_prot_t and/or
vm_inherit_t.  These types are smaller than ints, so the prototypes
should have used the promoted type (int) to match the old-style function
definitions.  They use just vm_prot_t and/or vm_inherit_t.  This depends
on gcc features to work.  I fixed the definitions since this is easiest.
The correct fix may be to change the small types to u_int, to optimize
for time instead of space.
1997-08-25 22:15:31 +00:00
bde
df4046c530 Added an XXX comment. 1997-08-25 22:02:22 +00:00
bde
e2a5c6ab8a Removed an unused variable. 1997-08-25 21:57:55 +00:00
bde
fa81fa1958 Fixed a pedantic syntax error (case labels without a statement). 1997-08-25 21:56:23 +00:00
bde
7eca67951d Finished (?) support for DISABLE_PSE option. 2-3MB of kernel vm was sometimes
wasted.

Fixed type mismatches for functions with vm_prot_t's as args.  vm_prot_t
is u_char, so the prototypes should have used promoteof(u_char) to match
the old-style function definitions.  They use just vm_prot_t.  This depends
on gcc features to work.  I fixed the definitions since this is easiest.
The correct fix may be to change vm_prot_t to u_int, to optimize for time
instead of space.

Removed a stale comment.
1997-08-25 21:53:01 +00:00
fsmp
513dcef161 Make explicit '-B' option propigate to submakes.
No one has said this would be a bad thing, so given the dearth of comments
I decided to add it, as its an important step towards getting "make world"
'parallel-ized'.

Reviewed by:	silence
Submitted by:	nnd@itfs.nsk.su
1997-08-25 21:35:44 +00:00
bde
0d4dc945cd Removed a tautological comment. 1997-08-25 21:31:38 +00:00
bde
981e4ccd4f Removed a bogus comment. 1997-08-25 21:28:08 +00:00
bde
36cc99f070 Fixed an example. 1997-08-25 21:17:38 +00:00
bde
f258578729 Removed duplicate MOPT_FORCE and sorted the first one. Rev.1.5 and
Lite2 messed up the ordering differently.
1997-08-25 21:14:22 +00:00
fsmp
73a3ddd3af Eliminate the blocking of INTs while spinning for the safe simplelock. 1997-08-25 21:02:59 +00:00
bde
6702cebfd7 Moved getmntops() stuff back to mntopt.h so that it is visible in other
mount utilities.
1997-08-25 21:02:21 +00:00
bde
8b18fb0873 Backed out previous commit - don't clobber the (normally equivalent)
default for NOSHARED.
1997-08-25 20:38:35 +00:00
phk
e896542842 Copy&Paste considered harmful:
Remove all traces of the name_cache from devfs.  It is hardly sensible to
use the namecache for an all-RAM filesystem.
1997-08-25 20:31:00 +00:00
phk
245dfccc2d Add a new vnode op (cachedlookup) so that filesystems can plug into
a global vfs_cache check.  The rest of this change will come when the
current zero size file problem is resolved.
1997-08-25 20:28:49 +00:00
bde
e79f489cc2 Support all mount flags that are supported in the kernel. 1997-08-25 20:23:16 +00:00
phk
bd600a2a02 Add SLIST_FOREACH 1997-08-25 20:21:54 +00:00
bde
c0ad342824 Restored clobbered parts of rev.1.15 (build intermediate object files
for tools).
1997-08-25 19:50:01 +00:00