summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2002-07-09more error checking of memory allocation, from clodder@acm.org. okay deraadt@Niels Provos
2002-07-08we can live very well w/ MI ffs()Michael Shalayeff
2002-07-08Use qsort() instead of mergesort() since the latter can fail dueTodd C. Miller
to malloc(). opendir() requires a stable sort so we rig the compare routine to never return 0. From Lars J. Buitinck
2002-07-08offload the arguments from the stack before performingMichael Shalayeff
the copying, initial idea is from freebsd (not fully implemented there, apparently). this also makes bcopy/memcpy a tiny little bit faster.
2002-07-07Add a port of FreeBSD/alpha's libio as libalpha. This library enableMatthieu Herrb
access to devices I/O ports from userland. Only BWX machines supported for now. Added a man page. Ok deraadt@, miod@.
2002-07-07enviroment -> environmentJan-Uwe Finck
2002-07-06Remove kernel support for NTP. ok deraadt@ and tholo@Thomas Nordin
2002-07-06KNFTheo de Raadt
2002-07-06KNFTheo de Raadt
2002-07-06Add some missing checks for malloc() returning NULL.Todd C. Miller
Noticed by Lars J. Buitinck. deraadt@ OK
2002-07-06cope better if realloc fails; better fix than cloder@acm.orgTheo de Raadt
2002-07-05add sys/time.h to SYNOPSIS; from bk@rt.fmNiels Provos
2002-07-05more refinementTheo de Raadt
2002-07-02missing priority argument in example; ok millert@Kevin Steves
2002-07-01more type pedantJun-ichiro itojun Hagino
2002-07-01lint clean (and don't mixup signed/unsigned). from martin husemannJun-ichiro itojun Hagino
2002-07-01need string.hTheo de Raadt
2002-07-01Disc -> Disk for EDQUOT; now the error and log messages that appear whenPaul Janzen
quotas are exceeded are consistent. deraadt@ ok
2002-07-01Fix strnvis(): don't truncate unnecessarily, set the return value correctlyPaul Janzen
if we had to truncate, and don't NUL-terminate if size == 0.
2002-07-01typoMarc Espie
2002-07-01make more pedantic check on strtoul. from deraadt, sync w/kameJun-ichiro itojun Hagino
2002-07-01indentTheo de Raadt
2002-06-29correct port range check. from deraadt. sync w/kame. bind-bugs have ↵Jun-ichiro itojun Hagino
already notified.
2002-06-29Replace strtou?q() with the more standard strtou?ll(), using weakTodd C. Miller
aliases to fake up strtou?q(). espie@ OK.
2002-06-28minor bump for readpassphrase() flag additionTodd C. Miller
2002-06-28Add RPP_STDIN flag which acts as the converse of RPP_REQUIRE_TTY.Todd C. Miller
Based on a patch from Brett Eldridge.
2002-06-28Lies, damn lies and getcap(3). The description for cgetclose() wasTodd C. Miller
completely wrong and has apparently caused people to believe that cgetclose() frees memory allocated by cgetent() which is *not* the case.
2002-06-27%u for uid/gid; millert okTheo de Raadt
2002-06-27%uTheo de Raadt
2002-06-27KNFTheo de Raadt
2002-06-27note Supplementary group IDs remain unchanged; ok deraadt@ tholo@Kevin Steves
2002-06-27%u and uid/gidTheo de Raadt
2002-06-27%d -> %u. mostly in #ifdef DEBUG.Jun-ichiro itojun Hagino
2002-06-27%d/%u mixup (in #ifdef DEBUG)Jun-ichiro itojun Hagino
2002-06-27ntohs() returns unsigned valueJun-ichiro itojun Hagino
2002-06-26correct bad practice in the code - it uses two changing variablesJun-ichiro itojun Hagino
to manage buffer (buf and buflen). we eliminate buflen and use fixed point (ep) as the ending pointer. this fix is NOT critical.
2002-06-26avoid remote buffer overrun on hostbuf[]. From: Joost Pol <joost@pine.nl>Jun-ichiro itojun Hagino
correct bad practice in the code - it uses two changing variables to manage buffer (buf and buflen). we eliminate buflen and use fixed point (ep) as the ending pointer. this fix is critical.
2002-06-25undef the timeout_*(), this is still WRONG it does allow using both event.h ↵Michael Shalayeff
and sys/timeout.h in the same source (which is a valid use for both), proper fix is to rename the timeout_*() api here
2002-06-25Now that we don't have a trailing newline we need to explicitly checkTodd C. Miller
that the first char in the line is not NUL after killing comments.
2002-06-25rcsidsMichael Shalayeff
2002-06-25typos. Patch from bk@rt.frMike Pechkin
millert@ ok
2002-06-24Properly install links for debug libraries; ok deraadt@Thorsten Lockert
2002-06-23uid_t is unsignedTheo de Raadt
2002-06-22use strtok_rTheo de Raadt
2002-06-22remove BUGS section; this library uses strtok_r(3) now.Federico G. Schwindt
2002-06-22use strtok_r() instead of strtok(); millert okTheo de Raadt
2002-06-22Use strtok_r() instead of strsep() since the latter treats consecutiveTodd C. Miller
field separators as empty field. This is not what we want for whitespace-delimited fields.
2002-06-21login_fbtab(3) fixes:Todd C. Miller
o make first arg const since we don't modify it o use strsep() instead of strtok() as strtok() changes internal state o add some bounds checking and use strlcat() instead of pointer arithmetic o ANSI function headers Originally based on a patch from Lars J. Buitinck but much modified.
2002-06-20Close log file when leaving syslog_r(). deraadt@ okJean-Jacques Bernard-Gundol
2002-06-20Redo the logic in kvm_arg_sysctl for resizing the buffer.Artur Grabowski
- actually use the value we've just reallocated. - Don't return success just because the error wasn't ENOMEM (doh!).