summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo: compatability -> compatibility.Jeroen Ruigrok van der Werven2001-02-062-2/+5
| | | | | | | | | Compatability is not an existing english word. Add $FreeBSD$. Notes: svn path=/head/; revision=72092
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-061-1/+1
| | | | | | | | | Seperate does not exist in the english language. Submitted to look at by: kris Notes: svn path=/head/; revision=72089
* Fixed C error(s) in synopsis.Bruce Evans2001-02-063-2/+3
| | | | Notes: svn path=/head/; revision=72064
* Fixed errors in prototypes. Many were hiding under mdoc errors.Bruce Evans2001-02-051-0/+4
| | | | Notes: svn path=/head/; revision=72048
* Fixed C error(s) in synopsis. Many were hiding under mdoc errors.Bruce Evans2001-02-051-1/+1
| | | | Notes: svn path=/head/; revision=72047
* Fixed errors in prototypes. Many were hiding under mdoc errors.Bruce Evans2001-02-051-5/+30
| | | | Notes: svn path=/head/; revision=72046
* Fixed C error(s) in synopsis. Many were hiding under mdoc errors.Bruce Evans2001-02-051-1/+1
| | | | Notes: svn path=/head/; revision=72045
* Don't install links for crypt.3 here. There is no crypt.3 here...Bruce Evans2001-02-051-2/+0
| | | | | | | | Forgotten in: rev.1.58, which was not Submitted by: bde (I requested untangling parts of the crypto mess). Notes: svn path=/head/; revision=72044
* Remove a sizeof(void *) == sizeof(int) assumption.Poul-Henning Kamp2001-02-041-7/+7
| | | | | | | Submitted by: Loren James Rittle <rittle@latour.rsch.comm.mot.com> Notes: svn path=/head/; revision=71987
* Spelling.Stephen McKay2001-02-041-1/+1
| | | | Notes: svn path=/head/; revision=71978
* strcpy -> strlcpy paranoiaJacques Vidrine2001-02-021-1/+4
| | | | | | | | Submitted by: Mike Heffner <mheffner@vt.edu> Reviewed by: freebsd-audit Notes: svn path=/head/; revision=71929
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-0152-174/+177
| | | | Notes: svn path=/head/; revision=71895
* Clean up syscall generation in libc by removing HIDDEN_SYSCALLSDaniel Eischen2001-01-2924-254/+79
| | | | | | | | | | | | | | | | | and treating (almost) all system calls the same way: __sys_foo - actual syscall foo, _foo - weak definitions to __sys_foo Change PSEUDO syscalls (currently only _exit and _getlogin) to be __sys_foo (T) and _foo (W). Add $FreeBSD$ to a few files to satisfy commitprep. Suggested by: bde Notes: svn path=/head/; revision=71770
* s/err1/errx/.Hajimu UMEMOTO2001-01-261-2/+2
| | | | | | | | | http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi?log=1673 Obtained from: KAME Notes: svn path=/head/; revision=71678
* Comment only change; s/_thread_sys_/__sys_/Daniel Eischen2001-01-264-8/+8
| | | | Notes: svn path=/head/; revision=71663
* Comment change only; s/_thread_sys_/__sys_/Daniel Eischen2001-01-261-1/+1
| | | | Notes: svn path=/head/; revision=71662
* Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen2001-01-24190-997/+1582
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch Notes: svn path=/head/; revision=71579
* I made a last-minute change before the last commit which brokeGarrett Wollman2001-01-231-3/+1
| | | | | | | the errno semantics. Get it (closer to) right this time. Notes: svn path=/head/; revision=71438
* mdoc(7) police: replaced empty line with .Pp, updated document date.Ruslan Ermilov2001-01-231-2/+2
| | | | Notes: svn path=/head/; revision=71416
* Add a couple of new library interfaces (will be activated when theGarrett Wollman2001-01-232-0/+88
| | | | | | | relavant header file changes are committed) for POSIX support. Notes: svn path=/head/; revision=71414
* Add the function sysctlnametomib to libc. Details on the semanticsKirk McKusick2001-01-233-3/+111
| | | | | | | and use of this function have been added to the sysctl.3 manual page. Notes: svn path=/head/; revision=71409
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-181-583/+475
| | | | Notes: svn path=/head/; revision=71216
* Document EHOSTDOWN error.Ben Smithurst2001-01-171-0/+2
| | | | | | | | PR: 24410 Submitted by: Martin Horcicka <horcicka@vol.cz> Notes: svn path=/head/; revision=71193
* Clarify comments referring to strlcat() usageChris D. Faulhaber2001-01-171-1/+22
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=71192
* - Reverse the order of two loop invariant to ensure strlcat() does notChris D. Faulhaber2001-01-171-3/+6
| | | | | | | | | | | | | attempt to read memory when siz is 0 - Clarify comments referring to strlcat() usage PR: 24278, 24295 Submitted by: Tony Finch <dot@dotat.at> Richard Kettlewell <rjk@greenend.org.uk> Reviewed by: -audit Notes: svn path=/head/; revision=71191
* Merge the documentation for sigsetmask() and sigblock() into aBen Smithurst2001-01-173-99/+31
| | | | | | | | | | | single manual page, appropriately linked, since this removes the decision of which page the (previously non-existent) sigmask.2 MLINK should point at. Submitted by: will Notes: svn path=/head/; revision=71177
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-175-1416/+1143
| | | | Notes: svn path=/head/; revision=71175
* rstat(1) and rstat_svc(8) are the early versions ofRuslan Ermilov2001-01-173-88/+0
| | | | | | | the rup(1) and rpc.rstatd(8) manpages respectively. Notes: svn path=/head/; revision=71159
* o When returning NULL, return (NULL) instead of return (0).Robert Watson2001-01-174-12/+12
| | | | | | | | Submitted by: jedgar Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=71142
* SIGABRT is *not* the same as calling abort(), so don't claim that it is.Ben Smithurst2001-01-161-2/+2
| | | | | | | | | | (abort() flushes all open stdio streams for one thing.) PR: 24249 Submitted by: Edwin Groothuis <mavetju@chello.nl> Notes: svn path=/head/; revision=71129
* The bit about sigpending not detecting any errors is a lie, it can returnBen Smithurst2001-01-161-2/+7
| | | | | | | | | | EFAULT. PR: 24360 Submitted by: Kenneth Ingham <ingham@i-pi.com> Notes: svn path=/head/; revision=71124
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-167-9/+9
| | | | Notes: svn path=/head/; revision=71097
* mdoc(7) police: Ft/Vt now accept punctuation-type arguments.Ruslan Ermilov2001-01-127-13/+13
| | | | Notes: svn path=/head/; revision=70974
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-121-266/+433
| | | | Notes: svn path=/head/; revision=70966
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-121-77/+100
| | | | Notes: svn path=/head/; revision=70959
* man(7) -> mdoc(7).Ruslan Ermilov2001-01-115-681/+845
| | | | Notes: svn path=/head/; revision=70936
* mdoc(7) police: fixed (minor) mdoc bugs introduced in previous revision.Ruslan Ermilov2001-01-101-2/+3
| | | | Notes: svn path=/head/; revision=70874
* o acl_from_text.c:Robert Watson2001-01-092-24/+10
| | | | | | | | | | | | | | | - errno is already set to ENOMEM (as appropriate) when asprintf(), strdup(), or acl_init() fails o acl_to_text.c: - the return value of the initial strdup() is not checked - errno is already set to ENOMEM (as appropriate) when asprintf and acl_init() fails - let the the default: case use 'goto error_label' for consistency Submitted by: jedgar Notes: svn path=/head/; revision=70841
* o bzero() the ACL structure only if malloc() returns non-NULL.Robert Watson2001-01-091-1/+2
| | | | | | | Submitted by: jedgar Notes: svn path=/head/; revision=70840
* o Correct spelling error from patch in previous commit.Robert Watson2001-01-091-1/+1
| | | | Notes: svn path=/head/; revision=70839
* o Add missing initialization of errno from error returns ofRobert Watson2001-01-093-0/+3
| | | | | | | | | cap_get_fd(), cap_get_file() and cap_get_proc(). Submitted by: jedgar Notes: svn path=/head/; revision=70838
* o Make acl_from_text() support uid's and gid's as well as usernamesRobert Watson2001-01-081-6/+18
| | | | | | | | | | and groupnames, by adding appropriate support to acl_name_to_id() in acl_support.c Submitted by: green Notes: svn path=/head/; revision=70781
* Correct check of getgrnam outputChris D. Faulhaber2001-01-071-1/+1
| | | | | | | Approved by: rwatson Notes: svn path=/head/; revision=70768
* Fix bugs in the handling of > 8 positional arguments:Archie Cobbs2001-01-061-14/+18
| | | | | | | | | | | - The stack was getting smashed by __grow_type_table() - reallocf() was being called with the wrong pointer - The maximum argument number was being incorrectly computed PR: misc/23521 Notes: svn path=/head/; revision=70725
* gethostbyname2() is able to lookup AF_INET6.Alexander Langer2001-01-061-10/+0
| | | | | | | | PR: 23823 Noticed by: Andrew Arensburger <arensb@ooblick.com> Notes: svn path=/head/; revision=70710
* Fix SCCS id string abuse I introduced.David E. O'Brien2001-01-021-1/+1
| | | | Notes: svn path=/head/; revision=70592
* Change the interface of getlogin_r to return an int. The formerDaniel Eischen2001-01-012-22/+68
| | | | | | | | | | | | | interface was based on a draft version of POSIX whereas the final (1996) version of POSIX specified that the error is returned. While I'm here, fix getlogin_r so that it works for more than just the first time it's called. Reviewed by: wes, wollman (man page) Notes: svn path=/head/; revision=70557
* Make it a bit clearer that asprintf doesn't actually "return" a pointer inBen Smithurst2001-01-011-4/+3
| | | | | | | | | | | the normal sense of the word, but does it through one of its arguments which is a pointer to a pointer. PR: 23717 Submitted by: phk Notes: svn path=/head/; revision=70553
* Fix a tailq conversion bug that resulted in, e.g., nvi crashing uponBrian Feldman2000-12-301-1/+2
| | | | | | | | | | | | | | | quitting every time. The way to free a CIRCLEQ was to loop until the current == current->head, but the way to free a TAILQ is to loop until current->head == NULL. In any case, the CORRECT way to do it is a loop of TAILQ_EMPTY() checks and TAILQ_REMOVE()al of TAILQ_FIRST(). This bug wouldn't have happened if the loop wasn't hard-coded... There may be more bugs of this type from the conversion. Notes: svn path=/head/; revision=70512
* Use TAILQ instead of CIRCLEQ.Poul-Henning Kamp2000-12-291-21/+18
| | | | Notes: svn path=/head/; revision=70492