summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* remove references to sparctedu2016-09-012-8/+8
|
* Update list of ioctls for the audio promise. Suggested by jmc@, thanks.ratchov2016-09-011-7/+6
|
* Mention explicit_bzero(3); ok jmcnatano2016-09-011-3/+5
|
* retire the sparc library codetedu2016-09-0145-2600/+0
|
* Store the return value of mbrtowc() in a size_t, not int.millert2016-08-291-13/+15
| | | | OK schwarze@
* Don't call lstat() before readlink() just to see if it's a symlink,guenther2016-08-281-14/+17
| | | | | | as readlink() will tell you that more cheaply. ok millert@
* Stop recommending the non-standard and slightly dangerous fgetln(3).schwarze2016-08-271-4/+4
| | | | Recommend POSIX getline(3) instead.
* When a precision is specified for a string format use strnlen()millert2016-08-271-17/+7
| | | | to determine the length instead of doing it manually. OK schwarze@
* improve revision 1.2: in unusual cases, fgetwc(3) can succeedschwarze2016-08-271-2/+12
| | | | | | even though ferror(3) is already set; also from Andrey Chernov <ache at freebsd dot org>; OK millert@
* Pull in <stdio.h> for NULLguenther2016-08-271-1/+2
| | | | ok deraadt@
* Pull in <time.h> for clock_gettime()guenther2016-08-261-1/+2
| | | | ok deraadt@
* After read errors, fgetln(3) sometimes succeeded (returning non-NULL)schwarze2016-08-251-3/+6
| | | | | | | | | | | | and failed (setting errno and ferror(3)) both at the same time. That's a bad idea in general, and here in particular since returning partial lines was neither reliable (sometimes, you got NULL anyway) nor predictable (almost always, the line would be truncated long before the actual read error). Instead, on read failure, fail properly and always return NULL. Issue found in a discussion with Andrey Chernov <ache at freebsd dot org> who finally agreed to move FreeBSD into the same direction. The fix is joint work with and OK by millert@.
* set the error indicator on malloc(3) failure;schwarze2016-08-241-2/+4
| | | | | from Andrey Chernov <ache at freebsd dot org>; OK millert@
* bugfix: when fgetwc(3) fails, fgetwln(3) must fail as well;schwarze2016-08-211-2/+2
| | | | OK jca@ martijn@ millert@
* fix obvious typo in the .Dt section numberschwarze2016-08-211-3/+3
|
* Sync connect_wait() example with its real usage in ftp(1).millert2016-08-201-22/+18
|
* Declare all _asr_* debug functions as hidden.jca2016-08-201-8/+8
| | | | Reported by & similar diff by guenther@ some time ago, ok eric@
* Add an EXAMPLES section that illustrates how to deal with connect(2)millert2016-08-181-2/+52
| | | | returning EINTR. OK jung@ deraadt@
* % is escaped with more %, not backslash.tedu2016-08-172-6/+6
|
* Generate syslog warnings for %s fmt strings NULL to "(null)" conversions.deraadt2016-08-172-5/+38
| | | | | | | | | | | Over time we can repair software which performs this non-standard behaviour, and fix bugs along the way. Let's first find out how bad the situation is by deploying this in snapshots. This type of logging is possible because OpenBSD syslog_r(3) -> sendsyslog(2) is side-effect free enough to be used in the bowels of libc. ok tedu
* wrterror() is fatal, delete dead code; ok tom@ natano@ tedu@otto2016-08-171-61/+22
|
* add a bit of spacing to previous, to keep the notes about deprecatedjmc2016-08-152-4/+6
| | | | | | functions out the way of the main body; ok guenther
* Reduce qabs() and qdiv() to aliases of llabs() and lldiv().guenther2016-08-1413-231/+39
| | | | | | Merge the manual pages and call them deprecated there. ok and manpage tweak jmc@, ok natano@
* Refer to /etc/passwd consistently as the "legacy password file" andtb2016-08-142-6/+6
| | | | | | remove some references to differences between versions 6 and 7. ok jmc, millert, tedu
* modern interfaces should use modern speelings, so spell quad_t as int64_t.tedu2016-08-131-3/+3
|
* Between relro and previous RWX work, the __{got,plt}_{start,end} symbolsguenther2016-08-112-6/+6
| | | | | | | are no longer needed by ld.so. Move them to the m88k-specific list, as it hasn't made the jump. ok deraadt@
* Expand the asynchronous connect information and move it out ofmillert2016-08-091-14/+32
| | | | | ERRORS and into a new second paragraph. Adapted from NetBSD. OK deraadt@ jmc@
* Document that connect goes async when interrupted by signal.millert2016-08-091-7/+5
|
* Add XOR cookies for lr and sp. Stop saving/restoring r12 to/from the jmpbuf.guenther2016-08-072-53/+97
| | | | | | | Switch from calling obsolete sig{block,setmask} to directly using the sigprocmask syscall. ok deraadt@ kettenis@
* Use internal names for __errno, _memcpy, memset, and {,_}{set,long}jmpguenther2016-08-0624-87/+106
| | | | | | | Eliminate pointless use of PIC_SYM() Split out DEFS.h from SYS.h like some other archs ok kettenis@ deraadt@
* Obvious minor fixes:schwarze2016-08-052-36/+57
| | | | | | | | * Add missing .Dv, .Ev, and .Fa macros. * Delete deprecated .Tn macros. * Mark up global variable names with .Va, not with .Fa or .Li. * Mark up config file commands with .Ic, not with .Fa. * Fix HISTORY, trivial to verify from the CSRG archive CD.
* Make RES_OPTIONS point directly to resolv.conf(5) instead of going throughmartijn2016-08-051-3/+3
| | | | | | resolver(3). OK jmc@
* RMD160Update actually takes size_t lengthtedu2016-07-281-3/+3
|
* Wrap fpgetround() so internal calls to it (seen on arm, powerpc, and sh)guenther2016-07-2612-21/+61
| | | | | | go direct instead of through the PLT. ok millert@ kettenis@
* Make the size for the syn cache hash array tunable. As we arebluhm2016-07-201-2/+7
| | | | | | | | swapping between two syn caches for random reseeding anyway, this feature can be added easily. When the cache is empty, there is an opportunity to change the hash size. This allows an admin under SYN flood attack to defend his machine. Suggested by claudio@; OK jung@ claudio@ jmc@
* We have __weak_alias() everywhere; remove obsolete #ifdef'sguenther2016-07-186-18/+6
| | | | ok deraadt@
* kern.usermount is currently a no-op;jmc2016-07-141-6/+3
| | | | ok deraadt
* Document that SIGTTOU is sent if the process is in the background.millert2016-07-101-2/+12
| | | | Adapted from text from tcsetattr(3).
* J/j is a three valued option, document and fix code to actuall support thatotto2016-07-061-3/+5
| | | | | with a little help from jmc@ for the man page bits ok jca@ and a reluctant tedu@
* Use fstatat() to avoid path surgery.guenther2016-07-061-12/+6
| | | | bug catching and ok millert@
* DEBUGLIBS has been broken since the gcc4 switch, so delete it. CFLAGSguenther2016-07-041-12/+1
| | | | | | | contains -g by default anyway problem noted by Edgar Pettijohn (edgar (at) pettijohn-web.com) ok millert@ kettenis@ deraadt@
* introduces new promise "chown" to allow changing owner/group with *chown(2) familysemarie2016-07-031-2/+6
| | | | | | | | | | | | it splits PLEDGE_FATTR in two ("fattr" stills grant the 2 flags, so no functional changes): - PLEDGE_CHOWN : to be able to call *chown(2) syscalls - PLEDGE_FATTR : the rest it introduces "chown" which grant: - PLEDGE_CHOWN : be able to call *chown(2) - PLEDGE_CHOWNUID : be able to modifying owner/group ok deraadt@ tedu@
* nptys sysctls were removedtedu2016-06-301-14/+2
|
* adapt S option: add C, rm F (not relevant with 0 cache and disablesotto2016-06-301-3/+3
| | | | chunk rnd), rm P: is default
* For the EINVAL case there can be more than a single option.millert2016-06-281-2/+2
|
* fts_open() requires that the list passed as argument to contain at leastmillert2016-06-282-4/+12
| | | | | | one path. When the list is empty (contain only a NULL pointer), return EINVAL instead of pretending to succeed, which will cause a NULL pointer deference in a later fts_read() call. From FreeBSD.
* Add sysctl for arp timers: net.inet.ip.arptimeout (expire timer for resolvedchris2016-06-281-2/+8
| | | | | | entries) and net.inet.ip.arpdown (expire timer for unresolved entries) ok mpi@
* Do not return an error in fts_open(3) if one of the paths in argvmillert2016-06-281-9/+2
| | | | | | is empty. Otherwise, programs using fts(3) will report an error if one of the paths is empty instead of just treating it as a non-existent file. OK guenther@
* fix a couple of errors in the page;jmc2016-06-281-4/+4
| | | | | | from henning petersen, netbsd pr lib/51284 ok semarie
* Back out previous; otto saw a potential race that could lead to atb2016-06-281-32/+23
| | | | | | double unmap and I experienced a much more unstable firefox. discussed with otto on icb