summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Improve the libc DNS resolver ID generation algorithm to be moredjm2008-04-131-43/+79
| | | | | | | resistant to prediction atacks by wrapping the existing LCG in a random permutation generator based on a Luby-Rackoff block cipher. lots of discussion and final ok deraadt@
* Use arc4random_buf() when requesting more than a single word of outputdjm2008-04-131-2/+2
| | | | | | | Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@
* document EINVAL; from Dasnjmc2008-04-051-2/+8
| | | | ok millert
* alter internal _readdir_unlocked() api to be less confusing, so thatokan2008-04-042-18/+21
| | | | | | | | | callers may respond accordingly and correctly. this fixes an issue where readdir_r() could not decipher the difference between an error or no more entires. feedback and ok kurt@, ok millert@
* - do not call pthread_atfork(3) handlers when a multithreaded programkurt2008-04-043-6/+19
| | | | | | calls vfork(2). "untested, but looks OK" marc@ - document vfork(2), popen(3) and system(3) don't call atfork handlers in multithreaded programs. okay jmc@
* Zero out the password/response argument in the simplified BSD authmillert2008-04-043-7/+34
| | | | | interafces. Otherwise, we end up with an extra copy in memory when auth_call() forks that is not possible to clear.
* Zero state buffers on return. OK deraadt@millert2008-04-021-1/+5
|
* Update to tzcode 2008a from elsie.nci.nih.govmillert2008-03-312-14/+21
|
* HISTORY tweak; ok ottojmc2008-03-261-3/+5
|
* be more explicit about the unit used for the f_b* fields; prompted byotto2008-03-251-1/+6
| | | | and ok djm@
* section 3, Darrin Chandlerotto2008-03-251-3/+3
|
* msg_controllen has to be CMSG_SPACE so that the kernel can account forderaadt2008-03-241-2/+2
| | | | | | | each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
* flag constant values should be UL, spotted by deraadt@otto2008-03-221-3/+3
|
* move statvfs.c to gen, since it is not a syscall; ok deraadt@otto2008-03-223-10/+11
|
* overdue statvfs man pageotto2008-03-221-0/+151
|
* bcmp(3) tries to return length, which is a size_t, as an int.ray2008-03-191-4/+4
| | | | | | | | Instead, just return 1 if there is a difference. Found by lint. OK millert.
* - add NAME entries for arc4random_buf and arc4random_uniformjmc2008-03-161-2/+4
| | | | - simplify a macro call (Do/Dc -> Dq)
* Add missing MLINKSderaadt2008-03-161-1/+2
|
* sync with sys/statfs.h; ok jmc@otto2008-03-161-20/+25
|
* bumpotto2008-03-161-1/+1
|
* Add the semi-standard _SC_PHYS_PAGES and _SC_AVPHYS_PAGES, sysconf(3) variable.kettenis2008-03-162-3/+33
| | | | ok espie@
* diff from djm@ committed at his request:otto2008-03-162-3/+84
| | | | | | | | | | | | | | introduce two new APIs for requesting strong random numbers: arc4random_buf() - fill an arbitrary memory range with random numbers arc4random_uniform() - return a uniformly distributed random number below a specified upper bound, avoiding the bias that comes from a naive "arc4random() % upper_bound" construction. these mirror similarly-named functions in the kernel; lots of discussion deraadt@ mcbride@
* indentderaadt2008-03-161-2/+3
|
* statvfs supportotto2008-03-162-2/+70
|
* - len is size_t, but n uses len and is an int. Matching those typesray2008-03-151-6/+12
| | | | | | | | | | | | | | | should be good, plus it prevents weird things from happening if len > INT_MAX. - Since n is now size_t, compare it against 0 instead of >= 0. - temp is used to store individual bytes, so use char instead (matches fp and tp). - millert noted that the comma operator may not guarantee order of execution, so replace with semicolons. Found by lint, OK millert.
* Convert c to unsigned char, like it says in the manual. Also addray2008-03-151-4/+3
| | | | | | cast to make it explicit. Found by lint, OK millert.
* Repair the simple cases for msg_controllen where it should just bederaadt2008-03-151-2/+2
| | | | | CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
* Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toderaadt2008-03-131-4/+7
| | | | an extensive discussion with otto, kettenis, millert, and hshoexer
* Have cfmakeraw() also reset VMIN and VTIME to their default values;deraadt2008-02-251-2/+3
| | | | ok kettenis miod
* if the first call to allocset() fails, the second might deref a NULLotto2008-02-231-1/+4
| | | | | pointer, so add a safety-net. From Gianluigi Tiesi via Torok Edwin. ok chl@ millert@
* use pgfree pool like other code does to reserve free list slots.otto2008-02-201-6/+6
| | | | | prevents a few "cannot free mem because i need mem to free mem" scenarios (one found by weingart@). ok weingart@ millert@ miod@
* The digest in the example seems to have been generatedart2008-02-131-3/+3
| | | | | | by code that does not do zero padding. The example code does. Fix. millert@ ok
* bump Mdocdate for pages committed in "febuary", necessary becausejmc2008-02-111-2/+2
| | | | of a typo in rcs.c;
* Mention new HW_PHYSMEM64 and HW_USERMEM64 variables. Mark HW_PHYSMEM andkettenis2008-02-091-2/+14
| | | | HW_USERMEM as deprecated and point people towards HW_PHYSMEM64/HW_USERMEM64.
* Move carp load balancing (ARP/IP) to a simpler configuration scheme.mpf2008-02-051-12/+2
| | | | | | | | | | | | | | Instead of using the same IP on multiple interfaces, carp has to be configured with the new "carpnodes" and "balancing" options. # ifconfig carp0 carpnodes 1:0,2:100,3:100 balancing ip carpdev sis0 192.168.5.50 Please note, that this is a flag day for anyone using carp balancing. You'll need to adjust your configuration accordingly. Addititionally this diff adds IPv6 NDP balancing support. Tested and OK mcbride@, reyk@. Manpage help by jmc@.
* Use TCSAFLUSH instead of TCSANOW when turning echo back on so thatmillert2008-01-171-2/+2
| | | | | there is no chance of output that was written but still pending to be displayed. This is what the original getpass(3) did.
* update to tzcode2007k from elsie.nci.nih.govmillert2008-01-076-115/+100
|
* no more need for vadvise.oderaadt2008-01-051-2/+2
|
* crank libc and libpthread, because libc cannot build lint libraries anymore if a syscall is OBSOL..deraadt2008-01-051-2/+2
|
* - make arc4random*() functions thread safe. Use a custom spinlock functionkurt2008-01-014-44/+89
| | | | | | | | | | | 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@
* update to tzcode2007j from elsie.nci.nih.gov; mostly ANSIficationmillert2007-12-296-258/+207
|
* implement sysctls to report IP, TCP, UDP, and ICMP statistics andreyk2007-12-131-2/+14
| | | | | | | | change netstat to use them instead of accessing kvm for it. more protocols will be added later. discussed with deraadt@ claudio@ gilles@ ok deraadt@
* correct the STANDARDS section to mention clock_getres() instead ofbrad2007-12-091-3/+3
| | | | | | clock_setres(). ok jmc@ dlg@
* %hhd was being printed as if %hd was specifiedderaadt2007-11-281-11/+16
| | | | ok millert tedu
* remove unused functionchl2007-11-281-10/+1
| | | | ok otto@
* typos; ok jmc@martynas2007-11-271-2/+2
| | | | sys/dev/pci/pciide.c from naddy@
* make popen/pclose thread safe. closes library/5634. from and okay andreas@kurt2007-11-261-10/+23
|
* remove unused zero length file.kurt2007-11-191-0/+0
|
* fix misleading comment; the _MUTEX_LOCK/_MUTEX_UNLOCK macros work withkurt2007-11-191-2/+2
| | | | both static and non-static mutexs.
* Put limits.h in front of stdlib.h as style(9) recommends.tobias2007-11-132-8/+8
| | | | OK millert@