Age | Commit message (Collapse) | Author |
|
increased memory use is minimal.
ok deraadt logan
|
|
max time zone length used by libc/time. Just use PATH_MAX for now
(since zone files are path names). This function is slated to be
removed at the next libc major bump.
|
|
"and" and "or" to join sentence clauses, and you can use commas, but both hinders
reading;
|
|
variable
itself has bearing on _SETPERF;
many thanks to theo buehler who both supplied a diff and corrected various
issues with my diff;
|
|
|
|
Predefined strings are not very portable across troff implementations,
and they make the source much harder to read. Usually the intended
character can be written directly.
No output changes, except for two instances where the incorrect escape
was used in the first place.
tweaks + ok schwarze@
|
|
the extra argument to be zero; instead, make it filter on the file
type (DTYPE_*) when non-zero to make claudio's netstat work easier.
ok claudio@
|
|
Show the best ways to encode a dynamic and static buffer.
input + ok schwarze@, ok jmc@
|
|
obsolete SIZE_T_MAX. OK miod@ beck@
|
|
stravis(3) is an OpenBSD extension that was added recently.
input + ok schwarze@, jmc@, deraadt@
|
|
|
|
also fixing one typo in fts(3) while here
|
|
Moved the return values from the description to a proper return values
section. Broke up the description into function description followed
by a subsection for the range and encoding. Replaced srclen with
strlen(src) when srclen isn't an argument. Moved the common flag argument
to its own paragraph.
input schwarze@, input + ok jmc@
|
|
remove .Tn, and a few minor macro adjustments.
Patch from Kaspars at Bankovskis dot net.
|
|
information also makes it through. This is a compromise to cope with
the absolutely ridiculous setprogname() API.
ok various discussions
|
|
delete <sys/param.h> if now possible
ok guenther
|
|
description.
|
|
|
|
|
|
review by millert, binary checking process with doug, concept with guenther
|
|
|
|
uid_t or gid_t (and neither do we). OK deraadt@
|
|
|
|
MAXHOSTNAMELEN.
ok deraadt guenther
|
|
|
|
controls whether you can ptrace any process with appropriate privileges
or only one own's children.
ok deraadt
|
|
to match of PATH_MAX. As fnmatch() is used for matching more than
just pathnames, this can prevent legitimate matches for long strings
or partterns. OK miod@ tedu@
|
|
the same thingies. Therefore these "lists of functions" man pages can go
away.
Hurray! I've wanted these pages to die for around 10 years!
ok ingo (and i think jmc)
|
|
This adds a new sysctl KERN_PROC_VMMAP, which returns an array of VM map
entries of a specified process. This prevents debuggers from iterating
vm_map_entry RB tree via kvm(3).
The name KERN_PROC_VMMAP and struct kinfo_vmentry are chosen from the same
function in FreeBSD. struct kinfo_vmentry is revised to reduce size, because
OpenBSD does not keep track of filepaths. The semantic is also changed to
return max buffer size as a hint, and start iteration at the specified base
address.
Much valuable input from deraadt@, guenther@, tedu@
OK tedu@ deraadt@
|
|
im going to delete support for it from mandoc(1)
|
|
|
|
escape it when it appears on a macro line.
|
|
------------------------------------------------------------------------
r246641 | jilles | 2013-02-10 15:09:15 -0800 (Sun, 10 Feb 2013) | 8 lines
fts: Use O_DIRECTORY when opening name that might be changed by attacker.
There are uncommon cases where fts_safe_changedir() may be called with a
non-NULL name that is not "..". Do not block or worse if an attacker put (a
(symlink to) a fifo or device where a directory used to be.
MFC after: 1 week
------------------------------------------------------------------------
r241010 | jilles | 2012-09-27 15:05:54 -0700 (Thu, 27 Sep 2012) | 9 lines
libc/fts: Use O_CLOEXEC for internal file descriptors.
Because fts keeps internal file descriptors open across calls, making such
descriptors close-on-exec helps not only multi-threaded applications but
also single-threaded applications.
In particular, this prevents passing a temporary file descriptor for saving
the current directory to processes created via find -exec.
------------------------------------------------------------------------
ports scan for possible O_CLOEXEC affected programs by sthen@
ok millert@
|
|
--------
r260571 | jilles | 2014-01-12 12:30:55 -0800 (Sun, 12 Jan 2014) | 9 lines
fts: Stat things relative to the directory fd, if possible.
As a result, the kernel needs to process shorter pathnames if fts is not
changing directories (if fts follows symlinks (-L option to utilities), fts
cannot open "." or FTS_NOCHDIR was specified).
Side effect: If pathnames exceed PATH_MAX, [ENAMETOOLONG] is not hit at the
stat stage but later (opendir or application fts_accpath) or not at all.
--------
Prompted by a similar diff from (enh (at) google.com), who also reran a
performance test.
ok millert@
|
|
kernel struct vnode defintion, and the only consumer (pstat) still needs
kvm to read much of the required information. no great loss to always use
kvm until there's a better replacement interface.
ok deraadt millert uebayasi
|
|
|
|
functions; the concept comes from POSIX anyway.
With tweaks from schwarze@
ok deraadt@, jmc@, millert@, schwarze@
|
|
|
|
|
|
signal number itself. Attempting to reset the signal action for it causes
posix_spawn to fail, making the POSIX_SPAWN_SETSIGDEF flag unusable.
ok guenther@
|
|
|
|
ok doug
|
|
|
|
|
|
|
|
|
|
lines when printing to console or stderr.
OK deraadt@
|
|
Noted by Jean-Philippe Ouellet (jean-philippe (at) ouellet.biz)
|
|
of the resulting FILE *), then pass fopen() the 'e' mode letter to
mark it close-on-exec.
ok miod@
|
|
|