summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* o Update BUGS entry to indicate in a more precise manner the implementationRobert Watson2000-10-129-23/+15
| | | | | | | | | | status of capabilities (library is complete, kernel work is maintained outside the tree). Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=67035
* Fix pthread cancellation point propagation.Jason Evans2000-10-121-5/+5
| | | | Notes: svn path=/head/; revision=66999
* o Introduce a MAINTAINER entry for libposix1e, since it is activelyRobert Watson2000-10-021-0/+1
| | | | | | | developed and maintained. Notes: svn path=/head/; revision=66566
* Use issetugid instead of comparing get[ug]id and gete[ug]id.Jacques Vidrine2000-09-301-5/+2
| | | | | | | Suggested by: Don Lewis <Don.Lewis@tsc.tdk.com> Notes: svn path=/head/; revision=66485
* Ignore HESIOD_CONFIG and HES_DOMAIN environmental variables forJacques Vidrine2000-09-291-2/+12
| | | | | | | | | set-user-ID and set-group-ID programs. Suggested by: Danny Braniss <danny@cs.huji.ac.il> Notes: svn path=/head/; revision=66451
* Add man pages for mod*(2). Shamelessly cut/pasted from the kld*(2) manPeter Wemm2000-09-2810-0/+307
| | | | | | | pages by Chris Costello. Notes: svn path=/head/; revision=66430
* Fix typoAlexey Zelkin2000-09-271-1/+1
| | | | | | | | PR: misc/21596 Submitted by: TOGAWA Satoshi <toga@puyo.org> Notes: svn path=/head/; revision=66412
* off-by-1 error in string length validationJun-ichiro itojun Hagino2000-09-251-7/+6
| | | | | | | From: Pavel Kankovsky <peak@argo.troja.mff.cuni.cz> Notes: svn path=/head/; revision=66374
* o Minor whitespace, comment cleanupsRobert Watson2000-09-221-27/+14
| | | | | | | | | | o Removal of unneeded enum o Removal of commented out debugging printf()'s. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=66259
* Better documentation of append mode. This should have gone in -currentEivind Eklund2000-09-221-0/+8
| | | | | | | | | directly. Now also .Xr fseek reference. Prodded by: sheldonh Notes: svn path=/head/; revision=66249
* Resurrect documentation of chflags(2)'s SF_ARCHIVED.Ralf S. Engelschall2000-09-221-2/+2
| | | | | | | | PR: 21428 Reviewed by: ben Notes: svn path=/head/; revision=66220
* Add a couple of debug register helper functions to assist in settingBrian S. Dean2000-09-215-4/+249
| | | | | | | | | and clearing watchpoints. Reviewed by: jwd@FreeBSD.org, -hackers@ Notes: svn path=/head/; revision=66174
* Oops, un-spam this file - the last commit was an accident.Brian Somers2000-09-201-1/+0
| | | | | | | Pointed out by: phk Notes: svn path=/head/; revision=66105
* Only realloc() environ if we're sure that we know where it came from.Brian Somers2000-09-202-5/+5
| | | | | | | | | The recent problems with sshd were due to sshd reassigning `environ' when setenv() thinks it owns it. setenv() subsequently realloc()s the new version of environ and *boom* Notes: svn path=/head/; revision=66101
* o Whitespace reduction appled to FreeBSD CVS IDRobert Watson2000-09-191-1/+1
| | | | | | | Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=66079
* o General warning fixing commitRobert Watson2000-09-197-9/+6
| | | | | | | | | | | - Include <stdlib.h> and <string.h> as needed for prototypes - Remove unneeded "error" variables o Make cap_init() use cap_clear() instead of bzero() Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=66078
* o Add cap_from_text(3) and cap_to_text(3) man pages.Robert Watson2000-09-193-0/+232
| | | | | | | | | | o Implementations will remain in the seperately distributed capability patch until the cap_t type changes are synchronized. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=66077
* o EACCES is not a possible error for acl_from_text(), so fixRobert Watson2000-09-1910-14/+11
| | | | | | | | | | | acl_from_text.3 o Minor whitespace cleanups relative to the TrustedBSD tree to reduce content-free differences. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=66076
* Document RTLD_DEFAULT and the search algorithm used for resolvingJohn Polstra2000-09-191-6/+43
| | | | | | | undefined symbols. Notes: svn path=/head/; revision=66057
* Make a somewhat unsatisfactory attempt to describe the effects ofJohn Polstra2000-09-191-1/+18
| | | | | | | the RTLD_GLOBAL and RTLD_LOCAL flags which can be passed to dlopen(). Notes: svn path=/head/; revision=66054
* o cap_set_flag() was not correctly clearing capabilities when valueRobert Watson2000-09-191-2/+5
| | | | | | | | | was CAP_CLEAR. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=66049
* Pickup SPECNAMELEN from <sys/param.h> and use it.Poul-Henning Kamp2000-09-161-15/+10
| | | | | | | | A missing _PATH_DEVDB ("/var/run/dev.db") is not cause for a warning anymore, the file is effectively optional these days. Notes: svn path=/head/; revision=65955
* Change from using poll(2) to kqueue/kevent when waiting for a DNSPaul Saab2000-09-121-32/+30
| | | | | | | | | | | | response to return. This will stop processes waiting on DNS requests from being woken up when a select collision occurs. This was tested on mx1.FreeBSD.org (outgoing mail for the FreeBSD.org mailing lists.) Reviewed by: jlemon, peter Notes: svn path=/head/; revision=65772
* Set h_errno when an error is encountered.Jacques Vidrine2000-09-101-2/+9
| | | | | | | | PR: bin/21092 Submitted by: Alexander Kabaev <ak03@gte.com> Notes: svn path=/head/; revision=65702
* Add code to devname(3) so it can find the names of devices whichPoul-Henning Kamp2000-09-092-12/+28
| | | | | | | | | | | | | | | were not present when dev_mkdb(8) was run. First the dev_mkdb(8) database is searched, this caters for non-DEVFS cases where people have renamed a device. If that fails we ask the kernel using sysctl kern.devname if the device driver has put a name in the dev_t. This covers DEVFS cloned devices. If that also fails we format a string which isn't entirely useless. Notes: svn path=/head/; revision=65632
* Prevent buffer overflow if NLSPATH is too longAndrey A. Chernov2000-09-081-1/+7
| | | | Notes: svn path=/head/; revision=65609
* Disallow '/' characters in LC_* environment variables which mightKris Kennaway2000-09-081-1/+1
| | | | | | | | | | | | | | | be used to point to a bad locale file. This is only believed to be a minor security risk - the only risk is if some program uses the result of a localized string as a format specifier in a vulnerable function like sprintf(). No such code is believed to exist in the FreeBSD base system, although it is possible that badly written third party code would do that. Submitted by: imp Approved by: ache Notes: svn path=/head/; revision=65603
* Fix getipnodebyname(3) bug.Jacques Vidrine2000-09-071-3/+4
| | | | | | | Submitted by: ume Notes: svn path=/head/; revision=65558
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you canJacques Vidrine2000-09-0632-1909/+4010
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD Notes: svn path=/head/; revision=65532
* Add .ElAndrey A. Chernov2000-09-061-0/+1
| | | | Notes: svn path=/head/; revision=65521
* Document %-macros and NLSPATH better.Andrey A. Chernov2000-09-051-1/+41
| | | | Notes: svn path=/head/; revision=65485
* Fully implement NLSPATH processing as described in SUSv2Andrey A. Chernov2000-09-051-8/+45
| | | | Notes: svn path=/head/; revision=65476
* Oops! don't set errno to ENOMEM explicitly if malloc() failed.Alexey Zelkin2000-09-051-6/+10
| | | | | | | Found by: ache Notes: svn path=/head/; revision=65472
* Remove the SIGSYS handler and wrapper around the __getcwd() syscall.Peter Wemm2000-09-051-39/+10
| | | | | | | | | | | It was kinda silly since the sigaction() syscall that it used to setup the handler is more recent than __getcwd(), therefore it was useless as the wrapper would have died before even getting as far as __getcwd(2). Reminded by: bde Notes: svn path=/head/; revision=65468
* Yank out the NOPOLL conditionals. libc_r no longer needs it, and thisPeter Wemm2000-09-041-106/+28
| | | | | | | | library depends on other things that come *way* later than poll() now (sigset size changes in particular) Notes: svn path=/head/; revision=65453
* Use .St -susv2 rather than "The Single UNIX Specification".Warner Losh2000-09-041-2/+2
| | | | | | | Submitted by: sheldonh Notes: svn path=/head/; revision=65441
* * move $FreeBSD$ tag to its usual place (bottom of copyright)Alexey Zelkin2000-09-043-10/+30
| | | | | | | | | | * mdoc cleanup * document missing errno values (ERRORS section) Reviewed by: sheldonh Notes: svn path=/head/; revision=65437
* Finaly cleanup libc/nls code:Alexey Zelkin2000-09-041-196/+163
| | | | | | | | | | | | | | | | * rewrite catopen() to remove duplicate code chunks and optimize * if empty string is passed to catopen() as name argument then catopen() will set errno to ENOENT (File not found), not EINVAL * move search code to LOOKUP() macro to shrink amount of duplicated code * move common resource freeing actions to __nls_free_resources() function * exclude from build code related to MCLoadAll defintion since it is not using at all * style(9) related whitespace changes Reviewed by: ache Notes: svn path=/head/; revision=65436
* Don't print an error message if the bad option is '?'. This has beenWarner Losh2000-09-041-1/+1
| | | | | | | | | | | | in my tree for a long time. bde reviewed this once upon a time and said it was OK, iirc. This also obviates the need to put ? in the optstring argument to preclude the extra warning message which some people think confuses users. When I made my getopt cleanups of a long time ago, this was the compromise reached. I just neglected to commit it until now. Notes: svn path=/head/; revision=65421
* The comparison against 0 should be against LC_ALL. category isn't aWarner Losh2000-09-041-1/+1
| | | | | | | | | | boolean and it is LC_ALL that's special. Someone submitted this to me a long time ago, but I can't find the mail now. Notes: svn path=/head/; revision=65420
* Soften the statement about select's timeout argument. This part ofWarner Losh2000-09-041-4/+2
| | | | | | | | the system likely won't change in the future, but the warning is a good idea. Notes: svn path=/head/; revision=65419
* Rewrite using stdio. It cause program speedup since eliminates lots of smallAndrey A. Chernov2000-09-032-14/+15
| | | | | | | | read() syscalls. It not cause static binary size increasing because stdio already picked via setlocale() called from catopen() Notes: svn path=/head/; revision=65417
* Add:Andrey A. Chernov2000-09-031-0/+3
| | | | | | | The implementation will behave as if no library function calls strtok(). Notes: svn path=/head/; revision=65405
* setproctitle() requires unistd.h and not libutil.h/-lutilBrian Somers2000-09-021-3/+1
| | | | Notes: svn path=/head/; revision=65356
* Move setproctitle() from libutil to libc (after a repo-copy)Brian Somers2000-09-021-3/+3
| | | | | | | | | | | | and bump __FreeBSD_version to 500012 to mark the occasion. setproctitle() is prototyped in unistd.h as opposed to stdlib.h where OpenBSD and NetBSD have it. Reviewed by: peter Notes: svn path=/head/; revision=65353
* Treat empty lang as "C" lang tooAndrey A. Chernov2000-09-011-1/+1
| | | | Notes: svn path=/head/; revision=65330
* Set rcsid to correct valueAlexey Zelkin2000-09-011-24/+6
| | | | | | | | Resort #include files Remove SYSV compatibility chunks Notes: svn path=/head/; revision=65326
* protect .h file contents correctly.Alexey Zelkin2000-09-011-18/+3
| | | | Notes: svn path=/head/; revision=65325
* Remove unused indirect references to cat* functions.Alexey Zelkin2000-09-015-83/+4
| | | | Notes: svn path=/head/; revision=65324
* Fix memory leak introduced by kris in rev 1.22Alexey Zelkin2000-09-011-0/+2
| | | | Notes: svn path=/head/; revision=65323