summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2006-10-15mark up `>';Jason McIntyre
2006-10-14Add a CAVEAT section that describes how to properly trim a newline fromChad Loder
a string, being careful to deal with 0-length strings. Help and input from jmc, ok deraadt
2006-10-14Make fgets description much clearer with respect to its exact behavior.Chad Loder
OK and input from deraadt, jmc, millert.
2006-10-14freebsd -r1.21:Jason McIntyre
Document what "msgsz" argument really denotes; from brian candler (freebsd pr #101145) Don't say that "msgsz" can be less than 0, it cannot as it's unsigned (POSIX has the same bug); from ru@freebsd ok millert deraadt
2006-10-14sync with <sys/stat.h>;Jason McIntyre
from simon barner (freebsd pr #57153); ok millert deraadt
2006-10-13__mips64__ handling too.. sighTheo de Raadt
2006-10-12sparc64 should be in the #ifdefTheo de Raadt
2006-10-12use __amd64__ instead, until lint is fixedTheo de Raadt
2006-10-12reorder #if tests because apparently on amd64 cpp proceeds to blow it'sTheo de Raadt
own brains out, and then takes lint down with it. To be investigated...
2006-10-11SIGCONT may be sent to any process with the same session ID as the caller,Jason McIntyre
not to any process that is a descendant of the current process. from ryan younce (freebsd pr #58710); confirmed by otto and ok
2006-10-11be specific about what we mean by a "slow device";Jason McIntyre
kick started by netbsd pr 19603 from kevin p. neal. rillig@netbsd seems to have adapted that, and i have in turn adapted it again; ok otto
2006-10-11and I forgot ldexp.cDale Rahn
2006-10-11build modf.cDale Rahn
2006-10-10Preliminary userland bits for OpenBSD/landisk, many things coming fromMiod Vallat
NetBSD.
2006-10-10Teach'em about cpus in spandexMiod Vallat
2006-10-10MLINKS to macros described in stat(2)Theo de Raadt
2006-10-10system call changes (the file says "changes", leaving it purposelyTheo de Raadt
vague like that) REQUIRE a major crank. Yet it was not done for getcwd. Now a lot of people are going to get screwed
2006-10-05supply -indent to another display, to make the page match;Jason McIntyre
kill some trailing whitespace;
2006-10-05Add S_ISBLK(), S_ISCHR(), S_ISDIR(), S_ISFIFO(), S_ISLNK(), S_ISREG(),Ray Lai
and S_ISSOCK() macros. OK deraadt@, OK and help from jmc@.
2006-10-04from wiz@netbsd:Jason McIntyre
Log Message: Switch from 4-clause to 2-clause BSD license. Ok dillo@, board@.
2006-10-03when using SHA1Data(), no CTX is needed, so zap that line in the exampleAlexander von Gernler
ok jmc@
2006-10-01Make a var volatile, which forces a mem write at the right spot, andOtto Moerbeek
detctecion of underflow where it would otherwise not happen for FPUs that have a larger register size than sizeof double (i386, m68k). ok deraadt@ weingart@ kettenis@
2006-09-27remove superfluous paranthesisJasper Lievisse Adriaanse
from Matthew R. Dempsky <mrd at alkemio dot org> ok deraadt
2006-09-26Zap D_REMOVABLE flag from disklabel. If you didn't already know thatKenneth R Westerback
floppies and cd's were removable, displaying that fact in disklabel output was unlikely to help. And the display in disklabel was the only use of D_REMOVABLE in the tree. ok marco@
2006-09-26Part 2 of file descriptor race and deadlock corrections.Kurt Miller
Adjust design of file descriptor table to eliminate races with both opening and closing of file descriptor entries and eliminates one class of deadlocks. One nice side effect of this change in design should be better performance for applications that open and close many file descriptors due to reduced fd_table_lock contention and fd entry reuse. - Add entry states to manage use of entry and eliminate some closing races. fd entries are not deallocated upon close() now. - Call _thread_fd_table_init with one of five discreet modes to properly initialize an entry and manage the state transition to open. - When closing an entry hold the entry spinlock locked across the state transition and the _thread_sys_close call to close another race. - Introduce a new lock type FD_RDWR_CLOSE that transitions either a closed entry or an open entry into closing state and then waits for a RDWR lock so that the lock queue can unwind normally. All subsequent fd lock attempts for that entry are rejected with EBADF until the fd is fully closed, or reopened by dup2(). Once a thread holds the FD_RDWR_LOCK it is safe to close() it or dup2() on it. - When a thread creates a new fd there is a window of time when another thread could attempt to use the fd before the creating thread has initialized the entry for it. This can result in improper status_flags for the entry, so record the entries init mode, detect when this has happened and correct the status_flags when needed. reviewed by marc@ & brad@, tested by several, okay brad@
2006-09-25Remove unnecessary /* NOTREACHED */ comments because our lint isRay Lai
cool and recognizes __dead, and because shorter examples are clearer. OK otto@.
2006-09-24Eliminate D_CHAIN, D_ECC and D_RAMDISK flags from disklabel. They wereKenneth R Westerback
not being used in the tree for anything obviously useful. Get it done early so we can find if there are non-obvious uses out there. ok deraadt@ beck@
2006-09-23If fgetln() != NULL, len == 0 is impossible, so remove check.Ray Lai
OK otto@ and jaredy@.
2006-09-22Check return value of authunix_create_default(); from bret lambertOtto Moerbeek
with some guidance by me; ok jaredy@
2006-09-22Back out change in rev 1.15 of to allow whitespace to separate aTodd C. Miller
flag from its optional argument if permutation is disabled. The idea was that since "r:" would match "-r foo" then "r::" should match "-r foo" too as long as we know that things have not been reshuffled. Unfortunately, this causes incompatibilities with GNU getopt_long when the POSIXLY_CORRECT environment variable is set. OK deraadt@
2006-09-22Remove reference to LFS, okay deraadt@Pedro Martelletto
2006-09-17dont put two '\n' at the end of the string returnd by clnt_sperror()Thordur I. Bjornsson
ok deraadt@
2006-09-15sysctl(3) can return ESRCH; noted by Kristaps Johnson; ok miod@ jmc@Otto Moerbeek
2006-09-15better desciption of ESRCH; prompted by jmc@; ok miod@ jmc@Otto Moerbeek
2006-09-07knock out an .Xr to self;Jason McIntyre
from joachim schipper (pr #5228)
2006-09-03Add EINVAL and EOPNOTSUPP for remote filesystems,Ian Darwin
OK jmc@ miod@
2006-08-29If pgrp is zero, the process ID of the specified process is used.Christian Weisgerber
ok jmc@
2006-08-09Document error return when namelen is 0. OK jmc@Todd C. Miller
2006-08-09correction from vasil dimov;Jason McIntyre
tweak whilst in here
2006-08-07- fix a sentenceJason McIntyre
- some indent
2006-08-05no point mentioning functions if we have nothing useful to sayJason McIntyre
about them; ok djm
2006-08-04Add ENOMEDIUM and EMEDIUMTYPE to report medium errors to userland programsBob Beck
when using removable media devices, along with changes to scsi_base to detect such cases in tapes other devices. This makes tar, dd, and friends report a semi useful error message instead of nonsense when there is nothing in the device. Includes libc minor bump, and will require the corresponding sets change. ok krw@ deraadt@
2006-08-04clarification from kristaps johnson;Jason McIntyre
2006-08-03tweak;Jason McIntyre
2006-08-03EILSEQ is 84 not 83.Bob Beck
2006-08-03Document EILSEQ - forgotten by the wide character folks when they addedBob Beck
it to errno. ok deraadt@
2006-07-26wording/grammar tweaks;Jason McIntyre
2006-07-26better macros;Jason McIntyre
2006-07-26document `iv';Jason McIntyre
from eren elci; tweaked by djm ok djm
2006-07-25updates from nicholas marriott;Jason McIntyre
re-worded and ok djm