Home
last modified time | relevance | path

Searched refs:file_lock (Results 1 – 5 of 5) sorted by relevance

/netbsd-src/external/bsd/openldap/dist/libraries/liblutil/
H A Dlockf.c89 struct flock file_lock; in lutil_lockf() local
91 memset( &file_lock, '\0', sizeof( file_lock ) ); in lutil_lockf()
92 file_lock.l_type = F_WRLCK; in lutil_lockf()
93 file_lock.l_whence = SEEK_SET; in lutil_lockf()
94 file_lock.l_start = 0; in lutil_lockf()
95 file_lock.l_len = 0; in lutil_lockf()
98 return( fcntl( fd, F_SETLKW, &file_lock ) ); in lutil_lockf()
102 struct flock file_lock; in lutil_unlockf() local
104 memset( &file_lock, '\0', sizeof( file_lock ) ); in lutil_unlockf()
105 file_lock.l_type = F_UNLCK; in lutil_unlockf()
[all …]
/netbsd-src/usr.sbin/rpc.lockd/
H A Dlockd_lock.c49 LIST_HEAD(lcklst_head, file_lock);
94 struct file_lock { struct
95 LIST_ENTRY(file_lock) lcklst;
114 static struct file_lock *lalloc(void); argument
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);
145 static struct file_lock *
[all …]
/netbsd-src/external/bsd/nvi/dist/common/
H A Drecover.c386 if (file_lock(sp, NULL, NULL, fd, 1) != LOCK_SUCCESS) in rcv_mailfile()
562 switch (file_lock(sp, NULL, NULL, fileno(fp), 1)) { in rcv_list()
681 switch (file_lock(sp, NULL, NULL, fd, 1)) { in rcv_read()
H A Dexf.c342 switch (file_lock(sp, oname, &ep->fcntl_fd, ep->fd, 1)) { in file_init()
877 if (!noname && file_lock(sp, NULL, NULL, fd, 0) == LOCK_UNAVAIL) in file_write()
1461 file_lock(SCR *sp, char *name, int *fdp, int fd, int iswrite) in file_lock() function
/netbsd-src/external/bsd/nvi/dist/ex/
H A Dex_read.c276 if (file_lock(sp, NULL, NULL, fileno(fp), 0) == LOCK_UNAVAIL) in ex_read()