deischen
15847c4488
Reenable signals for threads after joining.
...
Submitted by: Marc Olzheim <marcolz@stack.nl>
2003-12-31 13:41:54 +00:00
ru
af0a846800
Removed MLINKS to nonimplemented/nonexistent functions.
2003-12-30 17:13:20 +00:00
ru
00755078ab
Merge from libc_r: document pthread_attr_[gs]etstack().
2003-12-30 17:08:23 +00:00
ru
c387e07b72
Pull revision 1.13 from libpthread/man/pthread_mutex_init.3:
...
- Remove error code that can't be returned (and original description
was not proper English)
PR: docs/57434
2003-12-30 15:44:16 +00:00
ru
67877ecd48
Pull some changes (mostly cosmetic) from libc_r manpages
...
in preparation for the merge.
2003-12-30 14:59:10 +00:00
mtm
81dc42d3d9
o Implement pthread_mutex_timedlock(), which does not block indefinitely on
...
a mutex locked by another thread.
o document it: pthread_mutex_timedlock(3)
2003-12-30 08:44:55 +00:00
mtm
d4f59be550
Make it possible for the library to specify a timeout value when
...
waiting on a locked mutex. This involves passing a struct timespec
from the pthread mutex locking interfaces all the way down to the
function that suspends the thread until the mutex is released.
The timeout is assumed to be an absolute time (i.e. not relative to
the current time).
Also, in _thread_suspend() make the passed in timespec const.
2003-12-30 08:34:57 +00:00
davidxu
d6b72f0aa3
Forgot to commit this file for last commit. :(
2003-12-29 23:33:51 +00:00
davidxu
8d750bfb1b
Implement sigaltstack() as per-threaded. Current only scope process thread
...
is supported, for scope system process, kernel signal bits need to be
changed.
Reviewed by: deischen
Tested on : i386 amd64 ia64
2003-12-29 23:21:09 +00:00
maxim
aef221ac80
Describe kern.ipc.nsfbufsused and kern.ipc.nsfbufspeak.
...
Reviewed by: silby
2003-12-29 12:29:37 +00:00
davidxu
d2abf7e6f9
Correctly retrieve sigaction flags.
2003-12-28 12:20:04 +00:00
dfr
8f76255422
Don't block SIGTRAP - it makes it hard to debug programs with gdb.
...
Reviewed by: mtm
2003-12-26 12:11:16 +00:00
dfr
de5cd0573f
Make sure we initialise dirp->dd_size if we aren't reading a unionfs
...
directory.
Special thanks to: valgrind
2003-12-26 12:00:46 +00:00
mtm
dd97c7c8fa
Preparations to make libthr work in multi-threaded fork()ing applications.
...
o Remove some code duplication between _thread_init(), which is run once
to initialize libthr and the intitial thread, and pthread_create(), which
initializes newly created threads, into a new function called from both
places: init_td_common()
o Move initialization of certain parts of libthr into a separate
function. These include:
- Active threads list and it's lock
- Dead threads list and it's lock & condition variable
- Naming and insertion of the initial thread into the
active threads list.
2003-12-26 08:16:17 +00:00
alfred
354c5cd6a5
Add restrict qualifiers. (docs)
...
PR: 44394
Submitted by: Craig Rodrigues <rodrige@attbi.com>
2003-12-24 18:52:41 +00:00
ache
b89dd89c31
Properly advance "x/y/z" form slash-pointers in some rare cases
...
PR: 60539
2003-12-24 10:16:46 +00:00
trhodes
151da8eaf6
Back out previous commit due to incorrect content.
...
Noticed by: wollman
2003-12-23 18:42:55 +00:00
trhodes
de65edfbfd
Document many of the missing posix.1b options.
...
PR: 20528
Submitted by: bms (original version)
Requested by: mike (awhile ago)
2003-12-23 17:29:35 +00:00
rushani
38a3a575b5
Correct URI to USB specs.
...
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
PR: docs/60457
2003-12-21 14:30:23 +00:00
kan
09cff15526
Implement __cxa_atexit/__cxa_finalize as specified by the cross-vendor
...
ó++ ABI document at http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor
The ABI was initially defined for ia64, but GCC3 and Intel compilers
have adopted it on other platforms.
This is the patch from PR bin/59552 with a number of changes by
me.
PR: bin/59552
Submitted by: Bradley T Hughes (bhughes at trolltech dot com)
2003-12-19 17:11:21 +00:00
kan
caabe90547
Implement __cxa_atexit/__cxa_finalize as specified by the cross-vendor
...
C++ ABI document at http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor
The ABI was initially defined for ia64, but GCC3 and Intel compilers
have adopted it on other platforms.
This is the patch from PR bin/59552 with a number of changes by
me.
PR: bin/59552
Submitted by: Bradley T Hughes (bhughes at trolltech dot com)
2003-12-19 17:11:20 +00:00
davidxu
7b3cca8521
Replace a comment with more accurated one, memory heap is now protected by
...
new fork() wrapper.
2003-12-19 13:24:54 +00:00
davidxu
c7be5e14dc
Code clean up, remove unused MACROS and function prototypes.
2003-12-19 12:57:08 +00:00
ache
750b0b565d
First byte of GBK-like sequences is 0x81, not 0x80
2003-12-19 12:54:42 +00:00
jkh
4b15405096
Brucification: Don't initialize in declaration, make sure extra lines
...
follow declaration section.
2003-12-18 07:44:53 +00:00
deischen
82fa343f7c
Return to the caller if write() returns 0.
...
PR: 59291
2003-12-17 16:44:03 +00:00
jkh
88ce59ac21
Do comparison using appropriate casting first, as per SUSv3 (search for first
...
[last] character, not int).
2003-12-17 02:46:48 +00:00
mtm
7be2523683
Remove _giant_mutex and its associated macros.
2003-12-15 12:38:06 +00:00
mtm
7ecd6a1166
Comment out most of pthread_setschedparam. Pthread priorities didn't
...
work before anyways, and I didn't want to fix broken code I had no
way of testing. It was necessary however, in order to get rid of GIANT_LOCK.
Pthread priorities will have to wait a little longer to get fixed.
2003-12-15 12:31:46 +00:00
mtm
0593ac4cbb
When creating a pthread in the suspended state their were two
...
problems: (1) The wrong flag was being checked for in the attribute
(2) The pthread's state was not being set to indicate it was
suspended.
Noticed by: Igor Sysoev <is@rambler-co.ru>
2003-12-15 09:35:02 +00:00
jkoshy
a2e08c3ed4
Document the effect of sysctl tunables controlling p_candebug(9) on
...
ktrace(2).
2003-12-14 14:54:53 +00:00
mtm
5d9c0f84f1
Doh! Lock the thread passed in by the caller, not the current thread.
2003-12-12 09:51:39 +00:00
des
3812c7acf5
Fix a strict aliasing issue. Also remove an unnecessary pam_get_item()
...
call (pam_get_authtok() will return the previous token if try_first_pass
or use_first_pass is specified). Incidentally fix an ugly bug where the
buffer holding the prompt was freed immediately before use, instead of
after.
2003-12-11 15:51:03 +00:00
des
e64a27f5c0
More strict aliasing fixes.
...
Submitted by: Andreas Hauser <andy-freebsd@splashground.de>
2003-12-11 15:48:09 +00:00
des
9c38a55797
Fix strict aliasing breakage in PAM modules (except pam_krb5, which needs
...
more work than the others). This should make most modules build with -O2.
2003-12-11 13:55:16 +00:00
bde
2bd70eb932
Fixed English error in previous commit. Fixed some older English errors.
...
Removed a redundant clause.
2003-12-11 09:53:25 +00:00
mtm
56a475799e
Remove uses of GIANT_LOCK and replace with appropriate thread
...
and thread list locks.
2003-12-11 08:34:07 +00:00
mikeh
acccb1539f
Add reference to standards/55112 for next time SHLIB_MAJOR is bumped.
...
Suggested by: wollman
2003-12-10 16:33:17 +00:00
green
d4d87e529b
Implement seeking to earlier offsets in gzipfs. This allows my loader
...
to e.g. correctly load all .ko.gz's I've tried, as opposed to messing
up trying to read section headers on some of them.
2003-12-10 16:10:34 +00:00
dds
ecc31f354e
Add sticky(8) cross reference.
...
PR: docs/60068
Submitted by: Ken Stailey
MFC after: 2 weeks
2003-12-10 15:08:41 +00:00
grehan
5472a7b2d2
PowerPC-conditional changes:
...
- include ashldi3.c/ashrdi3.c from libc for UFS 64-bit arith
- pull in syncicache.c from libc, and define _STANDALONE for
loader usage
2003-12-10 13:11:03 +00:00
grehan
6a92ab4ec1
- Put manh/manl bitfields into correct-sized integral type.
...
- remove XXX normalization bit comment, code is correct.
2003-12-10 13:04:42 +00:00
marcel
eb521e2e92
Add a short description of the kse_switchin(2) syscall to the kse
...
manpage and add a kse_switchin link. While here, list kse_thr_interrupt
before kse_wakeup in the MLINKS variable and the synopsis.
2003-12-10 02:38:51 +00:00
deischen
1f8c5c54fd
accept() returns a file descriptor when it succeeds which is very
...
likely to be non-zero. When leaving the cancellation point, check
the return value against -1 to see if cancellation should be
checked. While I'm here, make the same change to connect() just
to be consisitent.
Pointed out by: davidxu
2003-12-09 23:40:27 +00:00
deischen
ed86f0d4d5
Remove an unused struct definition.
2003-12-09 15:18:40 +00:00
deischen
212e86fbe9
Add cancellation points for accept() and connect().
2003-12-09 15:16:27 +00:00
mtm
e55a5a6e98
Take a stab at fixing some of the macro-nightmare.
...
PTHREAD_NEW_STATE should work as expected now: a thread
marked PS_RUNNING will get sent a SIGTHR.
Still more cleanups necessary.
2003-12-09 11:20:01 +00:00
mtm
5f32d90edd
Fix the wrapper function around signals so that a signal handling
...
thread on one of the mutex or condition variable queues is removed
from those queues before the real signal handler is called.
2003-12-09 11:12:11 +00:00
mtm
bc6b622cf6
Ugghh, cvs add the functions necessary to lock the global signal action
...
table.
2003-12-09 11:06:55 +00:00
mtm
3fb7bc9aec
o Add a wrapper around sigaction(2), so we can insert our own wrapper
...
around signals.
o Lock the process global signal action table.
2003-12-09 11:04:36 +00:00