Home
last modified time | relevance | path

Searched refs:lockpath (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dlockinst.c82 static char lockpath[PATH_MAX]; variable
184 (void) snprintf(lockpath, sizeof (lockpath), in lockinst()
189 if ((fd = open(lockpath, O_RDWR | O_CREAT, 0600)) == -1) { in lockinst()
190 progerr(gettext(ERR_MKLOCK), lockpath); in lockinst()
242 progerr(gettext(ERR_NOLOCK), lockpath); in lockinst()
H A Docfile.c554 char lockpath[PATH_MAX]; in pkgWlock() local
558 (void) snprintf(lockpath, sizeof (lockpath), in pkgWlock()
568 if (access(lockpath, F_OK) == -1) { in pkgWlock()
569 lock_fd = open(lockpath, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0644); in pkgWlock()
572 progerr(gettext(ERR_MKLOCK), lockpath); in pkgWlock()
578 if ((lock_fd = open(lockpath, O_RDWR)) == -1) { in pkgWlock()
580 progerr(gettext(ERR_OPLOCK), lockpath); in pkgWlock()
/illumos-gate/usr/src/cmd/svr4pkg/pkgadm/
H A Dlock.c1155 char lockpath[MAXPATHLEN]; in _openLockFile() local
1166 (void) snprintf(lockpath, sizeof (lockpath), "%s/%s", in _openLockFile()
1169 if (access(lockpath, F_OK) != 0) { in _openLockFile()
1171 lockpath, strerror(errno)); in _openLockFile()
1177 (void) snprintf(lockpath, sizeof (lockpath), in _openLockFile()
1187 fd = open(lockpath, O_CREAT|O_RDWR, LOCK_FILEMODE); in _openLockFile()
1217 perror(lockpath); in _openLockFile()
1255 perror(lockpath); in _openLockFile()