summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fix three warnings:tjr2003-01-041-2/+2
| | | | | | o #include <stdio.h> to make sprintf()'s prototype visible. o Remove unused variable: sbuf. o Don't use assignment as truth value.
* style(9): return type on separate line from function name.tjr2003-01-042-2/+4
|
* Fix a number of bugs noticed by more extensive testing:tjr2003-01-041-7/+15
| | | | | | | | | | o Call waitpid() if an error occurs after forking the child process to avoid leaving zombies around. o Handle the WRDE_DOOFS|WRDE_APPEND combination correctly o Do not confuse $( substitution with $(( shell arithmetic (noticed by wollman) o Handle backslash escaping properly o Allow $( and ${ to be quoted
* Rename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these aretjr2003-01-042-6/+6
| | | | | the names required by 1003.1-2001. The old names are retained for source compatibility with FreeBSD 5.0 and will be removed before 6.0.
* Remove unused variable: sz.tjr2003-01-041-2/+0
|
* Remove unused variable: size.tjr2003-01-041-1/+1
|
* #include <string.h> for strcmp()'s prototype.tjr2003-01-041-0/+1
|
* Remove unused variable: omask.tjr2003-01-041-1/+0
|
* #include <sys/linker.h> for kldload()'s prototype.tjr2003-01-041-0/+1
|
* #include <string.h> for strlen()'s prototype.tjr2003-01-041-0/+1
|
* #include <ctype.h> for isspace()'s prototype (or a macro version).tjr2003-01-031-0/+1
|
* Add missing #include "namespace.h".tjr2003-01-031-0/+1
|
* Remove unused variable: ntmp.tjr2003-01-031-1/+0
|
* #include <string.h> for strcmp()'s prototype.tjr2003-01-031-1/+2
|
* #include "local.h" to make __svfscanf()'s prototype visible.tjr2003-01-033-0/+3
|
* Remove an unused variable: `sb' in fts_read().tjr2003-01-032-2/+0
|
* Remove an unused variable, `sverrno', which has not been used since 1.11.tjr2003-01-031-1/+0
|
* Optimize errstr() by reducing the number of times it walks a string.mike2003-01-031-9/+7
| | | | | | | | As a side effect, it makes the code easier to read and requires less pointer arithmetic. Test by: strerror regression test Submitted by: Tim Kientzle <kientzle@acm.org>
* Reset the stream orientation to 0 (unoriented) in freopen(), as requiredtjr2003-01-031-0/+1
| | | | by the C standard.
* It is no longer necessary to include sys/types.h before wordexp.h.tjr2003-01-031-1/+0
|
* popen() is a function, not an argument.tjr2003-01-031-1/+1
|
* Protect pidlist with a mutex to avoid a race causing a duplicate free()tjr2003-01-031-8/+24
| | | | | | | when the same pipe FILE is pclosed()'d in different threads, and to avoid corrupting the linked list when adding or removing items. The symptoms of the linked list getting corrupted were pclose() either not finding the pipe on the list, or the list becoming circular and pclose() looping infinitely.
* Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akinjmallett2003-01-023-7/+491
| | | | | | | | to Solaris, it is in /usr/libexec) to perform the handing over of tty nodes to the user being granted the pty. Submitted by: Ryan Younce <ryany@pobox.com> Reviewed by: security-officer@, standards@, mike@
* In cgetmatch(3), return -1 if a NULL or 0-length name parameter is used.thomas2003-01-021-0/+3
| | | | | | | | | | | This situation most notably arises in chkprintcap, when a /etc/printcap entry has an empty rp= attribute. In that case, cgetmatch would enter an infinite loop if any entry in the file has multiple names. This causes lpd to hang at boot time on 5.0-DP2 when both conditions are met (:rp=: and multiple names -- not necessarily on the same entry). Reviewed by: roberto
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-0113-518/+518
| | | | especially in troff files.
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-303-3/+3
| | | | Add FreeBSD Id tag where missing.
* Back out the s/int */size_t */ commit.obrien2002-12-302-2/+2
| | | | | It makes a difference on 64-bit arches, and no one really wants a 2^64 block size [yet].
* Fix LP64 architectures and especially ia64. Functions that returnmarcel2002-12-302-0/+2
| | | | | | | | | a pointer and lack a prototype will have the return value (assumed to be an integer) zero-extended to a pointer. On ia64 this is unconditionally fatal as it zeroes-out the region bits, forming an invalid pointer. Fix the sigsegv by including <stdlib.h>. Pointy hat: bbraun
* Remove BUGS section indicating that these calls are unimplemented.rwatson2002-12-295-15/+15
| | | | | | Update copyrights. Obtained from: TrustedBSD Project
* Update acl_set.3, missed in last round:rwatson2002-12-291-11/+19
| | | | | | | | - Update BUGS: this stuff is implemented. - Update last modified date. - Document acl_set_link_np() call. Obtained from: TrustedBSD Project
* Update libc POSIX.1e code and documentation to reflect:rwatson2002-12-298-44/+164
| | | | | | | | | | - Updated copyrights, modified dates - Remove "BUGS" entry indicating that ACLs are unimplemented - Implement acl_*_link() library wrapper variants for get, set, delete, aclvalid. - Document acl_*_link() calls. Obtained from: TrustedBSD Project
* Use `useconds_t' instead of `u_int' or `unsigned int' where appropriate.mike2002-12-294-7/+7
|
* english(4) police.schweikh2002-12-2721-25/+25
|
* Silence casting away constness warnings.alfred2002-12-271-5/+12
| | | | | Make cgetmatch's locals const. Make cdbget take a const string and copy it into a buffer.
* Fix a small typo.tjr2002-12-271-1/+1
|
* Slight tuning if teh KSE man page to indicate some functionality isjulian2002-12-271-29/+33
| | | | not yet inplemented and to clear up some wording.
* Be more consistent with "static".tjr2002-12-271-1/+1
|
* Add an implementation of the POSIX wordexp() and wordfree() functions,tjr2002-12-263-2/+518
| | | | | | | which perform shell-style word expansion on strings. This is still a little rough around the edges. PR: 13420
* Spelling: s/then/than/ where appropriate.ru2002-12-241-3/+3
|
* mdoc(7) police: Deal with self-xrefs.ru2002-12-245-5/+4
|
* Document protection bits.trhodes2002-12-231-0/+16
| | | | | PR: 46252 Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
* Fixed the abuses of .Ql visible on stderr in troff mode.ru2002-12-231-6/+6
| | | | PR: docs/37176
* Back out the -fpcc-struct-return fixes.kan2002-12-222-24/+68
| | | | Approved by: re (rwatson)
* Fix style (no space after return, twice-too-big continuation) andjmallett2002-12-221-2/+2
| | | | | | | cast (casting long to a void pointer, rather than intptr_t to a void pointer) bogons. Reviewed by: bde
* Reduce libc's memory footprint by lazily allocating memory used internallybbraun2002-12-211-9/+22
| | | | | | by setproctitle(). Reviewed by: jkh
* Reduce libc.so's memory footprint by lazily allocating memory used internallybbraun2002-12-212-4/+16
| | | | | by basename() and dirname(). Reviewed by: eric
* Import newer versions of div() and ldiv() from NetBSD which handletjr2002-12-212-68/+24
| | | | | | the -fpcc-struct-return calling convention properly instead of returning garbage. This may break backwards compatibility with some old binaries that were compiled when -fno-pcc-struct-return was the default.
* Document the fact that the printf() family of functions return negativetjr2002-12-201-2/+14
| | | | | | | values (EOF in our case) on error, and some of the possible errno values in an Errors section. PR: 39257
* C99 standardised the vscanf() family of functions, update Standardstjr2002-12-201-2/+5
| | | | section to reflect this.
* Stylistic changes:mike2002-12-201-11/+14
| | | | | | | | | | | o Fix an English error (comma splice) and poorly worded sentence. o Fix KNF ordering of variables (pointers come before arithmetic types). o Restore hand-optimization of sizeof()-1, instead of strlen(). o Remove unneeded local variables in strerror_r(). Test by: strerror regression test Requested by: bde Reviewed by: bde
OpenPOWER on IntegriCloud