Commit Graph

1165 Commits

Author SHA1 Message Date
nathanw
817925442c Add pthread_atfork() man page. 2003-02-13 03:00:51 +00:00
nathanw
4fb740b8de Implement pthread_atfork() (in libc, because the required threadlib
stub behavior is exactly the same as the usual behavior).
2003-02-13 02:50:48 +00:00
wiz
5693d445c1 Drop trailing whitespace. 2003-02-10 15:31:08 +00:00
elric
1b4eceb53f When looking up gids with hesiod, use the gid map and fall back to the
group map.

Addresses PR lib/20145
2003-02-03 04:22:20 +00:00
kleink
71d7654509 Add sysconf(3) knobs for recent additions. 2003-02-02 20:33:05 +00:00
uwe
4eb408dcd9 Avoid cgetcap &co prototypes conflicting with those provided by the host.
With this change we can cross-compile on FreeBSD 4.x.
2003-01-31 20:50:29 +00:00
wiz
9b5abffe9d Add makecontext(3) from Klaus Klein. 2003-01-21 12:39:08 +00:00
dsl
fa36c8783f Ignore groups beyond _SC_NGROUPS_MAX (as man page)
Ensure kernel doesn't pick up random numbers (would happen if _SC_NGROUPS_MAX
> NGROUPS)
(change agreed by christos)
2003-01-19 18:26:16 +00:00
thorpej
3fdac2b8c5 Merge the nathanw_sa branch. 2003-01-18 10:52:16 +00:00
kleink
f18fe39c3f Pasto; from Thomas Klausner. 2003-01-16 00:46:58 +00:00
wiz
ec87827023 typo fixes. 2003-01-16 00:33:12 +00:00
kleink
140dae96a7 Rename auto variable shading global sigset(). 2003-01-15 23:58:03 +00:00
kleink
30a90a73b4 Add sighold(3), sigignore(3), sigrelse(3) and sigset(3) to libc.
Fixes PR lib/19212, now redesignated standards/19212, from David Laight.
2003-01-15 23:55:41 +00:00
mjl
71b7c0b242 Fix typos (from PR 19650) 2003-01-03 21:41:28 +00:00
jschauma
432d470724 Fix typos pointed out by Igor Sobrado in PR misc/19621. 2003-01-02 00:22:29 +00:00
kleink
ac7290d7c2 Add a sysconf(3) knob for {ATEXIT_MAX}. 2002-12-19 23:31:54 +00:00
wiz
09f7a7aee7 new sentence, new line. 2002-12-18 20:17:43 +00:00
wiz
90ad988049 exec lives in section 3, not 2. 2002-12-18 20:13:06 +00:00
jdolecek
5fd22809a5 Add kern.forkfsleep sysctl - set/get time (in miliseconds) for which
process would be forced to sleep in fork() if it hits either global
or user maxproc limit. Default is zero (no forced sleep).
Maximum is 20 seconds.
2002-12-11 19:14:34 +00:00
scw
39a5a9dc76 Add two sysctls: kern.labelsector and kern.labeloffset.
These are of use to userland code which previously depended on the
hard-coded values of LABELSECTOR and LABELOFFSET to figure out the
location of the disklabel for a particular platform.

With the introduction of umbrella ports such as evbarm, evbmips, etc,
the location of the disklabel may vary between kernels for the same
MACHINE. This sysctl will allow userland programs to remain independent
of the particular flavour of MACHINE in such cases.
2002-12-11 12:59:29 +00:00
grant
5872a250a6 fix typo in comment. 2002-12-04 13:08:35 +00:00
christos
39f2f97867 lib/19176: Onno van der Linden: execl is called with too few arguments. 2002-11-26 16:52:07 +00:00
fvdl
370e22c9fd Enable ELF32 nlist (as well as ELF64) for x86-64. 2002-11-23 19:28:45 +00:00
itojun
233424cdc2 make sure to bound string operation by strlcpy
(there are bunch of "strcpy is safe" comments, i think we should change them
to strlcpy as much as possible)
2002-11-17 20:49:33 +00:00
itojun
9134efabd0 use strlcpy where it is more appropriate. 2002-11-17 01:51:24 +00:00
kleink
792483ae22 Review oversight: ENOSR: resource -> resources, which is what the
standard says, and which fits the resource allocation failure better.
2002-11-12 10:28:27 +00:00
skrll
b207990164 Add the missing errno symbols that are defined in IEEE Std 1003.1-2001.
The language message files need updating.

