Age | Commit message (Collapse) | Author |
|
Our kernel supports 16 groups (NGROUPS_MAX), but nothing prevents
an admin from adding a user to more groups. With that tweak we'll keep
on ignoring them instead of potentially reading past the buffer passed to
getgrouplist(3). That behavior is explicitely described in initgroups(3).
ok millert@ gilles@
|
|
In case there is not enough storage to store all the groups found, our
implementation returned the size passed in *ngroups. This isn't very
useful and is different from other implementations. Back in 1999 the
NetBSD implementation was changed to return the actual number of groups
found; that lets callers allocate a properly sized array, a behavior was
later copied by FreeBSD and glibc. So align our implementation. The
documentation doesn't need a change.
ok millert@ gilles@
|
|
|
|
|
|
|
|
information, similar to getcwd(2). Move it to the right place, and
also say why.
report from henryfordkjv@gmail.com
|
|
|
|
|
|
|
|
"Make exit(), fclose(), fflush(), and freopen() comply with POSIX-2008
requirements for setting the underlying file position when flushing
read-mode streams, and make an fseek()-after-fflush() not change the
underlying file position."
Something isn't correct about it and it breaks at least initdb from
the postgresql-server package.
discussed with tb@, semarie@, and deraadt@
|
|
We document, and posix requires, to return a NUL-terminated string on
a successful call to getaddrinfo(3) when AI_CANONNAME was set.
If the canonical name cannot be determined, return the node name as
suggested by posix.
OK guenther
|
|
declarations to reduce <stdio.h> pollution. Declare __isthreaded
in thread_private.h where it's really needed.
ok deraadt@
|
|
into fewer files that don't need them.
ok deraadt@
|
|
assuming some local .h will pull it in
ok deraadt@
|
|
|
|
|
|
ok guenther
|
|
without poking directly into the FILE structure.
Repeated testing, "nope, need a few more" feedback, and ok tb@
|
|
requirements for setting the underlying file position when flushing
read-mode streams, and make an fseek()-after-fflush() not change the
underlying file position.
Much testing, review, and assistance from tb@
ok tb@ millert@
|
|
visibility and manpages and add restrict qualifiers in all the
specified places to the *printf family.
ok millert@
|
|
and manpages and add restrict qualifiers.
ok millert@
|
|
and add restrict qualifiers. While here, rename the BUGS section
to CAVEATS since they're really "these probably don't do what you
want" notes and not things that need fixing.
ok millert@
|
|
|
|
memmem(3) was also added. Update #include visibility and manpages
and add restrict qualifiers.
"never thought I'd see this day" millert@
|
|
adjust #include visibility and update the reallocarray(3) manpage
ok millert@
|
|
so adjust the #include visibility and update the manpage.
ok millert@
|
|
change the "too much" error to EINVAL, add GETENTROPY_MAX to
<limits.h> (via sys/syslimits.h), and update the manpage.
ok deraadt@
|
|
constructors (such as the constructor for libcompiler_rt).
ok guenther@
|
|
POSIX says this is implementation-dependent; OpenBSD does not allow
it. OK guenther@
|
|
been waited for. If you SIG_IGN SIGCHLD or don't call any of the wait
functions then RUSAGE_CHILDREN wont report anything.
OK deraadt@ millert@
|
|
The %ls (wide char string) support in printf(3) currently uses
malloc(3), which violates the promise in in sigaction(2). This
makes it use mmap(2) instead. OK deraadt@
|
|
|
|
Missing function hit by fcambus@ some time ago. ok millert@
|
|
Designed to let userland peek at AT_HWCAP and AT_HWCAP2 using an already
existing interface coming from FreeBSD. Headers bits were snatched from
there. Input & ok kettenis@
libc bump and sets sync will follow soon
|
|
|
|
|
|
ok beck kettenis, earlier versions jmc
|
|
The comment probably made sense before guenther restricted the symbols
exported by libc in 2015.
|
|
and the manual incorrectly claimed it first appeared in 4BSD.
ok deraadt@
|
|
does a better job of covering the case of partition not configured
(size = 0) or other too-small decision the kernel may make
|
|
ok kettenis@ deraadt@ tb@
|
|
allocate sigaltstack regions is bad... so the example code should
not use malloc()...
ok semarie
|
|
spotted by and ok deraadt@
|
|
ssh tools. The dynamic objects are entirely ret-clean, static binaries
will contain a blend of cleaning and non-cleaning callers.
|
|
the latter supporting the ability to get timestamp resolution of
symlinks.
ok deraadt@ millert@
|
|
ok florian@
|
|
improvements from kettenis and jca
ok millert, jca, guenther
|
|
Clarify that %G and %g produce the rarely needed ISO week-numbering
year rather than the Gregorian calendar year.
With millert@ and Evan Silberman.
Some of the wording is from the upstream version.
ok tb@
|
|
This can vastly improve write performance. For unbuffered writes,
we now write up to INT_MAX instead of BUFSIZE. For buffered writes,
write the largest multiple of the buffer size (which may be st_blksize).
From Apple via enh at google. OK tb@
|
|
To be used in httpd(8) shortly to prevent toctu issues.
This makes __fdopendir internally accessible to avoid unnecessary
syscalls in scandirat(3). Suggested & diff by guenther
suggested by & OK millert
tweak & OK guenther
OK tb, jca
This rides the libc crank.
|