aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Correct check for invalid semaphore on sem_destroy() (s/==/!=/).Daniel Eischen2004-02-051-1/+1
| | | | | | | Reported by: kris Notes: svn path=/head/; revision=125509
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).Ruslan Ermilov2004-02-056-12/+12
| | | | Notes: svn path=/head/; revision=125503
* Correct the weak reference for sem_unlink.Daniel Eischen2004-02-051-1/+1
| | | | Notes: svn path=/head/; revision=125502
* libkse was renamed to libpthread.David Xu2004-02-052-2/+2
| | | | Notes: svn path=/head/; revision=125468
* Allow libc's version of sem_trywait() to work for non-pshared mutexes.Daniel Eischen2004-02-041-2/+17
| | | | Notes: svn path=/head/; revision=125446
* Put libraries in the link order.Ruslan Ermilov2004-02-041-3/+2
| | | | | | | Reported by: lorder(1) (modified to work with libraries) Notes: svn path=/head/; revision=125432
* Nothing in libypclnt depends on librpcsvc.Ruslan Ermilov2004-02-041-3/+0
| | | | | | | Reported by: lorder(1) (modified to work with libraries) Notes: svn path=/head/; revision=125427
* This module doesn't use libgssapi (and it looks never did).Ruslan Ermilov2004-02-041-3/+2
| | | | Notes: svn path=/head/; revision=125426
* Add missing file.David Xu2004-02-041-0/+43
| | | | Notes: svn path=/head/; revision=125418
* Import initial work of libpthread debugging. This is a debugger independentDavid Xu2004-02-046-0/+900
| | | | | | | | friend library for libpthread, the library will be used by debugger to read/write libpthread's internal data structures. Notes: svn path=/head/; revision=125415
* Remove the band-aid (#include <time.h>).Daniel Eischen2004-02-031-1/+0
| | | | Notes: svn path=/head/; revision=125408
* Add <time.h> -- bandaid to unbreak world in <semaphore.h>.Daniel Eischen2004-02-031-0/+1
| | | | Notes: svn path=/head/; revision=125394
* Provide a userland version of non-pshared semaphores and add cancellationDaniel Eischen2004-02-034-338/+306
| | | | | | | points to sem_wait() and sem_timedwait(). Also make sem_post signal-safe. Notes: svn path=/head/; revision=125373
* Modify the implementation of libc semaphores so that they can beDaniel Eischen2004-02-031-146/+132
| | | | | | | | | | | | | | | overridden by the threads library to provide a userland version of non-pshared semaphores and cancellation points. Also add a sem_timedwait(). The libc version of semaphores always uses kernel semaphores regardless of whether pshared is set or not. When threads are not present, it is difficult to get sem_wait() or sem_timedwait() to do the right thing (since pthread_cond_timedwait() and pthread_cond_wait() are stubs in libc and just return immediately). Notes: svn path=/head/; revision=125372
* Bump up the maximum number concurrent threads on x86.Mike Makonnen2004-02-011-1/+1
| | | | Notes: svn path=/head/; revision=125307
* Merge vfscanf.c,v 1.35.David Schultz2004-01-311-4/+10
| | | | Notes: svn path=/head/; revision=125283
* Fix the handling of negative hexadecimal numbers in integer formats.David Schultz2004-01-311-3/+9
| | | | | | | | | | Note that this bug is unrelated to recent work in this area; it seems to have been present since revision 1.1. Obtained from: NetBSD Notes: svn path=/head/; revision=125282
* LC_ALL not always take priority over other LC_*Andrey A. Chernov2004-01-311-22/+35
| | | | | | | | Obtained from: NetBSD PR: 62047 Notes: svn path=/head/; revision=125274
* Correct the link for the profiling library.Daniel Eischen2004-01-311-1/+1
| | | | Notes: svn path=/head/; revision=125266
* Now that libpthread is the default threading library, remove theMarcel Moolenaar2004-01-312-24/+0
| | | | | | | | compatibility link from libc_r to libpthread (previously a link from libc_r to libkse). Notes: svn path=/head/; revision=125258
* In Write_Disk(), fix the non-error case where we returned to theMarcel Moolenaar2004-01-301-4/+0
| | | | | | | | | | | caller without closing the disk device and freeing allocated memory. Not closing the disk device prevents GEOM from retasting after spoiling. Pointy hat: marcel Notes: svn path=/head/; revision=125253
* Change libkse back to libpthread and make it the defaultDaniel Eischen2004-01-303-0/+18
| | | | | | | | | | | | | | thread library for i386, amd64, and ia64. For alpha and sparc64 the library is not changed and remains libkse, and links are installed so that libpthread -> libc_r. The gcc -pthread option will be changed in a separate commit so that it links to -lpthread instead of -lc_r. Approved by: re@ Notes: svn path=/head/; revision=125230
* I update the rwlock code in libthr to be more standards compliant andMike Makonnen2004-01-291-12/+119
| | | | | | | | | | | | | what do I get for my troubles? libc breaks offcourse! Reimplement a hack (in libthr) that allows libc to use rwlocks without initializing them first. The hack was reimplemented so that only a private libc version of the rwlock locking functions initializes an uninitialized rwlock. The application version will correctly fail. Notes: svn path=/head/; revision=125192
* When suspending a thread if the timeout was very short orMike Makonnen2004-01-291-0/+11
| | | | | | | | | | | | | | | | the system call got interrupted and the absolute timeout is converted to a relative timeout, it may happen that we get a negative number. In such a case, simply set the timeout to zero so that if the event that the thread wants to wait for has happened it can still return successfully, but if it hasn't happened then the thread doesn't suspend indefinitely. This should fix certain applications (including mozilla) that seem to hang indefinitely sometimes. Noticed and debugged by: Morten Johansen <root@morten-johansen.net> Notes: svn path=/head/; revision=125191
* Add reference to environ(7)Andrey A. Chernov2004-01-291-1/+2
| | | | Notes: svn path=/head/; revision=125190
* Fix an uninitialized variable bug that caused write_pmbr() to boguslyMarcel Moolenaar2004-01-281-3/+4
| | | | | | | | | return an error value that made Write_Disk() abort. While on the subject, improve the initialization of the error variable in read_gpt() and update_gpt() even though nothing was broken there. Notes: svn path=/head/; revision=125124
* Add NO_BLUETOOTH knob to the build processMaksim Yevmenkin2004-01-281-2/+4
| | | | | | | | Requested by: phk Reviewed by: imp (mentor), ru Notes: svn path=/head/; revision=125123
* Increment WARNS.Ruslan Ermilov2004-01-281-1/+1
| | | | Notes: svn path=/head/; revision=125122
* The report size is not a local item, so don't clear it when clearing local ↵Maksim Yevmenkin2004-01-281-1/+0
| | | | | | | | | | | items. PR: misc/58971 Reviewed by: imp (mentor), mdodd Obtained from: NetBSD Notes: svn path=/head/; revision=125121
* - Added three new interfaces, NgAllocRecvMsg(), NgAllocRecvAsciiMsg(),Ruslan Ermilov2004-01-275-9/+109
| | | | | | | | | | | | | | and NgAllocRecvData(), that dynamically allocate buffer for a binary message, an ascii message, and a data packet, respectively. The size of the allocated buffer is equal to the socket's receive buffer size to guarantee that a message or a data packet is not truncated. - Get rid of the static size buffer in NgSendAsciiMsg(). OK'ed by: archie, julian Notes: svn path=/head/; revision=125113
* mdoc(7) cleanup.Ruslan Ermilov2004-01-271-39/+72
| | | | Notes: svn path=/head/; revision=125106
* Fixed memory leak in NgSendAsciiMsg().Ruslan Ermilov2004-01-271-1/+4
| | | | Notes: svn path=/head/; revision=125104
* Fixed pc98 partition type.Yoshihiro Takahashi2004-01-271-1/+1
| | | | Notes: svn path=/head/; revision=125084
* Implement pam_sm_close_session().Dag-Erling Smørgrav2004-01-261-1/+13
| | | | | | | | PR: bin/61657 Submitted by: Joe R. Doupnik <jrd@cc.usu.edu> Notes: svn path=/head/; revision=125046
* Xref kqueue and pollEivind Eklund2004-01-261-0/+2
| | | | Notes: svn path=/head/; revision=125039
* Xref kqueueEivind Eklund2004-01-261-0/+1
| | | | Notes: svn path=/head/; revision=125038
* Cleanup CFLAGS in libsdp(3) MakefileMaksim Yevmenkin2004-01-251-1/+1
| | | | | | | | | Connect sdpd(8) to the build Reviewed by: ru, imp (mentor) Notes: svn path=/head/; revision=124986
* I don't normally use my middle name, so remove it from attributions inDag-Erling Smørgrav2004-01-251-2/+2
| | | | | | | | man pages (though not from copyright notices). While I'm here, add email addresses where appropriate. Notes: svn path=/head/; revision=124963
* Describe EOVERFLOW caseAndrey A. Chernov2004-01-251-0/+9
| | | | Notes: svn path=/head/; revision=124952
* Rename the MIBS makefile variable to BMIBS so that it does not conflictHartmut Brandt2004-01-242-4/+4
| | | | | | | with the environment variable MIBS that is used by net-snmp. Notes: svn path=/head/; revision=124926
* When writing/reading longs use explicit 32bit temporary values.Martin Blapp2004-01-241-3/+4
| | | | | | | | | | | MFNetBSD rev. 1.15 + rev 1.16 PR: bin/60901 Submitted by: Logan Gabriel <gersh@sonn.com> Obtained from: NetBSD Notes: svn path=/head/; revision=124897
* Merge vfprintf.c, v1.61 and 1.62. For compatibility with __hdtoa()David Schultz2004-01-231-19/+25
| | | | | | | | | | and to reduce diffs between vfprintf.c and vfwprintf.c, declare xdigs* to be char arrays rather than wchar_t arrays. In collaboration with: tjr Notes: svn path=/head/; revision=124887
* Create the OID and tree files while building the modules and the daemonHartmut Brandt2004-01-2311-453/+13
| | | | | | | | | | | instead of creating them by hand and storing them in the CVS tree. Add gensnmptree to the bootstrap tools (it is used to generated these files). This simplifies the update procedure. Submitted by: ru Notes: svn path=/head/; revision=124873
* Style: remove an empty line.Hartmut Brandt2004-01-231-1/+0
| | | | Notes: svn path=/head/; revision=124865
* Initialize the (i386) frame pointer when setting up a threadDaniel Eischen2004-01-221-1/+4
| | | | | | | | | | context. Submitted by: Marc Olzheim <marcolz@stack.nl> Tested by: Marc Olzheim <marcolz@stack.nl> Notes: svn path=/head/; revision=124841
* o Implement the pthread_spin_* functions in libthr.Mike Makonnen2004-01-222-0/+91
| | | | | | | o Man pages Notes: svn path=/head/; revision=124837
* Clean up error handling in libstand filesystem code to be more consistent:John Baldwin2004-01-2110-27/+49
| | | | | | | | | | | | | | | | | | - bzipfs and gzipfs now properly return errno values directly from their read routines rather than returning -1. - missing errno values on error returns for the seek routines on almost all filesystems were added. - fstat() now returns -1 if an error occurs rather than ignoring it. - nfs's readdir() routine now reports valid errno values if an error or EOF occurs rather than EPERM (It was just returning 0 for success and 1 for failure). - nullfs used the wrong semantics for every function besides close() and seek(). Getting it right for close() appears to be an accident at that. - read() for buffered files no longer returns 0 (EOF) if an error occurs, but returns -1 instead. Notes: svn path=/head/; revision=124811
* Include <stdlib.h> to get abort() prototype.Peter Grehan2004-01-211-0/+2
| | | | Notes: svn path=/head/; revision=124769
* Updated manh shift constant type to 'ULL' for PPC to fixPeter Grehan2004-01-211-1/+1
| | | | | | | | | shift-too-large compile error reviewed by: das Notes: svn path=/head/; revision=124767
* Import sdpd(8) sources. This is Bluetooth Service Discovery Protocol daemon.Maksim Yevmenkin2004-01-205-7/+379
| | | | | | | | | | | Extend libsdp(3) API to allow service registration and removal. Fix uninitialized variable bug in sdpcontrol(8). Reviewed by: imp (mentor) No objection: ru Notes: svn path=/head/; revision=124758