summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix matching when all of user, host and domain are specified.millert2016-09-241-10/+8
| | | | OK guenther@
* no more KERN_ARND; ok deraadtjmc2016-09-211-10/+2
|
* Delete casts to off_t and size_t that are implied by assignmentsguenther2016-09-214-21/+18
| | | | | | | or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
* Remove usermount remnants. ok tedunatano2016-09-071-5/+2
|
* tweak previous;jmc2016-09-031-2/+3
|
* note that getpass is obsolete. removed from posix in 2001.tedu2016-09-031-3/+10
|
* Mention explicit_bzero(3); ok jmcnatano2016-09-011-3/+5
|
* Pull in <stdio.h> for NULLguenther2016-08-271-1/+2
| | | | ok deraadt@
* 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
* 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@
* kern.usermount is currently a no-op;jmc2016-07-141-6/+3
| | | | ok deraadt
* Use fstatat() to avoid path surgery.guenther2016-07-061-12/+6
| | | | bug catching and ok millert@
* nptys sysctls were removedtedu2016-06-301-14/+2
|
* 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@
* make proper use of fstatat, as suggested by guenther@espie2016-06-271-8/+6
| | | | okay millert@
* make the fallback code more accurate (in particular, it should return namesespie2016-06-271-4/+4
| | | | | | | | | based on the actual device, not any kind of inode equality which won't hold for duplicates of the dev tree in a chroot) no bump as it doesn't change any API. okay and improvements guenther@
* sort previous;jmc2016-06-181-18/+18
|
* Add net.inet.{tcp,udp}.rootonly sysctl, to mark which portsvgross2016-06-181-2/+19
| | | | | | cannot be bound to by non-root users. Ok millert@ bluhm@
* Document the net.inet.tcp.synuselimit sysctl; OK bluhm@ jmc@tim2016-06-071-2/+6
|
* Kill sysctl net.inet6.ip6.rr_prunejca2016-06-011-7/+2
| | | | | We don't support Router Renumbering and there are no plans to change that. ok mpi@
* wxabort bits; ok deraadtjmc2016-05-291-2/+7
|
* The synopsis rendered very poorly because of a "Quite Ugly buttb2016-05-281-6/+8
| | | | | | | | syntactically correct" roff mess. Follow the mdoc style guide on function pointers to improve this a little. Neglect and remove a comment that advises against trying to fix this. guidance and ok schwarze@
* Use S_ISDIR instead of doing it by hand. No binary change.millert2016-05-261-3/+2
|
* Stop supporting longjmperror(); it's not used, not portable, and the checksguenther2016-05-233-78/+7
| | | | | | | longjmp performs can't really be relied upon, even after we got rid of the false positives... ok millert@ deraadt@
* no more v6only;jmc2016-05-191-12/+2
|
* Reduce quadruple negation to double negation;schwarze2016-05-181-10/+10
| | | | | | | from Edgar Pettijohn <edgar at pettijohn minus web dot com>. OK jmc@ deraadt@ While here, remove two instances of inconsistent future tense.
* remove extra argument; from rafael nevesjmc2016-05-131-3/+3
|
* remove hppa64 port, which we never got going beyond broken single users.deraadt2016-05-111-4/+3
| | | | | | hppa reverse-stack gives us a valuable test case, but most developers don't have a 2nd one to proceed further with this. ok kettenis
* stop opening the shadow database by default. only programs that request ittedu2016-05-071-5/+3
| | | | | | via the _shadow functions will open now, preventing some programs running as root from accidentally loading password hashes it into their memory. ok deraadt
* Avoid a transient PLT entry for the internal __getcwd syscall stub forguenther2016-05-071-1/+2
| | | | slightly better code on some archs
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-072-9/+61
| | | | | | | | | | | | | | | | | This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable! Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now! Clean up libpthread's symbol exports like libc. On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec. Testing by various, particularly sthen@ and patrick@ ok kettenis@
* Eliminate userspace caching by getlogin_r/setlogin; make the getloginguenther2016-03-301-53/+8
| | | | | | | | syscall behave exactly like userspace getlogin_r() and rename it to match. Eliminate the reduced-to-no-op wrappers of the syscalls. Eliminate the unnecessary per-thread static buffering by getlogin(). ok kettenis@ deraadt@
* some Xr adjustment to catch up with MLINKS removal;jmc2016-03-302-6/+6
|
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-104/+1
| | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
* remove unused variablechl2016-03-271-2/+2
| | | | ok millert@
* fix the last bunch of NAME sections that were overlooked earlierschwarze2016-03-261-5/+5
| | | | | such that the MLINKS removal can be committed after this; OK jmc@
* Rename the system call sendsyslog2 to sendsyslog. Keep the old onebluhm2016-03-211-3/+3
| | | | | | as osendsyslog for a while. The three argument variant is the only one that will stay. input kettenis@; OK deraadt@
* Rearrange C runtime bits: now that ld.so exports environ and __progname,guenther2016-03-202-8/+8
| | | | | | | | | | | move their definitions and initialization in static links to libc.a Make crt0 always invoke a new func _csu_finish() in libc to process the auxv and to either register the ld.so cleanup function (in dynamic links) or initialize environ and __progname and do MC_DISABLE_KBIND (in static links). In libc, get pagesize from auxv; cache that between getpagesize() and sysconf(_SC_PAGESIZE) ok mpi@ "good time" deraadt@
* remove NOTREACHEDmmcc2016-03-171-2/+1
|
* environ and __progname are not declared in a public header; declare themguenther2016-03-1312-37/+16
| | | | | | in libc's hidden/stdlib.h instead of in each .c file that needs one ok deraadt@ gsoares@ mpi@
* ANSIfy function declarations, move initializations to declaration blockmmcc2016-03-101-19/+10
| | | | ok millert@
* un-vax;jmc2016-03-101-17/+2
|
* KNF this file; OK stsp@millert2016-03-011-350/+349
|
* Add NET_RT_IFNAMES; OK deraadt@tim2016-02-291-1/+2
|
* __tfork is section 3, not 2;jmc2016-02-291-2/+2
|
* delete the kern.emul/KERN_EMUL sysctl bits since there are nonaddy2016-02-291-27/+2
| | | | emulations left; ok millert@ deraadt@, jmc@ (man pages)
* Fix negation of POSIX character classes; passed new regress test.millert2016-02-261-4/+10
| | | | OK tb@