summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2002-10-30Add [gs]etres[ug]id(2) syscall to libc and use it in emulating some 4.3BSDTodd C. Miller
functions.
2002-10-30Revert this va_copy addition, it cannot work on macppc (which is theDale Rahn
only arch where va_copy is currently required), current version of va_copy uses alloca, but since the results of the va_copy are not used here, only after return, stack trashing will occur. This will have to be revised again for gcc 3.2 support on powerpc.
2002-10-26Describe the actual operation of inet_net_pton with a few examples.Marco S Hyman
Also add caution regarding dst field initialization. operation text OK millert@
2002-10-24Use va_copy() for varargs assignemnt. va_copy() is standard with C99Dale Rahn
and gcc3.2 requires this on powerpc.
2002-10-24Remove some old if 0/if 1 code, it is pointless to keep this in.Dale Rahn
2002-10-21reversed condition checking for sig*jmp(, savemask)Michael Shalayeff
2002-10-21deal w/ longjmp(, 0)Michael Shalayeff
2002-10-21make an ieeefp regress pass; miod@ okMichael Shalayeff
2002-10-16- don't use the function enclosure macros.Wilbern Cobb
- replace `POSIX 1003.2' instances with St -p1003.2. ok mpech@, millert@
2002-10-16Replace "if (value != NULL && value == as->FOO)" with justTodd C. Miller
"if (value == as->FOO)" -- NULL needs no special handling. Pointed out by Paul Borman.
2002-10-16Implement isfdtype(3) as per the POSIX.1g draft; requested by David HillTodd C. Miller
2002-10-15Fix typo introduce in last commitTodd C. Miller
2002-10-15cast NULL varargs sentinel to char * so it is 64 bit on alpha & sparc64Todd C. Miller
2002-10-15Document the fact that calling auth_setitem() with a NULL valueTodd C. Miller
clears (frees) the corresponding value in the auth session.
2002-10-15If auth_setitem() is called with the current value (ie: the pointerTodd C. Miller
is the same as the private value) then just return 0 as there is nothing to do. This fixes a potentially nasty problem where the caller could grab the username or style from the auth session via auth_getitem() and then call auth_verify() with those values. auth_setitem() would eventually get called which would make a private copy and free the old values in the auth session. After all this, the stashed username and/or style pointers would point to freed memory.
2002-10-15Note that when calling auth_verify() with a style and/or username,Todd C. Miller
the old values in the auth session will get freed and the new values added.
2002-10-15Cast NULL sentinel in auth_call() to a pointerTodd C. Miller
2002-10-13Move the clearing of as->state in auth_challenge() to after the sanityTodd C. Miller
checks. The check for "as != NULL" is useless if you have already dereferenced "as". Also fix some comment typos. From Moritz Jodeit.
2002-10-09Use strtoll() and strtoull() instead of strtoq() and strtouq() nowTodd C. Miller
that we have them as per the original BSDi code.
2002-10-07.Xr ipcs 1Henning Brauer
.Xr ipcrm 1 grendel at zeitbombe dot org some input millert ok millert ian theo
2002-10-07name space pollution; after art@Michael Shalayeff
2002-10-07kick, kick. Fix these files which did not come from NetBSD, but theDale Rahn
powerpc port by Dale Rahn.
2002-10-07clean up ifdefs for PIC, resulting code unchanged.Dale Rahn
2002-10-07s/curbrk/__curbrk/ as suggested by art, a few _ASM_LABEL added as appropriate.Dale Rahn
2002-10-07Simpler, smaller, more efficient and equivalent.Dale Rahn
2002-10-07cerror -> __cerror as suggested by art, with a couple of missing _ASM_LABEL()Dale Rahn
added as appropriate.
2002-10-06curbrk -> __curbrk on sparc to avoid name space pollution.Artur Grabowski
2002-10-06Rename curbrk to __curbrk on i386 to avoid namespace pollution.Artur Grabowski
2002-10-06Rename curbrk to __curbrk on alpha to avoid namespace pollution.Artur Grabowski
2002-10-06Rename cerror to __cerror on i386 to avoid namespace pollution.Artur Grabowski
2002-10-06Rename cerror to __cerror on alpha to avoid namespace pollution.Artur Grabowski
2002-09-25missing arg; peterw@ifost.org.auTheo de Raadt
2002-09-19Document FD_CLOEXEC; from FreeBSD (Peter Jeremy)Todd C. Miller
2002-09-18fix Xr refs; frisco@blackant.netTheo de Raadt
2002-09-18Fix license and conformance with man page.Steve Murphree
2002-09-17uncommit, since it breaks macppc libc. millert and miod have now said theyTheo de Raadt
did NOT approve those for commit. why did mickey feel he was ok to go commiting a set of diffs which had not been passed around and tested by people? we don't know. mickey, have you got something to say for yourself?
2002-09-17move __syscall prototype into unistd.h (like everybody else) and avoid ↵Michael Shalayeff
private protos for it everywhere; millert@ ok
2002-09-17mickey, did you not look at the output?Theo de Raadt
2002-09-17typoJun-ichiro itojun Hagino
2002-09-17correct possible buffer overrun in setlocale(x, y) where y is supplied fromJun-ichiro itojun Hagino
outside. see NetBSD SA2002-012.
2002-09-14Move __cleanup into mprotect'ed page to prevent unintentional modificationsDaniel Hartmeier
similar to the atexit handlers. Idea and help deraadt@, ok deraadt@
2002-09-11bye bye.Federico G. Schwindt
2002-09-10remove extra output of \n in clnt_perror()Theo de Raadt
2002-09-10better, faster scooter; fix cerror in mi somedayMichael Shalayeff
2002-09-10mi versions are good enoughMichael Shalayeff
2002-09-07ansi pedantic. ok deraadt@Jakob Schlyter
2002-09-06missing include, ok theoHenning Brauer
2002-09-06use socklen_t where needed; henning pvalchev okTheo de Raadt
2002-09-04spellingTheo de Raadt
2002-08-30re-enable function pointer table protection, this time make sure thatDaniel Hartmeier
malloc.c gets the first mmap() call (since it depends on that, for its sbrk(0) use). ok deraadt@