summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2011-12-03document MSG_NOSIGNAL.Federico G. Schwindt
2011-11-27Don't segfault when trying to bind to an invalid command. While here,Pascal Stumpf
kill a C++-style comment. ok nicm@
2011-11-27Set the initfirst and nodelete flags on the shared library, in anticipationPhilip Guenthe
of support in ld.so
2011-11-22sigstack() is long dead, and the compat sigaltstack syscall is gone too.Philip Guenthe
Correct the namespace protections for sigreturn(), sigwait(), and psignal() ok millert@
2011-11-17Calculate the size for the wchar_t argv correctly, fixes memoryNicholas Marriott
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
2011-11-17Complete the HISTORY of all syscalls that exist since Version 1 AT&T UNIX.Ingo Schwarze
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).
2011-11-17Fix HISTORY:Ingo Schwarze
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@
2011-11-16Fix mbstowcs return value documentation. New text based on mbsrtowcs page.Stefan Sperling
ok jmc
2011-11-15Add a "device number" component in sndio(7) device names, allowing aAlexandre Ratchov
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.
2011-11-14Unbreak build of libpthread on hppa/hppa64 by using correct type inJoel Sing
_atomic_lock() declaration. ok deraadt@
2011-11-09Add the __cerror asm bits for per-thread errno support for powerpc.Mark Kettenis
ok guenther@
2011-11-09Oh yeah, with TLS-lite we can get the thread handle without walking thePhilip Guenthe
thread list reminded by dhill@
2011-11-08Make __svfscanf() the unlocked, core of vfscanf() and use it inPhilip Guenthe
sscanf()/vsscanf() where locking is unnecessary. ok millert@
2011-11-08Add the __cerror asm bits for per-thread errno support for hppa.Mark Kettenis
ok guenther@
2011-11-08Include <stddef.h> to make sure offsetof() is defined.Mark Kettenis
ok guenther@
2011-11-08Pass install the -S option to avoid a window where the target isn'tPhilip Guenthe
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@
2011-11-07Expand HISTORY; feedback and ok jmc@ sobrado@.Ingo Schwarze
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)
2011-11-07More .At v1 HISTORY.Ingo Schwarze
All information from http://minnie.tuhs.org/cgi-bin/utree.pl . All facts checked by sobrado@. Feedback and ok on an earlier version jmc@.
2011-11-07don't handle out-of-mem conditions using compiled out asserts (ugh). FromOtto Moerbeek
netbsd; ok deraadt@
2011-11-06Commemorate research!dmr by documenting the history of allIngo Schwarze
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@.
2011-11-06Copy support for sched_get_priority_{min,max} from libpthread.Philip Guenthe
Requested by many to ease substitution of librthread for libpthread
2011-11-06.Ev -> .DvTheo de Raadt
2011-11-06repair documentation offset in the p*() versions of the calls and EINVAL;Theo de Raadt
plus merge differences between two pages. ok guenther jmc
2011-11-06Move <machine/spinlock.h> into rthread.h; strip out unnecessary #includesPhilip Guenthe
2011-11-05Move around the error cases to make clear that some don't apply to thePhilip Guenthe
p* versions, as well as fix a couple other cases
2011-11-03crank major for openssl-1.0.0eDamien Miller
2011-11-03openssl-1.0.0e: resolve conflictsDamien Miller
2011-11-03import OpenSSL 1.0.0eDamien Miller
2011-11-02Sync scanf(3) to wscanf(3), and a few bits the opposite way:Ingo Schwarze
.Fd -> .In, .Li -> .Vt, and remove various other gratuitous differences. feedback and ok stsp@, ok jmc@
2011-10-27Allow segments to be used even after they were marked for deletion withRobert Nagy
the IPC_RMID flag. This is permitted as an extension beyond the standards and this is similar to what other operating systems like linux do. Because compat_linux(8) was emulating this already, remove that code since now this is the default. input from oga@, guenther@, jmc@, deraadt@ ok deraadt@
2011-10-24Update POSIX references for chdir(2) and chmod(2) from 1988 to 2008.Ingo Schwarze
Add POSIX references for fchdir(2), fchmod(2), fchmodat(2), fchown(2), lchown(2) and execve(2). State that fchmod(2) can return EPERM as required by POSIX 2008 (tested). Requested by sobrado@; ok guenther@ jmc@ sobrado@.
2011-10-22Don't attempt to send data not available for sending yet. AnalysedAlexandre Ratchov
and fixed by Remco <remco at d-compu.dyndns.org>, thanks!
2011-10-19Remove some blatant lies. Provide a variant 1 archs with a defaultPhilip Guenthe
value for THREAD_ERRNOPTR_OFFSET (can't be used from ASM or ld.so, but it lets things compile as we fill things in)
2011-10-18some minor tweaks concerning midicat removal; ok ratchovJason McIntyre
2011-10-17Remove midicat since aucat can now be used instead of midicatAlexandre Ratchov
with almost the same syntax (roughly an extra -M option). Thru boxes are created with aucat, and corresponding MIDI port names have the "aucat" prefix instead of "midithru". The old device name will still work some time for backward compatibility. ok deraadt
2011-10-17Use __tfork, __get_tcb, and __set_tcb to have a real TCB and per-threadPhilip Guenthe
errno. The ASM bits for _cerror are sketchy or missing for some archs but that can be corrected in-tree.
2011-10-16Bump libc major; wscanf and wcsftime were addedStefan Sperling
2011-10-16Hook wcsftime(3) to the build; committing on behalf of espieStefan Sperling
2011-10-16Add wscanf(3) and friends. Based on our scanf(3) implementation, with wideStefan Sperling
character support changes based on code from FreeBSD. ok espie guenther; man page help from schwarze
2011-10-16Tweak wording, to clarify that setrtable affects the routing tablePhilip Guenthe
and that getrtable returns the table, not 0/-1. Also, strip some quotes that mandoc made superfluous, per comment from jmc@. ok claudio@
2011-10-16Note a restriction that is actually enforced in 5.0Philip Guenthe
2011-10-16Fixes and tweaks from jmc@Philip Guenthe
2011-10-16Make consistent the syscall stubs for the syscalls that got specialPhilip Guenthe
handling to fix up the alignment of 64bit arguments so that they do the same dance where _thread_sys_FOO is the real stub and FOO is a weak alias. For some of them, this is needed for cancellation handling. From discussions with fgsch@, ok millert@
2011-10-16Add stubs and manpage for __{get,set}_tcbPhilip Guenthe
ok deraadt@
2011-10-14Fix toprec handling in cgetnext(). OK otto@Todd C. Miller
2011-10-13Deal with the horror that is gcc asm constraints by copying thePhilip Guenthe
known good version of ldstub in the kernel. (It's finally in, aja!) ok kettenis@
2011-10-13Increase the stack offset for the new rthread from (BIAS+128) toPhilip Guenthe
(BIAD+CC64FSZ) so that there's sufficient space even when _rthread_start is compiled without optimization. Also, clear the frame pointer to help make gdb happier. ok kettenis@
2011-10-13Convert rfork_thread() from int$80 to syscall.Philip Guenthe
Tune the asm slightly to avoid using the stack and use smaller instructions. Pass threxit() a NULL pointer. seemed okay to kettenis@
2011-10-11Change to syscall is done, so delete an XXX commentPhilip Guenthe
2011-10-10put in code for wcstfime, as discussed with millert@ and stsp@ (and testedMarc Espie
by ajacoutot@, thx), to be linked in and activated alongside wscanf...