| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
patch from Hiltjo Posthuma <hiltjo at codemadness dot org>
|
| |
|
|
|
|
| |
unveil calls should follow. ok various, including jmc
|
| |
|
|
|
|
|
|
| |
now that there is essentially no malloc.conf;
text tweaked by deraadt; ok otto deraadt
|
|
|
|
|
|
|
|
|
|
|
| |
libs have it, it is a function that is considered harmful, so:
Delete malloc_usable_size(). It is a function that blurs the line
between malloc managed memory and application managed memory and
exposes some of the internal workings of malloc. If an application
relies on that, it is likely to break using another implementation
of malloc. If you want usable size x, just allocate x bytes. ok
deraadt@ and other devs
|
|
|
|
| |
PROTO_NORMAL(). Problem noted by deraadt@
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Because of hw.smt we need a way to determine whether a given CPU is "online"
or "offline" from userspace. KERN_CPTIME2 is an array, and so cannot be
cleanly extended for this purpose, so add a new sysctl(2) KERN_CPUSTATS
with an extensible struct. At the moment it's just KERN_CPTIME2 with a
flags member, but it can grow as needed.
KERN_CPUSTATS appears to have been defined by BSDi long ago, but there are
few (if any) packages in the wild still using the symbol so breakage in ports
should be near zero. No other system inherited the symbol from BSDi, either.
Then, use the new sysctl(2) in systat(1) and top(1):
- systat(1) draws placeholder marks ('-') instead of percentages for
offline CPUs in the cpu view.
- systat(1) omits offline CPU ticks when drawing the "big bar" in
the vmstat view. The upshot is that the bar isn't half idle when
half your logical CPUs are disabled.
- top(1) does not draw lines for offline CPUs; if CPUs toggle on or
offline in interactive mode we redraw the display to expand/reduce
space for the new/missing CPUs. This is consistent with what some
top(1) implementations do on Linux.
- top(1) omits offline CPUs from the totals when CPU totals are
combined into a single line (the '-1' flag).
Originally prompted by deraadt@. Discussed endlessly with deraadt@,
ketennis@, and sthen@. Tested by jmc@ and jca@. Earlier versions also
discussed with jca@. Earlier versions tested by jmc@, tb@, and many
others.
docs ok jmc@, kernel bits ok ketennis@, everything ok sthen@,
"Is your stuff in yet?" deraadt@
|
|
|
|
|
|
| |
It also translated a documented send(2) EACCES case erroneously.
This was too much magic and always prone to errors.
from Jan Klemkow; man page jmc@; OK claudio@
|
|
|
|
|
|
|
| |
posix file locks is defined. Also, detect overflows when dealing with positive
lengths.
ok millert@ visa@
|
|
|
|
|
|
|
|
| |
effectively use pledge(2) in some programs.
approval from many, thanks!
idea by & ok deraadt@
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
OK benno@
|
|
|
|
| |
Also simplify code.
|
| |
|
| |
|
|
|
|
|
|
| |
Tweaked diff from brad@
manpage tweaks florian@ and jmc@
ok deraadt@ millert@
|
|
|
|
|
|
|
| |
unveil for each unveil in the process at unveil() time, and refactoring the
handling of current directory and ISDOTDOT to be much more sensible.
Worked out at ns2k18 with guenther@.
ok deraadt@
|
|
|
|
| |
ok guenther@ tb@ deraadt@
|
|
|
|
| |
From Brad, tested by Miod, OK kettenis@
|
|
|
|
| |
From Brad, OK mpi@ kettenis@
|
|
|
|
|
|
|
|
| |
This brings it back in line with the macros.
via Paco A. and the FRRouting project.
ok deraadt@ visa@ guenther@ tb@
|
|
|
|
| |
verified/ok tb
|
|
|
|
| |
ok kettenis@
|
|
|
|
|
|
|
|
|
|
| |
The C implementation of str{,r}chr are not linked to the build, because
assembly implementations are used, but change to code for easier reference.
At least the i386 and amd64 are checked and seem to do the correct thing.
Found thanks to the csh any/strchr change.
minor pointers and OK millert@
|
|
|
|
| |
ok mpi@ jca@
|
|
|
|
| |
more uniform; potential for confusion noticed by aalm@; OK jmc@.
|
| |
|
| |
|
|
|
|
|
| |
librthread on armv7 as well
from brad ok visa@ kettenis@ mpi@
|
| |
|
| |
|
|
|
|
|
|
| |
It replaces the existing pwcache.c functions user_from_uid(3) and
group_from_gid(3) with the pax equivalents. Adapted from NetBSD
(mycroft) changes from our own pax's cache.c. OK guenther@
|
|
|
|
|
|
|
|
| |
of the pointer returned by getpw{ent,nam,uid}(). We unmap the
buffer each time to catch callers using a stale passwd struct
pointer. As a special case, we do not unmap the buffer if the
previous lookup was for the same name or uid. This special case
may be removed in the future. OK deraadt@
|
|
|
|
|
|
|
| |
Not a strictly portable use of the interface and there are more suitable
interfaces for timeouts anyway.
ok schwarze millert
|
|
|
|
|
| |
cases in kernel and libc.
ok deraadt@
|
|
|
|
| |
ok beck jmc
|
| |
|
|
|
|
| |
unveil for relative operations) that I am working on in BUGS
|
| |
|