| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
/dev/console so the value of "error" is never read. Also mention
that sendsyslog2 can fail due to ENOBUFS in the comment. OK deraadt@
|
|
|
|
| |
improvements sthen@, jmc@. okay millert@, jca@ jmc@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
but it is likely to remain in POSIX for the forseeable future,
and there is nothing wrong with using it, so remove the marker.
By contrast, POSIX 2008 now declared setitimer(3) obsolescent.
While here, remove a few cross references pointing to obsolete or
non-standard functions and update the POSIX reference.
Triggered by a question from <ChrisBennett at bennettconstruction dot us>.
OK millert@ tb@
|
|
|
|
|
|
|
| |
we expect it to be. This prevents out-of-bounds access or excessive
memory allocation on a malformed ELF header.
Found by Serguey Parkhomovsky with AFL. Improved by and ok kettenis@
|
|
|
|
| |
ok and valuable input from millert@
|
|
|
|
| |
reported by Jeunder Yu
|
|
|
|
|
|
|
|
| |
instead of trying to allocate "just enough" memory based on the size of the
file (which is mostly comments, in fact), allocate memory on demand.
i.e., save memory by wasting it. also be a little stricter about parsing.
after discussion with tobias. (with a bug fix from patrick keshishian)
descended from bug glibc bug 18660 via tobias.
|
|
|
|
|
|
|
|
|
| |
YP lock file unconditionally. This hints to the kernel that a "getpw"
operation is happening, even in the non-YP case. This looks like a
gruesome hack, but helps refine the ways these functions are called
and mandates the right pledge requests. Once the tree is fully annotated
we will know better how to improve the backing store management.
ok semarie espie beck
|
| |
|
|
|
|
|
|
| |
LOG_CONS to the kernel. As a result, the /dev/console opening code can
be removed.
ok kettenis millert beck
|
|
|
|
|
|
|
| |
libc to avoid reusing the static buffers returned by the non-reentrant
versions. Since this is inside libc we can use constants for the
buffer sizes instead of having to call sysconf().
OK guenther@ deraadt@
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
This version of the function will always open the secure/shadow/master
password files. Soon, the regular variants of these functions will not.
(Intermixing shadow and regular gets a little weird; don't do that.)
Not using struct spwd and getspwnam functions to reduce churn in callers.
Should just be a one line diff in most places.
ok deraadt
|
|
|
|
| |
little better than winner take all caching.
|
|
|
|
|
|
| |
or otherwise change Dt to reflect the name of an existing function;
feedback/ok schwarze
|
|
|
|
|
|
|
|
|
|
|
|
| |
thrkill(2), rolling the kill(2) syscall number with the ABI change to
avoid breaking binaries during during the transition. thrkill(2) includes
a 'tcb' argument that eliminates the need for locking in pthread_kill()
and simplifies pthread_cancel(). Switch __stack_smash_handler() to use
thrkill(2) and explicitly unblock SIGABRT.
Minor bump to both libc and libpthread: make sure you install a new kernel!
ok semarie@
|
|
|
|
|
| |
to the 'struct ifqueue' description for net.inet.ip.ifq to reduce chance of
them getting out of sync. ok logan, ok/tweak mikeb
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
syslogd will fill it in immediately upon reception on the other side of
sendsyslog(2). Our libc only talks to our syslogd, which will fix the
timestamp before forwarding. syslog_r has done this for a long time
already.
ok tedu bluhm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- delete the commented out setgrfile bits, as well as the MLINK
- rename getgr{nam,gid}_r()'s 'buffer' parameters to 'buf' to be
consistent with getpwnam(3) and practically all other section 3 manpages
- we have sysconf(_SC_GETGR_R_SIZE_MAX) now, so uncomment and revise the text
For getpwnam.3:
- rename buflen to bufsize for consistency
- rewrite the description of the getpw{nam,uid}_r functions to
match the better getgr{nam,gid}_r() description, adding sysconf() bits
Add sysconf(3) to SEE ALSO for both
encouraged by schwarze@
ok millert@
|
| |
|
|
|
|
|
|
| |
and ldexp().
ok millert@
|
|
|
|
|
| |
Incorrect text pointed out by tedu@
ok deraadt@ millert@ tedu@
|
|
|
|
|
| |
become responsible for calling endpwent.
ok deraadt
|
|
|
|
| |
Strip out unnecessary #includes and use NULL instead of (struct rusage *)0
|
|
|
|
|
|
|
| |
d_packname as a simple field. Also nuke the access #defines, and
support for b0 and b1 capabilities in disktab.
ok deraadt@ miod@
|
|
|
|
|
|
|
| |
wrappers. To keep uses from crawling back in, mark signal() as
deprecated inside libc.
ok deraadt@
|
|
|
|
|
|
|
|
| |
- include comment
- libc errlist
- nls C msg
- man page
OK tedu@
|
|
|
|
|
|
|
| |
and check WIFEXITED() only if it returns != -1. Delete the logging of
errors other than ECHILD: EFAULT and EINVAL are impossible here.
ok deraadt@ millert@
|
|
|
|
|
|
|
|
|
| |
into libc, and move pthread_sigmask() as well (just a trivial wrapper).
This provides consistent handling of SIGTHR between single- and multi-threaded
programs and is a step in the merge of all the libpthread overloads, providing
some ASM and Makefile bits that the other wrappers will need.
ok deraadt@ millert@
|
|
|
|
| |
ok guenther@
|
|
|
|
|
|
| |
due to its kvm handling.
ok deraadt
|
|
|
|
|
|
| |
While at it, merge style and typo fixes back into nlist(3), too.
ok deraadt, jsing, millert
|
|
|
|
|
|
|
|
| |
While at it, return proper return value when encountering a stripped
binary. Instead of -1 (illegal file), it should be the amount of symbols
that were tried to be resolved.
ok millert
|
|
|
|
| |
was forgotten. Just call isatty(). ok deraadt@
|
|
|
|
|
| |
Based on a patch from guenther@, tweaked by me.
OK jmc@ guenther@
|
|
|
|
| |
wordsmithing and ok jmc@
|
| |
|
|
|
|
|
|
|
| |
case, by deleting some useless '& of an array' we also eliminate the need
for the casts which prompted the original lint warnings
ok deraadt@
|
| |
|
|
|
|
|
|
| |
on arm and m88k
problems with optind observed by jsg@
|
|
|
|
| |
ok semarie
|
|
|
|
|
|
| |
development of a cargo cult in case people look at existing files
for examples. This achieves a consistent .Fo and .Fn quoting style
across the whole tree.
|
| |
|
| |
|