| /illumos-gate/usr/src/lib/libc/port/gen/ |
| H A D | flock.c | 26 flock(int fildes, int operation) function
|
| H A D | lckpwdf.c | 46 static struct flock flock = { variable in typeref:struct:flock 80 flock.l_type = F_WRLCK; 81 if (fcntl(fildes, F_SETLK, &flock) != -1) { 114 flock.l_type = F_UNLCK; 115 (void) fcntl(fildes, F_SETLK, &flock);
|
| /illumos-gate/usr/src/ucblib/libucb/port/sys/ |
| H A D | flock.c | 43 flock(int fd, int operation) function 45 struct flock fl; 49 /* initialize the flock struct to set lock on entire file */
|
| /illumos-gate/usr/src/cmd/ypcmd/yppasswd/ |
| H A D | yplckpwdf.c | 40 static struct flock flock = { variable in typeref:struct:flock 70 flock.l_type = F_WRLCK; 73 retval = fcntl(fildes, F_SETLKW, (int)&flock); 89 flock.l_type = F_UNLCK; 90 (void) fcntl(fildes, F_SETLK, (int)&flock);
|
| /illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
| H A D | dict.c | 36 static struct flock flock = { 0, 0, 0, 0, 0, 0 }; variable in typeref:struct:flock 82 flock.l_type = F_WRLCK; 83 retval = fcntl(lockfd, F_SETLK, &flock); 107 flock.l_type = F_UNLCK; 108 (void) fcntl(lockfd, F_SETLK, &flock);
|
| /illumos-gate/usr/src/cmd/backup/dump/ |
| H A D | dumpitime.c | 20 static struct flock fl; 21 #define flock(fd, flag) (fl.l_type = (flag), fcntl(fd, F_SETLKW, &fl)) macro 116 (void) flock(fileno(df), LOCK_SH); 213 (void) flock(fd, LOCK_EX);
|
| /illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
| H A D | nfslog_config.c | 242 flock_t flock; local 267 (void) memset((void *) &flock, 0, sizeof (flock)); 268 flock.l_type = F_RDLCK; 269 if (fcntl(fileno(fp), F_SETLKW, &flock) == -1) {
|
| /illumos-gate/usr/src/ucbhead/sys/ |
| H A D | fcntl.h | 81 #define F_FLOCK 53 /* private - flock */ 82 #define F_FLOCKW 54 /* private - flock wait */ 151 typedef struct flock { struct 174 typedef struct flock { struct 185 typedef struct flock { struct
|
| /illumos-gate/usr/src/lib/libbc/inc/include/sys/ |
| H A D | fcntlcom.h | 52 #define _FSHLOCK 0x0080 /* BSD flock() shared lock present */ 53 #define _FEXLOCK 0x0100 /* BSD flock() exclusive lock present */ 138 /* Needed by flock.c */ 142 /* fcntl(2) flags (l_type field of flock structure) */ 158 struct flock { struct
|
| /illumos-gate/usr/src/cmd/sendmail/aux/ |
| H A D | mail.local.c | 66 ** If you don't have flock, you could try using lockf instead. 70 # define flock(a, b) lockf(a, b, 0) macro 801 * open(2) should support flock'ing the file. 956 || flock(mbfd, LOCK_EX) < 0 ||
|
| /illumos-gate/usr/src/cmd/ptools/pfiles/ |
| H A D | pfiles.c | 75 static int getflock(struct ps_prochandle *, int, struct flock *); 343 getflock(struct ps_prochandle *Pr, int fd, struct flock *flock_native) 364 struct flock flock; local 389 flock.l_type = F_WRLCK; 390 flock.l_whence = 0; 391 flock.l_start = 0; 392 flock.l_len = 0; 393 flock.l_sysid = 0; 394 flock [all...] |
| /illumos-gate/usr/src/cmd/logadm/ |
| H A D | conf.c | 320 struct flock flock; local 352 flock.l_type = (Canchange == CHG_BOTH) ? F_WRLCK : F_RDLCK; 353 flock.l_whence = SEEK_SET; 354 flock.l_start = 0; 355 flock.l_len = 1; 356 if (fcntl(Conffd, F_SETLKW, &flock) < 0) 357 err(EF_SYS, "flock on %s", Confname); 382 flock.l_type = (Canchange != CHG_NONE) ? F_WRLCK : F_RDLCK; 383 flock [all...] |
| /illumos-gate/usr/src/boot/sys/sys/ |
| H A D | fcntl.h | 261 #define F_FLOCK 0x020 /* Use flock(2) semantics for lock */ 271 struct flock { struct 295 /* lock operations for flock(2) */ 320 int flock(int, int);
|
| /illumos-gate/usr/src/cmd/vt/ |
| H A D | vtdaemon.c | 1127 struct flock flock; local 1142 flock.l_type = F_WRLCK; 1143 flock.l_whence = SEEK_SET; 1144 flock.l_start = (off_t)0; 1145 flock.l_len = (off_t)0; 1146 if (fcntl(doorfd, F_SETLK, &flock) < 0) {
|
| /illumos-gate/usr/src/uts/common/sys/ |
| H A D | fcntl.h | 145 * Commands that refer to flock structures. The argument types differ between 164 #define F_FLOCK 53 /* private - set flock owned by file */ 165 #define F_FLOCKW 54 /* private - set flock owned by file and wait */ 179 #define F_FLOCK 55 /* private - set flock owned by file */ 180 #define F_FLOCKW 56 /* private - set flock owned by file and wait */ 203 #define F_FLOCK64 55 /* private - set flock owned by file */ 204 #define F_FLOCKW64 56 /* private - set flock owned by file and wait */ 217 #define F_FLOCK64 53 /* private - set flock owned by file */ 218 #define F_FLOCKW64 54 /* private - set flock owned by file and wait */ 235 typedef struct flock { struct [all...] |
| /illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
| H A D | smb_pwdutil.c | 64 static struct flock flock = { 0, 0, 0, 0, 0, 0 }; variable in typeref:struct:flock 824 flock.l_type = F_WRLCK; 825 if (fcntl(fildes, F_SETLK, &flock) != -1) { 864 flock.l_type = F_UNLCK; 865 (void) fcntl(fildes, F_SETLK, &flock);
|
| /illumos-gate/usr/src/lib/libbsm/common/ |
| H A D | devalloc.c | 179 _da_read_file(char *fname, char **fbuf, time_t *ftime, rwlock_t *flock, argument 191 if (rw_rdlock(flock) != 0) 194 (void) rw_unlock(flock); 199 (void) rw_unlock(flock); 207 if (rw_wrlock(flock) != 0) 210 (void) rw_unlock(flock); 218 (void) rw_unlock(flock); 224 (void) rw_unlock(flock); 228 (void) rw_unlock(flock); 232 if (rw_rdlock(flock) ! [all...] |
| /illumos-gate/usr/src/cmd/zlogin/ |
| H A D | zlogin.c | 1410 struct flock flock; local 1429 flock.l_type = F_WRLCK; 1430 flock.l_whence = SEEK_SET; 1431 flock.l_start = (off_t)0; 1432 flock.l_len = (off_t)0; 1433 if (fcntl(*lockfd, F_SETLKW, &flock) < 0) {
|
| /illumos-gate/usr/src/cmd/zoneadmd/ |
| H A D | zoneadmd.c | 1691 struct flock flock; local 1712 flock.l_type = F_WRLCK; 1713 flock.l_whence = SEEK_SET; 1714 flock.l_start = (off_t)0; 1715 flock.l_len = (off_t)0; 1716 if (fcntl(doorfd, F_SETLK, &flock) < 0) {
|
| /illumos-gate/usr/src/cmd/truss/ |
| H A D | expound.c | 1703 struct flock32 flock; local 1705 if (Pread(Proc, &flock, sizeof (flock), offset) == sizeof (flock)) { 1710 switch (flock.l_type) { 1724 (void) printf("%-7d", flock.l_type); 1726 str = whencearg(flock.l_whence); 1730 (void) printf(" whence=%-8u", flock.l_whence); 1734 flock.l_start, 1735 flock 1744 struct flock64 flock; local [all...] |
| /illumos-gate/usr/src/uts/common/fs/nfs/ |
| H A D | nfs4_srv.c | 50 #include <sys/flock.h> 8554 setlock(vnode_t *vp, struct flock64 *flock, int flag, cred_t *cred) argument 8568 LOCK_PRINT(rfs4_debug, "setlock", cmd, flock); 8570 flock, flag, (u_offset_t)0, NULL, cred, NULL); 8583 flk = *flock; 8628 *flock = flk; 8646 struct flock64 flock; local 8700 flock.l_type = ltype; 8701 flock.l_whence = 0; /* SEEK_SET */ 8702 flock [all...] |
| /illumos-gate/usr/src/lib/libzonecfg/common/ |
| H A D | libzonecfg.c | 7413 struct flock flock; local 7461 flock.l_type = F_WRLCK; 7462 flock.l_whence = SEEK_SET; 7463 flock.l_start = (off_t)0; 7464 flock.l_len = (off_t)0; 7465 if ((fcntl(*lockfd, F_SETLKW, &flock) < 0) ||
|