Age | Commit message (Collapse) | Author |
|
- small tweak while here
|
|
- fork1() flags: FORK_SIGHAND, FORK_PTRACE, and FORK_THREAD
- RTHREADS kernel option
- rfork() RFTHREAD flag (with a BUGS entry that it's not usable from C)
ok tedu@
|
|
while here, make sure each error path sets YP_YPERR
and make the function shorter and easier to read
by using the idiom "if (error) goto fail" everywhere in the loop
and by putting xdr_free in exactly one place near the end
ok deraadt@
|
|
|
|
|
|
and suggest workarounds
ok guenther
|
|
|
|
|
|
teach people bad habits!
ok krw@, jmc@, dlg@, thib@
|
|
exhausted and GLOB_BRACE is given. globexp2() was ignoring errors
returned from lower levels.
While here, change globexp2() to return its return value normally rather
putting it in a int pointer then always returning 0.
ok otto
|
|
* Document EINVAL and EEXIST.
* Neither mkstemp nor mkdtemp use lstat, but mktemp does.
* Documenting ENOTDIR is useless, it is documented in lstat(2), mkdir(2)
and open(2), and it's just one thing out of several that could go wrong.
* Refer to lstat(2) instead of stat(2), which is actually used here.
* State that two of these functions are standardized in the XPG.
* Move the sentence about mkdtemp and mkstemps to the new STANDARDS section.
* Get rid of the ugly ".So Li X Sc Ns s", just use "Xs" (suggested by jmc@).
tweaks and ok jmc@ millert@
|
|
setting errno(2). Behaviour unchanged for mkstemp[s] and mkdtemp.
ok guenther deraadt
|
|
issue reported by Toni Mueller
ok markus
|
|
ok millert@
|
|
ok jmc@ deraadt@ guenther@
|
|
generated by .Bl -column .It <tab> on following lines. This is a
workaround; fixing it properly in a way compatible with our old groff
would require .Xo support for .Bl -column phrases in mandoc(1), which
is too much work right now just to fix exactly this one place in our tree.
ok jmc@
This commit fixes the last issue i'm aware of which prevented building
our whole tree with mandoc. Not all pages format nicely yet, but
none kill the build any more.
|
|
|
|
Found by and unbreaking the build with mandoc(1).
While here, properly escape blanks inside columns
and use "backslash" instead of "back slash".
OK jmc@
|
|
(sorry, i can't actually find where this started....)
|
|
entire template was Xs. Test suite written now to keep this from
happening again. Problem caught by Vadim Zhukov again.
ok millert@
|
|
Also, remove a duplicate preconditions check.
Based on a suggestion by Vadim Zhukov (persgray <at> gmail.com)
ok millert@
|
|
after the diff was written, I made it similar to the freebsd fix of
the same code; pr6287 ok millert@ guenther@
|
|
|
|
files or directories when applicable.
The inspiration and name of MACHINE_CPU come from NetBSD, although the way to
provide it to Makefiles is completely different.
ok kettenis@
|
|
From Vadim Zhukov (persgray at gmail.com)
|
|
|
|
|
|
other common errno values for opendir() whereas we just point the
user to open() et al. OK jmc@
|
|
errno with ENOTDIR. From Tim van der Molen.
|
|
_SC_NPROCESSORS_ONLN, implemented by AIX/Tru64/Solaris/Linux/SCO/FreeBSD/NetBSD.
Bump libc minor.
From Brad, ok deraadt@ guenther@
|
|
Document the interpretation of the third and fourth levels of KERN_FILE2.
Document that KERN_FILE and KERN_PROC are deprecated in favor of
KERN_FILE2 and KERN_PROC2.
ok and tweaks jmc@
|
|
extra safeguard (FGJ). Idea from deraadt@; ok deraadt@ dlg@
|
|
the most recent one will be stored for later re-delivery. When the signal
handlers are restored, all except the most recent signal will be lost.
Replace the single variable with an array so signals are not lost.
ok deraadt@
|
|
|
|
From Igor Zinovik; thanks!
ok millert@
|
|
instead, .It is required. Thus, move .Pp and text before the .Bl,
and remove the .Pp altogether where it is not needed.
Syntax errors found by mandoc(1), also required to fix the mandoc build;
feedback and ok jmc@, and sobrado@ also supports the direction.
|
|
syntax errors found by mandoc(1), also required to fix the mandoc build;
feedback and ok jmc@ and sobrado@
|
|
syntax errors found by mandoc(1), also required to fix the mandoc build;
ok jmc@
|
|
jmc@ deraadt@ ok
|
|
from userland since April 2003 and, of course, the manual page is
not built either.
see miod@'s change in r1.66 of src/lib/libc/sys/Makefile.inc.
i would like to acknowledge the excellent advice from jmc@ and
fgsch@ with relation to this change.
ok miod@
|
|
|
|
completes the changes from Oct 22.
|
|
1) Distinguish normal end of data (like eof, YPERR_NOMORE, YPERR_KEY)
from error conditions.
2) Save errno(2) and restore it in case of success, as suggested by deraadt@
and beck@.
While this code is touched,
* move the common code for the yp_first and yp_next calls after the
respective if/else-block; note that free(data) is not needed in case of
failure and that __ypcurrent = NULL does no harm after failing yp_first.
* return 0, not NULL: the return value of grscan is int, not a pointer.
This is the last part of the work done on getgrent.c during c2k9,
heavily relying on the other improvements done at that time.
This has been rotting in my tree far too long.
"get it in" deraadt@; also lightly tested by simon@ some time ago
|
|
arc4random() is slow, but it induces getpid() calls; also saves a
bit on stirring efforts
|
|
Document that snprintf/vsnprintf/syslog_r() aren't async-signal-safe
for floating-point
Provide cursory documentation of SIGTHR
Eliminate the NOTE section of the sigaction(2) manpage by merging the
good bits into the STANDARDS section
ok deraadt@
|
|
doesn't test it, so factor out the two places that test it into a
routine and do the refreshing there. With this, arch4random_buf()
doesn't trigger superfluous calls to getpid() when filling large
buffers.
ok deraadt@, "looks nicer indeed" otto@
|
|
Bug found while auditing the same complaint by parfait,
see the previous commit; still not shutting parfait up.
"wow, that's nasty" deraadt@
|
|
ok deraadt@
|
|
When exceeding fd 1024, this bug cleared flag bits for all file descriptors
except those <= 64.
Found while auditing a (false positive) complaint by parfait.
This bugfix does not shut parfait up, though.
OK millert@ deraadt@
|
|
them; allows userland with stack beyond 2GB to run.
|