summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* The macro versions of putc() and putchar() are gone.Tim J. Robbins2003-01-101-9/+3
| | | | Notes: svn path=/head/; revision=109057
* There is no macro version of getc() anymore.Tim J. Robbins2003-01-101-2/+1
| | | | Notes: svn path=/head/; revision=109056
* Bring the list of function-like macros up to date with reality.Tim J. Robbins2003-01-101-28/+20
| | | | Notes: svn path=/head/; revision=109055
* spell multiple correctly.Alfred Perlstein2003-01-101-1/+1
| | | | Notes: svn path=/head/; revision=109051
* Document clearerr_unlocked(), feof_unlocked(), ferror_unlocked()Tim J. Robbins2003-01-102-3/+38
| | | | | | | and fileno_unlocked(). Notes: svn path=/head/; revision=109050
* Add a manual page for flockfile(), ftrylockfile(), and funlockfile().Tim J. Robbins2003-01-102-1/+106
| | | | Notes: svn path=/head/; revision=109047
* Document getc_unlocked(), getchar_unlocked(), putc_unlocked(),Tim J. Robbins2003-01-103-6/+68
| | | | | | | and putchar_unlocked(). Notes: svn path=/head/; revision=109043
* Add function versions of getchar_unlocked(), getc_unlocked(),Tim J. Robbins2003-01-102-1/+96
| | | | | | | | | putchar_unlocked(), putc_unlocked(), feof_unlocked(), ferror_unlocked(), clearerr_unlocked(), and fileno_unlocked(). The first four are required by POSIX. The rest are provided for consistency. Notes: svn path=/head/; revision=109042
* Avoid a memory leak by using reallocf() instead of realloc().Tim J. Robbins2003-01-101-1/+1
| | | | Notes: svn path=/head/; revision=109040
* Prototype __getcwd() to avoid a warning.Tim J. Robbins2003-01-101-0/+2
| | | | Notes: svn path=/head/; revision=109039
* #include <ctype.h> for prototypes (or macro versions) ofTim J. Robbins2003-01-101-0/+1
| | | | | | | tolower() and isdigit(). Notes: svn path=/head/; revision=109038
* #include "namespace.h" to get a prototype for _err().Tim J. Robbins2003-01-071-0/+2
| | | | Notes: svn path=/head/; revision=108868
* Remove an unused variable: mbresult.Tim J. Robbins2003-01-071-1/+0
| | | | Notes: svn path=/head/; revision=108867
* #include <stdlib.h> for free()'s prototype.Tim J. Robbins2003-01-071-0/+1
| | | | Notes: svn path=/head/; revision=108866
* Use hidden names (_close, _dup2, _waitpid, etc.) where appropriate.Tim J. Robbins2003-01-071-22/+22
| | | | Notes: svn path=/head/; revision=108865
* Add waitpid to the list of hidden names for use by wordexp.c and grantpt.c.Tim J. Robbins2003-01-072-2/+2
| | | | Notes: svn path=/head/; revision=108864
* Typo fixes.Giorgos Keramidas2003-01-072-2/+2
| | | | | | | | PR: docs/46815 Submitted by: SUZUKI Koichi <koich@cac.co.jp> Notes: svn path=/head/; revision=108859
* Remove redundant documenation.Tom Rhodes2003-01-061-14/+1
| | | | | | | | PR: 46253 Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl> Notes: svn path=/head/; revision=108844
* strfmon(3) does not correctly handle multibyte characters in theTim J. Robbins2003-01-061-0/+6
| | | | | | | format string. Notes: svn path=/head/; revision=108776
* Note that the printf(3) and scanf(3) family of functions don't deal withTim J. Robbins2003-01-062-2/+14
| | | | | | | multibyte characters in the format string correctly. Notes: svn path=/head/; revision=108775
* Rewrite longjmp() and _longjmp() to directly restore the saved frame,Thomas Moestl2003-01-052-55/+19
| | | | | | | | | | | | instead of unwinding the call stack. This makes them usable to switch stacks, e.g. for libc_r. Do not save the frame pointer in setjmp() and _setjmp(), it is not needed any more. Rename _longjmp() to ___longjmp(), with a weak alias to _longjmp(), like the other architectures did. Notes: svn path=/head/; revision=108738
* Rename siglongjmp() to __siglongjmp(), with a weak alias to siglongjmp(),Thomas Moestl2003-01-051-2/+4
| | | | | | | like the other architectures do. Notes: svn path=/head/; revision=108736
* Use in_addr_t for the right size of an IPv4 address, and copy intoBill Fenner2003-01-051-1/+3
| | | | | | | | | | an unaligned destination using bcopy instead of an assignment. Submitted by: Hartmut Brandt <brandt@fokus.gmd.de> PR: sparc64/46729 Notes: svn path=/head/; revision=108711
* No need to include <assert.h> here.Tim J. Robbins2003-01-054-4/+0
| | | | Notes: svn path=/head/; revision=108694
* strptime(), like strftime(), does not handle multibyte charactersTim J. Robbins2003-01-041-1/+7
| | | | | | | in the format string correctly. Notes: svn path=/head/; revision=108653
* Mention in the BUGS section that strftime() does not handle multibyteTim J. Robbins2003-01-041-1/+7
| | | | | | | characters in the format string correctly. Notes: svn path=/head/; revision=108652
* Fix three warnings:Tim J. Robbins2003-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. Notes: svn path=/head/; revision=108646
* style(9): return type on separate line from function name.Tim J. Robbins2003-01-042-2/+4
| | | | Notes: svn path=/head/; revision=108644
* Fix a number of bugs noticed by more extensive testing:Tim J. Robbins2003-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 Notes: svn path=/head/; revision=108641
* Rename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these areTim J. Robbins2003-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. Notes: svn path=/head/; revision=108637
* Remove unused variable: sz.Tim J. Robbins2003-01-041-2/+0
| | | | Notes: svn path=/head/; revision=108633
* Remove unused variable: size.Tim J. Robbins2003-01-041-1/+1
| | | | Notes: svn path=/head/; revision=108632
* #include <string.h> for strcmp()'s prototype.Tim J. Robbins2003-01-041-0/+1
| | | | Notes: svn path=/head/; revision=108631
* Remove unused variable: omask.Tim J. Robbins2003-01-041-1/+0
| | | | Notes: svn path=/head/; revision=108630
* #include <sys/linker.h> for kldload()'s prototype.Tim J. Robbins2003-01-041-0/+1
| | | | Notes: svn path=/head/; revision=108629
* #include <string.h> for strlen()'s prototype.Tim J. Robbins2003-01-041-0/+1
| | | | Notes: svn path=/head/; revision=108628
* #include <ctype.h> for isspace()'s prototype (or a macro version).Tim J. Robbins2003-01-031-0/+1
| | | | Notes: svn path=/head/; revision=108626
* Add missing #include "namespace.h".Tim J. Robbins2003-01-031-0/+1
| | | | Notes: svn path=/head/; revision=108625
* Remove unused variable: ntmp.Tim J. Robbins2003-01-031-1/+0
| | | | Notes: svn path=/head/; revision=108624
* #include <string.h> for strcmp()'s prototype.Tim J. Robbins2003-01-031-1/+2
| | | | Notes: svn path=/head/; revision=108623
* #include "local.h" to make __svfscanf()'s prototype visible.Tim J. Robbins2003-01-033-0/+3
| | | | Notes: svn path=/head/; revision=108622
* Remove an unused variable: `sb' in fts_read().Tim J. Robbins2003-01-032-2/+0
| | | | Notes: svn path=/head/; revision=108621
* Remove an unused variable, `sverrno', which has not been used since 1.11.Tim J. Robbins2003-01-031-1/+0
| | | | Notes: svn path=/head/; revision=108620
* Optimize errstr() by reducing the number of times it walks a string.Mike Barcroft2003-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> Notes: svn path=/head/; revision=108603
* Reset the stream orientation to 0 (unoriented) in freopen(), as requiredTim J. Robbins2003-01-031-0/+1
| | | | | | | by the C standard. Notes: svn path=/head/; revision=108598
* It is no longer necessary to include sys/types.h before wordexp.h.Tim J. Robbins2003-01-031-1/+0
| | | | Notes: svn path=/head/; revision=108597
* popen() is a function, not an argument.Tim J. Robbins2003-01-031-1/+1
| | | | Notes: svn path=/head/; revision=108582
* Protect pidlist with a mutex to avoid a race causing a duplicate free()Tim J. Robbins2003-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. Notes: svn path=/head/; revision=108580
* Implement POSIX grantpt(3) functionality, and add a pt_chown utility (akinJuli Mallett2003-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@ Notes: svn path=/head/; revision=108574
* In cgetmatch(3), return -1 if a NULL or 0-length name parameter is used.Thomas Quinot2003-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 Notes: svn path=/head/; revision=108553