Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | libutil: Use O_CLOEXEC for internal file descriptors from open(). | jilles | 2013-08-28 | 1 | -3/+4 |
| | |||||
* | Remove California Regent's clause 3, per letter | imp | 2007-01-09 | 1 | -4/+0 |
| | |||||
* | ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify. | markm | 2003-10-18 | 1 | -10/+10 |
| | |||||
* | Tidy up. Sort headers. | markm | 2003-06-14 | 1 | -2/+2 |
| | |||||
* | Add __FBSDID()s to libutil | dillon | 2001-09-30 | 1 | -3/+3 |
| | |||||
* | Correct uu_lock_txfr. I don't think this ever worked correctly. | brian | 2000-10-02 | 1 | -5/+6 |
| | |||||
* | $Id$ -> $FreeBSD$ | peter | 1999-08-28 | 1 | -1/+1 |
| | |||||
* | Get the pid right if a stale lock file exists. | brian | 1999-03-11 | 1 | -4/+4 |
| | | | | | PR: 10531 Submitted by: Lawrence D. Lopez <lopez@cisco.com> | ||||
* | Cast pid_t to int for sprintf. | brian | 1998-06-10 | 1 | -2/+2 |
| | | | | Pointed out by: Charlie Sorsby <crs@hgo.net> | ||||
* | Add uu_lock_txfr() to transfer ownership of a successful | brian | 1998-05-28 | 1 | -6/+34 |
| | | | | uu_lock() to another process. | ||||
* | Implement canonical locking protocol | ache | 1997-08-10 | 1 | -53/+68 |
| | | | | Suggested by: joerg | ||||
* | Improve weak locking by using flock() | ache | 1997-08-05 | 1 | -4/+8 |
| | |||||
* | Make uu_* const correct. | brian | 1997-05-12 | 1 | -4/+4 |
| | | | | Suggested by: joerg | ||||
* | Add Id | ache | 1997-04-02 | 1 | -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() | ache | 1997-04-02 | 1 | -10/+7 |
| | |||||
* | Remove unused USE_PERROR define and syslog.h include | ache | 1997-04-02 | 1 | -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 values | brian | 1997-03-31 | 1 | -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. | brian | 1997-03-30 | 1 | -0/+161 |