/opensolaris-onvv-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_setup.c | 143 #define META_LOCK_FD(sp) ((sp)->lockfd) 155 int lockfd = META_LOCK_FD(sp); local 159 if (lockfd >= 0) 161 assert(lockfd == MD_NO_LOCK); 164 if ((lockfd = open(lockname, O_WRONLY, 0)) < 0) { 166 lockfd = MD_NO_LOCK; 173 if ((lockfd = open(lockname, (O_WRONLY|O_CREAT), 178 if (fchmod(lockfd, 0644) != 0) { 188 META_LOCK_FD(sp) = lockfd; 195 if (lockfd > 231 int lockfd = META_LOCK_FD(sp); local 258 int lockfd; local 311 int lockfd; local 361 int lockfd; local [all...] |
H A D | meta_name.c | 665 sp->lockfd = MD_NO_LOCK; 728 sp->lockfd = MD_NO_LOCK;
|
H A D | meta_import.c | 3653 sp->lockfd = MD_NO_LOCK;
|
/opensolaris-onvv-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | dict.c | 35 static int lockfd = -1; variable 69 if ((lockfd = open(dblock, O_WRONLY|O_CREAT|O_EXCL, 0400)) == -1) { 71 lockfd = open(dblock, O_WRONLY); 72 if (lockfd == -1) { 83 retval = fcntl(lockfd, F_SETLK, &flock); 106 if (lockfd != -1) { 108 (void) fcntl(lockfd, F_SETLK, &flock); 109 (void) close(lockfd); 110 lockfd = -1;
|
/opensolaris-onvv-gate/usr/src/lib/libbsm/common/ |
H A D | devalloc.c | 1173 int lockfd = -1; local 1192 if ((lockfd = open(lockfile, O_RDWR | O_CREAT, 0600)) == -1) 1196 (void) fchown(lockfd, DA_UID, DA_GID); 1198 if (lseek(lockfd, (off_t)0, SEEK_SET) == -1) { 1200 (void) close(lockfd); 1207 ret = lockf(lockfd, F_TLOCK, 0); 1210 return (lockfd); 1214 (void) close(lockfd); 1243 int lockfd = -1; local 1260 if ((lockfd 1434 int rc = 0, lockfd = 0, tmpfd = 0; local 1502 int lockfd = -1; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/filesync/ |
H A D | main.c | 96 static int lockfd; /* file descriptor for locking baseline */ variable 550 lockfd = creat(file_base, 0666); 552 lockfd = open(file_base, O_RDWR); 554 if (lockfd < 0) { 559 ret = lockf(lockfd, F_TLOCK, 0L); 595 (void) lockf(lockfd, F_ULOCK, 0);
|
/opensolaris-onvv-gate/usr/src/cmd/zoneadm/ |
H A D | zoneadm.c | 2817 int lockfd; local 2939 if (zonecfg_grab_lock_file(target_zone, &lockfd) != Z_OK) { 2960 zonecfg_release_lock_file(target_zone, lockfd); 3012 zonecfg_release_lock_file(target_zone, lockfd); 3442 int lockfd; local 3563 if (zonecfg_grab_lock_file(target_zone, &lockfd) != Z_OK) { 3731 zonecfg_release_lock_file(target_zone, lockfd); 3866 int lockfd; local 3988 if (zonecfg_grab_lock_file(target_zone, &lockfd) != Z_OK) { 4084 zonecfg_release_lock_file(target_zone, lockfd); 4187 int lockfd = -1; local 4525 int lockfd = -1; local 4798 int lockfd, answer; local 5060 int err, lockfd; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/fs.d/cachefs/cfsd/ |
H A D | cfsd_subr.c | 263 int lockfd; local 446 lockfd = cachefs_dir_lock(cache_object_p->i_cachedir, 0); 447 if (lockfd < 0) { 462 cachefs_dir_unlock(lockfd); 503 cachefs_dir_unlock(lockfd);
|
/opensolaris-onvv-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 1397 release_lock_file(int lockfd) argument 1399 (void) close(lockfd); 1403 grab_lock_file(const char *zone_name, int *lockfd) argument 1417 if ((*lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) { 1429 if (fcntl(*lockfd, F_SETLKW, &flock) < 0) { 1432 release_lock_file(*lockfd); 1442 int pstatus = 0, error = -1, lockfd, doorfd; local 1448 if (grab_lock_file(zone_name, &lockfd) != Z_OK) 1496 release_lock_file(lockfd);
|
/opensolaris-onvv-gate/usr/src/lib/libc/port/gen/ |
H A D | getutx.c | 1080 int lockfd; local 1082 if ((lockfd = open(UTMPX_FILE, O_RDWR|O_CREAT, 0644)) < 0) 1085 if (lockf(lockfd, F_LOCK, 0) < 0) { 1086 (void) close(lockfd); 1091 fd = lockfd;
|
/opensolaris-onvv-gate/usr/src/cmd/allocate/ |
H A D | allocate3.c | 644 static int lockfd = -1; local 664 if ((lockfd == -1) && 665 (lockfd = open(lockfile, O_RDWR | O_CREAT, 0600)) == -1) { 671 if (lseek(lockfd, offset, SEEK_SET) == -1) { 680 ret = lockf(lockfd, F_TLOCK, size); 682 return (lockfd);
|
/opensolaris-onvv-gate/usr/src/lib/libshare/common/ |
H A D | libshare.c | 832 int lockfd; local 879 lockfd = open(DFS_LOCK_FILE, O_RDWR); 880 if (lockfd >= 0) { 883 (void) lockf(lockfd, F_LOCK, 0); 924 (void) lockf(lockfd, F_ULOCK, 926 (void) close(lockfd); 975 (void) lockf(lockfd, 977 (void) close(lockfd); 1005 (void) lockf(lockfd, F_ULOCK, 0); 1006 (void) close(lockfd); [all...] |
/opensolaris-onvv-gate/usr/src/lib/libzonecfg/common/ |
H A D | libzonecfg.c | 7335 zonecfg_release_lock_file(const char *zone_name, int lockfd) argument 7348 assert(lockfd == -1); 7357 assert(lockfd >= 0); 7358 (void) close(lockfd); 7362 zonecfg_grab_lock_file(const char *zone_name, int *lockfd) argument 7376 *lockfd = -1; 7405 if ((*lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) { 7417 if ((fcntl(*lockfd, F_SETLKW, &flock) < 0) || 7421 zonecfg_release_lock_file(zone_name, *lockfd); 7429 zonecfg_lock_file_held(int *lockfd) argument 7481 int doorfd, lockfd; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/lvm/util/ |
H A D | metainit.c | 433 sn.lockfd = MD_NO_LOCK;
|
H A D | metaset.c | 582 sp->lockfd = MD_NO_LOCK;
|
/opensolaris-onvv-gate/usr/src/cmd/fs.d/ufs/mkfs/ |
H A D | mkfs.c | 5171 int lockfd; variable 5189 if (ioctl(lockfd, _FIOLFSS, &lockfs) == -1) { 5208 if (ioctl(lockfd, _FIOLFS, &lockfs) == -1) { 5226 if ((lockfd = open64(directory, O_RDONLY)) == -1) { 5234 if (ioctl(lockfd, _FIOLFSS, &lockfs) == -1) { 5244 if (ioctl(lockfd, _FIOLFS, &lockfs) == -1) {
|
/opensolaris-onvv-gate/usr/src/uts/common/sys/lvm/ |
H A D | mdiox.x | 440 % * Define a file descriptor for lockfd 454 int lockfd; /* used by meta_lock_* */
|