| /src/external/bsd/openldap/dist/libraries/liblutil/ |
| lockf.c | 89 struct flock file_lock; local 91 memset( &file_lock, '\0', sizeof( file_lock ) ); 92 file_lock.l_type = F_WRLCK; 93 file_lock.l_whence = SEEK_SET; 94 file_lock.l_start = 0; 95 file_lock.l_len = 0; 98 return( fcntl( fd, F_SETLKW, &file_lock ) ); 102 struct flock file_lock; local 104 memset( &file_lock, '\0', sizeof( file_lock ) ) [all...] |
| /src/usr.sbin/rpc.lockd/ |
| lockd_lock.c | 49 LIST_HEAD(lcklst_head, file_lock); 94 struct file_lock { struct 95 LIST_ENTRY(file_lock) lcklst; 114 static struct file_lock *lalloc(void); 115 void lfree(struct file_lock *); 116 enum nlm_stats do_lock(struct file_lock *, int); 117 enum nlm_stats do_unlock(struct file_lock *); 118 void send_granted(struct file_lock *, int); 139 static struct file_lock *lock_lookup(struct file_lock *, int) [all...] |
| /src/external/bsd/nvi/dist/common/ |
| recover.c | 386 if (file_lock(sp, NULL, NULL, fd, 1) != LOCK_SUCCESS) 562 switch (file_lock(sp, NULL, NULL, fileno(fp), 1)) { 681 switch (file_lock(sp, NULL, NULL, fd, 1)) {
|
| exf.c | 342 switch (file_lock(sp, oname, &ep->fcntl_fd, ep->fd, 1)) { 877 if (!noname && file_lock(sp, NULL, NULL, fd, 0) == LOCK_UNAVAIL) 1438 * file_lock -- 1458 * PUBLIC: lockr_t file_lock __P((SCR *, char *, int *, int, int)); 1461 file_lock(SCR *sp, char *name, int *fdp, int fd, int iswrite) function
|
| /src/external/bsd/nvi/dist/ex/ |
| ex_read.c | 276 if (file_lock(sp, NULL, NULL, fileno(fp), 0) == LOCK_UNAVAIL)
|