summaryrefslogtreecommitdiff
path: root/lib/libc/gen
Commit message (Collapse)AuthorAgeFilesLines
* The .Fn functionPhilippe Charnier2003-06-081-3/+6
| | | | Notes: svn path=/head/; revision=116025
* Add or correct section number in .Xr. Use .Vt or .FnPhilippe Charnier2003-06-084-9/+9
| | | | | | | instead of .Xr when needed Notes: svn path=/head/; revision=116021
* Recognize the magic NODEV value.Poul-Henning Kamp2003-06-051-3/+3
| | | | | | | Format other unknown devices consistently in hex. Notes: svn path=/head/; revision=115881
* Match style of source and headers.Juli Mallett2003-06-011-1/+1
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=115641
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-06-014-147/+157
| | | | Notes: svn path=/head/; revision=115631
* Make prototype match code with regard to constness of args to theJuli Mallett2003-06-011-1/+1
| | | | | | | function pointer passed in. Notes: svn path=/head/; revision=115604
* Add an stub for _rtld_thread_init. This is a part I missed inAlexander Kabaev2003-05-301-0/+7
| | | | | | | | | my last commit. Approved by: re (scottl) Notes: svn path=/head/; revision=115401
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-05-223-15/+17
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115225
* Fixed troff(1) and mdoc(7) warnings.Ruslan Ermilov2003-05-182-3/+3
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115143
* Catch up with the renaming of the "union" filesystem to "unionfs".Tim J. Robbins2003-05-161-1/+1
| | | | | | | | | | Fixes a problem where directory entries could show up twice: once on the top layer of the union stack, and once on the bottom layer. Approved by: re (rwatson) Notes: svn path=/head/; revision=115047
* Use the .Dl macro.Tom Rhodes2003-05-011-1/+1
| | | | | | | Discussed with: mdoc(7) officer ru Notes: svn path=/head/; revision=114454
* State the fact that the range is twice the traditional RAND_MAX.Tom Rhodes2003-05-011-1/+16
| | | | | | | | | | Add an EXAMPLES section. PR: 48493 Submitted by: Paul Herman <pherman@frenchfries.net> (original version) Notes: svn path=/head/; revision=114444
* Back out the `hiding' of strlcpy and strlcat. Several peopleJacques Vidrine2003-05-015-25/+25
| | | | | | | vocally objected to this safety belt. Notes: svn path=/head/; revision=114443
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referenceJacques Vidrine2003-04-295-25/+25
| | | | | | | | | | technique) so that we don't wind up calling into an application's version if the application defines them. Inspired by: qpopper's interfering and buggy version of strlcpy Notes: svn path=/head/; revision=114256
* Replace the return value of rfork_thread(3) in its manual pageRobert Drehmel2003-04-271-1/+1
| | | | | | | | function prototype with `pid_t' to match the declaration in <unistd.h>. Notes: svn path=/head/; revision=114132
* When using `compat' mode, be sure to re-dispatch setpwent, endpwent,Jacques Vidrine2003-04-252-0/+58
| | | | | | | | | | | | | setgrent, and endgrent also. (The previous NSS implementation used to simply twiddle the internal data of the various modules directly.) A symptom (group list set incorrectly in sshd) was Reported by: Glenn Johnson <gjohnson@srrc.ars.usda.gov> Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=114021
* In compat mode, we `redispatch' the lookup. It is probably a goodJacques Vidrine2003-04-241-0/+1
| | | | | | | | | | | idea to re-initialize `struct passwd', because e.g. pw_class might get set by one module, but not by another. Add another call to the internal pwd_init function to accomplish this. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113992
* Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' byJacques Vidrine2003-04-241-1/+3
| | | | | | | | | namespace.h. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113984
* ``Strong typing is a crutch for people with weak memories.''Jacques Vidrine2003-04-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Correct a bug that should have wreaked havoc everywhere, but for some reason only bit unlucky people who use `-march' optimizations. The compiler cannot assist one in distinguishing between the two function calls below. int nsdispatch(void *, ...); void *discard; nsdispatch(&discard, ...); /* correct .. no, really! */ nsdispatch(discard, ...); /* Boom */ Robin provided me with a debugging environment in which I could see what was going on. Badness when using CPUTYPE was Reported by: "Robin P. Blanchard" <Robin.Blanchard@gactr.uga.edu> Reported by: nork Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113882
* Don't try to access the NIS `master' maps unless we have superuserJacques Vidrine2003-04-211-7/+9
| | | | | | | | | | | privileges. To do so may cause the NIS server to log spurious and annoying `access denied' messages. Reported by: Philip Paeps <philip@paeps.cx> Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113794
* Repair a bug in which a faulty group entry (one with only 2 colons)Jacques Vidrine2003-04-201-8/+6
| | | | | | | | | | | would result in an incorrectly terminated grouplist. login(1) crashes Reported by: Morten Rodal <morten@rodal.no>, Matthias Schuendehuette <msch@snafu.de> Notes: svn path=/head/; revision=113727
* Follow-up to revision 1.74: Using the result buffer to store our emptyJacques Vidrine2003-04-181-22/+16
| | | | | | | | | | string was an incredibly dumb idea (of course it will be changed by an NSS module on success!). Use a static empty string instead. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113694
* Follow-up to revision 1.73: set _PWF_FILES when `compat' source is usedJacques Vidrine2003-04-181-4/+13
| | | | | | | | | | but user is found in local file. Reported by: Shizuka Kudo <shizukakudo_99@yahoo.com> Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113691
* Don't use `memset' to initialize a struct passwd. A moduleJacques Vidrine2003-04-181-6/+31
| | | | | | | | | | | | | | | | | | | may not fill in all fields, and in the case of string fields, this could cause trouble for applications. (The only likely example is `pw_class', because this field is not used by all modules in all cases.) Move initialization of struct passwd from module-specific code to the dispatch code. The problem of a NULL pw_class was Noticed by: Philip Paeps <philip@paeps.cx> and the c^Htrusty ssh(1) command. Déjà vu by: getpwent.c revision 1.56 Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113672
* Correctly set _PWF_FILES in pw_fields when appropriate.Jacques Vidrine2003-04-181-2/+6
| | | | | | | | | | (_PWF_NIS and _PWF_HESIOD were already being set.) Reported by: Shizuka Kudo <shizukakudo_99@yahoo.com> Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113670
* Revert the definitions of _PW_KEY* to their previous values. There isJacques Vidrine2003-04-181-2/+2
| | | | | | | | | | | | | at least one consumer outside of libc and pwd_mkdb. Adjust the versioning in libc and pwd_mkdb accordingly. named was the application affected, and that fact was first Reported by: Zherdev Anatoly <tolyar@mx.ru> Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113666
* The default if nsswitch.conf(5) is not present is supposed to be theJacques Vidrine2003-04-182-2/+2
| | | | | | | | | | hated `compat' source, not `files'. Reported by: Philip Paeps <philip@paeps.cx> Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113643
* = Implement thread-safe versions of the getpwent(3) and getgrent(3)Jacques Vidrine2003-04-174-1542/+2604
| | | | | | | | | | | | | | | | | | | | | | | | | family of functions using the new nsdispatch(3) core. Remove arbitrary size limits when using the thread-safe versions. = Re-implement the traditional getpwent(3)/getgrent(3) functions on top of the thread-safe versions. = Update the on-disk format of the hashed version of the passwd(5) databases to allow for versioned entries. The legacy version is `3'. (Don't ask.) = Add support for version `4' entries in the passwd(5) database. Entries in this format are identical to version 3 entries except that all integers are stored as 32-bit integers in network byte order (big endian). = pwd_mkdb is updated to generate both version 3 and version 4 entries. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113596
* = Implement name service switch modules (NSS modules). NSS modulesJacques Vidrine2003-04-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | may be built into libc (`static NSS modules') or dynamically loaded via dlopen (`dynamic NSS modules'). Modules are loaded/initialized at configuration time (i.e. when nsdispatch is called and nsswitch.conf is read or re-read). = Make the nsdispatch(3) core thread-safe. = New status code for nsdispatch(3) `NS_RETURN', currently used to signal ERANGE-type issues. = syslog(3) problems, don't warn/err/abort. = Try harder to avoid namespace pollution. = Implement some shims to assist in porting NSS modules written for the GNU C Library nsswitch interface. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113595
* Return "/boot/kernel/kernel" instead of "/kernel" if the sysctl() callTim J. Robbins2003-04-111-1/+1
| | | | | | | fails. The documentation was incorrectly updated in getbootfile.3 rev. 1.10. Notes: svn path=/head/; revision=113362
* Bump the date.Matthew N. Dodd2003-04-071-1/+1
| | | | Notes: svn path=/head/; revision=113235
* Clarify the behavior of PATH_FSTAB with regard to 'tainted' execution.Matthew N. Dodd2003-04-071-0/+7
| | | | | | | Requested by: ru Notes: svn path=/head/; revision=113224
* - Add setfstab() and getfstab().Matthew N. Dodd2003-04-073-4/+71
| | | | | | | | - Use the environment variable 'PATH_FSTAB' if set rather than the hardcoded '/etc/fstab' (fstab.h:_PATH_FSTAB) Notes: svn path=/head/; revision=113219
* - Define a _spinunlock() function so that threading implementations may doJeff Roberson2003-03-261-0/+9
| | | | | | | | | more complicated things than just setting the lock to 0. - Implement stubs for this function in libc and the two threading libraries that are currently in the tree. Notes: svn path=/head/; revision=112665
* The .Fn functionPhilippe Charnier2003-03-241-1/+2
| | | | | | | The ... 2 system call Notes: svn path=/head/; revision=112543
* The .Fn function. Use .Xr where appropriate.Philippe Charnier2003-03-244-14/+23
| | | | Notes: svn path=/head/; revision=112542
* - Revamp the function _nis_initshells() to make getusershell() backedRobert Drehmel2003-03-191-35/+30
| | | | | | | | | | by NIS work, like nsswitch.conf(5) promises to be able to. (These modifications will be fed back to NetBSD, of course) - In endusershell(), do not set `sl' to NULL if we know it already has that value. Notes: svn path=/head/; revision=112407
* If realloc(3) fails in copyline(), do not make matters worse byRobert Drehmel2003-03-191-6/+11
| | | | | | | leaving without deallocating `data' thereby creating a memory leak. Notes: svn path=/head/; revision=112404
* Document return type of wordfree() (void). Reduce the space betweenTim J. Robbins2003-03-131-3/+4
| | | | | | | | struct member names and the corresponding comments so the lines don't wrap on 80-column terminals. Notes: svn path=/head/; revision=112190
* Eliminate 19 warnings in libc (at level WARNS=2) of theJacques Vidrine2003-02-272-0/+2
| | | | | | | `implicit declaration of function' variety. Notes: svn path=/head/; revision=111618
* Fixed copyright.Ruslan Ermilov2003-02-241-20/+32
| | | | | | | | | Tidy up the markup. Only describe the new, post-2.0 behavior. Added the RETURN VALUES and ERRORS sections. Notes: svn path=/head/; revision=111449
* mdoc(7) police: Scheduled sweep.Ruslan Ermilov2003-02-242-7/+6
| | | | Notes: svn path=/head/; revision=111447
* mdoc(7) police: markup laundry.Ruslan Ermilov2003-02-231-1/+1
| | | | Notes: svn path=/head/; revision=111285
* More changes from NetBSD:Mike Heffner2003-02-231-9/+11
| | | | | | | | | | | * use correct error detection of realloc failure * strtol negative return check * use strtol to validate string instead of rolling our own validation code * terminate the command sequence correctly Notes: svn path=/head/; revision=111274
* Grab some changes from NetBSD:Mike Heffner2003-02-231-5/+6
| | | | | | | | | fix const poisoning add cast to silence warning pull in unistd.h Notes: svn path=/head/; revision=111273
* Apple PR-2449102: getdomainname() doesn't document that it is NIS/YP specificDave Zarzycki2003-02-221-3/+3
| | | | Notes: svn path=/head/; revision=111262
* Mention that dlerror() is also applicable to retrieve error message afterAlexey Zelkin2003-02-211-0/+2
| | | | | | | dladdr() and dlinfo() functions calls. Notes: svn path=/head/; revision=111213
* Whack 28 unused variables.Jacques Vidrine2003-02-181-1/+0
| | | | Notes: svn path=/head/; revision=111082
* Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).Jacques Vidrine2003-02-166-6/+10
| | | | | | | | | | Only warnings that could be fixed without changing the generated object code and without restructuring the source code have been handled. Reviewed by: /sbin/md5 Notes: svn path=/head/; revision=111010
* Add dlinfo(3) manual page to the rank of base system manpagesAlexey Zelkin2003-02-151-2/+2
| | | | Notes: svn path=/head/; revision=110932