summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Translate from GNU C to ISO C.des2004-01-144-4/+4
|
* bsd.dep.mk,v 1.43 allows us to replace a hack with a solution.ru2004-01-131-3/+3
|
* Add and document ffsl(), fls() and flsl().des2004-01-137-12/+201
|
* Kill whitespace at end of lines.nectar2004-01-121-9/+9
|
* Fix a bug that could result in a null pointer dereference innectar2004-01-121-1/+1
| | | | | | | | | | | getpwent(3) or getpwuid(3) when using NIS adjunct maps. The bug was present in the internal `nis_passwd' function. The lookup in the adjunct map used the name passed into `nis_passwd', however no name was of course supplied by getpwent or getpwuid. Correctly use the name from the `struct pwd' that was found instead. PR: bin/59962 Submitted by: Gabriel Gomez <ggomez@fing.edu.uy>
* Removed duplicate SRCS.ru2004-01-111-1/+0
|
* XDR sources are handled by ../xdr/Makefile.inc.ru2004-01-111-4/+0
|
* Replaced an ugly hack to selectively disable warningsru2004-01-112-3/+3
| | | | | | | in contributed sources with just a hack made possible by bsd.sys.mk,v 1.33. This is better because it just nulls out the warning flags rather than adding gcc(1) specific -w option to CFLAGS.
* Add an ulgy hack so that warnings added by non-zero WARNS values won't beobrien2004-01-101-0/+3
| | | | | | used with the contrib/ gdtoa sources as they aren't WARNS-clean. Submitted by: ru
* Remove now redundant and now conflicting declaration of sysarch(2).nectar2004-01-101-3/+1
| | | | | | Remove now unnecessary cast. Reported by: alpha tinderbox
* Clarify the behavior of ptrace(2) a little bit: the tracing processrwatson2004-01-101-0/+24
| | | | | | | | | | | | | | | must first attach to the traced process. If the tracing process exits without detaching, the traced process will be killed rather than continued. For the duration of the tracing session, the traced process is reparented to the tracing process (with resulting expected behaviors). It is permissible to trace more than one other process at a time. When using waitpid() to monitor the behavior of the traced process, signals are intercepted: they may optionally then be forwarded using ptrace(). Signals are generated normally by and for the process, but also by the tracing facility (SIGTRAP). Product of: Suffering Sponsored by: DARPA, AFRL
* We need to discard `const'ness explicitly when invoking sysarch.nectar2004-01-101-1/+1
| | | | Reported by: sparc64 tinderbox via bde
* Change sdp_open_local(3) API. It now takes a path to a control socketemax2004-01-093-5/+14
| | | | | | | | Teach sdpcontrol(8) how to talk to the local SDP server Update man pages s/u_int/uint Reviewed by: imp (mentor), ru
* Prepare libsdp(3) for the upcoming sdpd importemax2004-01-096-112/+190
| | | | | | Also while i'm here s/u_int/uint Reviewed by: imp (mentor), ru
* Provide sysarch(2) prototypes in the MD sysarch.h headers. While I'mnectar2004-01-0914-39/+14
| | | | | | | | | | at it, use the ANSI C generic pointer type for the second argument, thus matching the documentation. Remove the now extraneous (and now conflicting) function declarations in various libc sources. Remove now unnecessary casts. Reviewed by: bde
* It was reported that when using nss_ldap, getgrent(3) would behavenectar2004-01-091-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | incorrectly when encountering `large' groups (many members and/or many long member names). The reporter tracked this down to the glibc NSS module compatibility code (nss_compat.c): it would prematurely record that a NSS module was finished iterating through its database in some cases. Two aspects are corrected: 1. nss_compat.c recorded that a NSS module was finished iterating whenever the module reported something other than SUCCESS. The correct logic is to continue iteration when the module reports either SUCCESS or RETURN. The __nss_compat_getgrent_r and __nss_compat_getpwent_r routines are updated to reflect this. 2. An internal helper macro __nss_compat_result is used to map glibc NSS status codes to BSD NSS status codes (e.g. NSS_STATUS_SUCCESS -> NS_SUCCESS). It provided the obvious mapping. When a NSS routine is called with a too-small buffer, the convention in the BSD NSS code is to report RETURN. (This is used to implement reentrant APIs such as getpwnam_r(3).) However, the convention in glibc for this case is to set errno = ERANGE and overload TRYAGAIN. __nss_compat_result is updated to handle this case. PR: bin/60287 Reported by: Lachlan O'Dea <odela01@ca.com>
* MFlibpthread: Add a simple work-around for deadlocking on recursivedeischen2004-01-082-44/+82
| | | | readlocks on a rwlock while there are writers waiting.
* Add a simple work-around for deadlocking on recursive read locksdeischen2004-01-086-96/+172
| | | | | | | | | | on a rwlock while there are writers waiting. We normally favor writers but when a reader already has at least one other read lock, we favor the reader. We don't track all the rwlocks owned by a thread, nor all the threads that own a rwlock -- we just keep a count of all the read locks owned by a thread. PR: 24641
* Adjust for brain outage that affected the previous commit.nectar2004-01-061-1/+1
| | | | Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
* Add required headers.nectar2004-01-062-0/+4
|
* Add required headers and function declarations.nectar2004-01-062-0/+3
|
* Remove unused variables. Add required headers and functionnectar2004-01-067-6/+12
| | | | declarations.
* Use ANSI C function definition for `_mcount' and remove `static'nectar2004-01-061-2/+2
| | | | | | prototype from header file. Discussed with: bde, maybe one year ago
* Add missing declaration.nectar2004-01-061-0/+2
|
* Work around a `warning: zero-length printf format string'.nectar2004-01-061-1/+1
|
* Avoid undefined behavior:nectar2004-01-061-2/+2
| | | | foo[i] = bar[++i]; /* Which operator [] will be evaluated first? */
* Make intentions explicit with additional parenthesis.nectar2004-01-062-8/+8
|
* Remove unused variables and function declarations. Add missing headers.nectar2004-01-065-8/+6
|
* Kernel now supports per-thread sigaltstack, follow the change todavidxu2004-01-032-12/+2
| | | | enable sigaltstack for scope system thread.
* Return error code in errno, not in return value.davidxu2004-01-022-6/+12
|
* Fix a typo.davidxu2004-01-022-2/+2
|
* Reenable signals for threads after joining.deischen2003-12-311-0/+3
| | | | Submitted by: Marc Olzheim <marcolz@stack.nl>
* Removed MLINKS to nonimplemented/nonexistent functions.ru2003-12-301-3/+0
|
* Merge from libc_r: document pthread_attr_[gs]etstack().ru2003-12-302-1/+11
|
* Pull revision 1.13 from libpthread/man/pthread_mutex_init.3:ru2003-12-301-2/+0
| | | | | | | - Remove error code that can't be returned (and original description was not proper English) PR: docs/57434
* Pull some changes (mostly cosmetic) from libc_r manpagesru2003-12-3030-75/+143
| | | | in preparation for the merge.
* o Implement pthread_mutex_timedlock(), which does not block indefinitely onmtm2003-12-301-0/+32
| | | | | a mutex locked by another thread. o document it: pthread_mutex_timedlock(3)
* Make it possible for the library to specify a timeout value whenmtm2003-12-303-22/+49
| | | | | | | | | | 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.
* Forgot to commit this file for last commit. :(davidxu2003-12-292-0/+8
|
* Implement sigaltstack() as per-threaded. Current only scope process threaddavidxu2003-12-299-48/+464
| | | | | | | | is supported, for scope system process, kernel signal bits need to be changed. Reviewed by: deischen Tested on : i386 amd64 ia64
* Describe kern.ipc.nsfbufsused and kern.ipc.nsfbufspeak.maxim2003-12-291-0/+9
| | | | Reviewed by: silby
* Correctly retrieve sigaction flags.davidxu2003-12-282-4/+4
|
* Don't block SIGTRAP - it makes it hard to debug programs with gdb.dfr2003-12-261-0/+1
| | | | Reviewed by: mtm
* Make sure we initialise dirp->dd_size if we aren't reading a unionfsdfr2003-12-261-0/+1
| | | | | | directory. Special thanks to: valgrind
* Preparations to make libthr work in multi-threaded fork()ing applications.mtm2003-12-263-63/+81
| | | | | | | | | | | | | 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.
* Add restrict qualifiers. (docs)alfred2003-12-245-5/+5
| | | | | PR: 44394 Submitted by: Craig Rodrigues <rodrige@attbi.com>
* Properly advance "x/y/z" form slash-pointers in some rare casesache2003-12-241-4/+4
| | | | PR: 60539
* Back out previous commit due to incorrect content.trhodes2003-12-231-128/+62
| | | | Noticed by: wollman
* Document many of the missing posix.1b options.trhodes2003-12-231-62/+128
| | | | | | PR: 20528 Submitted by: bms (original version) Requested by: mike (awhile ago)
* Correct URI to USB specs.rushani2003-12-211-1/+1
| | | | | Submitted by: Lukas Ertl <l.ertl@univie.ac.at> PR: docs/60457
OpenPOWER on IntegriCloud