summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
Commit message (Collapse)AuthorAgeFilesLines
* #endif should not have a non-comment token after it.obrien2000-12-131-1/+1
| | | | GCC 2.97 (snapshot) complains about this.
* mdoc(7) police: use canonical form of .Dd macro.ru2000-12-114-4/+4
|
* Move telldir position recording type definitions and prototypesdeischen2000-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.
* strunvis(3) and unvis(3) are the same files.alex2000-12-081-1/+0
|
* There are four types of encoding now, not three. Most of them use thealex2000-12-081-2/+2
| | | | backslash as a special char, but not all.
* Back this out, we apparently have the ipfw(4).ru2000-12-061-1/+1
|
* ipfw(4) -> ipfw(8).ru2000-12-061-1/+1
|
* Cleanup XXXdir functions to eliminate global hash table ofdeischen2000-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
* Move the ipfw(4) xref to the description of LOG_SECURITY instead ofjhb2000-12-051-1/+1
| | | | | | | LOG_UUCP. PR: docs/23302 Submitted by: cshumway
* When recording the original arguments, stop short if we encounterjdp2000-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.
* When recording the original arguments, don't (ab)use "nargc" forjdp2000-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.
* Fix some error-handling logic so that ferror is called before fclose,gad2000-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
* Note that the `fmt' parameter is a printf()-like string.obrien2000-11-261-1/+4
|
* mdoc(7) police: Er macro usage cleanup.ru2000-11-225-8/+15
|
* logru2000-11-222-0/+2
|
* Fix hard sentence break introduced in rev 1.7.sheldonh2000-11-201-1/+2
|
* Add a period missing from rev 1.13.sheldonh2000-11-201-1/+1
|
* Remove blank line introduced in rev 1.13.sheldonh2000-11-201-1/+0
|
* mdoc(7) police: Nm -> Fn where appropriate.ru2000-11-205-30/+20
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-12/+12
|
* mdoc(7) police: use certified section headers wherever possible.ru2000-11-174-4/+4
|
* Remove fullstops from the end of .Xr lines in SEE ALSO section.ben2000-11-151-1/+1
|
* Use Fx macro wherever possible.ru2000-11-145-6/+9
|
* Change [Ii]t's to "It is" and "its" as appropriate.sheldonh2000-11-141-1/+1
|
* Whitespace only: remove hard sentence breaks introduced in previoussheldonh2000-11-141-3/+4
| | | | commit and use a paragraph marker (Pp) instead of a blank line.
* Fix bug introduced in previous commit: users obtained via compat modenectar2000-11-131-3/+8
| | | | | | had uid, gid set to 0 if not otherwise specified! Submitted by: eivind
* Correct description of KERN_PROC. Add description of KERN_PROC_ARGS.abial2000-11-111-2/+13
|
* Fix passwd entry `prototypes' in compat mode. I broke this in revisionnectar2000-11-101-34/+16
| | | | | | 1.55 when importing nsswitch from NetBSD. Reported by: Naoki Kobayashi <shibata@geo.titech.ac.jp>
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-103-10/+4
|
* Correct incorrect information about the PATH used for exec*() calls.asmodai2000-10-301-4/+7
| | | | | PR: 21990 Partially submitted by: Gerhard Sittig <Gerhard.Sittig@gmx.net>
* Whitespace only change: trim trailing whitespace.asmodai2000-10-3053-185/+185
|
* Style & grammar fixes.mpp2000-10-281-3/+7
| | | | PR: docs/22374, docs/13020
* Explicitly initialize _pw_passwd.nectar2000-10-271-1/+1
|
* Document RTLD_DEFAULT and the search algorithm used for resolvingjdp2000-09-191-6/+43
| | | | undefined symbols.
* Make a somewhat unsatisfactory attempt to describe the effects ofjdp2000-09-191-1/+18
| | | | the RTLD_GLOBAL and RTLD_LOCAL flags which can be passed to dlopen().
* 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.
* 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.
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you cannectar2000-09-069-1184/+1790
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* 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-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
* 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
* Fix style bugs (including ones introduced from OpenBSD).green2000-08-162-58/+32
|
* sprintf -> snprintf paranoiakris2000-08-041-3/+3
|
* Make sem_post() safe to call from within a signal handler, as required byjasone2000-08-011-0/+3
| | | | POSIX/SUSv2.
* If the format string passed to setproctitle begins with a '-'ps2000-08-012-24/+14
| | | | | | | character, skip the program name when setting the process title. Ansified with extreme prejudice. Reviewed by: peter
* Add a skeleton rfork_thread(3) man page.peter2000-07-292-1/+79
|
* Remove the reference to KERN_UPDATEINTERVAL and syncer(4), sincesheldonh2000-07-221-6/+0
| | | | | | | KERN_UPDATEINTERVAL can't be used to control sched_sync(). In fact, there's no easy way to control the syncer with sysctls. Reported by: bde
* Update stale references to update(4) with references to the newsheldonh2000-07-191-1/+1
| | | | syncer(4) manual page.
* Change my email address in the copyright notices for the sake of consistencyjasone2000-07-186-6/+6
| | | | (jasone@canonware.com --> jasone@freebsd.org).
OpenPOWER on IntegriCloud