summaryrefslogtreecommitdiffstats
path: root/lib/libutil/uucplock.c
Commit message (Collapse)AuthorAgeFilesLines
* ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.markm2003-10-181-10/+10
|
* Tidy up. Sort headers.markm2003-06-141-2/+2
|
* Add __FBSDID()s to libutildillon2001-09-301-3/+3
|
* Correct uu_lock_txfr. I don't think this ever worked correctly.brian2000-10-021-5/+6
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Get the pid right if a stale lock file exists.brian1999-03-111-4/+4
| | | | | PR: 10531 Submitted by: Lawrence D. Lopez <lopez@cisco.com>
* Cast pid_t to int for sprintf.brian1998-06-101-2/+2
| | | | Pointed out by: Charlie Sorsby <crs@hgo.net>
* Add uu_lock_txfr() to transfer ownership of a successfulbrian1998-05-281-6/+34
| | | | uu_lock() to another process.
* Implement canonical locking protocolache1997-08-101-53/+68
| | | | Suggested by: joerg
* 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