Jacques Vidrine
ff5fe653fa
Adjust for brain outage that affected the previous commit.
...
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
2004-01-06 20:29:40 +00:00
Jacques Vidrine
346866aa97
Add required headers.
2004-01-06 19:40:28 +00:00
Jacques Vidrine
2d24bf11c8
Add required headers and function declarations.
2004-01-06 19:28:07 +00:00
Jacques Vidrine
78ea1df143
Remove unused variables. Add required headers and function
...
declarations.
2004-01-06 18:53:26 +00:00
Jacques Vidrine
1d0342a3d5
Use ANSI C function definition for _mcount' and remove
static'
...
prototype from header file.
Discussed with: bde, maybe one year ago
2004-01-06 18:49:54 +00:00
Jacques Vidrine
a587d2f78f
Add missing declaration.
2004-01-06 18:45:58 +00:00
Jacques Vidrine
e602b918db
Work around a `warning: zero-length printf format string'.
2004-01-06 18:45:13 +00:00
Jacques Vidrine
2a8d656d26
Avoid undefined behavior:
...
foo[i] = bar[++i]; /* Which operator [] will be evaluated first? */
2004-01-06 18:43:31 +00:00
Jacques Vidrine
27a97dffc1
Make intentions explicit with additional parenthesis.
2004-01-06 18:32:24 +00:00
Jacques Vidrine
84d9142f58
Remove unused variables and function declarations. Add missing headers.
2004-01-06 18:26:15 +00:00
David Xu
7a29c72c07
Kernel now supports per-thread sigaltstack, follow the change to
...
enable sigaltstack for scope system thread.
2004-01-03 02:40:27 +00:00
David Xu
ac4476923c
Return error code in errno, not in return value.
2004-01-02 00:38:42 +00:00
David Xu
f909113819
Fix a typo.
2004-01-02 00:27:30 +00:00
Daniel Eischen
eae42a5949
Reenable signals for threads after joining.
...
Submitted by: Marc Olzheim <marcolz@stack.nl>
2003-12-31 13:41:54 +00:00
Ruslan Ermilov
47fea40f85
Removed MLINKS to nonimplemented/nonexistent functions.
2003-12-30 17:13:20 +00:00
Ruslan Ermilov
91d4a76ae3
Merge from libc_r: document pthread_attr_[gs]etstack().
2003-12-30 17:08:23 +00:00
Ruslan Ermilov
e09cec395d
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
Ruslan Ermilov
cd31d44075
Pull some changes (mostly cosmetic) from libc_r manpages
...
in preparation for the merge.
2003-12-30 14:59:10 +00:00
Mike Makonnen
2aa9de1f77
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
Mike Makonnen
2b33fc6470
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
David Xu
4560f4f0b1
Forgot to commit this file for last commit. :(
2003-12-29 23:33:51 +00:00
David Xu
02eead1d0a
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 Konovalov
d22427bf0f
Describe kern.ipc.nsfbufsused and kern.ipc.nsfbufspeak.
...
Reviewed by: silby
2003-12-29 12:29:37 +00:00
David Xu
fff5bd9ed9
Correctly retrieve sigaction flags.
2003-12-28 12:20:04 +00:00
Doug Rabson
795a502646
Don't block SIGTRAP - it makes it hard to debug programs with gdb.
...
Reviewed by: mtm
2003-12-26 12:11:16 +00:00
Doug Rabson
4da7d0f5dd
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
Mike Makonnen
f2c3dd08ec
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 Perlstein
7e2a61e17d
Add restrict qualifiers. (docs)
...
PR: 44394
Submitted by: Craig Rodrigues <rodrige@attbi.com>
2003-12-24 18:52:41 +00:00
Andrey A. Chernov
ad4688e131
Properly advance "x/y/z" form slash-pointers in some rare cases
...
PR: 60539
2003-12-24 10:16:46 +00:00
Tom Rhodes
f2eeb0218f
Back out previous commit due to incorrect content.
...
Noticed by: wollman
2003-12-23 18:42:55 +00:00
Tom Rhodes
a0137e7055
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
Hideyuki KURASHINA
c2e41e91e0
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
Alexander Kabaev
50bcce79ff
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
Alexander Kabaev
61cf73b3eb
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
David Xu
c7148de1a6
Replace a comment with more accurated one, memory heap is now protected by
...
new fork() wrapper.
2003-12-19 13:24:54 +00:00
David Xu
22df7d650a
Code clean up, remove unused MACROS and function prototypes.
2003-12-19 12:57:08 +00:00
Andrey A. Chernov
6abda1f093
First byte of GBK-like sequences is 0x81, not 0x80
2003-12-19 12:54:42 +00:00
Jordan K. Hubbard
fee66713ad
Brucification: Don't initialize in declaration, make sure extra lines
...
follow declaration section.
2003-12-18 07:44:53 +00:00
Daniel Eischen
6512f49fe6
Return to the caller if write() returns 0.
...
PR: 59291
2003-12-17 16:44:03 +00:00
Jordan K. Hubbard
dee551158f
Do comparison using appropriate casting first, as per SUSv3 (search for first
...
[last] character, not int).
2003-12-17 02:46:48 +00:00
Mike Makonnen
8657fd166c
Remove _giant_mutex and its associated macros.
2003-12-15 12:38:06 +00:00
Mike Makonnen
2543fd4700
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
Mike Makonnen
c830473999
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
Joseph Koshy
08d4b26dd8
Document the effect of sysctl tunables controlling p_candebug(9) on
...
ktrace(2).
2003-12-14 14:54:53 +00:00
Mike Makonnen
099fe19901
Doh! Lock the thread passed in by the caller, not the current thread.
2003-12-12 09:51:39 +00:00
Dag-Erling Smørgrav
33b7c0d94c
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
Dag-Erling Smørgrav
4911b12cba
More strict aliasing fixes.
...
Submitted by: Andreas Hauser <andy-freebsd@splashground.de>
2003-12-11 15:48:09 +00:00
Dag-Erling Smørgrav
91e938693e
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
Bruce Evans
e481bf775f
Fixed English error in previous commit. Fixed some older English errors.
...
Removed a redundant clause.
2003-12-11 09:53:25 +00:00
Mike Makonnen
f318a5206c
Remove uses of GIANT_LOCK and replace with appropriate thread
...
and thread list locks.
2003-12-11 08:34:07 +00:00