History log of /freebsd-10.1-release/lib/libutil/uucplock.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 255007 28-Aug-2013 jilles

libutil: Use O_CLOEXEC for internal file descriptors from open().


# 165906 08-Jan-2007 imp

Remove California Regent's clause 3, per letter


# 121193 18-Oct-2003 markm

ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.


# 116344 14-Jun-2003 markm

Tidy up. Sort headers.


# 84225 30-Sep-2001 dillon

Add __FBSDID()s to libutil


# 66558 02-Oct-2000 brian

Correct uu_lock_txfr. I don't think this ever worked correctly.


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 44652 11-Mar-1999 brian

Get the pid right if a stale lock file exists.
PR: 10531
Submitted by: Lawrence D. Lopez <lopez@cisco.com>


# 36833 09-Jun-1998 brian

Cast pid_t to int for sprintf.
Pointed out by: Charlie Sorsby <crs@hgo.net>


# 36451 28-May-1998 brian

Add uu_lock_txfr() to transfer ownership of a successful
uu_lock() to another process.


# 28040 10-Aug-1997 ache

Implement canonical locking protocol
Suggested by: joerg


# 27920 05-Aug-1997 ache

Improve weak locking by using flock()


# 25740 12-May-1997 brian

Make uu_* const correct.

Suggested by: joerg


# 24531 02-Apr-1997 ache

Add Id
Reduce space for error bufer from 512 to 128: there is no such long strings
can be returned from strerror()


# 24530 02-Apr-1997 ache

Code space optimization in uu_lockerr()


# 24529 02-Apr-1997 ache

Remove unused USE_PERROR define and syslog.h include
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.


# 24461 31-Mar-1997 brian

Remove the syslog stuff, and allow various return values
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


# 24417 30-Mar-1997 brian

Move uucplock into libutil and create a manual page.