Rename PATH_LOCK to PATH_UUCPLOCK
This commit is contained in:
parent
b8643b5a1b
commit
feb1b301ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10976
@ -64,7 +64,7 @@ int uu_lock (char *ttyname)
|
||||
pid_t pid;
|
||||
char tbuf[MAXNAMLEN];
|
||||
|
||||
(void)sprintf(tbuf, _PATH_LOCK LOCKFMT, ttyname);
|
||||
(void)sprintf(tbuf, _PATH_UUCPLOCK LOCKFMT, ttyname);
|
||||
fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0660);
|
||||
if (fd < 0) {
|
||||
/*
|
||||
@ -112,7 +112,7 @@ int uu_unlock (char *ttyname)
|
||||
{
|
||||
char tbuf[MAXNAMLEN];
|
||||
|
||||
(void)sprintf(tbuf, _PATH_LOCK LOCKFMT, ttyname);
|
||||
(void)sprintf(tbuf, _PATH_UUCPLOCK LOCKFMT, ttyname);
|
||||
return(unlink(tbuf));
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@
|
||||
/* #define _PATH_LOCKDIRNAME "/etc/locks/LCK..%s" */
|
||||
/* #define _PATH_LOCKDIRNAME "/usr/spool/locks/LCK..%s" */
|
||||
/* #define _PATH_LOCKDIRNAME "/usr/spool/uucp/LCK/LCK..%s" */
|
||||
#define _PATH_LOCKDIRNAME _PATH_LOCK "LCK..%s"
|
||||
#define _PATH_LOCKDIRNAME _PATH_UUCPLOCK "LCK..%s"
|
||||
|
||||
/*
|
||||
Specify location for system wide databases
|
||||
|
Loading…
Reference in New Issue
Block a user