jb
0bb53ecc6b
Cleanup in the child, not the parent.
...
Submitted by: Tor Egge <Tor.Egge@idi.ntnu.no>
1998-05-02 03:42:20 +00:00
brian
42e084c2b1
Go back to version 1.16 - it was correct the way it was.
...
Pointed out by: bde
1998-05-01 19:41:12 +00:00
bde
2a590c9b71
Fixed disordering and other style bugs in rev.1.50.
1998-05-01 15:46:06 +00:00
brian
2291918271
connect() returns -1 on error - not 0.
1998-05-01 01:16:39 +00:00
jb
ab20b86639
Fix the incremental priority increment.
...
PR: bin/6467 Marino Ladavac <lada@pc8811.gud.siemens.at>
1998-04-30 21:50:29 +00:00
ache
6a800a155d
Add reference to setlocale(3)
1998-04-30 16:11:50 +00:00
ache
31715c572f
Add reference to catopen(3)
1998-04-30 16:07:54 +00:00
ache
f4a8d4f4e4
Return -1 for invalid descriptor in catclose
1998-04-30 13:15:31 +00:00
ache
b2b5a3545a
If passed catgets descriptor is NULL or -1, return default string immediately
1998-04-30 12:25:05 +00:00
ache
c21e828637
Force loadType to 0
1998-04-30 11:39:08 +00:00
ache
1eaf120df9
Implement NL_CAT_LOCALE
...
Manpages cleanup
1998-04-30 11:06:12 +00:00
ache
fe58d493e0
Prototypes/typedefs cleanup
...
Fix error return codes
1998-04-30 10:14:55 +00:00
jb
b1f25ca922
Oops, backout the previous change having confused my underscores.
...
__thread_create is a syscall that uses the default asm. It is
_thread_create that contains specific asm code, but that lives in
libpthread.
1998-04-30 10:02:44 +00:00
jb
3a6394e02b
Change the description of errno to match the thread-aware implementation
...
from 3.0 on. With 3.0 being a major release, now is a good time to do
this.
1998-04-30 09:49:59 +00:00
jb
ae9a13b7c7
Make cerror thread aware by calling __error() to get a pointer to the
...
thread-specific error variable. This change make libc use the same cerror
code that libc_r has been using.
1998-04-30 09:32:48 +00:00
jb
96749f4d5c
The syscall that creates a kernel thread is coming, but it doesn't use the
...
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.
1998-04-30 09:30:50 +00:00
jb
18a366f3a0
Build __error.c into libc, but not libc_r. The weak symbol in the
...
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.
1998-04-30 09:13:48 +00:00
jb
0b5bef5fb7
Change the name of this source file so that libc_r builds it instead
...
of the one in libc that contains the weak symbol for __error. FreeBSD's
make accumulates paths to the point that it can find *anything*, possibly
including the car keys.
1998-04-30 09:04:10 +00:00
jmz
4b57027ea0
Resurrect exit.c
...
PR: misc/6433
1998-04-29 22:43:18 +00:00
ache
9cd3e70e4d
Basic support for LC_MESSAGES
1998-04-29 22:39:56 +00:00
jb
338768eab3
Add spinlock.
1998-04-29 11:03:34 +00:00
jb
6c9ee23acc
Change signal model to match POSIX (i.e. one set of signal handlers
...
for the process, not a separate set for each thread). By default, the
process now only has signal handlers installed for SIGVTALRM, SIGINFO
and SIGCHLD. The thread kernel signal handler is installed for other
signals on demand. This means that SIG_IGN and SIG_DFL processing is now
left to the kernel, not the thread kernel.
Change the signal dispatch to no longer use a signal thread, and
call the signal handler using the stack of the thread that has the
signal pending.
Change the atomic lock method to use test-and-set asm code with
a yield if blocked. This introduces separate locks for each type
of object instead of blocking signals to prevent a context
switch. It was this blocking of signals that caused the performance
degradation the people have noted.
This is a *big* change!
1998-04-29 09:59:34 +00:00
jb
9bbe93edfa
Don't need wrappers for longjmp/setjmp anymore.
1998-04-29 09:40:51 +00:00
jb
ba3f8d4e2e
Remove empty files that were renamed some time ago.
1998-04-29 09:39:34 +00:00
jb
f7b2be7722
Atomic lock source.
1998-04-29 09:36:03 +00:00
jb
da5557c468
Stop renaming these in libc_r because wrappered versions don't make sense.
...
PR: i386/4826, bin/5953
1998-04-29 09:14:35 +00:00
jb
f1fb79481d
Replace the threaded locking with spinlock calls for both threaded
...
and non-threaded programs. This makes malloc thread safe for linking
with libpthread and kernel threads.
Reviewed by: phk
1998-04-29 09:10:58 +00:00
jb
0d8f4028af
Reference an external variable in threaded programs so that the
...
autoinitialiser gets linked in and therefore called before main().
1998-04-29 09:08:43 +00:00
jb
44b61e0100
Use signal() in both the threaded and non-threaded cases.
1998-04-29 09:06:13 +00:00
jb
fe85f77293
Stubs are required in libc so that it can be used with libpthread
...
(and kernel threads), but weak symbols and non-weak symbols of the
same name built into libc_r result in unpredictable linking.
1998-04-29 09:02:16 +00:00
dg
f42a694aec
Oops, revert part of a diff that wasn't supposed to have been committed.
1998-04-28 07:02:33 +00:00
dg
32d2657828
Cache the results of the ps_strings sysctl so that it doesn't have to be
...
redone for every call of setproctitle().
1998-04-28 06:59:14 +00:00
phk
89efa29a7d
sigprocmask()' man page references
sigmask()' in synopsis.
...
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>
1998-04-26 06:19:24 +00:00
ache
f02dfd0f98
Make asctime_r static if !_THREAD_SAFE to prevent namespace pollution and
...
prototype mismatch
1998-04-25 00:00:57 +00:00
pst
b99377bfd2
Back out last change
1998-04-23 04:44:08 +00:00
rnordier
ded4386b97
Improve description.
...
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
1998-04-22 19:59:55 +00:00
pst
e2ebb6cedb
Fix cabs and cabsf definitions to be prototypes.
1998-04-22 06:26:18 +00:00
dima
f475e872ad
indent
1998-04-20 22:13:50 +00:00
phk
90a1b69b83
Add a #ifdef _THREAD_SAFE around ctime_r
1998-04-20 10:09:37 +00:00
ache
6919d0a394
Describe timegm()
1998-04-20 00:52:32 +00:00
des
901c8a6cfa
Backed out lseek changes.
1998-04-19 22:20:32 +00:00
brian
182404b274
o Support a compile-time -DNO_FW_PUNCH for portability
...
(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>
1998-04-19 21:42:07 +00:00
phk
6d7eb64b15
ctime_r and asctime_r are not implemented.
...
prototypes in time.h do not match POSIX.
PR: 6345
Reviewed by: phk
Submitted by: Dmitry Khrustalev <dima@xyzzy.machaon.ru>
1998-04-19 06:47:25 +00:00
des
231798aaaf
Return EINVAL and do not changefile pointer if resulting offset is negative.
...
PR: kern/6184
1998-04-18 19:24:22 +00:00
jb
10e0c9e2e7
Allow a thread dump to report the thread's sigmask when in the
...
PS_SIGWAIT state.
1998-04-17 09:39:37 +00:00
jb
2b906f181a
When in PS_SIGWAIT state, still call signal handlers and set errno
...
to EINTR.
1998-04-17 09:37:41 +00:00
phk
325284a63f
Backup out the last commit, it was already there.
...
Noticed by: bde
1998-04-17 08:31:07 +00:00
phk
d4ecba4c81
Manpages not installed
...
PR: 6327
Reviewed by: phk
Submitted by: Chia-liang Kao <clkao@cirx.org>
1998-04-17 07:26:51 +00:00
brian
dc9ddb8fdd
Typo police
1998-04-17 00:59:15 +00:00
ache
bc5a6e9a9b
Add some easy to implement XSI macros including attr_get
1998-04-15 23:13:36 +00:00