Searched defs:lockpath (Results 1 - 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | lockinst.c | 82 static char lockpath[PATH_MAX]; variable 184 (void) snprintf(lockpath, sizeof (lockpath), 189 if ((fd = open(lockpath, O_RDWR | O_CREAT, 0600)) == -1) { 190 progerr(gettext(ERR_MKLOCK), lockpath); local 242 progerr(gettext(ERR_NOLOCK), lockpath); local
|
H A D | ocfile.c | 553 char lockpath[PATH_MAX]; local 557 (void) snprintf(lockpath, sizeof (lockpath), 567 if (access(lockpath, F_OK) == -1) { 568 lock_fd = open(lockpath, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0644); 571 progerr(gettext(ERR_MKLOCK), lockpath); local 577 if ((lock_fd = open(lockpath, O_RDWR)) == -1) { 579 progerr(gettext(ERR_OPLOCK), lockpath); local
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgadm/ |
H A D | lock.c | 1164 char lockpath[MAXPATHLEN]; local 1175 (void) snprintf(lockpath, sizeof (lockpath), "%s/%s", 1178 if (access(lockpath, F_OK) != 0) { 1180 lockpath, strerror(errno)); 1186 (void) snprintf(lockpath, sizeof (lockpath), 1196 fd = open(lockpath, O_CREAT|O_RDWR, LOCK_FILEMODE); 1226 perror(lockpath); 1264 perror(lockpath); [all...] |
Completed in 48 milliseconds