Home
last modified time | relevance | path

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

/titanic_44/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.c553 char lockpath[PATH_MAX]; in pkgWlock() local
557 (void) snprintf(lockpath, sizeof (lockpath), in pkgWlock()
567 if (access(lockpath, F_OK) == -1) { in pkgWlock()
568 lock_fd = open(lockpath, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0644); in pkgWlock()
571 progerr(gettext(ERR_MKLOCK), lockpath); in pkgWlock()
577 if ((lock_fd = open(lockpath, O_RDWR)) == -1) { in pkgWlock()
579 progerr(gettext(ERR_OPLOCK), lockpath); in pkgWlock()
/titanic_44/usr/src/cmd/svr4pkg/pkgadm/
H A Dlock.c1164 char lockpath[MAXPATHLEN]; in _openLockFile() local
1175 (void) snprintf(lockpath, sizeof (lockpath), "%s/%s", in _openLockFile()
1178 if (access(lockpath, F_OK) != 0) { in _openLockFile()
1180 lockpath, strerror(errno)); in _openLockFile()
1186 (void) snprintf(lockpath, sizeof (lockpath), in _openLockFile()
1196 fd = open(lockpath, O_CREAT|O_RDWR, LOCK_FILEMODE); in _openLockFile()
1226 perror(lockpath); in _openLockFile()
1264 perror(lockpath); in _openLockFile()