summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Document a bug in our chroot(2) implementation: if access controlRobert Watson2003-01-311-0/+6
| | | | | | | | | | | | | | checks, including the "open directory" check or a MAC check fail, after the working directory of the process has been changed, then the cwd of the process will be left as the target directory rather than the original directory. At some point, this bug might be fixable by performing the directory change only after permission is granted for the change. In the mean time document it (it's been there for a while). Notes: svn path=/head/; revision=110158
* Zap another reference to !RFPROC being unsupported that I missed before.Tim J. Robbins2003-01-311-2/+0
| | | | Notes: svn path=/head/; revision=110135
* Don't use -compact in list of available flags. Fix tag width.Tim J. Robbins2003-01-311-1/+1
| | | | Notes: svn path=/head/; revision=110134
* !RFPROC has been supported for a while now.Tim J. Robbins2003-01-311-2/+1
| | | | Notes: svn path=/head/; revision=110133
* Back out previous. Many people disagreed with removing the warning.Tim J. Robbins2003-01-301-0/+8
| | | | Notes: svn path=/head/; revision=110127
* Add getosreldate.3 to the Makefile.Tom Rhodes2003-01-301-1/+1
| | | | Notes: svn path=/head/; revision=110122
* Add a manual page for getosreldate.c.Tom Rhodes2003-01-301-0/+65
| | | | | | | | | PR: 46365 Submitted by: gioria (original version) OK'ed by: alfred (older version) Notes: svn path=/head/; revision=110120
* Catch some cases where asking for ridiculously large allocations couldPoul-Henning Kamp2003-01-301-0/+4
| | | | | | | result in a segfault. Instead just return NULL. Notes: svn path=/head/; revision=110103
* Remove runtime warning about gets().Tim J. Robbins2003-01-301-8/+0
| | | | Notes: svn path=/head/; revision=110085
* Lock stdin on entry, unlock on return, use __sgetc() instead of getchar()Tim J. Robbins2003-01-301-5/+9
| | | | | | | | to avoid locking the stream for each character and to avoid input being scattered among multiple threads. Notes: svn path=/head/; revision=110082
* Fix signed/unsigned comparison warnings.Martin Blapp2003-01-271-3/+3
| | | | | | | | Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109957
* Fix signed/unsigned comparison warnings. Fix spelling error inMartin Blapp2003-01-271-4/+5
| | | | | | | | | | | | comment. NetBSD Rev. 1.9 and 1.7 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109956
* Make this work in the !INET6 case -- if we mismatch the AF, don't return aMartin Blapp2003-01-271-9/+10
| | | | | | | | | | | | | bogus (uninitialized) structure. Also, ignore v4 ifa's with no broadcast address (rather than core dumping). NetBSD Rev 1.8 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109955
* Check pmap_flag before sendto.Martin Blapp2003-01-271-1/+2
| | | | | | | | | | NetBSD r 1.5 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109954
* Make sure we don't look before the beginning of the string.Martin Blapp2003-01-271-2/+2
| | | | | | | | | | NetBSD Rev 1.5 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109953
* Add missing __rpc_fixup_addr. This is needed to makeMartin Blapp2003-01-271-0/+3
| | | | | | | | | | | | mount_nfs -T work for scoped addresses. NetBSD Rev 1.11 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109952
* Free the correct buffer in error handling.Martin Blapp2003-01-271-1/+3
| | | | | | | | | | | | Handle that malloc may return NULL. NetBSD Rev. 1.8 Reviewed by: phk Obtained from: NetBSD Notes: svn path=/head/; revision=109951
* Reset the record lenght and received bytes once a recordMartin Blapp2003-01-271-0/+9
| | | | | | | | | | | | | is finished. This fixes clients doing two RPCs over the same connection at the same time. Without this fix, we could end with a reply to old data. Submitted by: Frank van der Linden <fvdl@netbsd.org> Reviewed by: rwatson Obtained from: NetBSD Notes: svn path=/head/; revision=109950
* Fix namespace pollution introduced in previous commit.Martin Blapp2003-01-262-5/+5
| | | | | | | Reviewed by: phk Notes: svn path=/head/; revision=109904
* Add const qualifier to data argument for msgsnd.Alfred Perlstein2003-01-261-1/+1
| | | | | | | | PR: standards/45274 Submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=109895
* Remove part of my stateful locale patch that slipped into the previous rev.Tim J. Robbins2003-01-261-3/+0
| | | | Notes: svn path=/head/; revision=109880
* Initial implementation of the C99 feature whereby calling freopen() withTim J. Robbins2003-01-262-2/+94
| | | | | | | | | | | | | a NULL filename argument allows a stream's mode to be changed. At the moment it just recycles the old file descriptor instead of storing the filename somewhere and using that to reopen the file, as the standard seems to require. Strictly conforming C99 applications probably can't tell the difference but POSIX ones can. PR: 46791 Notes: svn path=/head/; revision=109871
* Bring shm functions closer the the opengroup standards.Alfred Perlstein2003-01-252-3/+3
| | | | | | | | PR: 47469 Submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=109831
* Bring semop() closer the the opengroup standards.Alfred Perlstein2003-01-251-1/+1
| | | | | | | | PR: 47471 Submitted by: Craig Rodrigues <rodrigc@attbi.com> Notes: svn path=/head/; revision=109829
* Add an MLINK malloc.conf(5) -> malloc(3).Mike Barcroft2003-01-241-1/+2
| | | | Notes: svn path=/head/; revision=109803
* For "sensitive" processes, we always set the 'A' flag which causes abort()Poul-Henning Kamp2003-01-231-0/+7
| | | | | | | | | | | | | | | | to be called on first sight of trouble. "sensitive" is somewhat arbitrarily defined as "setuid, setgid, uid == root or gid == wheel". The 'A' option carries no performance penalty. It is not possible to override this setting: fix the program instead. Absentmindedly nodded OK to by: various Notes: svn path=/head/; revision=109754
* Remove EOL whitespaces.Maxim Konovalov2003-01-201-2/+2
| | | | Notes: svn path=/head/; revision=109564
* o Fix a typo.Maxim Konovalov2003-01-201-2/+3
| | | | | | | | | o Prepend a function name by .Fn macro. Reviewed by: archie Notes: svn path=/head/; revision=109562
* Sync with NetBSD -- sl_add() now returns an int.David E. O'Brien2003-01-192-9/+23
| | | | Notes: svn path=/head/; revision=109508
* Use __FBSDID.David E. O'Brien2003-01-1928-42/+66
| | | | Notes: svn path=/head/; revision=109501
* We don't need our own personal definition of __CONCAT.David E. O'Brien2003-01-181-4/+1
| | | | Notes: svn path=/head/; revision=109499
* Document that listen() can return EINVAL now.Thomas Moestl2003-01-171-0/+2
| | | | Notes: svn path=/head/; revision=109440
* Do a better job of documenting mincore(2), esp. the MINCORE_* flags.Tim J. Robbins2003-01-171-14/+46
| | | | Notes: svn path=/head/; revision=109404
* Fix memleak.Martin Blapp2003-01-161-2/+8
| | | | | | | | Reviewed by: rwatson MFC after: 2 weeks Notes: svn path=/head/; revision=109384
* Implement non-blocking tcp-connections.Martin Blapp2003-01-165-62/+437
| | | | | | | | | Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day Notes: svn path=/head/; revision=109359
* realpath(3) should use PATH_MAX instead of MAXPATHLEN according to POSIX.Johan Karlsson2003-01-152-9/+9
| | | | | | | | | | | This also reverts the PATH_MAX -> MAXPATHLEN part of rev 1.3 of src/bin/realpath/realpath.c Requested by: imp Reviewed by: imp, bde Notes: svn path=/head/; revision=109331
* Add a missing word.Tim J. Robbins2003-01-151-1/+1
| | | | Notes: svn path=/head/; revision=109297
* Document the named semaphore functions. This could still use a bitTim J. Robbins2003-01-151-18/+165
| | | | | | | of polishing. Notes: svn path=/head/; revision=109275
* Actually add mac_prepare.3.Chris Costello2003-01-151-0/+85
| | | | | | | Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=109274
* Cross-reference mac(4)Chris Costello2003-01-155-0/+5
| | | | | | | Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=109273
* s/SEE_ALSO/SEE ALSO/Chris Costello2003-01-152-2/+5
| | | | | | | | | Cross-reference mac(4) and mac(9) Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=109272
* o Document mac_prepare() and associated functionsChris Costello2003-01-158-33/+61
| | | | | | | | | | | | | o Link mac_get_pid.3 to mac_get.3 o Update SEE ALSO to refer to mac_prepare, and added missing references o Remove clause #3 on my work o Update mac_get.3 for the updated MAC API Sponsored by: DARPA, Network Associates Laboratories Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=109263
* o Remove clause #3Chris Costello2003-01-141-5/+9
| | | | | | | | | o Document mac_set_link(). Sponsored by: DARPA, Network Associates Labs Notes: svn path=/head/; revision=109260
* Back out previous; sharing semaphores between processes only worksTim J. Robbins2003-01-141-8/+16
| | | | | | | in certain special cases. Notes: svn path=/head/; revision=109226
* Sharing semaphores between processes works now, so remove the stale commentsTim J. Robbins2003-01-141-16/+8
| | | | | | | | about it always returning EPERM. Document that ENFILE occurs when the limit on kernel semaphores is reached. Notes: svn path=/head/; revision=109222
* Cross reference sem(4) so users know which kernel options are requiredTim J. Robbins2003-01-145-5/+10
| | | | | | | to use these semaphore functions. Notes: svn path=/head/; revision=109220
* Add the newly created semaphore to the named semaphore list in sem_open()Tim J. Robbins2003-01-142-2/+4
| | | | | | | | | so that multiple opens of the same semaphore without an intervening sem_close() return the same object, and so that sem_close() does not segfault while trying to remove the item from the list. Notes: svn path=/head/; revision=109219
* Including <time.h> before <aio.h> has not been necessary for a while now.Tim J. Robbins2003-01-141-1/+0
| | | | Notes: svn path=/head/; revision=109217
* Mention the oddities and requirements for mount operations executed byJoerg Wunsch2003-01-131-3/+16
| | | | | | | | | | | non-root users. PR: docs/42651 Submitted by: Thomas Seck <tmseck@netcologne.de> MFC after: 3 days Notes: svn path=/head/; revision=109186
* Refer to 1003.1 instead of 1003.2 in the Standards section.Tim J. Robbins2003-01-136-6/+6
| | | | Notes: svn path=/head/; revision=109174