| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
broken way. Make it almost trivial to implement gethostby*_r() family
of functions when needed.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
5322 obsoletes 2822
5321 obsoletes 821 and 2821
6409 obsoletes 2476 and 4409
|
| |
|
|
|
|
| |
make sure to save and restore errno properly.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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@.
|
|
|
|
|
|
|
|
|
| |
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;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
ok matthew@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
ok guenther@
|
| |
|
|
|
|
| |
ok deraadt@ tedu@, wording tweaks jmc@
|
|
|
|
| |
text was removed from symlink.7 over 16 years ago.
|
|
|
|
| |
From Brad, with tweaks by me.
|
|
|
|
| |
the given protocol.
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
| |
|
|
|
|
| |
character after the '\0'; ok guenther@
|
| |
|
| |
|
| |
|
|
|
|
|
| |
fail if there is no entry for a given protocol. Fix issue reported by
early testers.
|
|
|
|
|
| |
param.h symbol reduction.
ok guenther
|
| |
|
| |
|
|
|
|
| |
Pointed out by Joachim Schipper (joachim at joachimschipper.nl)
|
|
|
|
|
| |
Based on a note from Steffen Daode Nurpmeso (sdaoden at googlemail.com)
ok jmc@
|
| |
|
| |
|
|
|
|
| |
ok miod@ kettenis@
|
|
|
|
|
|
| |
the pointer
ok miod@ kettenis@
|
|
|
|
| |
ok miod@
|
|
|
|
|
|
| |
scanning for free space if the hint isn't available.
also, on further inspection, this will prevent pmap_prefer from "improving"
our hint.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
printf() and avoid calling it unless needed (i.e., when we have a
floating point value to print). This isn't a big concern currently
due to our limited locale support and current localeconv()
implementation, but it's still technically a data race and
implementing POSIX 2008 per-thread locales is likely to make it worse.
nl_langinfo() isn't guaranteed by POSIX to be thread-safe either, but
at least our current implementation is thread-safe and it's a simpler
interface to keep that way. Printing floating point values isn't
async-signal-safe anyway due to gdtoa()'s use of malloc(), so that's
not an issue.
ok deraadt, stsp, millert
|
|
|
|
|
| |
It turns out <float.h> is the right file to pull in.
ok millert
|
|
|
|
|
|
| |
values or features that POSIX now requires to always be provided.
From Brad; ok guenther and me; incorporates feedback from millert too
|
|
|
|
|
|
|
|
|
|
| |
``-upper_bound % upper_bound''. Simplifies the code and makes it the
same on both ILP32 and LP64 architectures, and also slightly faster on
LP64 architectures by using a 32-bit remainder instead of a 64-bit
remainder.
Pointed out by Jorden Verwer on tech@
ok deraadt; no objections from djm or otto
|
|
|
|
| |
diff from Florian Obser, ok jmc@
|
|
|
|
|
|
| |
using inet_pton() and inet_ntop() as suggested by claudio
ok claudio@
|
|
|
|
|
|
| |
clear out the entire requested area, not just a perfect fit. second,
use mquery to check for room to avoid getting an address we don't like
and having to send it back.
|
|
|
|
|
|
|
|
| |
goop is in librthread. As a result, the top-level Makefile and
shlib_version here are simply very confusing and tell lies. Remove
them, and update the instructions in libc to not make my mistake
again.
ok guenther
|
|
|
|
|
|
|
|
|
| |
so that it can't get a signal while still running on the parent thread's
stack. Also, pass in sizeof(struct __tfork) to provide forward compat
when more members are added. This is an ABI change, so switch syscall
numbers and bump lib majors this time.
ok deraadt@ matthew@
|
|
|
|
|
|
| |
in order to span the the entire cache. second, on free use the same offset
to put things in the cache instead of always starting at zero.
ok otto
|
| |
|
|
|
|
|
|
| |
overallocating and then releasing unneeded memory pages.
ok otto
|