summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* include yp headers if necessary.eric2012-09-062-3/+15
| | | | remove unused variable.
* make it easy to build without debug codeeric2012-09-061-1/+3
|
* add a strsplit() helper to factorize code a bit.eric2012-09-061-28/+24
|
* YP is now supported.eric2012-09-061-3/+1
|
* remove unused member, reorganize a bit and sync manpage.eric2012-09-062-23/+22
|
* Get rid of the hostaddr_async subquery and merge its behavioureric2012-09-056-531/+298
| | | | | directly into getaddrinfo_async_run. Simplifies everything by a great deal.
* Implement basic (blocking) YP support for getaddrinfo_async().eric2012-09-051-5/+98
| | | | YP is now supported on all relevant resolver functions.
* Make hostaddr_async() return a linked list of struct addrinfo. Firsteric2012-09-055-216/+200
| | | | | | round of a getaddrinfo_async() simplification. The goal is to make YP support easier to add, and eventually remove the whole hostaddr_async subquery.
* arc4random_buf is the easy way to fill a buffer now. ok deraadttedu2012-09-041-10/+3
|
* Add support for -fPICderaadt2012-09-045-8/+61
| | | | ok kettenis
* implement basic YP support for gethostbyname_async()/gethostbyaddr_async()eric2012-09-041-1/+121
| | | | by using the blocking YP API internally.
* remove lint leftovers; ok guenther@okan2012-09-0436-532/+18
|
* these are no longer used; ok guentherderaadt2012-09-048-366/+0
|
* Make this __STDC__ aware.miod2012-09-011-1/+8
|
* sync comment with reality.fgsch2012-09-011-2/+2
|
* Fix _SC_CHILD_MAX, _SC_OPEN_MAX, and _SC_STREAM_MAX to correctlymatthew2012-08-291-6/+38
| | | | | | | | | | | handle rlim_cur set to RLIM_INFINITY or values greater than LONG_MAX, as unlikely as those are to happen. Further limit _SC_STREAM_MAX to at most SHRT_MAX, because struct __sFILE uses a short int for storing the file descriptor. While here, also remove a dead label that Clang complains about. From FreeBSD via Brad.
* Remove landisk gcc 3 compiler workaround. Reminded by martynas@ and bradmiod2012-08-271-61/+1
|
* Don't attempt to warn about uninitialized __guard values yet. It'smatthew2012-08-241-2/+2
| | | | | | too early to assume that everyone has updated their compiler toolchains, and it seems to cause problems at least on armish when an out-of-date binutils is used.
* crank due to nnpfspioctl() syscall stub removalderaadt2012-08-231-1/+1
|
* no more nnpfspioctl() system call; ok guentherderaadt2012-08-232-4/+3
|
* We cannot just copy mcount.o to mcount.po, since the former may be PIE andpascal2012-08-221-4/+7
| | | | | | profiling does not work well along with PIE. ok deraadt@ guenther@
* Fix missing PIC -> __PIC__ conversions; ok pascalderaadt2012-08-224-10/+10
|
* rfc 2553 (not 2533) has been replaced by rfc 3493;jmc2012-08-221-5/+6
|
* Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccpascal2012-08-2264-165/+174
| | | | | | | invocations. This allows us to use the compiler builtin define __PIC__ to check for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot. ok matthew@, conceptually ok kurt@
* Change ld.so and libc to use .openbsd.randomdata on ELF platforms formatthew2012-08-221-4/+17
| | | | | | | | | | initializing their __guard values. For the time being, we're leaving libc's constructor method as a backup to make sure __guard actually gets initialized and to emit syslog warnings when it's not. Not really an ABI change, so no shlib bump... "hold on to your butts" ok deraadt, kettenis
* - remove inconsistent/obsolete commentsjmc2012-08-214-48/+35
| | | | | - update rfc references - make the Rs/Re blocks more consistent
* Kill an old mips workaround; we don't support mips, just mips64.pascal2012-08-211-22/+1
| | | | ok deraadt@ kettenis@
* flesh out the rfc section;jmc2012-08-211-10/+33
| | | | rfc 5321 replaces 974 and 2821;
* rfc 4291 replaces rfcs 2373 and 3513;jmc2012-08-201-9/+16
|
* Build static netent and hostent structure in a nicer and hopefully noteric2012-08-191-95/+100
| | | | | broken way. Make it almost trivial to implement gethostby*_r() family of functions when needed.
* When building dynamic hostent and netent, allocate a single linear buffer toeric2012-08-196-104/+88
| | | | | | hold both the structure and the data. The freehostent() and freenetent() API functions are not needed anymore. While there, ensure that the constructed addr and alias lists are really NULL terminated.
* ensure that async_run() and async_run_sync() always preserve errno.eric2012-08-183-13/+27
|
* RFC updates:jmc2012-08-181-3/+3
| | | | | | 5322 obsoletes 2822 5321 obsoletes 821 and 2821 6409 obsoletes 2476 and 4409
* RFCs 2461 and 2462 have been replaced by, respectively, RFCs 4861 and 4862;jmc2012-08-181-6/+6
|
* getrrsetyname() only uses ERRSET_* and is not supposed to set errno.eric2012-08-182-12/+12
| | | | make sure to save and restore errno properly.
* Simplify error reporting in hostaddr_async(). Only use EAI_* error codes.eric2012-08-181-11/+2
|
* Improve error reporting in getnameinfo_async() and getaddrinfo_async().eric2012-08-183-57/+46
| | | | | | | | | | They do not have to deal with h_errno at all. Also, errno is only kept for EAI_SYSTEM. Small code cleanup while there. Adapt getnameinfo() and getaddrinfo() wrappers to correctly save errno and overwrite it in the EAI_SYSTEM case. General errno handling issue reported by mikeb@.
* within Rs/Re reference blocks, use %U instead of %O (or any otherjmc2012-08-181-3/+3
| | | | | | | | | variants) for URLs, allowing mandoc -Thtml to properly generate links; (sendmail.8 changes are simply using Lk, which i somehow missed in previous) ingo reminded me to verify that gnu groff recognises %U: 1.20.1 does not, but 1.21 does;
* A couple small but long anticipated changes:matthew2012-08-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | - Link libpthread.so with -znodlopen. Because libpthread overrides the weak symbols in libc, we can't allow it to be dynamically loaded or else libc's weak symbols might have already been resolved by ld.so. (Also, major bump because this is technically a backwards incompat change in behavior, although dlopen()ing libpthread never really worked.) - Link libc.so with -nodefaultlibs -lgcc. This ensures that libc doesn't try to link against itself (which ld.so wouldn't like). - Change GCC 4 to link shared objects with -lpthread and -lc as appropriate, now that there's no issues with doing so. This means that it's no longer necessary to patch software to use -pthread instead of -lpthread. (Ports tree rejoice!) Also, to preemptively answer this question: No, this does not eliminate the need for LD_PRELOAD=libpthread.so. That's a separate issue that won't be resolved until we eliminate libc's weak symbols. Discussed extensively on email and icb over the past few months. ok deraadt
* remove unused variablechl2012-08-141-2/+1
| | | | ok matthew@
* Fix almost ten-years old bug in siglongjmp(), which would not restore a signalmiod2012-08-123-87/+57
| | | | | | | | | | | | | mask of zero (because of flawed logic assuming finding zero in the sigjmp_buf signal mask means sigsetjmp was invoked with a zero `savemask' argument). While there, clean comments of all *{set,long}jmp routines, and shave a few instructions by using bcnd insead of cmp + bb to test for zero values. Passes the regress tests, and now devel/libsigsegv configure siglongjmp test will not spin (this test is however flawed as it expects a signal handler declared as running on the sigaltstack and `returning' through siglongjmp to be invoked on the signal stack the next time the signal is raised).
* remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan2012-08-022-24/+2
| | | | ok guenther@
* must be zero'd (found by regress)eric2012-07-291-1/+2
|
* remove reference to no longer existing description of nonexistent devices;naddy2012-07-261-7/+4
| | | | ok deraadt@ tedu@, wording tweaks jmc@
* Remove outdated reference to BSD 4.4 symlink behavior. Equivalentmatthew2012-07-171-11/+2
| | | | text was removed from symlink.7 over 16 years ago.
* Document new pathconf() variables.matthew2012-07-171-10/+51
| | | | From Brad, with tweaks by me.
* properly report EAI_SERVICE when the given servname is not defined foreric2012-07-131-2/+4
| | | | the given protocol.
* Use same (lame) verbiage to explain ifa_dstaddr as is used forkrw2012-07-131-3/+4
| | | | | | | | ifa_broadaddr. i.e. make it make clear that this field is only valid for P2P. (Hint: one's a field, and one's a #define giving a new name to said field) ok guenther@
* unused variableseric2012-07-121-2/+2
|
* implement res_mkqueryeric2012-07-111-1/+47
|