Commit Graph

100546 Commits

Author SHA1 Message Date
jhb
275240297d - 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
ed6ec60972 remove stale comment since these limits have been increased YEARS ago... 2004-03-17 19:04:58 +00:00
obrien
27cc316a97 I accidently spammed rev. 1.18, back out rev 1.19. 2004-03-17 18:38:07 +00:00
pjd
f8bf3c9231 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
05a1f56fc9 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
2283471bb5 Resolve conflicts after import of OpenSSL 0.9.7d. 2004-03-17 17:44:39 +00:00
njl
c7c23f8cb0 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
58c7296bfa Update manual pages for OpenSSL 0.9.7d. 2004-03-17 16:15:46 +00:00
nectar
15b921d648 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
0f095e8a2a Vendor import of OpenSSL 0.9.7d. 2004-03-17 15:49:33 +00:00
brueffer
d269d6d966 Fix typo 2004-03-17 14:07:44 +00:00
brueffer
af2feb2357 o Start sentences on new lines
o misc format fixes
2004-03-17 14:06:57 +00:00
brueffer
d247561ee6 Language cleanup 2004-03-17 13:55:40 +00:00
brueffer
54a87c98c2 Language cleanup 2004-03-17 13:41:37 +00:00
pjd
11852bf574 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
0f33a4da2f 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
41709fbe79 Update list of macros defined in <stdio.h>. 2004-03-17 12:54:06 +00:00
tjr
dab1ed1529 Re-add description of putc() macro (back out rev. 1.13.) 2004-03-17 12:46:17 +00:00
tjr
430cbeb954 Re-add text that says getc() is a macro (back out rev. 1.16.) 2004-03-17 12:37:28 +00:00
nectar
e8232d78ab 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
5899dbda42 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
be82494534 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
1837ea9bf5 Improved incorrect usage diagnostics. 2004-03-17 11:06:40 +00:00
ru
50bea8bbbe Trust bsd.prog.mk to set SRCS correctly. 2004-03-17 10:52:12 +00:00
ru
89525cfb11 GC unnecessary include file. 2004-03-17 10:51:18 +00:00
cperciva
b9e38dc622 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
4f4289a1af Move the _arlconfig define in the existing i386 section.
Suggested by:	ru
2004-03-17 08:50:17 +00:00
obrien
0e0c5df8a9 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
87ea083bbc 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
974081911f Adjust $FreeBSD$'s. 2004-03-17 03:43:53 +00:00
davidxu
12db4373da 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
fc9687ad3c 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
b4d98c6855 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
131892ca17 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
90c4d019f1 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
fjoe
7d2d6deecf Implement "arlconfig arlX quality".
Man pages fixes.

Submitted by:	Stanislav A. Svirid <count@riss-telecom.ru>
2004-03-16 22:29:26 +00:00
hrs
8a75d9d9aa New release note:
libdisk's u_long->d_addr_t change.
2004-03-16 22:14:37 +00:00
kan
7decbcc07e Avoid doing bawrite to initialize inode block while holding cylinder
group block locked. If filesystem has any active snapshots, bawrite
can come back trying to allocate new snapshot data block from the same
cylinder group and cause panic due to recursive lock attempt.

PR:		64206
Reviewed by:	mckusick
Tested by:	pjd
2004-03-16 22:06:32 +00:00
des
3cb81148d8 Run through indent(1) so I can read the code without getting a headache.
The result isn't quite knf, but it's knfer than the original, and far
more consistent.
2004-03-16 21:30:41 +00:00
fjoe
0354260aab Fix copyrights and mandoc markup.
Pointed out by:	ru
2004-03-16 21:03:25 +00:00
des
cc22bb8b78 Use void * instead of char * to avoid violating C99 strict aliasing rules. 2004-03-16 20:45:37 +00:00
des
ce346529a3 Use unions to avoid violating C99 strict aliasing rules. 2004-03-16 20:42:02 +00:00
thierry
ffa157ec1e Approved by: mat (mentor). 2004-03-16 19:39:11 +00:00
mux
3ca8d2f211 Add explicit dependency on "ether", since we use ether_ifattach(). 2004-03-16 19:25:55 +00:00
alc
a2e820d27b Refactor the existing machine-dependent sf_buf_free() into a machine-
dependent function by the same name and a machine-independent function,
sf_buf_mext().  Aside from the virtue of making more of the code machine-
independent, this change also makes the interface more logical.  Before,
sf_buf_free() did more than simply undo an sf_buf_alloc(); it also
unwired and if necessary freed the page.  That is now the purpose of
sf_buf_mext().  Thus, sf_buf_alloc() and sf_buf_free() can now be used
as a general-purpose emphemeral map cache.
2004-03-16 19:04:28 +00:00
jhb
71c3a1c44c Remove a bogus assertion and readd it in a more correct location. A thread
might be enqueued on a sleep queue but not be asleep when the timeout fires
if it is blocked on a lock trying to check for pending signals before going
to sleep.  In the case of fixing up the TDF_TIMEOUT race, however, the
thread must be marked asleep.

Reported by:	kan (the bogus one)
2004-03-16 18:56:22 +00:00
schweikh
d54678864e Added entries for 90 columns russian VGA modes.
PR:		conf/51830
Submitted by:	Sergiy Vyshnevetskiy <serg@vostok.net>
MFC after:	1 week
2004-03-16 18:04:14 +00:00
obrien
c0b1fcdc1f Fix $FreeBSD$ ids. 2004-03-16 17:24:06 +00:00
jhb
b7e56e9eea Change libdisk and sysinstall to use d_addr_t rather than u_long for disk
addresses.  For arch's with 64-bit longs, this is a nop, but for i386 this
allows sysinstall to properly handle disks and filesystems > 1 TB.

Changes from the original patch include:
- Use d_addr_t rather than inventing a blkcnt type based on int64_t.
- Use strtoimax() rather than strtoull() to parse d_addr_t's from config
  files.
- Use intmax_t casts and %jd rather than %llu to printf d_addr_t values.

Tested on:	i386
Tested by:	kuriyama
Submitted by:	julian
MFC after:	1 month
2004-03-16 17:07:06 +00:00
sos
662b843050 Update the SiS support to distinguish older southbridges better. 2004-03-16 16:23:28 +00:00