summaryrefslogtreecommitdiff
path: root/lib/libc/gen
AgeCommit message (Collapse)Author
2003-06-22whatever happened, i cannot explain it. rollback my stupidFederico G. Schwindt
good-for-nothing commit. my apologies.
2003-06-22fix prototype; from Pedro Bastos.Federico G. Schwindt
2003-06-17Sync with share/misc/license.template and add missing DARPA creditTodd C. Miller
where applicable.
2003-06-11ansification; checked by pvalTheo de Raadt
2003-06-10Remove an extraneous "& 0xff" (the cast to unsigned char is sufficient).Todd C. Miller
Use "extern __inline" instead of "static __inline" since the extern flavor behaves more like a macro (which is what we want). OK deraadt@ and tested on all platforms by various folks.
2003-06-03Use an ISC-tyle license for all my code; it is simpler and more permissive.Todd C. Miller
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-30- correct macro usageJason McIntyre
- section reorder
2003-05-30- clean up macro abuseJason McIntyre
- section reorder - merge COMPATIBILITY
2003-05-19Make sure our return value is withing the range 20 - -20 (aka NZERO - -NZERO).Todd C. Miller
We could use an extra call to getpriority() instead but it's faster to just do the bounds check in userland.
2003-05-19Explicitly state that priority values outside the range -20 to 20 areTodd C. Miller
truncated to the appropriate limit.
2003-05-14sync vis() behaviour when VIS_SAFE to man page: don't do anything if isgraph()Paul Janzen
is true, even if the character isn't 7-bit.
2003-05-12cpu -> CPUJason McIntyre
2003-05-11Document \sPaul Janzen
2003-05-03typos;Jason McIntyre
ok millert@
2003-05-02Add Doug Gwyn's portable alloca() for platforms w/o an assemblerTodd C. Miller
version. Normally, gcc provides its own alloca() (unless -fno-builtin is specified). The C version is decidedly suboptimal--we really need proper assembler versions but this will work as a stop-gap measure.
2003-05-01add missing enumeration case to select to kill gcc warningAnil Madhavapeddy
millert@ ok
2003-04-30typos;Jason McIntyre
2003-04-25Document hw.sensorsAlexander Yurchenko
2003-03-31Rewritten setuserpath() that is much clearer and uses strlcpy()Todd C. Miller
for added paranoia. tdeval@ and mpech@ OK
2003-03-17some small typos;Jason McIntyre
2003-03-10duplicate words and spelling fixes in commentsDavid Krause
ok miod@
2003-03-06.Xr typos;Jason McIntyre
2003-03-06.Xr's;Jason McIntyre
typos in man page section ok deraadt@
2003-02-27missed in the math man page cleanupJason Wright
2003-02-27correctly check the return value of send(). fixes LOG_CONS from alwaysDan Harnett
logging to the console. ok millert@
2003-02-24of ofTheo de Raadt
2003-02-24the theTheo de Raadt
2003-02-24need stdlib.h tooTheo de Raadt
2003-02-17minor KNFTodd C. Miller
2003-02-07Don't write log message to console unless we are unable to connect toTodd C. Miller
syslogd. Noticed by marc@; OK by marc@ and deraadt@
2003-02-03some more functions that are (only on OpenBSD) safe in signal handlers.Theo de Raadt
not having access to these makes things really painful
2003-01-21kern.watchdog; ok mickey@Markus Friedl
2003-01-20Don't reconnect to logging socket if send() returns an error and errnoTodd C. Miller
== ENOBUFS, there is no point and it hurts chroot'ed processes. Don't return immediately from syslog_r() when the send(), we may have more work to do. deraadt@ OK
2003-01-19programs that chroot must use LOG_NDELAY; deraadt@ OKTodd C. Miller
2003-01-07Better have an OpenBSD static rcsid rather than a NetBSD static rcsid forMiod Vallat
this file...
2003-01-04spellingTheo de Raadt
2003-01-02Handle things like "%%m" correctly; closes PR 3057Todd C. Miller
OK miod@
2002-12-31Catch EISDIR in execvp() and friends so that if a directory appearsTodd C. Miller
in PATH that matches the name to be executed we skip it; Andy Isaacson
2002-12-17Make SysV-style shared memory and semaphore limits sysctl'able.Todd C. Miller
Instead of allocating a static amount of memory for the data structures via valloc() in allocsys(), allocate things dynamically using pool(9) when possible and malloc(9) when not. The various members of struct seminfo and struct shminfo are in kern.seminfo and kern.shminfo respectively (not all members of kern.seminfo are changable). The data structures used still leave something to be desired but things are not made worse in that respect by this commit.
2002-12-15Casting to unsigned int in isfoo() causes problems on alpha andTodd C. Miller
sparc64. Change cast back to unsigned char but do a bitwise AND with 0xff to avoid any sign extension weirdness and to make it impossible for us to overflow _C_ctype_. The bitwise AND is probably not needed and may be removed later if this does not trigger compiler bugs.
2002-12-15more writeable -> writable by torhHenning Brauer
2002-12-14Instead of doing "if (c == EOF) return 0;" use the hook ('?') operatorTodd C. Miller
instead to make these one-liners. Works around a compiler bug on vax that affects both the libc and inline versions identically.
2002-12-13Less stupid check for 7-bit ascii in toupper/tolowerTodd C. Miller
Remove useless check for EOF in isascii
2002-12-13Cast to unsigned int, not unsigned char, since what is being cast is anTodd C. Miller
int, not a char.
2002-12-11Convert ctype.h macros into inline functions. This fixes the issues weTodd C. Miller
currently have with the macro versions and makes the ctype.h versions 100% identical to what is in libc. Discussed with pjanzen@ and OK'd by deraadt@.
2002-11-25Mention the net.inet.tcp.ecn sysctl.Wilbern Cobb
ok kjc@
2002-11-24Fix comment: s/trailing NULL/trailing NUL/, no code changes.Chad Loder
2002-11-24Fix instance where syslog(3) after closelog(3) could access freed logChad Loder
tag name. OK millert@, deraadt@
2002-11-22Initialize status to zero before calling waitpid(). That way, ifTodd C. Miller
there is nothing to be waited for (for instance if SIGCHLD is being ignored) we don't check WIFEXITED(garbage off the stack).