christos
75fdb547df
PR/13242: John Heasley: ENOTDIR is not fatal
2003-03-15 04:41:17 +00:00
thorpej
65d8e7315e
HW_PHYSPAGES -> HW_PHYSMEM64, HW_USERPAGES -> HW_USERMEM64.
2003-03-06 20:39:08 +00:00
nathanw
f60f35f3ab
Don't acquire __environ_lock around exec*() calls; nothing requires
...
that these calls be thread-safe with respect to the environment, and it
causes serious problems for threaded applications which call vfork() and
exec*() (including indirectly, via popen() or system()).
Acquire and release __environ_lock in the parent in popen() and system() to
play safe and provide the child with a stable environment.
__environ_lock should also have an atfork() handler; still under development.
2003-03-04 19:44:09 +00:00
wiz
2b942861aa
Drop trailing space, mark up NULL with .Dv, break
...
lines and add section to an xref.
2003-03-03 06:45:18 +00:00
enami
eafd20b336
Fix realloc usage.
2003-03-02 14:17:07 +00:00
enami
70f9e35f63
s/indentifier/identifier/
2003-03-02 14:10:49 +00:00
jmmv
5d93e695b8
Grammar fix in return values section.
2003-03-02 14:08:24 +00:00
enami
1b1f503d7a
Cosmetic changes in sample code.
2003-03-02 14:02:35 +00:00
thorpej
3cdf0a27ee
Document net.inet.tcp.init_win_local.
2003-03-01 04:43:42 +00:00
thorpej
b4271997ce
Document hw.physpages and hw.userpages.
2003-02-27 01:42:10 +00:00
christos
ea5d0d4403
keep track if we have the file opened as readonly or readwrite, so that
...
we don't need to call update_utmp, if our euid has changed, but we still
have a write reference to the file. Solves problem with chrooting processes.
2003-02-26 19:23:25 +00:00
simonb
118763056a
Fix a tyop in a comment.
2003-02-17 00:11:54 +00:00
elric
16c5a7dd8d
Reorganise the getting of grouplists for a user so that Hesiod (and
...
potentially other name services) can directly query for a user's
grouplist rather than needing to iterate over the group map. This
is required for correct operation of Hesiod.
Reviewed by: lukem, christos
Addresses PR lib/20183
2003-02-16 01:22:44 +00:00
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
christos
c73d854002
check for write and close errors, from wiz
2002-09-28 01:34:36 +00:00
drochner
20d06f6b17
SI prefixes apply to decimal multiplies only. For binary (2^n) multiplies
...
the most "officially looking" is IEC 60027-2, ie "Ki", "Mi", ...,
which is not too popular, and which would require more code changes.
So stick with the traditional capital "K" for (divisor==1024), and use
the SI "k" otherwise (ie (divisor==1000)).
2002-09-27 18:37:43 +00:00
wiz
4a47c952db
Add documentation for utmpx and some related functions.
...
Thanks for some explanations to christos, and for some STANDARDS hints
to Klaus Klein.
2002-09-27 15:02:24 +00:00
wiz
8e14b98adf
Move comment that says 'the following are extensions' to the right place.
...
Approved by christos.
2002-09-26 17:08:42 +00:00
wiz
079c182094
Kilo abbreviation is a small k (PR 18408).
2002-09-26 15:06:47 +00:00
briggs
a94d82e6f9
Always use NetBSD's fts(3) in compat builds. Some systems (notably
...
Red Hat 7.3, at least) do not have fts(3) implementations that work
correctly with -D_FILE_OFFSET_BITS=64.
2002-09-16 04:10:36 +00:00
wiz
aae8095f40
completion, not completition; mark up errno; use \- instead of -.
2002-09-04 01:03:58 +00:00
wiz
c4beccd3bf
completion, not completition; use \- instead of -.
2002-09-04 01:03:24 +00:00
abs
a086fb2909
Move humanize_number(3) from libutil to libc as per discussion on tech-misc
...
Revert minor number bump on libutil (with note to skip it next update), and
bump libc.
2002-08-22 17:24:08 +00:00
wiz
158398c921
Fix Ns abuse.
2002-08-20 15:32:12 +00:00
wiz
75c7529338
Update Dd for recent changes.
2002-08-10 09:17:49 +00:00
wiz
6fb8244813
Fix formatting glitch, end sentence with a dot, and use Nm instead of
...
a self-Xr. Update Dd for recent changes.
2002-08-10 09:14:59 +00:00
wiz
1598a31de5
Update Dd for recent changes.
2002-08-10 09:13:47 +00:00
yamt
3bb8b93140
more about sigsetjmp/siglongjmp.
...
from openbsd.
2002-08-10 05:05:24 +00:00
yamt
de3baf756c
note about "too many groups" case.
...
from openbsd.
2002-08-10 04:50:39 +00:00
yamt
9ec2d4f3ab
default path doesn't contain current directory anymore.
...
from openbsd.
2002-08-10 03:08:15 +00:00
yamt
a5c077a75d
reflect change of default path.
...
from openbsd.
2002-08-10 03:06:15 +00:00
yamt
cd9128e6e2
- move a example into EXAMPLES section.
...
- check a return value of opendir.
from openbsd.
2002-08-10 02:55:20 +00:00
tron
2f9d1834f5
Include "sys/param.h" and use "MATHPATHLEN" instead of "_POSIX_PATH_MAX"
...
to fix build problem.
2002-08-04 11:55:51 +00:00
nathanw
b18986f532
#include <string.h> for prototypes of strlen and strcpy.
2002-08-01 23:46:37 +00:00
christos
f04f8bc949
add utmpname()
2002-07-28 21:45:39 +00:00
christos
f084e3ca9b
make this behave like utmp, ie. return all entries and setutent() rewinds.
2002-07-28 20:46:43 +00:00
christos
a2e4cf52ec
use the fname we passed in.
2002-07-28 00:45:11 +00:00
christos
7908c76c97
Add utmp processing functions
2002-07-27 23:57:39 +00:00
christos
fef92308ac
add lastlogx implementation.
2002-07-27 19:38:29 +00:00
christos
d1ccf94413
reset fp when we are done with it.
2002-07-27 15:44:45 +00:00
simonb
e438da348e
Sprinkle some KNF.
2002-07-23 00:03:36 +00:00
scw
4c8e482124
Add SH5 support. (Missed these during the last sweep of my local tree)
2002-07-11 21:46:21 +00:00
wiz
1d92e86fd4
Remove Xrefs to ourselves in SEE ALSO.
2002-07-10 23:31:32 +00:00
wiz
d3bfd7c06d
Drop trailing space.
2002-07-10 23:31:07 +00:00
wiz
95238a678f
Sort SEE ALSO.
2002-07-10 23:30:48 +00:00
yamt
673cbedc13
import CAVEATS sections from OpenBSD.
...
with little tweak by me.
2002-07-10 14:37:12 +00:00
yamt
cd7f302646
s/resolved_name/resolvedname/g
...
s/resolved_path/resolvedname/g
2002-07-06 02:46:41 +00:00
pooka
ff89c16683
adapt for vis()/svis() check separation
2002-07-03 17:18:09 +00:00
pooka
2fcb6fa0a5
add check for HAVE_USER_FROM_UID
2002-07-03 17:17:35 +00:00
itojun
024d45a179
use sysctl(kern.urandom) if /dev/urandom is not present (like chroot jail)
2002-07-02 17:10:19 +00:00
bjh21
c1ba727b47
Version times() so that programs compiled before the recent change to make
...
sysconf(_SC_CLK_TCK) return hz will work.
In detail:
__times13() returns values scaled by hz.
times() returns values scaled by 100.
<sys/times.h> renames times() to __times13().
_SC_CLK_TCK has changed from 3 to 39.
sysconf(3) returns 100.
sysconf(39) returns hz.
CLK_TCK is defined as sysconf(39).
2002-06-30 09:45:39 +00:00