Commit Graph

4 Commits

Author SHA1 Message Date
mrg 2beab49a06 - 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
1998-07-06 06:45:41 +00:00
mycroft c967784829 Test file type correctly, using S_IS*(). 1997-10-19 18:10:58 +00:00
cjs 8e29c9888e * 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.
1997-10-12 09:58:23 +00:00
cjs 09ced7933a Add pidlock, ttylock, ttyunlock functions. 1997-10-11 02:56:22 +00:00