| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
One bug was relatively harmless (select's timeout had an uninitialized
tv_usec), the other I'm not so sure.. (neglected to catch select returns
less than zero). Both of these were irrelevant on kernels with poll().
|
|
|
|
|
|
| |
chunks of res_comp.c and replacing it with chunks of bind-8.1.1's resolver
code. (There are no interface changes though)
The other parts are better bounds checking related.
|
|
|
|
| |
Pointed out by: bde
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Manpages cleanup
|
|
|
|
| |
Fix error return codes
|
|
|
|
|
|
| |
__thread_create is a syscall that uses the default asm. It is
_thread_create that contains specific asm code, but that lives in
libpthread.
|
|
|
|
|
| |
from 3.0 on. With 3.0 being a major release, now is a good time to do
this.
|
|
|
|
|
| |
thread-specific error variable. This change make libc use the same cerror
code that libc_r has been using.
|
|
|
|
|
|
| |
default syscall asm, so add it to NOASM. The other syscalls that manipulate
kernel threads use the default asm code, so they just get built
automatically.
|
|
|
|
|
|
|
|
|
|
| |
file works with libpthread, but when built into libc_r which has a non-weak
symbol of the same name, the linker behaves unpredicatably and sometimes
links the wrong symbol. The linker behaviour is a byproduct of what
the program calls from object to object so it is like winning a lottery
if the program actually works. The odds are quite good - 95:1, I think.
We need a sure thing, though, so weak symbols can't be used instead
of renaming things.
|
| |
|
|
|
|
| |
PR: i386/4826, bin/5953
|
|
|
|
|
|
|
| |
and non-threaded programs. This makes malloc thread safe for linking
with libpthread and kernel threads.
Reviewed by: phk
|
|
|
|
| |
autoinitialiser gets linked in and therefore called before main().
|
| |
|
|
|
|
|
| |
(and kernel threads), but weak symbols and non-weak symbols of the
same name built into libc_r result in unpredictable linking.
|
| |
|
|
|
|
| |
redone for every call of setproctitle().
|
|
|
|
|
|
|
|
|
| |
Note odd `sigmask()' line in synopsis. `sigsetops(3)' is better suited
for `sigprocmask' and is already referenced from the manual page.
(`sigmask()' is useful for the older (& deprecated) `sigsetmask()' API).
PR: 6395
Reviewed by: phk
Submitted by: Joseph Koshy <koshy@india.hp.com>
|
|
|
|
| |
prototype mismatch
|
|
|
|
| |
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
prototypes in time.h do not match POSIX.
PR: 6345
Reviewed by: phk
Submitted by: Dmitry Khrustalev <dima@xyzzy.machaon.ru>
|
|
|
|
| |
PR: kern/6184
|
| |
|
|
|
|
|
|
|
|
| |
leading XXX's. It could wrap an uppercase character through chars
like: [ \ ] ^ _ ` in between Z and a. The backslash and back tick
might be particularly nasty in a shell script context. Also, since
we've been using upper-case generated values for a while now, go with
the flow and use them in the pathname search rotation.
|
|
|
|
|
|
|
|
| |
Change the FILE locking to support kernel threads when linked with
libpthread (which you haven't see yet). This requires that libc become
thread-safe and thread-aware, testing __isthreaded before attempting
to do lock/unlock calls. The impact on non-threaded programs is minor.
This change works with libc_r, so it's the best compromise.
|
|
|
|
|
|
| |
PR: 6240
Reviewed by: phk
Submitted by: Niall Smart rotel@indigo.ie
|
|
|
|
|
|
|
|
| |
libc to determine if locking is required. This is needed in libc
for use with kernel threads, but until a thread is created, we don't
really want to bother locking things. The variable was added here
because the crt code calls exit(main()) so all programs will get the
variable.
|
|
|
|
| |
definitions for things like locking etc.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
_KPOSIX_PRIORITY_SCHEDULING options to work. Changes:
Change all "posix4" to "p1003_1b". Misnamed files are left
as "posix4" until I'm told if I can simply delete them and add
new ones;
Add _POSIX_PRIORITY_SCHEDULING system calls for FreeBSD and Linux;
Add man pages for _POSIX_PRIORITY_SCHEDULING system calls;
Add options to LINT;
Minor fixes to P1003_1B code during testing.
|
|
|
|
|
| |
the only call to compat_12 which isn't there by default. Provide
a wrapper.
|
| |
|
| |
|
|
|
|
|
|
| |
__msync13. The old one got moved to compat_12. Wrap __msync13 up
to look like FreeBSD's msync and be careful to respect the fact that
MS_SYNC is 0x0000 on FreeBSD, but 0x0004 on NetBSD.
|