summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
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...
2011-10-10Stop defining XPG4_1994_04_09.Antoine Jacoutot
As kettenis@ pointed at, http://pubs.opengroup.org/onlinepubs/009695399/functions/strftime.html has the following: The Open Group Corrigendum U033/8 is applied. The %V conversion specifier is changed from "Otherwise, it is week 53 of the previous year, and the next week is week 1" to "Otherwise, it is the last week of the previous year, and the next week is week 1". In effect, strftime(3) with the "%V" format will now return "52" instead of "53" for days in January before the first Monday, when January 1st falls on a Friday, Saturday, or Sunday. ok kettenis@ millert@
2011-10-09d_t_fmt: fix the format for the day of the month to use %e (singleAntoine Jacoutot
digits are preceded by a blank instead of a 0) and not %d (POSIX). ok jasper@ guenther@
2011-10-07threads waiting on PS_FDW_WAIT state should not be interruptible ifFederico G. Schwindt
SA_RESTART is set, with connect(2) being the exception thus getting its own state. as pointed by kurt, threads on this and PS_FDR_WAIT states need to be set to PS_RUNNING since the current signal dispatching code only looks at the current thread. ok kurt@
2011-10-06Make struct chunk_info a variable sized struct, wasting lessOtto Moerbeek
space for meta data by only allocating space actually needed for the bitmap (modulo alignment requirements). ok deraadt@
2011-10-05restart connect(2) if it returns EINTRAlexandre Ratchov
2011-10-04some tweaks, from Tim van der MolenJason McIntyre
2011-10-02signedness fix; ok millertDarren Tucker
2011-09-29ssl.8: Certifying Authority -> Certificate AuthorityJason McIntyre
isakmpd.8: rsa:1024 -> rsa:2048 (ok markus) all: X509 -> X.509 from Lawrence Teo
2011-09-28make sure that `references' is not optimized away as it is required for theFederico G. Schwindt
static version of pthread. fixes quite a few regression tests. miod@ ok
2011-09-25KERN_BUFCACHEPERCENT defaults to 20%, not 10%; from Juha ErkkilaJason McIntyre
ok ariane
2011-09-22Stop using the latin1 character set in the "C" locale. This behaviour wasStefan Sperling
non-standard. Tools which aren't locale-aware should only print ASCII but were also printing latin1 which looks garbled in UTF-8 terminals. Folks who want to use an extended character set now must set LC_CTYPE. ok millert uwe naddy espie
2011-09-22fix GLOB_KEEPSTAT without GLOB_NOSORT; the implicit sort was beingDamien Miller
applied only to the gl_pathv vector and not the corresponding gl_statv array. reported in OpenSSH bz#1935; feedback and okay matthew@
2011-09-22install infnan(3/VAX) into man3/vax/ on all archs;Ingo Schwarze
clean make build tested on i386; ok deraadt@, no objections from martynas@
2011-09-22Return the correct errno (EBUSY) when pthread_mutex_trylock() isPhilip Guenthe
called on an ERRORCHECK mutex that is locked by this thread. Problem observed by uwe@
2011-09-21Add /usr/local/share/terminfo to the search path so that ports canNicholas Marriott
install custom terminfo files. Minor ncurses bump to allow packages to depend on the right version. From discussion with zinke@ and dcoppa@. ok phessler dcoppa
2011-09-20In glob(3), limit recursion during matching attempts. Similar to fnmatch fix.Stefan Sperling
Also collapse consecutive '*' (from NetBSD). ok miod deraadt
2011-09-19Use long calls like we do on hppa, otherwise the function we want to callMark Kettenis
might be unreachable.
2011-09-19Make this actually work.Mark Kettenis
ok jsing@
2011-09-19Use a long-displacement branch instruction to call __cerror, since theMark Kettenis
linker doesn't generate stubs yet.
2011-09-19Clear the upper 32-bits of the system call address we load using ldil, sinceMark Kettenis
that instruction does sign extension. Look at %r1 to determine whether a system call was sucessful, since that is where the kernel puts the information.
2011-09-17arithemtic -> arithmeticMiod Vallat
2011-09-16after some thought, i think it unlikely that we will need to specifyJason McIntyre
a revision number for ISO 8601; in addition, the revision number makes the text unwieldy when discussing the standard in a casual manner. therefore change the macro from -8601-4 to simply -8601, which will output "ISO 8601". i'll get kristaps or ingo to make the change upstream to mandoc. discussed with/ok millert
2011-09-16use .St here for ISO 8601 references; ok millertJason McIntyre
2011-09-16RFC-2822 -> RFC 2822Jason McIntyre
2011-09-14update vt100 example to vt200, as vt100 apparently is no longer in theJason McIntyre
termcap database; from Nils Anspach ok nicm
2011-09-13For threads in PS_FDR_WAIT state, check SA_RESTART before marking it asFederico G. Schwindt
interrupted, thus simulating the system call restart behaviour in the non-pthreads case. Add a state for kevent since it shouldn't be restarted regardless of SA_RESTART being present. guenther@ ok.
2011-09-05The scheduling loop can change errno, so we need to restore it evenPhilip Guenthe
when not switching threads; issue observed by fgsch@ ok marc@
2011-09-05Preserve errno across calls to open the password database(s), soPhilip Guenthe
that errno isn't changed when a normal user (who can't open spwd.db) does a lookup. Problem pointed out by Tim van der Molen (tbvdm at xs4all.nl)