Commit Graph

112195 Commits

Author SHA1 Message Date
mlaier
c215a49d17 Fix sloppy use of "manpage", bump .Dd where applicable and rename RED to
Random Early Detection (not ... Drop) in order to be consistent with other
documentation on ALTQ

Pointed out by:	simon, ru, Brad Davis
2005-02-07 23:20:12 +00:00
krion
3524e28954 Introduce three new targets for ports collection:
showconfig-recursive, rmconfig-recursive and config-conditional.

MFC after:	3 days
2005-02-07 23:04:33 +00:00
jhb
f9d6328717 - Implement ibcs2_emul_find() using kern_alternate_path(). This changes
the semantics in that the returned filename to use is now a kernel
  pointer rather than a user space pointer.  This required changing the
  arguments to the CHECKALT*() macros some and changing the various system
  calls that used pathnames to use the kern_foo() functions that can accept
  kernel space filename pointers instead of calling the system call
  directly.
- Use kern_open(), kern_access(), kern_execve(), kern_mkfifo(), kern_mknod(),
  kern_setitimer(), kern_getrusage(), kern_utimes(), kern_unlink(),
  kern_chdir(), kern_chmod(), kern_chown(), kern_symlink(), kern_readlink(),
  kern_select(), kern_statfs(), kern_fstatfs(), kern_stat(), kern_lstat(),
  kern_fstat().
- Drop the unused 'uap' argument from spx_open().
- Replace a stale duplication of vn_access() in xenix_access() lacking
  recent additions such as MAC checks, etc. with a call to kern_access().
2005-02-07 22:02:18 +00:00
jhb
5998019ec8 - Implement svr4_emul_find() using kern_alternate_path(). This changes
the semantics in that the returned filename to use is now a kernel
  pointer rather than a user space pointer.  This required changing the
  arguments to the CHECKALT*() macros some and changing the various system
  calls that used pathnames to use the kern_foo() functions that can accept
  kernel space filename pointers instead of calling the system call
  directly.
- Use kern_open(), kern_access(), kern_msgctl(), kern_execve(),
  kern_mkfifo(), kern_mknod(), kern_statfs(), kern_fstatfs(),
  kern_setitimer(), kern_stat(), kern_lstat(), kern_fstat(), kern_utimes(),
  kern_pathconf(), and kern_unlink().
2005-02-07 21:53:42 +00:00
jhb
9d150dd27b Implement a kern_pathconf() wrapper for pathconf() which can take the
filename from either a user space or a kernel space pointer.
2005-02-07 21:46:43 +00:00
jhb
63b487c2e2 If the pointer to the new itimerval is NULL in kern_setitimer(), just
read the old value via kern_getitimer().
2005-02-07 21:45:48 +00:00
stefanf
bfdfdd4603 Avoid usage of implicit int. 2005-02-07 21:42:16 +00:00
stefanf
45c5b18dc3 Include <stdlib.h> for exit(). 2005-02-07 21:41:26 +00:00
stefanf
891b46e75f Add a prototype for localupdate(). 2005-02-07 21:40:24 +00:00
des
c1fc790a82 Add chroot. It can be a real lifesaver, and adds less than 2 kB. 2005-02-07 21:19:18 +00:00
ru
4d38744415 An aggressive little script I used to trim out duplicate fortunes. 2005-02-07 21:15:16 +00:00
ru
82f6fa7730 Trim more cookies, by playing with different hash functions,
e.g., by trimming all non-alphabet characters and whitespace,
converting to lowercase, and considering only first (or last)
N letters (maybe only consonants).  The fortune editor then
displays all fortunes that have the same hash, and allows to
remove one of them.  The rest is written to stdout.
2005-02-07 21:00:20 +00:00
glebius
cfaa326e4e Use if_link_state_change() instead of rt_ifmsg(). Remove include net/route.h.
Reviewed by:	wpaul, sam
2005-02-07 19:39:29 +00:00
jhb
f646492e8a - Use kern_{l,f,}stat() and kern_{f,}statfs() functions rather than
duplicating the contents of the same functions inline.
- Consolidate common code to convert a BSD statfs struct to a Linux struct
  into a static worker function.
2005-02-07 18:47:28 +00:00
jhb
dac2792369 Make linux_emul_convpath() a simple wrapper for kern_alternate_path(). 2005-02-07 18:46:05 +00:00
jhb
647b63147d - Tweak kern_msgctl() to return a copy of the requested message queue id
structure in the struct pointed to by the 3rd argument for IPC_STAT and
  get rid of the 4th argument.  The old way returned a pointer into the
  kernel array that the calling function would then access afterwards
  without holding the appropriate locks and doing non-lock-safe things like
  copyout() with the data anyways.  This change removes that unsafeness and
  resulting race conditions as well as simplifying the interface.
- Implement kern_foo wrappers for stat(), lstat(), fstat(), statfs(),
  fstatfs(), and fhstatfs().  Use these wrappers to cut out a lot of
  code duplication for freebsd4 and netbsd compatability system calls.
- Add a new lookup function kern_alternate_path() that looks up a filename
  under an alternate prefix and determines which filename should be used.
  This is basically a more general version of linux_emul_convpath() that
  can be shared by all the ABIs thus allowing for further reduction of
  code duplication.
