summaryrefslogtreecommitdiff
path: root/lib/libc/gen
AgeCommit message (Collapse)Author
2001-11-20a few thoughts about longjmp in signal handlersTheo de Raadt
2001-11-09Typos, siz -> size.Aaron Campbell
2001-11-08My part of help, while i'm here:Mike Pechkin
o) better -mdoc design; o) add section number to .Xr; o) close .Bd; o) start new sentence on a new line; jjbg@, millert@ ok
2001-11-07list syslog_r as safe in signal handlersTheo de Raadt
2001-11-06No need to include vm/vm.h here.Artur Grabowski
2001-11-05No need to include vm/vm_param.h here, sys/sysctl.h does that for us.Artur Grabowski
2001-11-05Some examples of how to use syslog_r() and why it is useful. deraadt@ ok.Jean-Jacques Bernard-Gundol
2001-10-31Set default facility is noone is specified at syslog(3) time; millert@ jj@ ok.Federico G. Schwindt
2001-10-31Add MLINK's for syslog_r and friends.Federico G. Schwindt
2001-10-26run the approve for accounts with expiration time, too. ok millert@Markus Friedl
2001-10-24syslog_r() implementation. deraadt@ ok.Jean-Jacques Bernard-Gundol
2001-09-22o kill some extra whitespaceTodd C. Miller
o remove remaining strcpy()s to avoid false positives when auditing o fix by one in a malloc() size param o fix buffer overflow in cgetnext() reported by Jouko Pynnonen o avoid needlessly setting errno to ENOMEM and when we *do* set it be sure to do so right before the return() o check snprintf() return value when building up a .db pathname and fall back to the text version if it the .db path is too long. o add a missing check for malloc() return value o kill register o memmove(), not bcopy()
2001-09-21Typo; grange@rt.mipt.ruAaron Campbell
2001-09-11repair getgrgid_r() and getgrnam_r() as the standart says; from d@Peter Valchev
2001-09-06It is silly to reference the Tahoe architecture.Todd C. Miller
2001-09-04Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their ↵Todd C. Miller
POSIX counterparts.
2001-08-27Zero out entire FTS after allocating it instead of just zeroing outTodd C. Miller
a few fields by hand; Closes PR 2033
2001-08-25Sync with sysctl(8): net.inet.tcp.slowhz is not changeable; bk@rt.fm. Wow,Aaron Campbell
reported on 04/26/2000, I am a slacker.
2001-08-23Add missing commas after auth_getitem and auth_setitem in NAME section.Todd C. Miller
Problem found by makewhatis -p / espie.
2001-08-23typo fix from NetBSD (groo@netbsd.org)Paul Janzen
2001-08-18deal with -1 from snprintf, if it ever happensTheo de Raadt
2001-08-18Add a possibility to add a random offset to the stack on exec. This makesArtur Grabowski
it slightly harder to write generic buffer overflows. This doesn't really give any real security, but it raises the bar for script-kiddies and it's really cheap. The range of the random offsets is controlled by the sysctl kern.stackgap_random (must be a power of 2). This is disabled by default right now, but we'll set it to a reasonable value (1024?) soon, after some more testing.
2001-08-15Typo fixes; andrew.hoerter@NeuStar.comAaron Campbell
2001-08-13Explicitly NUL terminate dst in strvis() and strvisx() in caseTodd C. Miller
we are passes an empty string. vis() and strnvis() were already OK. Based on patch by wilfried@openbsd.org
2001-08-07Do the memset only if tcgetattr() fails just in case the failedTodd C. Miller
tcgetattr() mucked with the passed in struct termios in some way.
2001-08-07Keep a verbatim copy of the old struct termios instead of usingTodd C. Miller
flags to keep track of what we changed. Print a newline if echo is off, even if we didn't turn it off ourselves. Fixes art's problem with a newline not being printed when piping to less.
2001-08-07typo.Peter Valchev
2001-08-06o) We always close .Bl and .Bd tags;Mike Pechkin
o) .Sh AUTHOR -> .Sh AUTHORS; o) We don't like .Pp before/after .Sh; o) We don't like .Pp before/after .Rs/.Re; o) NetBSD -> .Nx; o) OpenBSD -> .Ox; millert@ ok
2001-08-03Update sp->fts_cur in fts_read() before returning NULL. ThisTodd C. Miller
prevents a duplicate free() in fts_close(). From karls@inet.no with some other, similar cases added.
2001-07-31Add missing LINK for cgetusedbKenneth R Westerback
2001-07-27varargs.h -> stdarg.hMarco S Hyman
2001-07-17mode -> type in description to match the synopsis.Aaron Campbell
2001-07-10put another YP-only piece inside the ifdefTheo de Raadt
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-07-09a first pass at -WallTheo de Raadt
2001-07-05IPComp support. angelos@ ok.Jean-Jacques Bernard-Gundol
2001-07-02Convert warn/warnx -> _warn/_warnxTodd C. Miller
Should not really spew to stderr from libc but right now there is no other way to get a sensible error message to the user.
2001-06-28fix one-byte overflowsPaul Janzen
2001-06-27typo, spotted by Tom Holroyd <tomh@po.crl.go.jp>; ok deraadt@Damien Miller
2001-06-27Make the functions (which get linked in if <ctype.h> isn't #included) behavePaul Janzen
correctly. Also, don't let them segfault.
2001-06-27use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel
2001-06-25Document that behaviour is undefined if the argument isn't EOF or an unsignedPaul Janzen
char.
2001-06-24When splitting instance from username, treat '/' as a separator asTodd C. Miller
well (for Kerb5).
2001-06-18Add new cgetusedb() function to toggle reading of .db files in getcap(3).Todd C. Miller
Needed for cap_mkdb to really DRT when given several input files or an output file with a different name from the input file. cvs: ----------------------------------------------------------------------
2001-06-18Fix a char vs. u_char problem I introduced in the last commit.Todd C. Miller
2001-06-16Disable the STATUS character when reading passwords -- people seem toTodd C. Miller
expect to be able to use ^T in a password.
2001-06-03Don't bail out early for users w/o passwd file entries since we mayTodd C. Miller
want to cons up a fake prompt for challenge/response auth methods. markus@ OK'd.
2001-06-03KERN_NPROCS documentationAngelos D. Keromytis
2001-06-03struct diskstats nowAngelos D. Keromytis
2001-05-31Fix another case of CHDIR("..") pointed out by Bruce EvansTodd C. Miller
<bde@zeta.org.au>. Instead of fixing these inline I've modified my fts_safe_changedir() function so it can be used in this case too. Thanks also to Kris Kennaway <kris@obsecurity.org>.