| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
|
| |
(and those of us that don't want the functionality).
o Don't assume sizeof(long) == 4.
Ok'd by: Charles Mott <cmott@srv.net>
|
|
|
|
|
|
|
|
| |
prototypes in time.h do not match POSIX.
PR: 6345
Reviewed by: phk
Submitted by: Dmitry Khrustalev <dima@xyzzy.machaon.ru>
|
|
|
|
| |
PR: kern/6184
|
|
|
|
| |
PS_SIGWAIT state.
|
|
|
|
| |
to EINTR.
|
|
|
|
| |
Noticed by: bde
|
|
|
|
|
|
| |
PR: 6327
Reviewed by: phk
Submitted by: Chia-liang Kao <clkao@cirx.org>
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it was. Add a FILE_WAIT state and queue threads waiting for a FILE
lock. Start using the sys/queue.h macros instead of the way that MIT
pthreads did it.
Add a thread name to the private thread structure and a non-POSIX
function to set this. This helps (me at least) when sending a SIGINFO
to a threaded process to get a /tmp/uthread.dump to see what the
<expletive deleted> threads are doing this time. It is nice to be
able to recognise (yes, I spell that with an 's' too) which threads
are which.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
PR: 6259
Reviewed & slightly modified by: phk
Submitted by: Archie Cobbs <archie@whistle.com>
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
POSIX specified names can be declared in pthread.h.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
threads from invalid ones. The pthread structure is opaque to the user
so this change does not cause any incompatibilities.
Hopefully this change will help code that was written for draft 4
fail gracefully if the programmer ignores the compiler warning about
the change in the level of indirection for the argument passed to
pthread_detach(). I got burnt, so I fixed then (expletive deleted)
thing.
These functions comply with the revised standard. That should shut
Terry up!
|
| |
|
|
|
|
|
|
|
|
| |
Add a note about not touching errno and warn about previous drafts
of the standard which changed the level of indirection to the thread
argument. POSIX had a bit of trouble deciding what to do. So anyone
coding to both draft 4 and draft 10 (the final draft) will get burnt
by this function. I did. Grrr.
|
|
|
|
|
| |
/etc/make.conf. The tools can't handle generating debug code where
we fiddle with the ELF segments.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
_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.
|
|
|
|
|
|
|
|
| |
Synchronize the kernel and libmd versions of md5c.c
PR: misc/6127
Reviewed by: phk
Submitted by: Ari Suutari <ari@suutari.iki.fi>
|
|
|
|
|
| |
the only call to compat_12 which isn't there by default. Provide
a wrapper.
|
|
|
|
|
|
| |
Commented out docmentation of nonexistent authenticate() and
auth_timesok(). authenticate() seems to be obsolete and
auth_timesok() never existed in FreeBSD.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
__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.
|
|
|
|
|
| |
PR: 6092
Submitted by: Drew Derbyshire <ahd@kew.com>
|
|
|
|
|
|
|
| |
signals to be unblocked even if they were already blocked when entering
the function.
Pointed out by: bde
|
|
|
|
|
| |
libscrypt stagnate, even if it is superceded by libdescrypt. It is
a tiny library anyway, and building it is inexpensive.
|
| |
|
|
|
|
|
| |
that it can be put in SRCS for dependency generation to work
properly. Don't use beforedepend, as usual.
|
|
|
|
| |
that the order is easy to see.
|
|
|
|
| |
helping bsd.dep.mk break `make -jN depend'.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
unsigned integral type. Changing it doesn't seem to cause any
sign extension bugs in /usr/src. In the kernel, this is partly
because `struct speedtab' and its lookup function are too bogus
to use speed_t's for speeds - they use ints.
Reminded by: PR 5786
|