Commit Graph

100561 Commits

Author SHA1 Message Date
gad
f394768bc9 Fix 'ps -p proclist' and 'ps -u userlist' so the command returns non-zero
if no processes were matched.  Also sorts the list of 'int's in main, as
long as I had to add another one...

Noticed by:	Nate Lawson
MFC after:	10 days
2004-03-18 01:28:23 +00:00
sobomax
15698392d8 Regen after 1.169 of usbdevs. 2004-03-18 01:06:28 +00:00
sobomax
16168f78ca Add support for Crystalfontz CFA-632, CFA-633 and CFA-634, all of them
are based on the same USB->COM bridge, but have different product IDs.

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:  http://www.tnpi.biz/computing/freebsd/crystalfontz.shtml
MFC after:      3 days
2004-03-18 01:02:46 +00:00
obrien
e53c1911ab Mention the user account for 'pf' is "proxy". 2004-03-18 00:50:40 +00:00
obrien
476f996fcd Cleanup hints, given that no hammer machine have (nor ever will have)
ISA slots.

Submitted by:	Peter
2004-03-18 00:18:45 +00:00
alc
cdc785c45b Revise socow_iodone() in light of recent sf_buf changes. Specifically,
use sf_buf_free() instead of sf_buf_mext() to consolidate all actions
that require the page queues lock in one critical section.  While I'm
here remove unnecessary splvm() and splx() calls.
2004-03-17 23:25:04 +00:00
gad
2be94642b1 Improvements to 'ps -p <x>'. If <x> is a process id that does not exist, then
just print the header (if any) and exit, thus matching the behavior on -stable
and other OS's.

Also adds support for <x> being a comma-separated list of processes, and does
a much better checking for invalid-values of <x>, such as 'ps -p someword'.

Reviewed by:	mentioned on freebsd-current
MFC after:	10 days
2004-03-17 22:46:58 +00:00
green
e64815258e Eliminate bogus usage of WI_RSSI_TO_DBM(). Not only does it bogusly
clip/destroy the dB value contained in the wi(4)'s receive frames,
it doesn't match with the flag set in the radiotap header
(unperturbed dB versus dBm).
2004-03-17 21:54:52 +00:00
njl
192bc5e074 Fix border error to allow systems that specify 100 for latency also use
C2 and 1000 to use C3.

