aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fixed typo not fixed in previous revision.Ruslan Ermilov2000-12-291-1/+1
| | | | Notes: svn path=/head/; revision=70482
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-29104-485/+518
| | | | Notes: svn path=/head/; revision=70481
* Link stringlist.3 to sl_{add,find,free,init}.3Ben Smithurst2000-12-271-0/+2
| | | | Notes: svn path=/head/; revision=70412
* Fix mostly harmless typo:Jacques Vidrine2000-12-171-1/+1
| | | | | | | | | | if (data); free(data); Discovered by: emacs cc-mode Notes: svn path=/head/; revision=70128
* mdoc(7) police: added missing .Os call.Ruslan Ermilov2000-12-143-0/+3
| | | | Notes: svn path=/head/; revision=70022
* mdoc(7) police: removed history info from the .Os FreeBSD call.Ruslan Ermilov2000-12-1428-28/+28
| | | | Notes: svn path=/head/; revision=70015
* #endif should not have a non-comment token after it.David E. O'Brien2000-12-131-1/+1
| | | | | | | GCC 2.97 (snapshot) complains about this. Notes: svn path=/head/; revision=69968
* o Introduce a pile more documentation about capabilities, includingRobert Watson2000-12-111-6/+213
| | | | | | | | | | | identification and descriptions of most capabilities, current inheritence rules, etc. More to follow. Reviewed by: sheldonh Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=69859
* mdoc(7) police: use canonical form of .Dd macro.Ruslan Ermilov2000-12-1115-15/+16
| | | | Notes: svn path=/head/; revision=69857
* Move telldir position recording type definitions and prototypesDaniel Eischen2000-12-116-31/+92
| | | | | | | | | | to "telldir.h" in order to prevent namespace pollution in <dirent.h> (which was including <sys/queue.h>). Add $FreeBSD$ to rewinddir.c and seekdir.c. Notes: svn path=/head/; revision=69841
* Add `_PATH_DEVZERO'.David E. O'Brien2000-12-091-1/+2
| | | | | | | Use _PATH_* where where possible. Notes: svn path=/head/; revision=69793
* strunvis(3) and unvis(3) are the same files.Alexander Langer2000-12-081-1/+0
| | | | Notes: svn path=/head/; revision=69759
* There are four types of encoding now, not three. Most of them use theAlexander Langer2000-12-081-2/+2
| | | | | | | backslash as a special char, but not all. Notes: svn path=/head/; revision=69756
* Upgrade to groff 1.16.1.Ruslan Ermilov2000-12-061-8/+1
| | | | Notes: svn path=/head/; revision=69675
* Back this out, we apparently have the ipfw(4).Ruslan Ermilov2000-12-061-1/+1
| | | | Notes: svn path=/head/; revision=69662
* ipfw(4) -> ipfw(8).Ruslan Ermilov2000-12-061-1/+1
| | | | Notes: svn path=/head/; revision=69661
* Cleanup XXXdir functions to eliminate global hash table ofDaniel Eischen2000-12-065-53/+34
| | | | | | | | | | | | | | | | | | | telldir positions. This will allow (future) locking on a per-DIR basis (for MT-safety). For now, this change does the following: o Remove the hash table from telldir.c. Recode to use queue macros. o Remove 'const' from 'telldir(const DIR *)'. o Remove 'register' variables as suggested in a recent thread. No response from: -current Notes: svn path=/head/; revision=69656