summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Move the ipfw(4) xref to the description of LOG_SECURITY instead ofJohn Baldwin2000-12-051-1/+1
| | | | | | | | | | LOG_UUCP. PR: docs/23302 Submitted by: cshumway Notes: svn path=/head/; revision=69637
* - __ivaliduser_sa() was introduced for forthcoming IPv6 support to lpdHajimu UMEMOTO2000-12-041-102/+170
| | | | | | | | | | | | | | | | - iruserok_sa() and __ivaliduser_af() were re-organized to use __ivaliduser_sa() - __icheckhost() was re-written to use getaddrinfo() instead of getipnodebyname() - better handling of multiple destination addresses in rcmd() These changes were basically taken from KAME and changed to fit our rcmd.c. Obtained from: KAME Notes: svn path=/head/; revision=69575
* mdoc(7) police: fix formatting errors in rev 1.27.Ruslan Ermilov2000-12-041-13/+27
| | | | Notes: svn path=/head/; revision=69563
* When recording the original arguments, stop short if we encounterJohn Polstra2000-12-041-0/+10
| | | | | | | | | | | a NULL argument. Some programs change the contents of the argv array, typically to remove some special arguments. They shorten argv by storing a NULL where an argument pointer used to be. Such programs core dumped if they called setproctitle(), because it would try to apply strlen() to a NULL pointer. Notes: svn path=/head/; revision=69560
* When recording the original arguments, don't (ab)use "nargc" forJohn Polstra2000-12-041-3/+4
| | | | | | | | iterating over the arguments. Doing so wipes out the value which is about to be stored into the ps_strings structure. Notes: svn path=/head/; revision=69558
* Add warning on file-fragmentation issues related to MAP_NOSYNCMatthew Dillon2000-12-031-0/+15
| | | | Notes: svn path=/head/; revision=69555
* Remove last vestiges of thr_sleep and thr_wakeup from libc.Jake Burkholder2000-12-024-4/+4
| | | | Notes: svn path=/head/; revision=69515
* Fix some error-handling logic so that ferror is called before fclose,Garance A Drosehn2000-12-021-7/+21
| | | | | | | | | | | | instead of immediately after the fclose. The previous logic did work on freebsd, but is somewhat risky practice (and causes trouble when porting to other OS's). PR: bin/22965 Reviewed by: Garrett Wollman Notes: svn path=/head/; revision=69502
* document O_NOFOLLOW and O_FSYNC flags to openAlfred Perlstein2000-11-291-0/+21
| | | | Notes: svn path=/head/; revision=69336
* Prefix the register argument of indirect 'jmp's with a * to make gas 2.10.xJohn Baldwin2000-11-283-3/+3
| | | | | | | happy. Notes: svn path=/head/; revision=69332
* The parameter that contains valid options is "optstring", not "optarg".Matthew Hunt2000-11-281-1/+1
| | | | Notes: svn path=/head/; revision=69329
* Add reference to elf(5) in addition to already mentioned a.out(5) and add bothMaxim Sobolev2000-11-271-0/+4
| | | | | | | elf(5) and a.out(5) into `SEE ALSO' section. Notes: svn path=/head/; revision=69276
* Note that the `fmt' parameter is a printf()-like string.David E. O'Brien2000-11-261-1/+4
| | | | Notes: svn path=/head/; revision=69235
* Make it possible to override the function which writes messages toPoul-Henning Kamp2000-11-262-18/+32
| | | | | | | | | | stderr in case of warnings and errors. Rename malloc_options to have a leading underscore, I belive I have been told that is more correct namespace wise. Notes: svn path=/head/; revision=69201
* sprintf -> snprintfKris Kennaway2000-11-261-1/+1
| | | | Notes: svn path=/head/; revision=69196