summaryrefslogtreecommitdiffstats
path: root/lib/libutil/uucplock.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve weak locking by using flock()ache1997-08-051-4/+8
|
* Make uu_* const correct.brian1997-05-121-4/+4
| | | | Suggested by: joerg
* Add Idache1997-04-021-1/+4
| | | | | Reduce space for error bufer from 512 to 128: there is no such long strings can be returned from strerror()
* Code space optimization in uu_lockerr()ache1997-04-021-10/+7
|
* Remove unused USE_PERROR define and syslog.h includeache1997-04-021-19/+14
| | | | | | | | | | Use snprintf instead of sprintf to avoid buffer overflows Use snprintf in uu_lockerr instead of lots of hardcoded constants and not null-terminated strncpy Return "" for OK and "device in use" for INUSE, it allows simple strcpy(buf, uu_lockerr(retcode)) without testing for special OK case (NULL was there) and obtaining meaningful result for INUSE ("" was there) without special testing for it too.
* Remove the syslog stuff, and allow various return valuesbrian1997-03-311-33/+59
| | | | | | | | | in uu_lock(). Add uu_lockerr() for turning the results of uu_lock into something printable. Remove bogus section in man page about race conditions allowing both processes to get the lock. Include libutil.h and use uu_lock() correctly where it should. Suggested by: ache@freebsd.org
* Move uucplock into libutil and create a manual page.brian1997-03-301-0/+161
OpenPOWER on IntegriCloud