Change reviewed and OK'd by Klaus Klein.
2002-11-12 08:20:02 +00:00
thorpej
4747ad6ea7 Fix signed/unsigned comparison warnings. 2002-11-11 19:25:38 +00:00
thorpej
1289029f10 Fix signed/unsigned comparison warnings. 2002-11-11 17:56:11 +00:00
thorpej
045cceecae Fix signed/unsigned comparison warnings. 2002-11-11 17:13:59 +00:00
thorpej
fd128e9fb6 Fix signed/unsigned comparison warnings. 2002-11-11 16:50:34 +00:00
thorpej
37dfab8a5b Fix signed/unsigned comparison warnings. 2002-11-11 06:24:08 +00:00
thorpej
20b98814a9 Fix signed/unsigned comparison warnings. 2002-11-11 01:12:04 +00:00
enami
b7ac697dae s/than than/than/. 2002-11-08 02:05:16 +00:00
wiz
8074ecd2c3 New sentence, new line (hi manu!). Drop trailing whitespace. 2002-11-07 12:11:00 +00:00
manu
9a4dfe85fa Added two sysctl-able flags: proc.curproc.stopfork and proc.curproc.stopexec
that can be used to block a process after fork(2) or exec(2) calls. The
new process is created in the SSTOP state and is never scheduled for running.

This feature is designed so that it is esay to attach the process using gdb
before it has done anything.

It works also with sproc, kthread_create, clone...
2002-11-07 00:22:28 +00:00
wiz
68ab92d7a4 Add some _DIAGASSERTS(). Ok'd by christos. 2002-10-25 20:42:02 +00:00
provos
6875b78ca7 readlink(2) does not NUL-terminate, use with sizeof (buf-1).
from deraadt@openbsd.org; approved thorpej.
2002-10-19 18:58:32 +00:00
tron
12b88f0269 Fix lint error. 2002-10-17 11:36:39 +00:00
wiz
7b3758d0d4 Use .Dq and .Sq. Fix some typos. 2002-10-17 08:41:48 +00:00
wiz
26f2e93a91 Use .Dq and .Sq. 2002-10-17 08:41:38 +00:00
thorpej
c10a556f9b Change basename(3) and dirname(3) to return a pointer to static
storage, rather than modifying their input arguments.  While not
reentrant, this is explcitly allowed by IEEE Std 1003.1-2001 (which
allows either behavior, stating that it is implementation-dependent).

The new semantics are considered less hostile/more useful by most programs
which use basename(3) and/or dirname(3) (several programs in the NetBSD
tree reimplement basename()/dirname() themselves to avoid modification
of the input argument).

This new implementation truncates results to PATH_MAX.  The Std does
not address this in the static storage case.  However since PATH_MAX
is the maximum pathname length in the Std, this should not be a problem
in practice.  Nontheless, it is noted in the BUGS section.

See the basename(3)/dirname(3) regression tests in src/regress/lib/libc.

Inspired by discussion with Niels Provos, related to PR 18647.
2002-10-17 02:06:04 +00:00
wiz
24d7aadd13 Mdoc nits, and bump date for FNM_LEADING_DIR addition. 2002-10-07 00:03:14 +00:00
provos
b899aa2abc implement FNM_LEADING_DIR; matches Linux and other *BSDs; approved thorpej 2002-10-06 03:15:45 +00:00
wiz
4141062f44 process only has one c. 2002-10-02 10:44:27 +00:00
wiz
081a23ac04 Remove mdoc macro from weird place. 2002-10-01 19:47:40 +00:00
wiz
ead46331d9 \-1 and .Dv NULL. 2002-10-01 16:59:46 +00:00
wiz
b214676aec New sentence, new line. From Robert Elz. 2002-10-01 16:48:34 +00:00
wiz
ef7dc6cc33 New sentence, new line; -1 -> \-1; simplify mdoc in one place. 2002-10-01 16:07:01 +00:00
christos
fb0b215b6c fix typo 2002-09-28 01:43:24 +00:00