Commit Graph

42504 Commits

Author SHA1 Message Date
peter
bef3233f97 ulpt.c and ums.c already uses make_dev(), so there's no need to use the
(presently broken) DEV_DRIVER_MODULE().  Use DRIVER_MODULE() directly.
1999-11-08 07:10:48 +00:00
peter
e1d47fe3ef Don't indirect via devsw_module_handler() for DEV_MODULE() routines, have
the supplied (if any) function and argument called directly.
1999-11-08 06:56:19 +00:00
peter
ceb50526e0 A hack basically.. We have a bunch of code that used to call
devsw_module_handler() indirectly and not use the chain arguments.  To
eliminate this indirection via that function (which does nothing now)
without duplicating a modevent handler into all the routines that don't
presently have one, supply a NOP (do nothing, return OK) routine which
is functionally equivalent to what's there now.  This is a hack and is
still wrong, because there doesn't appear to be anything to reclaim
resources on an unload of a module with one of these in it.  I'm not
sure whether to make the NOP handler refuse a MOD_UNLOAD event or what.
1999-11-08 06:53:30 +00:00
sef
bea3c9c29e Explain why Warner is right, and I am wrong, in the removing of the
file object.  Also explain some possible directions to re-implement it --
I'm not sure it should be, given the minimal application use.  (Other
than having the debugger automatically access the symbols for a process,
the main use I'd found was with some minor accounting ability, but _that_
depends on it being in the filesystem space; an ioctl access method would
be useless in that case.)

This is a code-less change; only a comment has been added.
1999-11-08 05:13:54 +00:00
jkoshy
20ff6eb5f4 Document startup behaviour of mail(1).
PR:		docs/1577
Submitted by:	Joseph Koshy <koshy@india.hp.com>
1999-11-08 03:54:37 +00:00
peter
7399711414 Update for fileops.fo_stat() addition. Note, this would panic if
it saw a DTYPE_PIPE.  This isn't quite right but should stop a crash.
1999-11-08 03:36:29 +00:00
peter
85ea188a3b Update the stream socket fileops table to match fo_stat() additions. 1999-11-08 03:34:53 +00:00
peter
1fc7fe4c3b Use fo_stat() rather than Yet Another duplication of kern_descrip.c's stat
code.
1999-11-08 03:33:21 +00:00
peter
90b1e85249 Add a vnode fo_stat() entry point. 1999-11-08 03:32:15 +00:00
peter
8b7a70c7c6 Update socket file type for fo_stat(). soo_stat() becomes a fileops
switch entry point rather than being used externally with knowledge of the
internals of the DTYPE_SOCKET f_data contents.
1999-11-08 03:31:01 +00:00
peter
44a6702397 Update pipe code for fo_stat() entry point - pipe_stat() is now no longer
used outside the pipe code.
1999-11-08 03:28:49 +00:00
peter
b6fb1d8bbe Use fo_stat() rather than duplicating knowledge of file type internals
in here for stat(2) and friends.  Update the badops entries accordingly.
1999-11-08 03:27:14 +00:00
peter
c3eff14a6d Create a fileops fo_stat() entry point. This will enable collection
of a bunch of duplicated code that breaks (read: panic) when a new
file type is added and some switch/case entries are missed.
1999-11-08 03:25:23 +00:00
archie
6799b6248c Update to better reflect reality. 1999-11-08 03:14:58 +00:00
archie
ab34c0430a Add missing documentation for the two control messages supported
by this node type.
1999-11-08 03:14:15 +00:00
archie
89f50d8634 Add some more clarification. 1999-11-08 03:13:28 +00:00
archie
f251e6d026 Fix crash when trying to duplicate a NULL meta. 1999-11-08 03:11:22 +00:00
archie
abdec24828 Get rid of the 'sync2' hook, which was a hack. Instead, just
directly detect outgoing LCP frames and do the right thing.
1999-11-08 03:10:20 +00:00
archie
98adf4da40 Add support for the IFF_MULTICAST flag. There's not
much to do because we are a point-to-point interface.

Submitted by:	phk
1999-11-08 03:08:59 +00:00
alc
de32ac6c38 Remove unused declarations. 1999-11-08 00:53:34 +00:00
alc
5951c4f5fa Remove unused #include's.
Submitted by:	phk
1999-11-07 20:03:54 +00:00
steve
cdd2be8eed Correct logic from previous commit - middle processes in long pipes
don't have their stdin closed indisciminantly.

Reviewed by:	markm
1999-11-07 17:07:05 +00:00
phk
afedfd7c30 Use vop_panic() instead of spec_badop(). 1999-11-07 15:09:59 +00:00
phk
cd20c067a1 Make vop_panic() a little more informative. 1999-11-07 15:09:49 +00:00
phk
52add2a3bd Simplify and de-bogotify check for raw disk. 1999-11-07 13:09:09 +00:00
phk
a692ec72d0 Patch got this one wrong, we want to check securelevel in open() 1999-11-07 12:32:45 +00:00
phk
8e509208b0 Remove the iskmemdev() function. Make it the responsibility of the mem.c
drivers to enforce the securelevel checks.
1999-11-07 12:01:32 +00:00
obrien
7b6cc60a6e Rev 1.2 appears to have come from this commit to gcc-2.6.1:
phk         95/03/10 00:24:10

	Modified:    gnu/usr.bin/cc/cc_int final.c
	Since we are in the gcc bashing mood anyway:  Add two changes for
	basic-block profiling:
	1. use a .stabs(25) symbol to link all the data structures together
	with.  The regular method isn't safe for the kernel.
	2. add a BB before the prologue and add a BB after the epilogue,
	this alows us to find the length of any counted BB.  This is a
	cheap and somewhat reasonable measure of actual cost.

