summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Give users a way to alter the sendmail (and related utilities) buildgshapiro2000-09-172-0/+6
| | | | environment so they can enable functionality such as SASL, LDAP, Hesiod.
* Pickup SPECNAMELEN from <sys/param.h> and use it.phk2000-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.
* Turn dkcksum() into an __inline function.phk2000-09-163-4/+1
| | | | Change its type to u_int_16_t.
* Add -Wmissing-prototypes.ru2000-09-152-5/+8
|
* Teach libdisk about 'aac'msmith2000-09-132-2/+4
|
* Change from using poll(2) to kqueue/kevent when waiting for a DNSps2000-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
* Set h_errno when an error is encountered.nectar2000-09-101-2/+9
| | | | | PR: bin/21092 Submitted by: Alexander Kabaev <ak03@gte.com>
* Backout last commit. It was wrong.. *sigh*ps2000-09-101-1/+0
|
* include string.h to silence a warning.ps2000-09-101-0/+1
|
* Add code to devname(3) so it can find the names of devices whichphk2000-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.
* Prevent buffer overflow if NLSPATH is too longache2000-09-081-1/+7
|
* Disallow '/' characters in LC_* environment variables which mightkris2000-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
* Fix getipnodebyname(3) bug.nectar2000-09-071-3/+4
| | | | Submitted by: ume
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you cannectar2000-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
* Add .Elache2000-09-061-0/+1
|
* Expose the NFS root node, so that an evil consumer can use it to get themsmith2000-09-051-1/+1
| | | | NFS filehandle for the root mount.
* Document %-macros and NLSPATH better.ache2000-09-051-1/+41
|
* Fully implement NLSPATH processing as described in SUSv2ache2000-09-051-8/+45
|
* Oops! don't set errno to ENOMEM explicitly if malloc() failed.phantom2000-09-051-6/+10
| | | | Found by: ache
* Implement readahead buffering for non-raw files. This drastically improvesmsmith2000-09-055-73/+132
| | | | | | | | | the efficiency of byte-by-byte read operations on filesystems not already supported by the block cache (especially NFS). This should be a welcome change for users booting via PXE, as the loader now reads its startup files almost instantly, instead of taking tens of seconds.
* Remove the SIGSYS handler and wrapper around the __getcwd() syscall.peter2000-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
* Yank out the NOPOLL conditionals. libc_r no longer needs it, and thispeter2000-09-041-106/+28
| | | | | library depends on other things that come *way* later than poll() now (sigset size changes in particular)
* Use .St -susv2 rather than "The Single UNIX Specification".imp2000-09-041-2/+2
| | | | Submitted by: sheldonh
* * move $FreeBSD$ tag to its usual place (bottom of copyright)phantom2000-09-043-10/+30
| | | | | | | * mdoc cleanup * document missing errno values (ERRORS section) Reviewed by: sheldonh
* Finaly cleanup libc/nls code:phantom2000-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
* Constify the arg to logout(3). It is const-safe.peter2000-09-042-3/+3
| | | | (cosmetic: drop some "register" qualifications too.)
* Get errno from <errno.h>, not from extern int.imp2000-09-042-3/+6
| | | | Add $FreeBSD$ to hopefully the right place.
* Don't print an error message if the bad option is '?'. This has beenimp2000-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.
* The comparison against 0 should be against LC_ALL. category isn't aimp2000-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.
* Soften the statement about select's timeout argument. This part ofimp2000-09-041-4/+2
| | | | | the system likely won't change in the future, but the warning is a good idea.
* Rewrite using stdio. It cause program speedup since eliminates lots of smallache2000-09-032-14/+15
| | | | | read() syscalls. It not cause static binary size increasing because stdio already picked via setlocale() called from catopen()
* Add:ache2000-09-031-0/+3
| | | | The implementation will behave as if no library function calls strtok().
* Make libstand compilepeter2000-09-032-2/+4
|
* setproctitle() requires unistd.h and not libutil.h/-lutilbrian2000-09-021-3/+1
|
* Move setproctitle() from libutil to libc (after a repo-copy)brian2000-09-025-255/+5
| | | | | | | | | 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
* Match IPPROTO_ICMP with IP protocol field of the original IPru2000-09-011-2/+2
| | | | | | | datagram embedded into ICMP error message, not with protocol field of ICMP message itself (which is always IPPROTO_ICMP). Pointed by: Erik Salander <erik@whistle.com>
* Treat empty lang as "C" lang tooache2000-09-011-1/+1
|
* Set rcsid to correct valuephantom2000-09-011-24/+6
| | | | | Resort #include files Remove SYSV compatibility chunks
* protect .h file contents correctly.phantom2000-09-011-18/+3
|
* Remove unused indirect references to cat* functions.phantom2000-09-015-83/+4
|
* Fix memory leak introduced by kris in rev 1.22phantom2000-09-011-0/+2
|
* setlocale may return NULL, handle this case too by resetting to "C"ache2000-09-011-5/+3
|
* Move protection code down to handle NL_CAT_LOCALE case too.ache2000-09-011-2/+3
|
* Protect from badly formed LANG variableache2000-09-011-1/+2
|
* Changed the way we handle outgoing ICMP error messages -- doru2000-09-011-12/+22
| | | | | | | | not alias `ip_src' unless it comes from the host an original datagram that triggered this error message was destined for. PR: 20712 Reviewed by: brian, Charles Mott <cmott@scientech.com>
* Import XPG4-compliant basename(3) and dirname(3) from OpenBSD.des2000-08-315-2/+364
| | | | | | | | The man pages need some adjustments. PR: 12960, 12962 Submitted by: James Howard <howardjp@wam.umd.edu> Obtained from: OpenBSD
* Document the FTP_PROXY and HTTP_PROXY variables better.des2000-08-311-0/+4
|
* Grab ADJUST_CHECKSUM() macro from alias_local.h.ru2000-08-311-17/+0
|
* Create aliasing links for incoming ICMP echo/timestamp requests.ru2000-08-312-47/+24
| | | | | This makes outgoing ICMP echo/timestamp replies to be de-aliased with the right source IP, not exactly the primary aliasing IP.
* catgets: detect if fd becomes invalid after exec and return default responseache2000-08-301-6/+6
| | | | cosmetique, use NULL for pointers comparison
OpenPOWER on IntegriCloud