Commit Graph

115840 Commits

Author SHA1 Message Date
keramida
01f74ff905 Add a manpage for pthread_atfork(3). This copies a lot of the text of
the Open Group manpage for pthread_atfork(), available online at:

http://www.opengroup.org/onlinepubs/009695399/functions/pthread_atfork.html

which should be ok, since Daniel Eischen had mailed me about Open
Group manpages and the fact that they have granted permission to
FreeBSD to use their material.  Any differences from the OG text are
my changes to the original manpage text submitted by Alex Vasylenko:

- In an effort to clean up the part that describes hooks and their
  calling order, I used a list instead of a single paragraph for all the three
  types of fork() hooks.
- After a short discussion with Dima Dorfman a long long time ago in a
  far away galaxy, I changed the RETURN VALUES section to look more
  like the rest of the pthread_xxx.3 manpages.

PR:		docs/68201
Submitted by:	Alex Vasylenko <lxv@omut.org>
2005-05-18 16:23:11 +00:00
harti
deeed3d418 Get rid of global variables for argument vectors produced by brk_string()
introduce a struct that holds all the information about an argument
vector and pass that around.

Author:		Max Okumoto <okumoto@ucsd.edu>
Obtained from:	DragonFlyBSD
2005-05-18 14:50:35 +00:00
keramida
4baf0ffaa0 Properly trim the header line too, to fix wrap-around problems that
have been noticed by running top(1) in terminals that are too narrow
(or on systems with usernames that were too long, pushing everything
too far to the right).

Note that this does *not* solve the wrap-around problem of the system
statistics, which is an entirely different matter :-/

Tested on:	i386, sparc64 (panther), amd64 (sledge)
Approved by:	davidxu (in principle)
2005-05-18 13:48:33 +00:00
keramida
f6e22d2f69 (1) Revert unnecessary indentation changes I committed as part of the
last version and (2) remove a disabled debugging fprintf() that I
accidentally committed here.

Noticed by:	simon (2)
2005-05-18 13:42:51 +00:00
keramida
f5713ae407 Merge the CPU and WCPU columns in a single %6.2f column, add a new 'C'
command that toggles between the two and update the ORDER_PCTCPU()
macro to sort correctly by the visible "cpu" value.

This saves 6 more columns in 80-column terminals, making things a lot
better for the COMMAND column.

Tested on:	i386, sparc64 (panther), amd64 (sledge)
Approved by:	davidxu (in principle)
2005-05-18 13:30:08 +00:00
keramida
7749917643 Switch to WARNS=2 instead of tinkering directly with CFLAGS (level 2 was
picked because higher warn levels are broken for ftp-proxy at the moment).

Approved by:	mlaier
2005-05-18 12:19:50 +00:00
bz
f1f2d94600 Correct 32 vs 64 bit signedness issues.
Approved by:	pjd (mentor)
MFC after:	2 weeks
2005-05-18 08:57:31 +00:00
alc
421236973c Convert to the faster bus_dmamap_load_mbuf_sg() interface.
MFC after: 1 week
2005-05-18 07:45:08 +00:00
harti
d7b63cad99 Get rid of the ReturnStatus obscuration that was anyway used only
in two places. While here don't bother returning anything from
Lst_Replace - nobody ever checks the return code.

Suggested by:	jmallet
2005-05-18 06:50:39 +00:00
ps
68e09d0e74 Support passthru ioctl commands from 32bit binaries. 2005-05-18 05:31:34 +00:00
kan
e4be44300b Unbreak r1.11 by delhij. Blind change from unsigned to signed char
pointer causes problems with sign extension and leads to compress(1)
dumping core on any non-trivial incoming data.
2005-05-18 05:24:08 +00:00
des
8707d40ad6 Ugh. Previous commit got the logic exactly backward.
Submitted by:	bland
Pointy hat to:	des
2005-05-17 18:23:03 +00:00
keramida
5b8c191c8a Add manpages for devfs.conf and devfs.rules. These have been
initially written by Roland, but hacked for a while by me.  Any
good parts are the results of Roland's hard work.  Any typos or
style mistakes are mine.

Submitted by:	Roland Smith <rsmith@xs4all.nl>
PR:		docs/63808, docs/75433, docs/80458, docs/80459
MFC after:	2 weeks
2005-05-17 17:52:27 +00:00
obrien
bca87b9306 Clean up an additional file. 2005-05-17 17:48:26 +00:00
obrien
5c77bb4195 Don't use a patch w/in /usr/src. Programmatically change files when needed. 2005-05-17 17:46:29 +00:00
le
74d870cb06 When a drive dies, don't call g_wither_geom() directly, but instead
post an event to the geom event queue that will take care of it,
letting outstanding bios finish, and closing the consumers.

Plus some cosmetic clean ups.
2005-05-17 16:38:30 +00:00
obrien
f95df4a3be Re-enable support for bzip2'ed compressed filesystems. 2005-05-17 16:22:54 +00:00
obrien
5afe563c0f Clarify the header. 2005-05-17 15:03:50 +00:00
ru
267abaa5e8 Add temporary patches to make one-true-awk respect locale's collating order
in [a-z] bracket expressions, until a more complete fix (like handing BREs)
is ready.

