summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Make setproctitle(NULL) restore all of the original argumentsbrian1999-11-172-30/+45
| | | | (if it's able).
* Fix a bug in the hack that protects against FTP bounce attacks.jdp1999-11-171-3/+2
| | | | | | | | | It used to loop back up to the accept() call and block there, shutting out all other transports until a new connection came in. Now it returns instead after dropping the connection. That will take it back to the select() loop where all transports can be serviced. I intend to MFC this within a day or two since it fixes a DoS vulnerability.
* Introduce commandline caching in the kernel.phk1999-11-161-0/+9
| | | | | | | | | | | This fixes some nasty procfs problems for SMP, makes ps(1) run much faster, and makes ps(1) even less dependent on /proc which will aid chroot and jails alike. To disable this facility and revert to previous behaviour: sysctl -w kern.ps_arg_cache_limit=0 For full details see the current@FreeBSD.org mail-archives.
* Add to pwd_mkdb a -q option to silence warnings about large IDs. Add asheldonh1999-11-152-4/+15
| | | | | | | | | suitably ominous warning in the manual page. The diff applied is not the one provided in the attributed PR. PR: 13344 Reviewed by: bde
* fts_pathlen and fts_namelen are u_short, not shortkris1999-11-151-2/+2
| | | | Obtained from: OpenBSD
* Typokris1999-11-151-1/+1
| | | | Obtained from: OpenBSD
* Properly document what ENOENT really means for kldfind(2).chris1999-11-141-3/+1
|
* Go to a bit more trouble to make it absolutely clear that malloc(3)peter1999-11-121-2/+9
| | | | does not zero the allocated memory.
* Decremement by 1 the value taken for %j before assigning it to tm_yday,sheldonh1999-11-101-6/+50
| | | | | | | | | | | | | | | | | which is zero-based. Correct the range checking for the value taken for %S. Add %w for the day of the week (0-6). Accept (but do nothing with) %U and %W. The comment for this change was taken from NetBSD. These changes were made after several failed attempts to contact the author of our strptime.c . PR: 10131 Submitted by: tadf@kt.rim.or.jp (Tadayoshi Funaba)
* Fix dead loop if locale contains / and not all categories specifiedache1999-11-091-1/+3
| | | | | PR: 14742 Submitted by: peter@wahoo.com.tw
* Remove useless section.phantom1999-11-091-2/+0
| | | | | PR: docs/14764 Submitted by: David Malone <dwmalone@maths.tcd.ie>
* Flag empty UID entries as errors (to stop typos from turning intoeivind1999-11-061-1/+6
| | | | alternate root accounts).
* Add unsigned char cast to isalphaache1999-11-042-2/+2
|
* Add unsigned char cast to isdigitache1999-11-041-1/+1
|
* Add unsigned char cast to is[x]digitache1999-11-042-5/+5
|
* Add unsigned char cast to isdigitache1999-11-042-2/+2
|
* Add unsigned char cast to isupperache1999-11-041-1/+1
|
* unsigned char cast to ctype macrosache1999-11-041-1/+3
|
* Add unsigned char cast to ctype macros argache1999-11-045-37/+39
|
* Add unsigned char cast to isspace argache1999-11-044-7/+15
|
* Fix a really lame buglet which broke with IPs of 34green1999-11-031-1/+1
| | | | (ERANGE...)
* It is no longer necessary to prepend underscores to external symbols underjoerg1999-11-021-24/+8
| | | | | | ELF. Submitted by: A.Leidinger@WJPServer.CS.Uni-SB.de (Alexander Leidinger)
* Document that bind(2) can fail with EAGAIN.nik1999-11-011-0/+3
| | | | | | PR: docs/14173 docs/14181 Submitted by: Charles Randall <crandall@matchlogic.com> Submitted by: Kelly Yancey <kbyanc@posi.net>
* Allow whitespace termination. Internal use of /etc/resolv.conf reliesgreen1999-10-311-3/+6
| | | | on this, and who knows what else would, too...
* This is the new inet_addr/inet_aton with proper error checking. Thisgreen1999-10-311-65/+69
| | | | | | | | | should close all outstanding PRs on incorrect inet_aton behavior, and since it has a decent parsing routine, doesn't allow some hysterically working behavior. PR: 13628 Submitted by: Adrian Chadd <adrian@FreeBSD.org>
* mdoc(7)'fyphantom1999-10-303-9/+21
|
* Add HISTORY.obrien1999-10-291-0/+8
|
* "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
|
OpenPOWER on IntegriCloud