summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2012-08-27Remove landisk gcc 3 compiler workaround. Reminded by martynas@ and bradMiod Vallat
2012-08-27let regen_headers also take care of sqlite3.pc.in => sqlite3.pcMarc Espie
"moui" landry@
2012-08-24Don't attempt to warn about uninitialized __guard values yet. It'sMatthew Dempsky
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.
2012-08-23Aliases for extended precision were missed on a few functions on hppa.Martynas Venckus
Reported by Brad, thanks!
2012-08-23The afs stubs in here that used to call the nnpfspioctl() now all returnTheo de Raadt
ENOSYS themselves. ok guenther
2012-08-23knowledge of nnpfs can be removedTheo de Raadt
2012-08-23crank due to nnpfspioctl() syscall stub removalTheo de Raadt
2012-08-23no more nnpfspioctl() system call; ok guentherTheo de Raadt
2012-08-22We want to check that the dynamic linker is available at run-time, soMatthew Dempsky
we should actually check for _DYNAMIC at run-time rather than checking for __PIC__ at compile time, since the two are actually independent. Problem and solution identified by guenther; minor tweaks by me. ok guenther
2012-08-22We cannot just copy mcount.o to mcount.po, since the former may be PIE andPascal Stumpf
profiling does not work well along with PIE. ok deraadt@ guenther@
2012-08-22Test for __PIC__ instead of PIC in preparation for eliminating -DPICMatthew Dempsky
from bsd.lib.mk for C source files. ok deraadt, pascal
2012-08-22Fix missing PIC -> __PIC__ conversions; ok pascalTheo de Raadt
2012-08-22rfc 2553 (not 2533) has been replaced by rfc 3493;Jason McIntyre
2012-08-22Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccPascal Stumpf
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@
2012-08-22Change ld.so and libc to use .openbsd.randomdata on ELF platforms forMatthew Dempsky
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
2012-08-21When deciding whether we're PIC in a (generated) asm file, check for both PICPascal Stumpf
and __PIC__ defines. Makes things easier for PIE. ok djm@
2012-08-21- remove inconsistent/obsolete commentsJason McIntyre
- update rfc references - make the Rs/Re blocks more consistent
2012-08-21flesh out the rfc sections;Jason McIntyre
2012-08-21Kill an old mips workaround; we don't support mips, just mips64.Pascal Stumpf
ok deraadt@ kettenis@
2012-08-21flesh out the rfc section;Jason McIntyre
rfc 5321 replaces 974 and 2821;
2012-08-20rfc 4291 replaces rfcs 2373 and 3513;Jason McIntyre
2012-08-19Update version to 3.7.13 to match reality.Landry Breuil
ok espie@
2012-08-19Build static netent and hostent structure in a nicer and hopefully notEric Faurot
broken way. Make it almost trivial to implement gethostby*_r() family of functions when needed.
2012-08-19When building dynamic hostent and netent, allocate a single linear buffer toEric Faurot
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.
2012-08-19Fix ranges in the method description.Martynas Venckus
2012-08-18ensure that async_run() and async_run_sync() always preserve errno.Eric Faurot
2012-08-18RFC updates:Jason McIntyre
5322 obsoletes 2822 5321 obsoletes 821 and 2821 6409 obsoletes 2476 and 4409
2012-08-18RFCs 2461 and 2462 have been replaced by, respectively, RFCs 4861 and 4862;Jason McIntyre
2012-08-18getrrsetyname() only uses ERRSET_* and is not supposed to set errno.Eric Faurot
make sure to save and restore errno properly.
2012-08-18Simplify error reporting in hostaddr_async(). Only use EAI_* error codes.Eric Faurot
2012-08-18Improve error reporting in getnameinfo_async() and getaddrinfo_async().Eric Faurot
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@.
2012-08-18within Rs/Re reference blocks, use %U instead of %O (or any otherJason McIntyre
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;
2012-08-15use Lk for links;Jason McIntyre
2012-08-15A couple small but long anticipated changes:Matthew Dempsky
- 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
2012-08-15Oops, on a.out architectures __cerror() is called _cerror(). FixMatthew Dempsky
accordingly so vax can build again. ok deraadt
2012-08-14remove unused variableCharles Longeau
ok matthew@
2012-08-13Add explicit references from rthread.o to all of the weak symbolMatthew Dempsky
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@;
2012-08-12Fix almost ten-years old bug in siglongjmp(), which would not restore a signalMiod Vallat
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).
2012-08-12Use .Lk for HTTP hyperlinks, not .Pa.Ingo Schwarze
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.
2012-08-04Fix caching of stacks allocated with the default attributes.Philip Guenthe
based on a diff from Christian Schulte (cs at schulte.it)
2012-08-02remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.Okan Demirmen
ok guenther@
2012-07-29must be zero'd (found by regress)Eric Faurot
2012-07-26remove reference to no longer existing description of nonexistent devices;Christian Weisgerber
ok deraadt@ tedu@, wording tweaks jmc@
2012-07-17Remove outdated reference to BSD 4.4 symlink behavior. EquivalentMatthew Dempsky
text was removed from symlink.7 over 16 years ago.
2012-07-17Document new pathconf() variables.Matthew Dempsky
From Brad, with tweaks by me.
2012-07-16revert previous, it was hardly tested and is causing too many issues too ↵Jasper Lievisse Adriaanse
close to release. as discussed with and ok mpi@ deraadt@
2012-07-16Add a man page describing pcap grammargiovanni
help from lteo@, claudio, jmc@ ok jmc@
2012-07-13properly report EAI_SERVICE when the given servname is not defined forEric Faurot
the given protocol.
2012-07-13Use same (lame) verbiage to explain ifa_dstaddr as is used forKenneth R Westerback
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@
2012-07-12Skip printing another SSLv2-only command in s_client's usage text.Stuart Henderson
jmc@ noticed this in the manpage while updating it, but it applies here too.