summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2008-01-07update to tzcode2007k from elsie.nci.nih.govTodd C. Miller
2008-01-05no more need for vadvise.oTheo de Raadt
2008-01-05crank libc and libpthread, because libc cannot build lint libraries anymore ↵Theo de Raadt
if a syscall is OBSOL..
2008-01-01- make arc4random*() functions thread safe. Use a custom spinlock functionKurt Miller
instead of the generic pthread macros since free(3) uses __arc4_getbyte() when freeing small sized allocations and the generic pthread macros call malloc(3). - eliminate passing pointers to a static variable with global scope (rs) for additional code clarity and reduction. - shlib minor bumps for libc and libpthread due to new functions. From andreas@ with some bits from me. okay tedu@ marc@ w/some spot checking from millert@
2007-12-29update to tzcode2007j from elsie.nci.nih.gov; mostly ANSIficationTodd C. Miller
2007-12-13implement sysctls to report IP, TCP, UDP, and ICMP statistics andReyk Floeter
change netstat to use them instead of accessing kvm for it. more protocols will be added later. discussed with deraadt@ claudio@ gilles@ ok deraadt@
2007-12-09correct the STANDARDS section to mention clock_getres() instead ofBrad Smith
clock_setres(). ok jmc@ dlg@
2007-11-28%hhd was being printed as if %hd was specifiedTheo de Raadt
ok millert tedu
2007-11-28remove unused functionCharles Longeau
ok otto@
2007-11-27typos; ok jmc@Martynas Venckus
sys/dev/pci/pciide.c from naddy@
2007-11-26make popen/pclose thread safe. closes library/5634. from and okay andreas@Kurt Miller
2007-11-19remove unused zero length file.Kurt Miller
2007-11-19fix misleading comment; the _MUTEX_LOCK/_MUTEX_UNLOCK macros work withKurt Miller
both static and non-static mutexs.
2007-11-13Put limits.h in front of stdlib.h as style(9) recommends.Tobias Stoeckmann
OK millert@
2007-11-11strtod may return HUGE_VAL on overflow, which is defined in math.h.Tobias Stoeckmann
Therefore added math.h to SYNPOSIS. OK millert@
2007-11-09Stash value of log_tag before calling closelog_r() and restore it after.Todd C. Miller
When closelog() was modified to clear log_tag it inadvertantly made syslog_r() (which calls closelog_r at the end) clear log_tag as well. OK miod@ dhartmei@
2007-11-06malloc/memset -> callocCharles Longeau
ok ray@
2007-11-05sync the comments for struct stat w/ <sys/stat.h>;Jason McIntyre
2007-11-05- sync the error descriptions w/ those in errlistJason McIntyre
- escape "No" incase groff thinks it's a macro call
2007-11-02Simplify some of the logic in fts_close(). Initially based on aTodd C. Miller
diff from chl@. OK otto@ and chl@.
2007-11-01Fix waitpid() idiom. Noticed by deraadt@Todd C. Miller
2007-10-31Add parentheses to avoid warning:Charles Longeau
"suggest parentheses around && within ||" ok millert@
2007-10-30If we receive SIGTTOU when turning off echo, the process is alreadyTodd C. Miller
backgrounded. Do not print the password prompt in this case since the first read will result in the process receiving SIGTTIN. Fixes an issue where the password prompt would be displayed when readpassphrase() would not be able to read anything. OK deraadt@
2007-10-27Repair FLT_ROUNDS operation. ok kettenis@Miod Vallat
2007-10-25Make sure to use unique target names so that make -j does not break;Miod Vallat
feedback and ok espie@
2007-10-24Change the syscall invocation sequences to no longer fetch the last fewMiod Vallat
arguments from the stack, since the kernel will now copyin() them when necessary. This makes all system calls (but mmap()) slightly faster. WARNING! After this commit, your binaries must run against a kernel featuring m88k/m88k/trap.c r1.34 or better - i.e. a 4.1 or later kernel.
2007-10-21Comment fix about time consumption of _gettemp.Tobias Stoeckmann
FreeBSD did this in revision 1.20. OK deraadt@, krw@
2007-10-12fix typo in _telldir_unlocked function prototype, to avoid warning.Charles Longeau
while there, put all function prototypes in header file. ok kurt@
2007-10-11use RRSIG instead of SIG for DNSSEC. ok djm@Jakob Schlyter
2007-10-10add a proper test around allocsetCharles Longeau
use a simpler way to allocated memory in allocset, mostly done by replacing malloc/realloc dance, by only one realloc add comments about variables that are not used uninitialized, even if gcc told the contrary another malloc/realloc -> realloc change Work initially started by otto@, and then I joined him ok otto@ ray@
2007-10-08add a RETURN VALUES section.Pierre-Yves Ritschard
ok jmc@
2007-10-08attribute packed -> __packedGilles Chehade
OK millert
2007-10-04update to tzcode2007h from elsie.nci.nih.govTodd C. Miller
2007-10-02fix a libpthread PANIC in seekdir(3) caused by a recursive mutex lock.Kurt Miller
remove the recursive lock in __seekdir() and ensure all callers properly lock dd_lock prior to calling. reported and tested by bernd@ okay marc@ tedu@
2007-09-27strtol -> strtonumBret Lambert
assign values to struct members directly remove now-unused variable ok otto@ ok & input millert@
2007-09-25tweak previous; ok claudio henningJason McIntyre
2007-09-24updatecomment and manpage toemtion optional seventh level (rtable id)Henning Brauer
From: Pierre Riteau <pierre.riteau@free.fr>
2007-09-21Add some more truncation checks for path construction in tmpnam(3).Moritz Jodeit
ok ray@
2007-09-19add HISTORY; shortened version of diff from Ilya A. KovalenkoJason McIntyre
ok millert
2007-09-17Fix comment typos; ok ray@, jmc@Bret Lambert
2007-09-17Prevent out-of-bounds memory access in tempnam(3), if the environmentMoritz Jodeit
variable TMPDIR or the argument `dir' is an empty string. With and ok millert@ ray@
2007-09-17Check snprintf(3) return value for error or truncation.Moritz Jodeit
Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@
2007-09-16for get the flags arg must be 0; from Tamas TEVESZ; ok millert@Otto Moerbeek
2007-09-12Remove wrong snprintf(3) truncation checks, which can't beMoritz Jodeit
triggered and are off-by-one anyways. Instead replace them with correct checks and add all the missing cases. ok deraadt@
2007-09-10Proper use of fseek/fseeko macros.Tobias Stoeckmann
OK joris@, otto@
2007-09-09Add lint stubs for the longjmp family of functions which are defined inOtto Moerbeek
assembly on all platforms. ok deraadt@
2007-09-09Silence erroneous "environ used, but not defined" lint warning byOtto Moerbeek
providing a stub. ok deraadt@
2007-09-08typo; ok deraadt@Otto Moerbeek
2007-09-08it's MAXNAMLEN, not MAXNAMELEN; spotted by Igor Zinovi.Otto Moerbeek
2007-09-07IPv6 is not an ARPA protocol;Jason McIntyre
from Robert Elz, netbsd-bugs pr#36933 ok otto deraadt