Home | History | Annotate | Download | only in libutil
History log of /src/lib/libutil/pidlock.c
RevisionDateAuthorComments
 1.17  30-Mar-2020  ryo fail to create a pidfile if hostname contains '/'
 1.16  07-Apr-2012  christos branches: 1.16.32;
read returns ssize_t, and err is a function name.
 1.15  18-Jan-2009  lukem branches: 1.15.8;
fix -Wsign-compare issues
 1.14  19-Mar-2006  christos Coverity CID 1209: Avoid negative close. While I am there fix bugs (open
returning 0 is ok). Reorganize code to factor out common parts, cleanup
syscall checking and error code return.
 1.13  27-Aug-2005  elad Lint warnings.
 1.12  26-Jul-2003  salo netbsd.org->NetBSD.org
 1.11  21-Apr-2003  christos PR/7885: Kip Rugger: ttylock(3) ignores flags and locker parameters
 1.10  16-Nov-2002  itojun use strlcpy/cat
 1.9  05-Jul-2000  ad - __RCSID() police.
- ANSIfy.
- Miscellaneous style changes.
- Shutup lint(1) in one or two cases.
 1.8  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.7  16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.6  11-Jan-1999  kleink In userland, pull in <errno.h> instead of <sys/errno.h> for the declaration
of errno.
 1.5  09-Dec-1998  christos Delint
 1.4  06-Jul-1998  mrg - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
 1.3  19-Oct-1997  mycroft Test file type correctly, using S_IS*().
 1.2  12-Oct-1997  cjs * Add hostname to temporary file to avoid collisions when locking on
an NFS volume and competing with the same pid on another machine.
* Make locking on an NFS-moutned file work properly by checking link
count.
* Make sure correct errno is returned.
 1.1  11-Oct-1997  cjs Add pidlock, ttylock, ttyunlock functions.
 1.15.8.1  17-Apr-2012  yamt sync with head
 1.16.32.1  08-Apr-2020  martin Merge changes from current as of 20200406

RSS XML Feed