summaryrefslogtreecommitdiffstats
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fix ranges in the method description.martynas2012-08-191-5/+5
|
* 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;
* use Lk for links;jmc2012-08-154-12/+12
|
* A couple small but long anticipated changes:matthew2012-08-153-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | - 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
* Oops, on a.out architectures __cerror() is called _cerror(). Fixmatthew2012-08-151-3/+9
| | | | | | accordingly so vax can build again. ok deraadt
* remove unused variablechl2012-08-141-2/+1
| | | | ok matthew@
* Add explicit references from rthread.o to all of the weak symbolmatthew2012-08-131-1/+71
| | | | | | | | | | | overrides provided by libpthread.a. This ensures that statically linked threaded programs use (e.g.) __cerror() from libpthread.a instead of libc.a. (Same idea previously used by libuthread.) Thanks to fgsch@ for pointing out libuthread's solution to the static linking problem. ok guenther@, tedu@;
* 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).
* Use .Lk for HTTP hyperlinks, not .Pa.schwarze2012-08-122-6/+6
| | | | | | | | Most of the patch from Arto Jonsson <ajonsson at kapsi dot fi>. jmc@ agrees in principle that .Lk is the right macro to use. While here, update a few broken links, and add missing markup at a few places.
* Fix caching of stacks allocated with the default attributes.guenther2012-08-041-6/+8
| | | | based on a diff from Christian Schulte (cs at schulte.it)
* remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan2012-08-0232-84/+31
| | | | 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.
* revert previous, it was hardly tested and is causing too many issues too close to release.jasper2012-07-167-370/+210
| | | | as discussed with and ok mpi@ deraadt@
* Add a man page describing pcap grammargiovanni2012-07-163-7/+737
| | | | | help from lteo@, claudio, jmc@ ok jmc@
* 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@
* Skip printing another SSLv2-only command in s_client's usage text.sthen2012-07-121-0/+2
| | | | jmc@ noticed this in the manpage while updating it, but it applies here too.
* unused variableseric2012-07-121-2/+2
|
* add support to get signed/unsigned HID datayuo2012-07-121-7/+9
|
* make -j# fix, I had this forever actually.espie2012-07-111-3/+6
| | | | okay millert@
* implement res_mkqueryeric2012-07-111-1/+47
|
* - port multiple report ID support for HID parser from FreeBSD codeyuo2012-07-117-213/+394
| | | | | | | | | | (rev. 205728, 224511 and 225839) - add hid_get_report_id(3) to get id of a descriptor. - crank the major in shlib_version 3.0 -> 4.0 ok deraadt@, mpi@
* Disable SSLv2 in OpenSSL. No objections from djm.sthen2012-07-1119-7/+94
| | | | Brad, jasper and naddy helped with test builds, fixing ports, etc.
* fix an off-by-one error where the return value would point to thenaddy2012-07-111-2/+2
| | | | character after the '\0'; ok guenther@
* sem_timedwait() needs the struct timespec tag to be pre-declared here.guenther2012-07-111-3/+4
| | | | Add restrict qualifiers.
* same code update and fix as for gethostnamadr_asynceric2012-07-101-55/+77
|
* simplify the code, improve error handling and plug a potential fd leak on erroreric2012-07-101-71/+101
|
* use the value actually passed to the functioneric2012-07-101-2/+2
|
* Better handling of servname in getaddrinfo_async. Do not necessarilyeric2012-07-101-11/+16
| | | | | fail if there is no entry for a given protocol. Fix issue reported by early testers.
* ANSIfy forkpty, add missing $OpenBSD$ in duid.c, style (no arg names) innicm2012-07-093-16/+13
| | | | | | util.h. ok guenther
* Use the PAGE_* forms (instead of the ancient BSD forms) in param.h,deraadt2012-07-094-19/+19
| | | | | | | because param.h will get a kick in the head sometime in the future. One day, maybe both can become invisible, but we boot one of them first. ok guenter
* use PAGE_SHIFT instead of PGSHIFT, in preperation for futurederaadt2012-07-091-2/+2
| | | | | param.h symbol reduction. ok guenther
* implement res_querydomain() required by sendmaileric2012-07-081-1/+30
|
* add stub function for gethostent(), and move things around a bit while here.eric2012-07-081-12/+19
|
* Zap extra spaces from function pointer argumentsguenther2012-07-082-8/+8
| | | | Pointed out by Joachim Schipper (joachim at joachimschipper.nl)
* Describe tdelete()'s return value correctly and update the related CAVEATguenther2012-07-081-12/+15
| | | | | Based on a note from Steffen Daode Nurpmeso (sdaoden at googlemail.com) ok jmc@
* rename function to avoid symbol clasheric2012-07-073-12/+8
|
* remove bogus include of bsd.lib.mkeric2012-07-071-3/+1
|
* unbreak, pointed out by theojasper2012-07-071-2/+1
|