/illumos-gate/usr/src/cmd/ttymon/ |
H A D | ulockf.c | 36 static char lockname[BUFSIZ]; variable 336 (void) sprintf(lockname, "%s.%3.3lu.%3.3lu.%3.3lu", L_LOCK, in fd_mklock() 341 if (mklock(lockname) == FAIL) in fd_mklock() 347 rmlock(lockname); in fd_mklock() 369 (void) sprintf(lockname, "%s%s", (*name == '/' ? "" : "/dev/"), name); in fn_cklock() 371 if (stat(lockname, &_st_buf) != 0) in fn_cklock() 374 (void) sprintf(lockname, "%s.%3.3lu.%3.3lu.%3.3lu", L_LOCK, in fn_cklock() 379 return (cklock(lockname)); in fn_cklock() 396 (void) sprintf(lockname, "%s.%3.3lu.%3.3lu.%3.3lu", L_LOCK, in fd_cklock() 401 if (cklock(lockname) == FAIL) in fd_cklock() [all …]
|
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | ulockf.c | 250 char lockname[BUFSIZ]; in fd_mklock() local 255 (void) snprintf(lockname, sizeof (lockname), in fd_mklock() 261 if (mklock(lockname) == FAIL) in fd_mklock() 267 rmlock(lockname); in fd_mklock() 289 char lockname[BUFSIZ]; in fd_rmlock() local 292 (void) snprintf(lockname, sizeof (lockname), in fd_rmlock() 297 rmlock(lockname); in fd_rmlock()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | ulockf.c | 37 static char lockname[BUFSIZ]; variable 353 (void) sprintf(lockname, "%s.%3.3lu.%3.3lu.%3.3lu", L_LOCK, 358 if ( mklock(lockname) == FAIL ) 364 rmlock(lockname); 387 (void) sprintf(lockname, "%s%s", (*name == '/' ? "" : "/dev/"), name); 389 if ( stat(lockname, &_st_buf) != 0 ) 392 (void) sprintf(lockname, "%s.%3.3lu.%3.3lu.%3.3lu", L_LOCK, 397 return(cklock(lockname)); 415 (void) sprintf(lockname, "%s.%3.3lu.%3.3lu.%3.3lu", L_LOCK, 420 if ( cklock(lockname) == FAIL ) [all …]
|
H A D | anlwrk.c | 183 char lockname[MAXFULLNAME]; variable 204 (void) sprintf(lockname, "%.*s.%s", SYSNSIZE, Rmtname, JobGrade); 205 delock(LOCKPRE, lockname); 207 (void) sprintf(lockname, "%ld", (long) getpid()); 208 delock(LOCKPRE, lockname); 219 (void) sprintf(lockname, "%.*s.%s", SYSNSIZE, Rmtname, JobGrade); 220 (void) umlock(LOCKPRE, lockname);
|
H A D | uucico.c | 105 char lockname[MAXFULLNAME]; local 254 (void) sprintf(lockname, "%s.", LOCKPRE); 255 if (countProcs(lockname, (maxnumb-1)) == FALSE) { 400 (void) sprintf(lockname, "%ld", (long) getpid()); 401 if (umlock(LOCKPRE, lockname)) { 539 (void) sprintf(lockname, "%.*s.%s", SYSNSIZE, Rmtname, JobGrade); 542 if (umlock(LOCKPRE, lockname) != 0) { 556 delock(LOCKPRE, lockname); 574 delock(LOCKPRE, lockname); 603 delock(LOCKPRE, lockname); [all …]
|
H A D | uuxqt.c | 69 char dirname[MAXFULLNAME], lockname[MAXFULLNAME]; local 196 (void) snprintf(lockname, sizeof (lockname), "%s.%s", 198 if (mklock(lockname) == SUCCESS) { 210 (void) snprintf(lockname, sizeof (lockname), "%s.%s", 212 if (mklock(lockname) != SUCCESS)
|
H A D | grades.c | 720 char lockname[MAXFULLNAME]; local 729 (void) sprintf(lockname, "%s.%.*s.%s", LOCKPRE, SYSNSIZE, 731 if (cklock(lockname) == FAIL)
|
H A D | uucleanup.c | 159 char soptName[MAXFULLNAME], lockname[MAXFULLNAME]; /* name from -s option */ local 271 (void) sprintf(lockname, "%s.%.*s.%s", 273 if (cklock(lockname))
|
H A D | uustat.c | 1232 char lckfile[MAXBASENAME+1], lockname[MAXBASENAME+1]; local 1264 (void) sprintf(lockname,"%s%s.%s",LOCK, f, jcdir); 1268 if (EQUALS(lockname, lckfile))
|
/illumos-gate/usr/src/cmd/make/lib/makestate/ |
H A D | lock.c | 77 file_lock(char * name, char * lockname, int timeout) in file_lock() argument 90 r = symlink(name, lockname); in file_lock() 96 (const char *)"symlink(%s, %s)", name, lockname); in file_lock() 101 r = lstat(lockname, &statb); in file_lock() 118 (void) sprintf(tmpname, "%s.XXXXXX", lockname); in file_lock() 138 (void) unlink(lockname); in file_lock()
|
/illumos-gate/usr/src/cmd/sgs/libldmake/common/ |
H A D | lock.c | 89 file_lock(char *name, char *lockname, int timeout) in file_lock() argument 102 r = symlink(name, lockname); in file_lock() 108 (const char *)"symlink(%s, %s)", name, lockname, in file_lock() 114 r = lstat(lockname, &statb); in file_lock() 132 lockname); in file_lock() 154 (void) unlink(lockname); in file_lock()
|
/illumos-gate/usr/src/cmd/make/lib/vroot/ |
H A D | lock.cc | 84 file_lock(char *name, char *lockname, int *file_locked, int timeout) in file_lock() argument 100 r = symlink(name, lockname); in file_lock() 110 name, lockname); in file_lock() 118 r = lstat(lockname, &statb); in file_lock() 136 lockname); in file_lock()
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | devreserv.c | 134 char *lockname; /* Name of the lockfile */ in _rsvtabpath() local 142 if (lockname = malloc(strlen(p)+1)) in _rsvtabpath() 143 (void) strcpy(lockname, p); in _rsvtabpath() 146 if (lockname = malloc(strlen(DVLK_PATH)+1)) in _rsvtabpath() 147 (void) strcpy(lockname, DVLK_PATH); in _rsvtabpath() 154 return (lockname); in _rsvtabpath() 179 char *lockname; /* Name of the lock file */ in _openlkfile() local 186 if (lockname = _rsvtabpath()) { in _openlkfile() 189 lkfilefd = open(lockname, O_RDWR|O_CREAT, 0600); in _openlkfile() 190 free(lockname); in _openlkfile()
|
/illumos-gate/usr/src/cmd/make/include/vroot/ |
H A D | report.h | 34 extern int file_lock(char *name, char *lockname, int *file_locked, int timeout);
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | usg.local.c | 75 lockname = strrchr(mailname, '/') + 1; in findmail()
|
H A D | init.c | 89 char *lockname; /* named used for locking in /var/mail */ variable
|
H A D | quit.c | 394 PRIV(maillock(lockname,10)); in lockmail()
|
/illumos-gate/usr/src/cmd/mailx/hdr/ |
H A D | glob.h | 83 extern char *lockname; /* named used for /var/mail locking */
|