summaryrefslogtreecommitdiffstats
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* OpenSSL 1.0.0f: import upstream sourcedjm2012-01-0513-35/+221
|
* Fix $OpenBSD tagguenther2012-01-041-1/+1
|
* Add some sanity checks, set errno accordingly to POSIX and add the namedmpi2012-01-041-4/+56
| | | | | | | semaphore stubs already provided by libpthread. We may move them in their own file in the future when we figure out a real implementation. Discussed with and looks ok to guenther@
* Split out the semaphore functions.mpi2012-01-043-180/+207
| | | | ok guenther@
* Delete some parameter names and extra semicolons that slipped throughguenther2012-01-041-5/+5
|
* The prototype for pthread_sigmask(2) is supposed to live in <signal.h>kettenis2012-01-031-2/+1
| | | | | | instead of <pthread.h>. ok guenther@, millert@
* draft-ietf-ipv6-scoping-arch-02 has become RFC 4007, as noted byjmc2012-01-032-12/+10
| | | | | | Poul-Henning Kamp, freebsd pr docs/163771; ok sthen
* Updates regarding fts_close(3):schwarze2012-01-011-15/+5
| | | | | | | | | | 1) The close(2) return value and errno are ignored. 2) The errno is set by fchdir(2), not by chdir(2), which has much less potential for errors. 3) Use .Rv -std. While here, remove STANDARDS. Keith Bostic added that hope in 1990 and tweaked the wording in 1993, but it didn't come true since then. ok kettenis@ jmc@
* pthread_self() may be much cheaper and never more expensive than getthrid()guenther2011-12-283-11/+12
| | | | so prefer it for identifying the current thread
* Don't let applications block, wait for, or handle SIGTHR, as theguenther2011-12-272-4/+39
| | | | thread library uses it internally for cancellation.
* On failure, pthread_kill() should return the errno, not -1guenther2011-12-271-2/+2
|
* Missing architecture on the .Dt line; found with mandocdb(8); ok jmc@.schwarze2011-12-251-3/+3
|
* formatting errors, found using freebsd's "igor";jmc2011-12-245-17/+18
|
* some spelling fixes, found using freebsd's "igor" document verifier;jmc2011-12-232-6/+6
|
* Add pthread_mutex_{get,set}prioceiling()guenther2011-12-222-2/+57
|
* Split out the pthread_rwlock* and pthread_once() functions from rthread_sync.cguenther2011-12-215-277/+350
| | | | to new files rthread_rwlock.c, rthread_rwlockattr.c, and rthread_once.c
* Split out the pthread_mutexattr_* functions from rthread_sync.c toguenther2011-12-214-48/+119
| | | | | | | new file rthread_mutexattr.c. Add basic implementations of pthread_mutexattr_{set,get}{protocol,prioceiling} Requested by aja
* The ktrace vnode has moved to struct process and changed name.guenther2011-12-141-3/+3
| | | | Missed commit pointed out by mikeb@
* Add new KERN_PROC_CWD sysctl to get the current working directory of a process.nicm2011-12-091-2/+7
| | | | ok guenther deraadt
* mention sndiod rather than aucat when talking about the serverratchov2011-12-093-35/+35
|
* strdup and strndup both use malloc. Make this fact explicit.lum2011-12-081-3/+5
| | | | ok jmc@
* New fnmatch(3) implementation which is not recursive.stsp2011-12-061-232/+435
| | | | | | | Written and provided under BSD licence by William A. Rowe Jr. Originally released in Apache APR-1.4.5. Merged class matching code from r1.14 and PATH_MAX check from r1.15. ok miod millert
* Mark sigthr()'s sig argument as __unusedguenther2011-12-051-2/+2
|
* Implement cancelation for the basic syscall cancelation points,guenther2011-12-056-201/+583
| | | | | | using previously allocated SIGTHR to interrupt in-process syscalls and fixing the spelling of "cancelled" along the way. Modeled on FreeBSD's libthr
* Remove an OpenBSD-specific tweak regarding .Xr spacingschwarze2011-12-031-3/+3
| | | | | | | | and make it compatible with bsd.lv mandoc and with groff-1.21. This tweak was originally added for compatibility with groff-1.15, which is no longer needed. ok jmc@ kristaps@
* document MSG_NOSIGNAL.fgsch2011-12-031-6/+21
|
* Don't segfault when trying to bind to an invalid command. While here,pascal2011-11-272-6/+7
| | | | | | kill a C++-style comment. ok nicm@
* Set the initfirst and nodelete flags on the shared library, in anticipationguenther2011-11-271-1/+2
| | | | of support in ld.so
* sigstack() is long dead, and the compat sigaltstack syscall is gone too.guenther2011-11-228-66/+15
| | | | | | Correct the namespace protections for sigreturn(), sigwait(), and psignal() ok millert@
* Calculate the size for the wchar_t argv correctly, fixes memorynicm2011-11-171-8/+9
| | | | | | | | corruption reported by LEVAI Daniel <leva at ecentrum dot hu>. Also rename "bytes" to "wlen" since bytes is not accurate, suggested by stsp@. ok stsp oga
* Complete the HISTORY of all syscalls that exist since Version 1 AT&T UNIX.schwarze2011-11-179-25/+118
| | | | | All facts from http://minnie.tuhs.org/cgi-bin/utree.pl, checked by sobrado@. Feedback and ok jmc@ jmc@ (sic, Jason checked and ok'ed this twice).
* Fix HISTORY:schwarze2011-11-171-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mention the predecessor exec() in v1, and remove the bogus "appeared in 3BSD", just leave "execve() appeared in v7", because: (1) There is a direct line of inheritance from v7 (Bell, Jan 1979) via 32v (Bell, May 1979) to 3BSD (UCB, Feb 1980), and it goes without saying that children include code from their grandparents. (2) It is impossible that there was parallel development of execve() at Bell and UCB. The only UCB release before v7 was 1BSD (May 1978), and even 2BSD (May 1979) did not include any kernel parts but fully relied on the Bell v6 kernel. When Bell released 32v, the UCB did not even own a VAX, and Bill Joy was still are pure userland hacker. Only after the original UCBVAX arrived at Berkeley, Richard Fateman involved Domenico Ferrari who involved Ozalp Babaoglu who started kernel work at UCB, based on Bell 32v, later involving Bill Joy. (3) Genetic analysis of the source code confirms this. All kernel code involved is in sys1.c. Regarding this file, the first two UCB releases, VAX 3BSD (based on Bell 32v) and PDP-11 2.8BSD (Dec 1981, based on Bell v7) are more similar to their respective Bell parents than to each other. The Berkeley versions are cousins, not siblings: v7 -> 32v: 523 +71 -60 = 534 v7 -> 2.8: 523 +305 -24 = 804 32v -> 3: 534 +169 -110 = 593 3 -> 2.8: 593 +413 -202 = 804 References: http://oreilly.com/catalog/opensources/book/kirkmck.html http://minnie.tuhs.org/cgi-bin/utree.pl?file=32V http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/sys/sys/sys1.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=32V/usr/src/sys/sys/sys1.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=3BSD/usr/src/sys/sys/sys1.c https://www.mckusick.com/csrg/ - /cdrom1/2.8/usr/kernel/sys/sys/sys1.c facts checked and ok sobrado@, style and formatting ok jmc@
* Fix mbstowcs return value documentation. New text based on mbsrtowcs page.stsp2011-11-161-16/+19
| | | | ok jmc
* Add a "device number" component in sndio(7) device names, allowing aratchov2011-11-1513-160/+218
| | | | | | | | | | | | | | | | single aucat instance to handle all audio and MIDI services. Since this partially breaks compatibility, this is a opportunitiy to fix few other design mistakes (eg ':' being used by inet6, type name vs api name confusion, etc..). This leads to the following names: type[@hostname][,unit]/devnum[.option] The device number is the minor device number for direct hardware access (ie the 'N' in /dev/audioN). For aucat, this is the occurence number of the -f (or -M) option. There's a compatibility hook to keep old names working if only one aucat server is running.
* Unbreak build of libpthread on hppa/hppa64 by using correct type injsing2011-11-142-4/+4
| | | | | | _atomic_lock() declaration. ok deraadt@
* Add the __cerror asm bits for per-thread errno support for powerpc.kettenis2011-11-091-0/+41
| | | | ok guenther@
* Oh yeah, with TLS-lite we can get the thread handle without walking theguenther2011-11-091-23/+2
| | | | | | thread list reminded by dhill@
* Make __svfscanf() the unlocked, core of vfscanf() and use it inguenther2011-11-086-46/+23
| | | | | | sscanf()/vsscanf() where locking is unnecessary. ok millert@
* Add the __cerror asm bits for per-thread errno support for hppa.kettenis2011-11-081-0/+33
| | | | ok guenther@
* Include <stddef.h> to make sure offsetof() is defined.kettenis2011-11-081-0/+2
| | | | ok guenther@
* Pass install the -S option to avoid a window where the target isn'tguenther2011-11-0815-30/+30
| | | | | | | executable (by mode or content), which can trip up builds with 'make -j' (The generic fix is in share/mk/*; some Makefiles have their own INSTALL lines) ok millert@ deraadt@
* Expand HISTORY; feedback and ok jmc@ sobrado@.schwarze2011-11-071-8/+21
| | | | | | | | | | This one is tricky, so i'm giving the sources: http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/u2.s http://minnie.tuhs.org/cgi-bin/utree.pl?file=V4/nsys/ken/sys3.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=V5/usr/sys/ken/sys4.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=V6/usr/sys/ken/sys4.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/sys/sys/sys4.c http://www.openbsd.org/plus21.html (lchown)
* More .At v1 HISTORY.schwarze2011-11-073-14/+39
| | | | | | All information from http://minnie.tuhs.org/cgi-bin/utree.pl . All facts checked by sobrado@. Feedback and ok on an earlier version jmc@.
* don't handle out-of-mem conditions using compiled out asserts (ugh). Fromotto2011-11-071-9/+10
| | | | netbsd; ok deraadt@
* Commemorate research!dmr by documenting the history of allschwarze2011-11-067-40/+53
| | | | | | | | | system calls existing since Version 1 AT&T UNIX (first batch). All information taken from primary sources at the UNIX tree of the UNIX heritage society, http://minnie.tuhs.org/cgi-bin/utree.pl . The number of errors in the existing manuals is astonishing. All facts checked by sobrado@. Feedback and ok on wording and formatting by jmc@.
* Copy support for sched_get_priority_{min,max} from libpthread.guenther2011-11-063-3/+50
| | | | Requested by many to ease substitution of librthread for libpthread
* .Ev -> .Dvderaadt2011-11-064-16/+16
|
* repair documentation offset in the p*() versions of the calls and EINVAL;deraadt2011-11-062-27/+25
| | | | | plus merge differences between two pages. ok guenther jmc
* Move <machine/spinlock.h> into rthread.h; strip out unnecessary #includesguenther2011-11-0612-85/+14
|
* Move around the error cases to make clear that some don't apply to theguenther2011-11-052-27/+45
| | | | p* versions, as well as fix a couple other cases