Note #1 was removed in rev 1.4.
1999-11-07 10:38:07 +00:00
phk
a4b82810a0 Remove the devsw magic from DEV_MODULE() 1999-11-07 10:01:17 +00:00
sos
56f45b0a15 Add the ata driver to the compiled in targets.
Document the options available for the ata driver.

Disconnect the atapi devices from the old wd driver to avoid conflicts
(they will go away at some point anyways)
1999-11-07 09:52:04 +00:00
brian
b9908f0754 Don't zero-pad netgraph node ids
Recommended by: julian
1999-11-07 09:03:45 +00:00
jb
d99a1d2da4 Replace freebsdelf with freebsd in BINDIR
Requested by: obrien
1999-11-07 08:07:02 +00:00
sef
dd2d1f0b10 Make an incredibly stupid change because Warner threatened to do it and
continue doing it despite objections by me (the principal author).

Note that this doesn't fix the real problem -- the real problem is generally
bad setup by ignorant users, and education is the right way to fix it.

So while this doesn't actually solve the prolem mentioned in the complaint
(since it's still possible to do it via other methods, although they mostly
involve a bit more complicity), and there are better methods to do this,
nobody was willing or able to provide me with a real world example that
couldn't be worked around using the existing permissions and group
mechanism.  And therefore, security by removing features is the method of
the day.

I only had three applications that used it, in any event.  One of them would
have made debugging easier, but I still haven't finished it, and won't
now, so it doesn't really matter.
1999-11-07 07:52:02 +00:00
alc
c2bbe96a79 The functions declared by this header file no longer exist.
Submitted by:	phk (in part)
1999-11-07 06:46:48 +00:00
jb
f27c8c2af7 These have been repo-copied to i386-freebsd. 1999-11-07 06:13:35 +00:00
jb
8c9e3db66f These have been repo-copied to alpha-freebsd. 1999-11-07 06:11:36 +00:00
jb
9a6dbbd4b1 Replace freebsdelf with freebsd in most places.
Requested by: obrien
1999-11-07 06:01:35 +00:00
jb
1e8dfd0e67 After a repo copy of as_{alpha,i386,mips} to {alpha,i386,mips}-freebsd,
tidy up the logic that works out which sub-directories to build.

The new directories with freebsdelf suffixes now have freebsd suffixes
after a repo move by Peter at the request of David O'Brien.
1999-11-07 05:59:25 +00:00
green
58b0904339 Fix the advisory file locking by restoring previous ordering in closef()/
fdrop().  This only showed up when a file descriptor was duplicated
and then closed once, where the lock would be released on the first close().
1999-11-07 05:58:38 +00:00
jb
d5d7a3b29c Replace freebsdelf with freebsd in BINDIR.
[ alpha-freebsd, i386-freebsd and mips-freebsd were repo-copied
  by Peter (one of the repo-men) ]

Requested by: obrien
1999-11-07 05:56:04 +00:00
julian
85706b7ef1 Stop nroff from complaining about the freeBSD version..
Also some updates to the vjc node man page.
1999-11-07 05:16:27 +00:00
jlemon
fd50691fe0 Undo rev 1.10, which took out TH_FIN from the CLOSING state. This
breaks simultaneous closes.
1999-11-07 04:18:30 +00:00
julian
60fe2f9482 Be more accepting about the format of node IDs.
Submitted by: Brian Somers <brian@Awfulhak.org>
1999-11-07 04:18:20 +00:00
tanimura
dda1c9699b Conserve stereo mode in ioctl SNDCTL_DSP_SETFMT.
PR:		14372
Submitted by:	Mattias Pantzare <pantzer@ludd.luth.se>, Ville-Pertti Keinonen <will@iki.fi>
1999-11-07 04:15:30 +00:00
obrien
7ad711402e Add a new "-r" (right) option that reverses the order a filename and the
hash is printed.  This aids visual diffs.
1999-11-07 04:14:55 +00:00
chris
acbbb4b3d0 Fix spelling errors.
(``compatible'' is misspelled here as ``compatable'')
1999-11-07 01:24:47 +00:00
mjacob
da942d127a add in actual getenv_quad function 1999-11-07 01:10:30 +00:00
mjacob
2bae3498f7 add in getenv_quad function 1999-11-07 01:09:20 +00:00
eivind
30b19c9c5d Change spaces to tabs where appropriate 1999-11-06 23:51:29 +00:00
eivind
6d7bd82cc0 Options cleanup.
* GC unused options
* Move options that exist on all architectures to conf/options
* Add missing options to LINT
* Sort undocumented options list in LINT

Reviewed by:	green
1999-11-06 23:41:10 +00:00