Age | Commit message (Collapse) | Author |
|
|
|
|
|
update SYNOPSIS and DESCRIPTION and add STANDARDS
|
|
rewrite the function to be simpler as well. the compiler can unroll the
loop for us if necessary.
ok schwarze
|
|
|
|
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)
|
|
The former is not used anywhere in NetBSD, FreeBSD, or DragonFly
and not supported by groff, so i'm going to delete it from mandoc(1).
We don't need two macros for the same thing.
|
|
(potentially) MD versions (function dependent, not filename dependent)
split out memcpy/memmove/bcopy and strchr/index/strrchr/rindex
Bring back amd64 .S versions
And the final touch: switch all architectures temporarily to MI
memcpy.c, which contains syslog + abort for overlapping copies. A nice
harsh undefined behaviour. We will clean the entire userland of the
remaining issues in this catagory, then switch to the optimised memcpy
which skips the memmove check.
I tried to cut this change into pieces, but testing each sub-step on
every architecture is too time consuming and mindnumbing.
ok miod
|
|
i looked a bit closer and found instances before Reno, so correct HISTORY.
References:
http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.1cBSD/usr/src/ucb/dbx/defs.h
http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD/usr/src/etc/inetd.c
http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD-Reno/src/lib/libc/string/strdup.c
ok deraadt@
|
|
|
|
new wording agreed by at least kettenis@ millert@ otto@
|
|
artificially constrain alternative implementations. ok deraadt
|
|
Modern compiler toolchains are capable of optimizing even across
translation unit boundaries, so simply moving the memory clearing into
a separate function is not guaranteed to clear memory.
To avoid this, we take advantage of ELF weak symbol semantics, and
insert a call to an empty, weakly named function. The semantics of
calling this function aren't determinable until load time, so the
compiler and linker need to keep the memset() call.
There are still ways a toolchain might defeat this trick (e.g.,
optimistically expecting the weak symbol to not be overloaded, and
only calling memset() if it is; promoting weak symbols to strong
symbols at link-time when emitting a static binary because they won't
be interposed; implementing load-time optimizations). But at least
for the foreseeable future, these seem unlikely.
ok deraadt
|
|
ok deraadt, jmc, tedu
|
|
|
|
|
|
non-dangerous use functions is difficult.
ok guenther
|
|
For inet(3), go the other way, remove some bogus symlinks.
Found while testing the new makewhatis(8).
ok jmc@
|
|
|
|
ok deraadt@ bentley@
|
|
Patch by Jean-Philippe Ouellet ; ok krw@
|
|
|
|
the ball rolling. ok deraadt.
|
|
|
|
Requested by deraadt@
|
|
as advised by deraadt
|
|
DIST_LIB/DIST_OBJ/*.do changes
|
|
MAXNAMLEN or MAXLOGNAME where possible. OK deraadt@
|
|
|
|
is undefined. Add a warning to that effect. OK deraadt@ jmc@
|
|
facts checked by sobrado@
style tweaks and ok jmc@
|
|
|
|
|
|
ok guenther
|
|
Catalogs had an arbitrary character set which was used regardless of locale.
Add UTF-8-encoded catalogs for libc error messages, and rename existing ones
to indicate their character sets. catopen(3) now chooses a catalog which
matches the locale's encoding, if available.
help & ok matthew, man page bits ok jmc, input from naddy and bluhm
|
|
ok millert@
|
|
from Alf Schlichting
ok millert@
|
|
Requires a libc minor bump, committing now so that we have up-to-date
snapshots for the upcoming hackathon.
joint work with millert@
man page bits ok jmc@
input and ok millert@, guenther@, deraadt@
|
|
ok guenther@
|
|
character after the '\0'; ok guenther@
|
|
ok deraadt
|
|
|
|
explaining of "what a C string is", and make it more clear that these
functiosn BEHAVE EXACTLY LIKE snprintf with "%s"! (anyone who wants
to write a 'strlcpy considered harmful' paper should probably write a
'strlcpy and snprintf considered harmful' paper instead).
note to those from other projects reading this commit message: It would
be very good if this new manual was picked up in your project.
ok jmc millert krw
|
|
ok jmc@
|
|
ok millert@
|
|
|
|
Includes friendly linker warning to wake up those dumb enough to use it.
Committing for kettenis@, who ran away to the hills after writing it
|
|
|
|
okay millert@
|
|
ok jmc@
|