summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* "S" comes before "U"...obrien1999-10-251-2/+2
| | | | Alphabet taught to Green by: obrien
* Remove UNSAFE_WARN ifdef for mktemp warning (never defined)ache1999-10-243-6/+6
| | | | Use _mktemp internally
* YP/NIS code: remove unnecessary endgrent() calls which can cause fail onache1999-10-161-5/+3
| | | | | | next try over chroot (descriptor closed). getgrnam() used already handles endgrent() properly and honors _gr_stayopen. Automatically call setgroupent(1) when _pw_stayopen is set (for YP/NIS code).
* Fix longstanding bug "unused stayopen" introduced in rev1.11ache1999-10-161-2/+6
| | | | PR: 14201
* Remove osig* from NOASM. It bogus now.marcel1999-10-142-4/+2
|
* In longjmp, call sigreturn instead of osigreturn. The latter isn'tjdp1999-10-141-1/+1
| | | | | | visible from userland any more. Reviewed by: luoqi
* Not needed now the syscall matches the prototype.marcel1999-10-123-117/+0
|
* \begin{quote}marcel1999-10-102-2/+2
| | | | | | | | | | | setjmp() gets the jmp_buf pointer from the wrong place (the place where the return address is) in the shlib case, and uses it (only) to fetch the current signal mask to address (return_address + 28). This address is normally read-only (I hope), so the sigprocmask() call has no effect except to return an error code. \end{quote} Submitted by: bde
* Remove syscall wrappers.marcel1999-10-095-192/+4
|
* Remove old sig* wrappers.dfr1999-10-091-2/+1
|
* Correct the description of the timeout argument. I've examinedwes1999-10-091-0/+10
| | | | | | | | the code, which seems to implement the POSIX requirements, and have described the behavior here. Basically, it behaves the same as select(2). Noticed by: John Polstra
* Fix sigvec(). When the sigset_t changes came in, it was alteredjdp1999-10-091-6/+17
| | | | | | | | | to call osigaction(). But that's wrong because it causes the handler to receive a struct osigcontext instead of the expected struct sigcontext. Use sigaction() instead, copying the compatible portion of the signal mask. Reviewed by: marcel
* o Add $FreeBSD$ as a rcsid instead of in a commentmarcel1999-10-021-31/+28
| | | | | | | o Remove bitrotted #undef directives o Actually set errno now and order the functions Submitted by: bde
* o Add $FreeBSD$ as a rcsid instead of in a comment.marcel1999-10-021-5/+12
| | | | | | | o Fix formatting o Return the error if sigprocmask fails instead of undefined data. Submitted by: bde
* Fix misspelling of the "addq" opcode.jdp1999-09-291-1/+1
|
* sigset_t change (part 5 of 5)marcel1999-09-2912-91/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------- Most of the userland changes are in libc. For both the alpha and the i386 setjmp has been changed to accomodate for the new sigset_t. Internally, libc is mostly rewritten to use the new syscalls. The exception is in compat-43/sigcompat.c The POSIX thread library has also been rewritten to use the new sigset_t. Except, that it currently only handles NSIG signals instead of the maximum _SIG_MAXSIG. This should not be a problem because current applications don't use any signals higher than NSIG. There are version bumps for the following libraries: libdialog libreadline libc libc_r libedit libftpio libss These libraries either a) have one of the modified structures visible in the interface, or b) use sigset_t internally and may cause breakage if new binaries are used against libraries that don't have the sigset_t change. This not an immediate issue, but will be as soon as applications start using the new range to its fullest. NOTE: libncurses already had an version bump and has not been given one now. NOTE: doscmd is a real casualty and has been disconnected for the moment. Reconnection will eventually happen after doscmd has been fixed. I'm aware that being the last one to touch it, I'm automaticly promoted to being maintainer. According to good taste this means that I will receive a badge which either will be glued or mechanically stapled, drilled or otherwise violently forced onto me :-) NOTE: pcvt/vttest cannot be compiled with -traditional. The change cause sys/types to be included along the way which contains the const and volatile modifiers. I don't consider this a solution, but more a workaround.
* Back out my backout, it was already posix compliant. Any new fields arepeter1999-09-281-1/+0
| | | | | | required to be "announced" by a new bit in sa_flags to indicate the program is aware of and has taken care of them. eg: SA_SIGINFO means the program has used the sa_siginfo field (versus sa_handler).
* Fix previous commit. The standards specifically say: "The structurepeter1999-09-281-0/+1
| | | | | | | | | sigaction, used to describe an action to be taken, is defined in the header <signal.h> to include at least the following members:" ^^^^^^^^ A sigaction defined on stack with essentially random contents may have just about anything underneath fields that the program doesn't know about. It is not safe to delete the bzero.
* Explicitly use sigemptyset to clear a sigset_t. Explicitmarcel1999-09-281-1/+2
| | | | initialization of sa_flags allows us to lose the bzero.
* Explicitly use sigemptyset to clear a sigset_t. Explicitmarcel1999-09-281-1/+4
| | | | | | initialization of sa_flags allows us to lose the bzero. $FreeBSD$ tag added.
* Xref strlcat, strlcpyimp1999-09-282-2/+5
| | | | Inspired by: NetBSD commit message describing this.
* Change .Fn to .Xr on a couple of lines where abort(3) is referenced.chris1999-09-251-2/+2
|
* mdoc(7)'fyphantom1999-09-231-5/+6
|
* Nuke dlopen.3 -> dlversion.3 link.phantom1999-09-231-2/+1
| | | | | | This function was removed by jdp in rev.1.5 of dlopen.3 Forgoten by: jdp
* Add gencat(1) to SEE ALSO section.phantom1999-09-223-0/+3
| | | | | PR: docs/13658 Submitted by: Zahemszky Gabor <zgabor@code.hu>
* Add links for errc.3, verrc.3, warnc.3, vwarnc.3.phantom1999-09-221-2/+3
| | | | | PR: docs/13222 Submitted by: Ben Smithurst <ben@scientia.demos.co.uk>
* If `who' was not specified, set the appropriate bits as the chmod(1)ru1999-09-221-2/+6
| | | | | | manual page states. `chmod +s foo' and `chmod +t foodir' now work. PR: 13889
* mdoc(7)'fyphantom1999-09-211-1/+1
| | | | Reviewed by: mpp
* Fixed a typo (well, format-o) in yesterday's edits.wes1999-09-211-2/+3
| | | | Spotted by: John Polstra <jdp@polstra.com> (again)
* Fixed the description of when and why aio_suspend returns.wes1999-09-201-11/+15
| | | | | | | Also spelled out the return values and conditions a little better. Noticed by: John Polstra <jdp@polstra.com>
* Correct spelling : ascii -> ASCIIphantom1999-09-201-1/+1
| | | | | | PR: docs/13702 Submitted by: Stephen J. Roznowski <sjr@home.com> Reviewed by: mpp
* Fix typophantom1999-09-191-1/+1
| | | | | PR: docs/13814 Submitted by: Alex Vasylenko <lxv@mix.nest.org>
* Add a version number field to the jail(2) argument so that future changesphk1999-09-191-3/+14
| | | | can be handled intelligently.
* __collate_substitute() do something non-trivial only for German. For everyonedt1999-09-123-6/+25
| | | | | | | | else, it is equivalent to strdup(). So, we will check if the substitution tables are trivial at the load time, and possibly save 2 calls to __collate_substitute() in strcoll(). Still, __collate_substitute() should not exist.
* Reduce time of __collate_substitute() from O(strlen(s)^2) to O(strlen(s)).dt1999-09-121-8/+11
| | | | | | | | Other minor optimizations. I got ~30% speedup in strcoll() for 50 char strings, ~40% speedup for 100 char strings, and unmeasurable speedup for 1M strings. Collates are still terribly slow. To make them reasonable fast, __collate_substitute() should be killed.
* Implement new format specifier for strftime: %OB, alternative nationaldt1999-09-113-19/+58
| | | | | | | | | representation of the full month name. In the Russian locale, this alternative will be "nominative case", useful when the date designate month as a whole. E.g. month heading in a calendar. I hope it can be useful for some other locales too. Discussed with: wollman, ache
* Add FreeBSD history in 'HISTORY'alfred1999-09-111-1/+4
| | | | Pointed out by: obrien
* Fixed disordering in previous commit.bde1999-09-111-1/+1
|
* Document fhopen, fhstat, and fhstatfs syscalls.alfred1999-09-112-1/+137
| | | | Obtained from: NetBSD
* sync with src/sys/sys/mount.halfred1999-09-101-1/+2
|
* Add aio_{cancel,error,return,suspend,write} into the mix.billf1999-09-091-1/+3
| | | | | Submitted by: Dan Nelson <dnelson@emsphone.com> Forgotten by: mpp
* - add reference to siginterrupt(3)ru1999-09-061-32/+35
| | | | - mdoc(7) fixes
* Don't forget to reset _pw_stepping_yp to 0 before returning. Fixes a bugdes1999-09-061-0/+1
| | | | | | | | where getpwent() would ignore wildcard entries that followed a netgroup entry. PR: misc/12999 Submitted by: David Hedley <david@inty.net>
* Tidy up $Log$ debris.peter1999-09-051-32/+2
|
* Some style and "look" fixesphantom1999-09-059-12/+27
| | | | Reviewed by: mpp
* Name Description (.Nd macro) added.phantom1999-09-051-6/+7
| | | | | | | | Style and punctuation errors fixes. ERRORS section included to RETURN VALUES because it's describing return values instead of errors and their handling. Reviewed by: mpp
* mdoc(7) style fix.phantom1999-09-051-2/+4
| | | | | | Correct RB_* values list bounds. Reviewed by: mpp
* mdoc(7) style fix: FreeBSD -> .Fxphantom1999-09-057-7/+14
| | | | Reviewed by: mpp
* Remove useless .Fn macro suffixphantom1999-09-051-1/+1
| | | | Reviewed by: mpp
* mdoc style fix.phantom1999-09-051-4/+2
| | | | Reviewed by: mpp
OpenPOWER on IntegriCloud