summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* YP/NIS code: remove unnecessary endgrent() calls which can cause fail onAndrey A. Chernov1999-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). Notes: svn path=/head/; revision=52310
* Fix longstanding bug "unused stayopen" introduced in rev1.11Andrey A. Chernov1999-10-161-2/+6
| | | | | | | PR: 14201 Notes: svn path=/head/; revision=52306
* Remove osig* from NOASM. It bogus now.Marcel Moolenaar1999-10-142-4/+2
| | | | Notes: svn path=/head/; revision=52232
* In longjmp, call sigreturn instead of osigreturn. The latter isn'tJohn Polstra1999-10-141-1/+1
| | | | | | | | | visible from userland any more. Reviewed by: luoqi Notes: svn path=/head/; revision=52224
* Not needed now the syscall matches the prototype.Marcel Moolenaar1999-10-123-117/+0
| | | | Notes: svn path=/head/; revision=52151
* \begin{quote}Marcel Moolenaar1999-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 Notes: svn path=/head/; revision=52083
* Remove syscall wrappers.Marcel Moolenaar1999-10-095-192/+4
| | | | Notes: svn path=/head/; revision=52062
* Remove old sig* wrappers.Doug Rabson1999-10-091-2/+1
| | | | Notes: svn path=/head/; revision=52056
* Correct the description of the timeout argument. I've examinedWes Peters1999-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 Notes: svn path=/head/; revision=52041
* Fix sigvec(). When the sigset_t changes came in, it was alteredJohn Polstra1999-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 Notes: svn path=/head/; revision=52040
* o Add $FreeBSD$ as a rcsid instead of in a commentMarcel Moolenaar1999-10-021-31/+28
| | | | | | | | | | o Remove bitrotted #undef directives o Actually set errno now and order the functions Submitted by: bde Notes: svn path=/head/; revision=51872
* o Add $FreeBSD$ as a rcsid instead of in a comment.Marcel Moolenaar1999-10-021-5/+12
| | | | | | | | | | o Fix formatting o Return the error if sigprocmask fails instead of undefined data. Submitted by: bde Notes: svn path=/head/; revision=51870
* Fix misspelling of the "addq" opcode.John Polstra1999-09-291-1/+1
| | | | Notes: svn path=/head/; revision=51802
* sigset_t change (part 5 of 5)Marcel Moolenaar1999-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. Notes: svn path=/head/; revision=51794
* Back out my backout, it was already posix compliant. Any new fields arePeter Wemm1999-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). Notes: svn path=/head/; revision=51764
* Fix previous commit. The standards specifically say: "The structurePeter Wemm1999-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. Notes: svn path=/head/; revision=51762
* Explicitly use sigemptyset to clear a sigset_t. ExplicitMarcel Moolenaar1999-09-281-1/+2
| | | | | | | initialization of sa_flags allows us to lose the bzero. Notes: svn path=/head/; revision=51759
* Explicitly use sigemptyset to clear a sigset_t. ExplicitMarcel Moolenaar1999-09-281-1/+4
| | | | | | | | | initialization of sa_flags allows us to lose the bzero. $FreeBSD$ tag added. Notes: svn path=/head/; revision=51758
* Xref strlcat, strlcpyWarner Losh1999-09-282-2/+5
| | | | | | | Inspired by: NetBSD commit message describing this. Notes: svn path=/head/; revision=51743
* Change .Fn to .Xr on a couple of lines where abort(3) is referenced.Chris Costello1999-09-251-2/+2
| | | | Notes: svn path=/head/; revision=51667
* mdoc(7)'fyAlexey Zelkin1999-09-231-5/+6
| | | | Notes: svn path=/head/; revision=51610
* Nuke dlopen.3 -> dlversion.3 link.Alexey Zelkin1999-09-231-2/+1
| | | | | | | | | This function was removed by jdp in rev.1.5 of dlopen.3 Forgoten by: jdp Notes: svn path=/head/; revision=51605
* Add gencat(1) to SEE ALSO section.Alexey Zelkin1999-09-223-0/+3
| | | | | | | | PR: docs/13658 Submitted by: Zahemszky Gabor <zgabor@code.hu> Notes: svn path=/head/; revision=51577
* Add links for errc.3, verrc.3, warnc.3, vwarnc.3.Alexey Zelkin1999-09-221-2/+3
| | | | | | | | PR: docs/13222 Submitted by: Ben Smithurst <ben@scientia.demos.co.uk> Notes: svn path=/head/; revision=51571
* If `who' was not specified, set the appropriate bits as the chmod(1)Ruslan Ermilov1999-09-221-2/+6
| | | | | | | | | manual page states. `chmod +s foo' and `chmod +t foodir' now work. PR: 13889 Notes: svn path=/head/; revision=51549
* mdoc(7)'fyAlexey Zelkin1999-09-211-1/+1
| | | | | | | Reviewed by: mpp Notes: svn path=/head/; revision=51518
* Fixed a typo (well, format-o) in yesterday's edits.Wes Peters1999-09-211-2/+3
| | | | | | | Spotted by: John Polstra <jdp@polstra.com> (again) Notes: svn path=/head/; revision=51509
* Fixed the description of when and why aio_suspend returns.Wes Peters1999-09-201-11/+15
| | | | | | | | | | Also spelled out the return values and conditions a little better. Noticed by: John Polstra <jdp@polstra.com> Notes: svn path=/head/; revision=51470
* Correct spelling : ascii -> ASCIIAlexey Zelkin1999-09-201-1/+1
| | | | | | | | | PR: docs/13702 Submitted by: Stephen J. Roznowski <sjr@home.com> Reviewed by: mpp Notes: svn path=/head/; revision=51457
* Fix typoAlexey Zelkin1999-09-191-1/+1
| | | | | | | | PR: docs/13814 Submitted by: Alex Vasylenko <lxv@mix.nest.org> Notes: svn path=/head/; revision=51419
* Add a version number field to the jail(2) argument so that future changesPoul-Henning Kamp1999-09-191-3/+14
| | | | | | | can be handled intelligently. Notes: svn path=/head/; revision=51398
* __collate_substitute() do something non-trivial only for German. For everyoneDmitrij Tejblum1999-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. Notes: svn path=/head/; revision=51216
* Reduce time of __collate_substitute() from O(strlen(s)^2) to O(strlen(s)).Dmitrij Tejblum1999-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. Notes: svn path=/head/; revision=51214
* Implement new format specifier for strftime: %OB, alternative nationalDmitrij Tejblum1999-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 Notes: svn path=/head/; revision=51186
* Add FreeBSD history in 'HISTORY'Alfred Perlstein1999-09-111-1/+4
| | | | | | | Pointed out by: obrien Notes: svn path=/head/; revision=51185
* Fixed disordering in previous commit.Bruce Evans1999-09-111-1/+1
| | | | Notes: svn path=/head/; revision=51154
* Document fhopen, fhstat, and fhstatfs syscalls.Alfred Perlstein1999-09-112-1/+137
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=51139
* sync with src/sys/sys/mount.hAlfred Perlstein1999-09-101-1/+2
| | | | Notes: svn path=/head/; revision=51122
* Add aio_{cancel,error,return,suspend,write} into the mix.Bill Fumerola1999-09-091-1/+3
| | | | | | | | Submitted by: Dan Nelson <dnelson@emsphone.com> Forgotten by: mpp Notes: svn path=/head/; revision=51110
* - add reference to siginterrupt(3)Ruslan Ermilov1999-09-061-32/+35
| | | | | | | - mdoc(7) fixes Notes: svn path=/head/; revision=51023
* Don't forget to reset _pw_stepping_yp to 0 before returning. Fixes a bugDag-Erling Smørgrav1999-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> Notes: svn path=/head/; revision=51003
* Tidy up $Log$ debris.Peter Wemm1999-09-051-32/+2
| | | | Notes: svn path=/head/; revision=50967
* Some style and "look" fixesAlexey Zelkin1999-09-059-12/+27
| | | | | | | Reviewed by: mpp Notes: svn path=/head/; revision=50947
* Name Description (.Nd macro) added.Alexey Zelkin1999-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 Notes: svn path=/head/; revision=50946
* mdoc(7) style fix.Alexey Zelkin1999-09-051-2/+4
| | | | | | | | | Correct RB_* values list bounds. Reviewed by: mpp Notes: svn path=/head/; revision=50945
* mdoc(7) style fix: FreeBSD -> .FxAlexey Zelkin1999-09-057-7/+14
| | | | | | | Reviewed by: mpp Notes: svn path=/head/; revision=50944
* Remove useless .Fn macro suffixAlexey Zelkin1999-09-051-1/+1
| | | | | | | Reviewed by: mpp Notes: svn path=/head/; revision=50943
* mdoc style fix.Alexey Zelkin1999-09-051-4/+2
| | | | | | | Reviewed by: mpp Notes: svn path=/head/; revision=50942
* mdoc(7) style fixesAlexey Zelkin1999-09-051-2/+4
| | | | | | | Reviewed by: mpp Notes: svn path=/head/; revision=50941
* Spelling and grammar error fix.Alexey Zelkin1999-09-041-2/+8
| | | | | | | | | | | mdoc(7)'fy. PR: docs/13406 Submitted by: Garret Woolman <woolman@khavrinen.lcs.mit.edu> Reviewed by: mpp Notes: svn path=/head/; revision=50916