summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Honor the nouser/nogroup flag when determing if NULL shouldMike Pritchard1997-04-031-2/+2
| | | | | | | | be returned if a cached uid/gid does not exist in the password file. Notes: svn path=/head/; revision=24568
* Update to include details about the changes to setuid/setgid.Peter Wemm1997-04-021-2/+6
| | | | Notes: svn path=/head/; revision=24562
* The user_from_{uid,gid} routines would return garbage if theMike Pritchard1997-04-021-2/+2
| | | | | | | | | | uid/gid in question was in the cache, but did not exist in the password file. This causes the -nouser and -nogroup options to find(1) to only print the first file owned by an unknown user/group in some cases. Notes: svn path=/head/; revision=24536
* Correct the most glaring errors. I have a feeling there are someJohn Polstra1997-04-021-13/+7
| | | | | | | left. Notes: svn path=/head/; revision=24526
* Link chown with lchownAndrey A. Chernov1997-04-011-2/+2
| | | | Notes: svn path=/head/; revision=24523
* Add issetugid.2 to MAN2 listAndrey A. Chernov1997-04-011-2/+3
| | | | Notes: svn path=/head/; revision=24522
* Xref the new issetugid(2) man page where appropriate.Mike Pritchard1997-04-015-4/+13
| | | | | | | Also add additional set*id(2) xrefs where appropriate. Notes: svn path=/head/; revision=24503
* Don't xref setregid(2) twice - one of them should be setreuid(2).Mike Pritchard1997-04-011-2/+2
| | | | Notes: svn path=/head/; revision=24502
* Fix one very minor mdoc problem. Gentle enough, Peter? :-)Mike Pritchard1997-04-011-2/+2
| | | | Notes: svn path=/head/; revision=24501
* Fix a minor grammar problem.Mike Pritchard1997-04-011-2/+2
| | | | Notes: svn path=/head/; revision=24498
* General cleanup and update to specify exactly how our implementationPeter Wemm1997-03-311-31/+38
| | | | | | | | | | | | | passes on the status across fork/exec. The previous version had some typos, referred to itself as link(2) in one place :-), and didn't really match openbsd's implementation either. Now that I've mentioned typos, hopefully our Typo Police and Xref Police will be gentle with me. :-) Notes: svn path=/head/; revision=24456
* Steal issetugid man page from OpenBSD. Needs work..Peter Wemm1997-03-311-0/+87
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=24455
* Add libc hook for issetugid()Peter Wemm1997-03-311-2/+3
| | | | Notes: svn path=/head/; revision=24454
* Create lchown() in libc and document it as a variation of chown().Peter Wemm1997-03-312-7/+23
| | | | Notes: svn path=/head/; revision=24443
* Fixed wording of previous change.Bruce Evans1997-03-311-1/+1
| | | | | | | | Obtained from: fgets.3 Guided by: ISO C standard Notes: svn path=/head/; revision=24429
* Revert my last few changes. They were bogus. Replaced them withWarner Losh1997-03-311-14/+4
| | | | | | | | | | the original text plus a statement saying that if strftime fails, the results are undefined. Requested a long time ago by: bde Notes: svn path=/head/; revision=24426
* Remove orand* code as promised for the next releaseAndrey A. Chernov1997-03-292-20/+4
| | | | Notes: svn path=/head/; revision=24390
* Fixed #includes in synopsis to compile.Bruce Evans1997-03-281-6/+7
| | | | | | | | Fixed #includes in synopsis to declare the prototype in the synopsis. Fixed stale types in description of struct dirent. Notes: svn path=/head/; revision=24341
* The w+ entry description was misformatted.Mike Pritchard1997-03-271-1/+1
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=24322
* Remove minor warning (for -Wall -Wshadow); clarifies code.David Nugent1997-03-261-3/+3
| | | | Notes: svn path=/head/; revision=24288
* Get my last commit right. The NOTE section now reads:Mike Pritchard1997-03-251-2/+4
| | | | | | | | | | The sa_mask field specified in act is not allowed to block SIGKILL or SIGSTOP. Any attempt to do so will be silently ignored. Now where did I leave that pointy hat... Notes: svn path=/head/; revision=24278
* Restricting $LANG was a really bad ideaWarner Losh1997-03-251-4/+2
| | | | | | | Pointed out by: Everybody but Jordan. Notes: svn path=/head/; revision=24254
* Back out 1.14 until I reproduce trouble reportsWarner Losh1997-03-251-4/+2
| | | | Notes: svn path=/head/; revision=24253
* Change the description of how attempts to block SIGKILL and SIGSTOPMike Pritchard1997-03-251-1/+1
| | | | | | | | | | are handled. The system call will actually fail in this case - the system doesn't silently ignore the request. Closes PR# 3047 Pointed out by: fenner Notes: svn path=/head/; revision=24240
* Don't honor LANG or NLSPATH if we're setuid/setgid.Warner Losh1997-03-241-3/+8
| | | | | | | | | Fixes PR 2582 Submitted by: Julian Assange Notes: svn path=/head/; revision=24197
* If we're running setuid/setguid then don't open the host alias file toWarner Losh1997-03-241-1/+4
| | | | | | | | | | | prevent information leakage. Closes PR 2578 Submitted by: Julian Assange Notes: svn path=/head/; revision=24196
* Don't open the tz file if we're running setuid or setgid to prevent infomrationWarner Losh1997-03-241-2/+4
| | | | | | | | | leakage. Submitted by: Julian Assange Notes: svn path=/head/; revision=24195
* add xrefs for getpeername, so other people that look for it can find it.. :)John-Mark Gurney1997-03-244-1/+5
| | | | Notes: svn path=/head/; revision=24163
* Buffer overflow. Similar, but different, to the fix that Julian A submittedWarner Losh1997-03-231-9/+15
| | | | | | | | | | | in PR 2580. Obtained from: BSDi by way of Keith Bostic Should be in 2.2 and 2.1.x. I'll merge into 2.2. Notes: svn path=/head/; revision=24158
* Add srandomdev.3 linkAndrey A. Chernov1997-03-231-1/+2
| | | | Notes: svn path=/head/; revision=24155
* Fix urandom reference in the commentAndrey A. Chernov1997-03-231-1/+1
| | | | Notes: svn path=/head/; revision=24154
* Add srandomdev() descriptionAndrey A. Chernov1997-03-231-1/+24
| | | | Notes: svn path=/head/; revision=24153
* Add srandomdev() function (use "/dev/urandom" now)Andrey A. Chernov1997-03-231-0/+40
| | | | | | | Submitted by: wollman & me (add type casts and remove unneded loop) Notes: svn path=/head/; revision=24151
* Remove an extra comma.Mike Pritchard1997-03-221-2/+2
| | | | Notes: svn path=/head/; revision=24125
* Use the .Tn macro for generic FreeBSD references. Other minor cleanup.Mike Pritchard1997-03-216-18/+31
| | | | Notes: svn path=/head/; revision=24094
* Mdoc cleanup.Mike Pritchard1997-03-213-43/+91
| | | | Notes: svn path=/head/; revision=24093
* Document SCM_CREDS changes.Bill Paul1997-03-211-0/+28
| | | | Notes: svn path=/head/; revision=24084
* Add backward compatibility so that static executables built onJohn Polstra1997-03-201-10/+23
| | | | | | | | | | | modern FreeBSD systems will syslog properly on older systems that still name the logging socket "/dev/log". This includes pre-2.2 versions of FreeBSD as well as BSD/OS systems. If the connect to "/var/run/log" fails, the function now tries to connect to "/dev/log" as a fallback. Notes: svn path=/head/; revision=24068
* Fixed missing #include of <sys/types.h> and wrong arg types in synopsis.Bruce Evans1997-03-191-5/+6
| | | | | | | Reviewed by: wollman Notes: svn path=/head/; revision=24047
* FIxed arg types (mostly missing consts) in synopsis.Bruce Evans1997-03-191-2/+2
| | | | Notes: svn path=/head/; revision=24009
* FIxed arg types (mostly missing consts) in synopsis.Bruce Evans1997-03-195-8/+8
| | | | Notes: svn path=/head/; revision=24008
* Added missing #include of <stdarg.h> to synopsis. Moved prototypes forBruce Evans1997-03-191-9/+10
| | | | | | | | `v' functions after this #include (same organisation as in printf.3 for printf/vprintf). Notes: svn path=/head/; revision=24007
* Fixed missing function types in synopsis.Bruce Evans1997-03-195-0/+7
| | | | Notes: svn path=/head/; revision=24006
* Fixed synopsis (put all of the function (return) type info in .Ft andBruce Evans1997-03-192-3/+3
| | | | | | | none in .Fn). Notes: svn path=/head/; revision=24004
* Removed unnecessary quoting of function names in synopsis to simplifyBruce Evans1997-03-186-13/+13
| | | | | | | automated checking of synopses. Notes: svn path=/head/; revision=24003
* Check for overflow in size argument.Poul-Henning Kamp1997-03-181-2/+4
| | | | | | | | Tested by: Joel Maslak <j@pobox.com> Closes: PR kern/2964 Notes: svn path=/head/; revision=23981
* Fix arg types to match Lite2Andrey A. Chernov1997-03-171-2/+2
| | | | Notes: svn path=/head/; revision=23969
* Updated prototype for mount() to match Lite2 reality for the 1st argBruce Evans1997-03-131-1/+1
| | | | | | | and Lite1 or earlier reality for the 4th arg. Notes: svn path=/head/; revision=23862
* Part 2 of a failed commit (cvs broke). Original message:Peter Wemm1997-03-132-0/+283
| | | | | | | | | | | | | | | | | | | Back out a dubious Lite2 change to "optimise" getcwd() to look at $PWD because it's potentially dangerous (think: symlink races). Move realpath() back to it's original location, and remove getcwd_physical() by renaming it back to getcwd() and zapping the original getcwd wrapper. Noticed by: bde The following commits already happened but the log message got lost: Modified Files: gen/Makefile.inc gen/getcwd.c stdlib/Makefile.inc Removed Files: gen/realpath.3 Notes: svn path=/head/; revision=23833
* Back out a dubious Lite2 change to "optimise" getcwd() to look at $PWDPeter Wemm1997-03-134-282/+4
| | | | | | | | | | | because it's potentially dangerous (think: symlink races). Move realpath() back to it's original location, and remove getcwd_physical() by renaming it back to getcwd() and zapping the original getcwd wrapper. Noticed by: bde Notes: svn path=/head/; revision=23832