2005-02-07 18:44:55 +00:00
jhb
5e528b5070 Various and sundry style fixes. 2005-02-07 18:38:29 +00:00
jhb
2c7e7dd8d1 Use linux_emul_convpath() rather than linux_emul_find() as
linux_emul_find() is going away.
2005-02-07 18:37:51 +00:00
jhb
8445b79e5e Use the LCONVPATHEXIST() macro rather than it's exact expansion to be
consistent.
2005-02-07 18:37:13 +00:00
jhb
f610b4c10e Use kern_setitimer() to implement linux_alarm() instead of fondling the
real interval timer directly.
2005-02-07 18:36:21 +00:00
jhb
64fc2780d1 Use kern_open() directly rather than a stackgap detour via open(). 2005-02-07 18:22:20 +00:00
jhb
87ddea3743 Drop Giant before calling kthread_exit(). 2005-02-07 18:21:50 +00:00
mdodd
a3005af0ee Avoid using tsleep() in the resume path as it may result in the
system hanging if timer interrupts aren't running yet.

This allows my Thinkpad to resume successfully with APM.

Approved by:	 sos
MFC after:	 2 weeks
2005-02-07 17:14:42 +00:00
harti
485e8761fa Remove an unneeded check. 2005-02-07 16:33:57 +00:00
harti
98626d276b Introduce a typedef for variable value modifation functions and use it
where appropriate.

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
2005-02-07 16:27:19 +00:00
harti
37073a92c1 Make the intention of a loop clearer.
Submitted by:	Max Okumoto <okumoto@ucsd.edu>
2005-02-07 15:51:51 +00:00
phk
002c1cefd3 Add VNASSERT() which is just like KASSERT() but takes a vnode argument
which it will vn_printf() if it triggers.
2005-02-07 12:56:19 +00:00
nyan
0e1a43a2c6 Remove unused defines. 2005-02-07 12:23:07 +00:00
mlaier
b5362e3053 Be more verbose about altq SYNOPSIS and add more linkage in the relating pf
documents.

Inspired by:	scottl
Reviewed by:	Brad Davis <so14kNOso14kSPAMcom>
MFC after:	3 days
2005-02-07 11:46:36 +00:00
sobomax
ddb8a0e92d Fix the problem with incorrect throttling level reported immediately after
reboot. Safter the reboot the TCC is usually in the Automatic mode, in which
reading current performance level is likely to produce bogus results make sure
to switch it to the On-Demand mode and set to some known performance level.
Unfortunately there is no reliable way to check that TCC is in the Automatic
mode. Reading bit 4 of ACPI Thermal Monitor Control Register produces 0
regardless of the current mode.

MFC after:	1 week
2005-02-07 11:35:24 +00:00
harti
1ac48ffc00 Introduce Buf_StripNewLines() and use it where appropriate.
Submitted by:	Max Okumoto <okumoto@ucsd.edu>
2005-02-07 11:27:47 +00:00
obrien
106b37b6e6 Fix "to a file" example so it works (one must touch(1) the file first). 2005-02-07 11:26:53 +00:00
glebius
09427d38f0 Improve parsing of hook name.
Submitted by:	ru
2005-02-07 11:16:07 +00:00
phk
0c9ee7f4d7 Access vmobject via the bufobj instead of the vnode 2005-02-07 10:04:06 +00:00
phk
eac727a8e3 VOP_DESTROYVOBJECT() is no more. 2005-02-07 09:26:58 +00:00
phk
a8ef1fffd7 Remove vop_stddestroyvobject() 2005-02-07 09:26:39 +00:00
phk
76e354af6c Remove vop_destroyvobject() 2005-02-07 09:23:34 +00:00
ru
1b3c547165 Fix disorder. 2005-02-07 09:15:52 +00:00
glebius
81cd48e976 Sort SEE ALSO.
Submitted by:	ru
2005-02-07 08:51:34 +00:00
ru
c5d6661edd Fix bugs in the previous commit. 2005-02-07 08:44:34 +00:00
phk
76cf1e24cc Deimplement vop_destroyvobject() 2005-02-07 08:23:36 +00:00
phk
f2c8a2d0fa Add missing isa_dmatc() function.
This may or may not be correct,  Only the pcii driver would notice and
it doesn't support PC98 yet.
2005-02-07 08:19:53 +00:00
glebius
ca5b588161 English and mdoc(7) cleanup.
Submitted by:	ru
2005-02-07 08:17:51 +00:00
phk
dd587dfc53 Remove vop_destroyvobject() initialization. 2005-02-07 08:04:24 +00:00
des
ea19410046 Sort branches in correct numeric order. 2005-02-07 07:55:00 +00:00
harti
efc7c63e63 Invent a Buf_AppendRange function that appends a non-NUL-terminated string
given by a pointer to the start of the string and a pointer one behind
the end.

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
2005-02-07 07:54:23 +00:00
harti
c9d99643c7 Invent a Buf_Append function to append a NUL-terminated string
and use it thoughout the code.

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
2005-02-07 07:49:16 +00:00
phk
12a4ce963e Don't call VOP_DESTROYVOBJECT(), trust that VOP_RECLAIM() did what
was necessary.
2005-02-07 07:48:03 +00:00
phk
945c6ee435 Add a missing prefix to a struct field for consistency. 2005-02-07 07:40:39 +00:00
delphij
2cab7fda88 Revamp several Makefile nits:
- .PATH: is spelled ``.PATH: ''
	- Don't forget to use DPADD so ``make checkdpadd'' is
	  not broken.
	- LDADD should not come with + as it's empty in the
	  first place

Suggested by:	ru
2005-02-07 05:45:38 +00:00