Age | Commit message (Collapse) | Author |
|
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.
|
|
can return POLLOUT (if requested), even the handle was not writable when
sio_pollfd() was called but become writable somewhere in the code path
of sio_revents().
This should improve stability of programs using very small buffers.
|
|
_SC_NPROCESSORS_ONLN, implemented by AIX/Tru64/Solaris/Linux/SCO/FreeBSD/NetBSD.
Bump libc minor.
From Brad, ok deraadt@ guenther@
|
|
Fixes problems with editors/joe reported by benoit@.
|
|
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@
|
|
This is around eight years worth of changes (previously we were around ncurses
5.2), too many to list - many bug fixes and also a few new functions.
A major bump for libcurses, libpanel, libform and libmenu.
ok deraadt
|
|
it's unused inside libkvm, and nothing else is allowed to use it.
ok guenther@ "sure" deraadt@
|
|
|
|
/dev/mem to be direct instead of going through kvm_getprocs(), as
that function is going to get more an more broken as we move stuff
from struct proc to struct process for rthreads. To minimize the
code copying, put the common logic of filling in a kinfo_proc2
structure into a macro FILL_KPROC2() in <sys/sysctl.h> for use from
both the kernel and user-space. This also hides the KERN_PROC
#define behind "#if defined(_KERNEL)||defined(_LIBKVM)", as it's
deprecated.
Positive feedback from millert and blambert; so committing to unblock
further rthreads work.
|
|
and pass a pointer to that instead of passing SIG_DFL directly.
(Probably the result of a bad signal()-->sigaction() translation...)
ok deraadt@, nicm@, miod@
|
|
From Igor Zinovik; thanks!
ok millert@
|
|
files. If any information found in these documents is worthwhile and you
miss it, please make the time to work it into the manual pages (which people
actually do read).
ok guenther
|
|
the issues seen with www/varnish.
With input and help from guenther@ and kurt@. guenther@ ok
|
|
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
|
|
called. Since sio_onmove() callback doesn't return negative deltas
anymore, slightly simplify related paragraphs.
siggested by espie@, ok jakemsr@
|
|
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.
|
|
a DoS using a specially crafted XML document with malformed UTF-8
sequences.
Patch taken from upstream CVS.
|
|
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@
|
|
ok deraadt@
|
|
parfait still does not completely understand how realloc() behaves
(or %, ?:, >>, or << and its terminal function tracking remains weak)
|
|
|
|
them; allows userland with stack beyond 2GB to run.
|
|
ok millert
|
|
in the prologue; this gives a chance for binaries loaded with their stack over
2GB virtual, to run. Who's your daddi now?
|
|
of the value of PAGE_SIZE found in the standard headers when compiling.
|
|
actual kernel page size.
|
|
the use of spinlocks and malloc. All needed memory is allocated upfront
and _thread_kern_sig_defer/undefer() is now used to protect critical
sections. okay guenther@
|
|
from trhodes@freebsd, r200095;
|
|
don't call the sio_onmove() call-back with negative argument.
|
|
syscall ABI has changed and everything is going to need to be relinked
anyway, bump the rthread major
|
|
|
|
Guenther; ok jmc
|
|
macros for them. Avoids walking the lists and greatly enhances speed
of freeing chunks in reverse or random order at the cost of a little
space. Suggested by Fabien Romano and Jonathan Armani; ok djm@
|
|
catch the libc major bump per request from deraadt@
Diff by reyk.
ok guenther@
|