Prodded by:	ache
OK'ed by:	tjr
2005-05-17 14:54:33 +00:00
ru
38af53dc2b Fix the contents of the underneath .depend files and "make checkdpadd". 2005-05-17 14:29:06 +00:00
ru
0c33179d06 Strip the initial world some more. 2005-05-17 14:24:33 +00:00
ru
5b2b487e28 Recover the original Berkeley RCS id, and fix the description of
format for source files when it comes to $FreeBSD$.
2005-05-17 14:20:42 +00:00
sos
583dcb6e04 Make certain the the 48bit flag is reset if we dont translate LBA. 2005-05-17 12:31:54 +00:00
glebius
b27cb38071 - Unwind NG_SEND_MSG_PATH() macro and merge it with already unwinded
version under TRACE_MESSAGES.
- Pass NG_WAITOK flag to ng_package_data() in unwinded macro.
2005-05-17 12:18:13 +00:00
des
5cbe633055 Revision 1.173 broke updating a mount from ro to rw. Fix that by clearing
the MNT_RDONLY flag if MNT_UPDATE is set and "ro" was not specified.

Suggested by:	cognet
2005-05-17 12:00:43 +00:00
ru
43e9a51528 Correct the script name to be "zless.sh". This avoids an extra cp/chmod
(from the sys.mk rule) while still installing it under the "zless" name.
2005-05-17 11:41:01 +00:00
des
3b843955dc Add a zless script which invokes less using the lesspipe script. This is
similar to the zmore script that comes with gzip (and in fact, in most
Linux distros, zless is a symlink to that very same zmore script) but has
the advantage that you get the correct file name on the less status line,
and can use :n and :p to navigate back and forth between multiple files.

MFC after:	1 week
2005-05-17 11:14:11 +00:00
des
91d11c902a Handle presumably uncompressed files with cat; exec the handlers.
MFC after:	1 week
2005-05-17 11:08:11 +00:00
jcamou
da7c355b94 Correct script path.
PR:		docs/80948
Submitted by:	anonymous coward
Approved by:	trhodes (mentor)
MFC after:	2 days
2005-05-17 03:54:52 +00:00
mikeh
5a05b201bf This commit was generated by cvs2svn to compensate for changes in r146309,
which included commits to RCS files with non-trunk default branches.
2005-05-17 03:11:29 +00:00
mikeh
7e8a9605b1 Import latest NetBSD version...changes:
* Whitespace and gcc 4.x fixes.
 * Fix deallocation bug in fetch.c.
 * Implement timeouts for accept(2) and connect(2),
   which accept timeout values with '-q quittime'.
   (intended to help with active mode through firewalls)
 * Fix bin/77158 by Ryoji Kanai <rkanai@eeye.com>.
2005-05-17 03:11:29 +00:00
obrien
40b2656757 Temporarily disable support for bzip2'ed compressed filesystems, until a
maintainable why of handling them is created.
2005-05-17 01:44:37 +00:00
keramida
79cf1499df Remove a duplicate 'comment' to fix the syntax of a sentence. 2005-05-17 01:25:57 +00:00
imp
0a06c14070 Ignore sigpipe so we can properly detach clients to the pipe.
Submitted by: Fredrik Lindberg
2005-05-16 20:51:46 +00:00
glebius
77edb2e390 Use NG_QUEUE instead of constant. 2005-05-16 19:52:42 +00:00
ps
14cc31aefa Introduce routines to alloc/free sack holes. This cleans up the code
considerably.

Submitted by:   Noritoshi Demizu.
Reviewed by:    Raja Mukerji, Mohan Srinivasan.
2005-05-16 19:26:46 +00:00
ru
f50330fcc6 Update for the 2005/04/24 import. 2005-05-16 19:19:32 +00:00
glebius
c345a44978 Refactor places where ng_package_data() failed.
Suggested & reviewed by:	archie
2005-05-16 19:12:57 +00:00
ru
d71d4ad24f This commit was generated by cvs2svn to compensate for changes in r146299,
which included commits to RCS files with non-trunk default branches.
2005-05-16 19:11:36 +00:00
ru
78d66df18b Vendor import of bwk's 24-Apr-2005 release. 2005-05-16 19:11:36 +00:00
obrien
94d5734797 Update to match the 1.0.3 import. 2005-05-16 18:56:30 +00:00
glebius
68f4ec448c - Fix build with TRACE_MESSAGES on.
- Reformat code under TRACE_MESSAGES to make it more readable.
- Move linker hackery out of #ifdef.
- Break long lines in linker hackery block.
2005-05-16 18:50:26 +00:00
obrien
22f4984a15 This commit was generated by cvs2svn to compensate for changes in r146293,
which included commits to RCS files with non-trunk default branches.
2005-05-16 18:31:55 +00:00
obrien
344ba35988 Virgin import (trimmed) of Bzip2 version 1.0.3. 2005-05-16 18:31:55 +00:00
obrien
58bca855c9 Hardcode username to 8 characters. This makes top(1) output sane when
there are users on the system (even if not running a single process)
with a login > 8 chars.
I'm not all that happy limiting the username width like this, but it
restores sanity to top(1) output.

Discussed with:	keramida
2005-05-16 18:17:38 +00:00
glebius
fc83efdf8d Close race between node being shutdown and socket being detached. To
do this, obtain netgraph locking in detach method via ng_send_fn1().

Reviewed by:	julian
MFC after:	2 weeks
2005-05-16 17:25:49 +00:00
emax
0188077c49 Dont clear all flags in vkbd_clear_state_locked(). Clear only COMPOSE flag.
MFC after:	3 days
2005-05-16 17:21:10 +00:00
obrien
68a4ff5645 Enable lukemftpd for 6.0-RELEASE. 2005-05-16 17:12:23 +00:00
glebius
8242e3e911 Catch up with new ng_package_data(). 2005-05-16 17:10:08 +00:00
glebius
3e1d9ac450 Catch up with new ng_package_data(). Use NG_WAITOK on userland
path.
2005-05-16 17:09:35 +00:00