History log of /freebsd-current/lib/libutil/uucplock.c
Revision Date Author Comments
# dc36d6f9 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

lib: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 636402a7 23-May-2018 John Baldwin <jhb@FreeBSD.org>

Use __SCCSID() for SCCS IDs.

- Define NO__SCCSID in CFLAGS to preserve existing behavior of omitting
SCCS IDs by default.
- While here, fix the $FreeBSD$ in pw_util.c to use __FBSDID.


# 8a16b7a1 20-Nov-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

General further adoption of SPDX licensing ID tags.

Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# d1d4d952 28-Aug-2013 Jilles Tjoelker <jilles@FreeBSD.org>

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


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# ee7093a6 08-Jan-2007 Warner Losh <imp@FreeBSD.org>

Remove California Regent's clause 3, per letter


# 547fa0d9 18-Oct-2003 Mark Murray <markm@FreeBSD.org>

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


# 0ebec5d3 14-Jun-2003 Mark Murray <markm@FreeBSD.org>

Tidy up. Sort headers.


# 8719c58f 30-Sep-2001 Matthew Dillon <dillon@FreeBSD.org>

Add __FBSDID()s to libutil


# ecbf047d 02-Oct-2000 Brian Somers <brian@FreeBSD.org>

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


# 7f3dea24 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 3c42a9c0 11-Mar-1999 Brian Somers <brian@FreeBSD.org>

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


# 6c78a7b0 09-Jun-1998 Brian Somers <brian@FreeBSD.org>

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


# 46cf264a 28-May-1998 Brian Somers <brian@FreeBSD.org>

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


# 84dc2299 10-Aug-1997 Andrey A. Chernov <ache@FreeBSD.org>

Implement canonical locking protocol
Suggested by: joerg


# e1a10354 04-Aug-1997 Andrey A. Chernov <ache@FreeBSD.org>

Improve weak locking by using flock()


# 85b0d75d 12-May-1997 Brian Somers <brian@FreeBSD.org>

Make uu_* const correct.

Suggested by: joerg


# 28804f92 01-Apr-1997 Andrey A. Chernov <ache@FreeBSD.org>

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


# 81d9597c 01-Apr-1997 Andrey A. Chernov <ache@FreeBSD.org>

Code space optimization in uu_lockerr()


# 28754192 01-Apr-1997 Andrey A. Chernov <ache@FreeBSD.org>

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.


# 687d0cde 31-Mar-1997 Brian Somers <brian@FreeBSD.org>

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


# 568b59b9 29-Mar-1997 Brian Somers <brian@FreeBSD.org>

Move uucplock into libutil and create a manual page.