summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Park & Miller PRNG can be safely initialized with any value but 0 and stuckache2003-02-032-2/+8
| | | | | | | at 0 as designed. Its BSD adaptation tries to fight it by mapping 0 to 2147483647 after calculation, but this method not works since 2147483647 seed returns to 0 again on the next interation. Instead of after calculation mapping, map 0 to another value _before_ calculation, so it never stucks.
* Document additional behaviour of this function (seephantom2003-02-031-2/+12
| | | | rev 1.3 of uthread_attr_get_np.c)
* Improve pthread_attr_get_np() by enabling it to return thread's real stackphantom2003-02-031-1/+9
| | | | | | address instead of specified by pthread_attr_t passed to pthread_create(). Suggested by: deischen
* In pam_sm_acct_mgmt(), retrieve the cached credentials before trying todes2003-02-031-3/+6
| | | | | | initialize the context. This way, a failure to initialize the context is not fatal unless we actually have work to do - because if we don't, we return PAM_SUCCESS without even trying to initialize the context.
* Whitespace cleanupdes2003-02-031-3/+3
|
* OpenPAMify.des2003-02-021-33/+10
|
* For some combinations of variable sizes and RAND_MAX value rand_r()ache2003-02-021-2/+4
| | | | may store less amount bits for seed, than available. Fix it.
* No need for the OPENSSL_NO_KRB5 switch anymore.markm2003-01-311-1/+1
| | | | Fixed by: nectar
* Document a bug in our chroot(2) implementation: if access controlrwatson2003-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).
* Zap another reference to !RFPROC being unsupported that I missed before.tjr2003-01-311-2/+0
|
* Don't use -compact in list of available flags. Fix tag width.tjr2003-01-311-1/+1
|
* !RFPROC has been supported for a while now.tjr2003-01-311-2/+1
|
* Back out previous. Many people disagreed with removing the warning.tjr2003-01-301-0/+8
|
* Add getosreldate.3 to the Makefile.trhodes2003-01-301-1/+1
|
* Add a manual page for getosreldate.c.trhodes2003-01-301-0/+65
| | | | | | PR: 46365 Submitted by: gioria (original version) OK'ed by: alfred (older version)
* Catch some cases where asking for ridiculously large allocations couldphk2003-01-301-0/+4
| | | | result in a segfault. Instead just return NULL.
* Remove runtime warning about gets().tjr2003-01-301-8/+0
|
* Lock stdin on entry, unlock on return, use __sgetc() instead of getchar()tjr2003-01-301-5/+9
| | | | | to avoid locking the stream for each character and to avoid input being scattered among multiple threads.
* WARNS ?= 2, so idiocy like 1.12 of type.c doesn't have to happen again.jmallett2003-01-301-0/+1
|
* Missing "return 0"jmallett2003-01-301-0/+1
| | | | | Big pointy hat to: jmallett Spotted by: peter
* API for opening (and tracking) writable file descriptors per disk.jmallett2003-01-293-8/+30
|
* Do not return inappropriate error codes in pam_sm_setcred.nectar2003-01-291-1/+4
|
* Adjust for OpenSSL 0.9.7.markm2003-01-284-3/+5
|
* style(9): add parentheses to sizeof even when not strictly required.des2003-01-285-22/+22
| | | | MFC after: 3 days
* Fix signed/unsigned comparison warning/error from 'make release'jwd2003-01-281-4/+4
|
* Fix signed/unsigned comparison warnings.mbr2003-01-271-3/+3
| | | | | Reviewed by: phk Obtained from: NetBSD
* Fix signed/unsigned comparison warnings. Fix spelling error inmbr2003-01-271-4/+5
| | | | | | | | | comment. NetBSD Rev. 1.9 and 1.7 Reviewed by: phk Obtained from: NetBSD
* Make this work in the !INET6 case -- if we mismatch the AF, don't return ambr2003-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
* Check pmap_flag before sendto.mbr2003-01-271-1/+2
| | | | | | | NetBSD r 1.5 Reviewed by: phk Obtained from: NetBSD
* Make sure we don't look before the beginning of the string.mbr2003-01-271-2/+2
| | | | | | | NetBSD Rev 1.5 Reviewed by: phk Obtained from: NetBSD
* Add missing __rpc_fixup_addr. This is needed to makembr2003-01-271-0/+3
| | | | | | | | | mount_nfs -T work for scoped addresses. NetBSD Rev 1.11 Reviewed by: phk Obtained from: NetBSD
* Free the correct buffer in error handling.mbr2003-01-271-1/+3
| | | | | | | | | Handle that malloc may return NULL. NetBSD Rev. 1.8 Reviewed by: phk Obtained from: NetBSD
* Reset the record lenght and received bytes once a recordmbr2003-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
* Now return NULLified struct in case of empty config fileache2003-01-271-6/+9
| | | | | | | | (previous variant return NULL pointer for both empty file case and error case, so caller can't sense error properly). It not affect existen programs because property_find() now returns NULL for both NULL pointer and NULLified struct.
* Handle read errorsache2003-01-271-3/+6
|
* If we don't know where the sblock is (e.g. filling out a blank disk), thenjmallett2003-01-271-0/+4
| | | | | | | get it from the fs structure. Really libufs should have interfaces to generate both what we export, and what we import, based on eachother, and this should be full of redundant code to make sure everything is right... But really, we don't even deal with checksums, so plenty of room to improve.
* Very minor EOL whitespace diff-reducer.markm2003-01-261-1/+1
|
* Missed a bit of cleanup.markm2003-01-261-2/+0
|
* make these more useful for lint(1). Minor diff-reductions while I'mmarkm2003-01-266-1/+7
| | | | about it.
* Fix namespace pollution introduced in previous commit.mbr2003-01-262-5/+5
| | | | Reviewed by: phk
* Remove the get_term() function. It pretty much can't work formarkm2003-01-261-36/+7
| | | | | | | | FreeBSD, and makes ugly diffs with the other crt1.c's. Leave behind a comment (words supplied by Thomas Moestl) that explain the issue. OK'ed by: tmm
* Add const qualifier to data argument for msgsnd.alfred2003-01-261-1/+1
| | | | | PR: standards/45274 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Remove part of my stateful locale patch that slipped into the previous rev.tjr2003-01-261-3/+0
|
* Initial implementation of the C99 feature whereby calling freopen() withtjr2003-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
* Bring shm functions closer the the opengroup standards.alfred2003-01-252-3/+3
| | | | | PR: 47469 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Bring semop() closer the the opengroup standards.alfred2003-01-251-1/+1
| | | | | PR: 47471 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Add an MLINK malloc.conf(5) -> malloc(3).mike2003-01-241-1/+2
|
* remove #ifdef _THREAD_SAFEfjoe2003-01-243-6/+0
|
* bwrite, not sbwrite, needs to open for writing and write.jmallett2003-01-232-10/+14
|
* API to fillout a blank disk. For e.g. newfs.jmallett2003-01-232-5/+13
|
OpenPOWER on IntegriCloud