Submitted by:	Bruno Ducrot <ducrot@poupinou.org>
Tested by:	Scott Lambert <lambert@lambertfam.org>
2004-03-17 21:49:47 +00:00
jmg
d0aeb53015 sync comment with i386's isa.c.. This removes a comment that is YEARS
old...
2004-03-17 21:45:55 +00:00
mlaier
f2c86dc162 Style(9) round for the pf kernel parts. Mostly #if defined() -> #ifdef
Also set HOOK_HACK to true (remove the related #ifdef's) as we have the
hooks in the kernel this was missed during the merge from the port.

Noticed by:	Amir S.	(for the HOOK_HACK part)
Approved by:	bms(mentor)
2004-03-17 21:11:02 +00:00
pjd
ddd3cc965e Add a comment with an explanation why we don't report EPIPE errors on
nfs sockets.

Requested by:	ru
2004-03-17 21:10:20 +00:00
ru
c0a913104f NULL -> 0. 2004-03-17 20:50:25 +00:00
ru
5f8fcad2f0 NULL -> 0. 2004-03-17 20:19:45 +00:00
ru
d24f1eaf71 Fixed a warning. 2004-03-17 20:10:59 +00:00
jhb
599ea5a1c4 - Replace wait1() with a kern_wait() function that accepts the pid,
options, status pointer and rusage pointer as arguments.  It is up to
  the caller to copyout the status and rusage to userland if needed.  This
  lets us axe the 'compat' argument and hide all that functionality in
  owait(), by the way.  This also cleans up some locking in kern_wait()
  since it no longer has to drop locks around copyout() since all the
  copyout()'s are deferred.
- Convert owait(), wait4(), and the various ABI compat wait() syscalls to
  use kern_wait() rather than wait1() or wait4().  This removes a bit
  more stackgap usage.

Tested on:	i386
Compiled on:	i386, alpha, amd64
2004-03-17 20:00:00 +00:00
jmg
14c649b54b remove stale comment since these limits have been increased YEARS ago... 2004-03-17 19:04:58 +00:00
obrien
ed896f3934 I accidently spammed rev. 1.18, back out rev 1.19. 2004-03-17 18:38:07 +00:00
pjd
949ae115d1 Don't report EPIPE errors on nfs sockets. These can be due to idle tcp
mounts which will be closed by netapp, solaris, etc. if left idle too long.

Obtained from:	NetBSD
2004-03-17 18:10:38 +00:00
njl
6bcc4e8616 Convert callers to the new bus_alloc_resource_any(9) API.
Submitted by:	Mark Santcroos <marks@ripe.net>
Reviewed by:	imp, dfr, bde
2004-03-17 17:50:55 +00:00
nectar
4adf939103 Resolve conflicts after import of OpenSSL 0.9.7d. 2004-03-17 17:44:39 +00:00
njl
fecdfcc0ce Add bus_alloc_resource_any(9), which does bus_alloc_resource() with the
appropriate default values.  Document it in the manpage.

Submitted by:	Mark Santcroos <marks@ripe.net>
Reviewed by:	imp, dfr, bde
Abstains:	bde
2004-03-17 17:40:34 +00:00
nectar
da6e142956 Update manual pages for OpenSSL 0.9.7d. 2004-03-17 16:15:46 +00:00
nectar
4c9871f3f1 This commit was generated by cvs2svn to compensate for changes in r127128,
which included commits to RCS files with non-trunk default branches.
2004-03-17 15:49:33 +00:00
nectar
035d311d10 Vendor import of OpenSSL 0.9.7d. 2004-03-17 15:49:33 +00:00
brueffer
b396bd54d1 Fix typo 2004-03-17 14:07:44 +00:00
brueffer
5fbc4f5af7 o Start sentences on new lines
o misc format fixes
2004-03-17 14:06:57 +00:00
brueffer
7c2905a7f0 Language cleanup 2004-03-17 13:55:40 +00:00
brueffer
4417d43ca8 Language cleanup 2004-03-17 13:41:37 +00:00
pjd
f7a32f78bd Fix information leakage.
Without this fix it is possible to cheat policies like:
- sysctl security.bsd.see_other_[gu]ids=0,
- mac_seeotheruids(4),
- jail(2)
and get full processes list with their arguments.

This problem exists from revision 1.62 of kern_proc.c when it was
introduced.

Reviewed by:	nectar, rwatson.
2004-03-17 13:19:43 +00:00
rwatson
11985f1137 Make ddp_ports static, as it's not used outside of ddp_usrreq.c.
Inspired by:	Day spent hiking to hot springs in Taiwan
Powered by:	Asia BSDCon 2004
2004-03-17 12:54:21 +00:00
tjr
d4bcc39215 Update list of macros defined in <stdio.h>. 2004-03-17 12:54:06 +00:00
tjr
10405d5b20 Re-add description of putc() macro (back out rev. 1.13.) 2004-03-17 12:46:17 +00:00
tjr
3ca65d030e Re-add text that says getc() is a macro (back out rev. 1.16.) 2004-03-17 12:37:28 +00:00
nectar
575402800c Correct a denial-of-service vulnerability in OpenSSL (CAN-2004-0079).
Obtained from:	OpenSSL CVS (http://cvs.openssl.org/chngview?cn=12033)
2004-03-17 12:11:08 +00:00
nectar
384b7d32e0 This commit was generated by cvs2svn to compensate for changes in r127114,
which included commits to RCS files with non-trunk default branches.
2004-03-17 12:11:08 +00:00
ceri
78cc6560a8 Correct a grammatical error.
PR:		docs/63984
Submitted by:	Ulrich Spoerlein <q@uni.de>
MFC after:	1 day
2004-03-17 11:35:23 +00:00
ru
acc148ae6b Improved incorrect usage diagnostics. 2004-03-17 11:06:40 +00:00
ru
45bb56a20f Trust bsd.prog.mk to set SRCS correctly. 2004-03-17 10:52:12 +00:00
ru
6756195e44 GC unnecessary include file. 2004-03-17 10:51:18 +00:00
cperciva
50a313cf7a Adjust the number of processes waiting on a semaphore properly if we're
woken up in the middle of sleeping.

PR:		misc/64347
Reviewed by:	tjr
MFC after:	7 days
2004-03-17 09:37:13 +00:00
nyan
c74196c09e Move the _arlconfig define in the existing i386 section.
Suggested by:	ru
2004-03-17 08:50:17 +00:00
obrien
39a4fe0fc5 This commit was generated by cvs2svn to compensate for changes in r127105,
which included commits to RCS files with non-trunk default branches.
2004-03-17 07:58:36 +00:00
obrien
7f0aa068a8 Avoid the whole -I${DESTDIR}/usr/include/gnu issue by including
<gnu/regex.h> vs. just <regex.h>.
2004-03-17 07:40:42 +00:00
obrien
c24107a5ba Adjust $FreeBSD$'s. 2004-03-17 03:43:53 +00:00
davidxu
93f8864874 Fix a POSIX conformance bug. POSIX says sigwait should return error number
in return value not in errno.
2004-03-17 02:12:19 +00:00
gad
0cbfee3710 Add a tip for people who are using database-related ports on a sparc64
system that they intend to upgrade to 64-bit time_t.

Noticed by:	Roderick van Domburg
2004-03-17 01:59:47 +00:00
tjr
9469c7e168 Re-add macro versions of getc(), getchar(), putc(), putchar(), feof(),
ferror(), fileno() and clearerr(), using the value of __isthreaded to
decide between the fast inline single-threaded code and the more
general function equivalent. This gives most of the performance
benefits of the old unsafe macros while preserving thread safety.
2004-03-17 01:43:08 +00:00
rwatson
874a248964 Remove tun_proc; replace with tun_pid. tun_proc pointer may be stale
as the process that opens tun_softc can exit before the file
descriptor is closed.

Taiwan experience provided by:	keichii
Crashing breakers provided by:	Chia-liang Kao <clkao@clkao.org>
2004-03-17 01:12:09 +00:00
rwatson
bca708fe60 Add tap_mtx to tap_softc in order to protect per-softc variables
(tap_pid, tap_flags).  if_tap should now be entirely MPSAFE.

Committed from:			Bamboo house by ocean in Taiwan
Tropical paradise provided by:	Chia-liang Kao <clkao@clkao.org>
2004-03-17 01:09:59 +00:00