Searched refs:fl (Results 1 - 25 of 124) sorted by relevance

12345

/freebsd-current/lib/libc/sys/
H A Dlockf.c43 struct flock fl; local
46 fl.l_start = 0;
47 fl.l_len = size;
48 fl.l_whence = SEEK_CUR;
53 fl.l_type = F_UNLCK;
57 fl.l_type = F_WRLCK;
61 fl.l_type = F_WRLCK;
64 fl.l_type = F_WRLCK;
67 (filedes, F_GETLK, &fl) == -1)
69 if (fl
[all...]
/freebsd-current/tests/sys/mac/portacl/
H A Dnobody_test.sh17 bind_test fl fl uid nobody tcp 77
19 bind_test fl fl uid nobody udp 77
22 bind_test fl fl gid nobody tcp 77
24 bind_test fl fl gid nobody udp 77
29 bind_test fl fl ui
[all...]
H A Droot_test.sh28 bind_test fl ok uid root tcp 77
30 bind_test fl ok uid root udp 77
33 bind_test fl ok gid root tcp 77
35 bind_test fl ok gid root udp 77
42 bind_test fl ok uid root tcp 77
43 bind_test fl ok uid root tcp 7777
44 bind_test fl ok uid root udp 77
45 bind_test fl ok uid root udp 7777
47 bind_test fl ok gid root tcp 77
48 bind_test fl o
[all...]
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dbsd-flock.c49 struct flock fl = {0}; local
53 fl.l_type = F_WRLCK;
57 fl.l_type = F_RDLCK;
61 fl.l_type = F_UNLCK;
69 fl.l_whence = SEEK_SET;
70 rc = fcntl(fd, op & LOCK_NB ? F_SETLK : F_SETLKW, &fl);
/freebsd-current/contrib/netbsd-tests/usr.bin/xlint/lint1/
H A Dd_typename_as_var.c13 } fl; member in struct:foo
/freebsd-current/tests/sys/file/
H A Dflock_helper.c187 struct flock fl; local
194 fl.l_start = 0;
195 fl.l_len = 0;
196 fl.l_type = F_WRLCK;
197 fl.l_whence = SEEK_SET;
209 if (fcntl(fd, F_SETLK, &fl) < 0)
229 res = fcntl(fd, F_SETLK, &fl);
258 struct flock fl; local
265 fl.l_start = 0;
266 fl
328 struct flock fl; local
414 struct flock fl; local
500 struct flock fl; local
602 struct flock fl; local
674 struct flock fl; local
751 struct flock fl; local
823 struct flock fl; local
891 struct flock fl; local
976 struct flock fl; local
1054 struct flock fl; local
1143 struct flock fl; local
1341 struct flock fl; local
[all...]
/freebsd-current/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dvmem.h90 #define vmem_alloc(sz, fl) spl_vmem_alloc((sz), (fl), __func__, __LINE__)
91 #define vmem_zalloc(sz, fl) spl_vmem_zalloc((sz), (fl), __func__, __LINE__)
94 extern void *spl_vmem_alloc(size_t sz, int fl, const char *func, int line)
96 extern void *spl_vmem_zalloc(size_t sz, int fl, const char *func, int line)
/freebsd-current/tests/sys/fs/fusefs/
H A Dlocks.cc219 struct flock fl; local
227 fl.l_start = 10;
228 fl.l_len = 1000;
229 fl.l_pid = 0;
230 fl.l_type = F_RDLCK;
231 fl.l_whence = SEEK_SET;
232 fl.l_sysid = 0;
233 ASSERT_NE(-1, fcntl(fd, F_GETLK, &fl)) << strerror(errno);
246 struct flock fl; local
277 fl
306 struct flock fl; local
364 struct flock fl; local
429 struct flock fl; local
495 struct flock fl; local
519 struct flock fl; local
545 struct flock fl; local
571 struct flock fl; local
597 struct flock fl; local
626 struct flock fl; local
654 struct flock fl; local
684 struct flock fl; local
712 struct flock fl; local
[all...]
/freebsd-current/tests/sys/cddl/zfs/bin/
H A Drandfree_file.c53 struct flock fl; local
88 fl.l_whence = SEEK_SET;
89 fl.l_start = start_off;
90 fl.l_len = off_len;
91 if (fcntl(fd, F_FREESP, &fl) != 0) {
/freebsd-current/contrib/llvm-project/lldb/source/Host/posix/
H A DLockFilePosix.cpp21 struct flock fl; local
23 fl.l_type = lock_type;
24 fl.l_whence = SEEK_SET;
25 fl.l_start = start;
26 fl.l_len = len;
27 fl.l_pid = ::getpid();
30 if (llvm::sys::RetryAfterSignal(-1, ::fcntl, fd, cmd, &fl) == -1)
/freebsd-current/usr.sbin/rpc.lockd/
H A Dlockd_lock.c154 enum partialfilelock_status lock_partialfilelock(struct file_lock *fl);
156 void send_granted(struct file_lock *fl, int opcode);
168 void deallocate_file_lock(struct file_lock *fl);
169 void fill_file_lock(struct file_lock *fl, const fhandle_t *fh,
187 void dump_filelock(const struct file_lock *fl);
188 struct file_lock * get_lock_matching_unlock(const struct file_lock *fl);
189 enum nfslock_status test_nfslock(const struct file_lock *fl,
191 enum nfslock_status lock_nfslock(struct file_lock *fl);
192 enum nfslock_status delete_nfslock(struct file_lock *fl);
193 enum nfslock_status unlock_nfslock(const struct file_lock *fl,
312 dump_filelock(const struct file_lock *fl) argument
425 fill_file_lock(struct file_lock *fl, const fhandle_t *fh, const bool_t exclusive, const int32_t svid, const u_int64_t offset, const u_int64_t len, const int state, const int status, const int flags, const int blocking) argument
447 deallocate_file_lock(struct file_lock *fl) argument
704 get_lock_matching_unlock(const struct file_lock *fl) argument
768 test_nfslock(const struct file_lock *fl, struct file_lock **conflicting_fl) argument
869 lock_nfslock(struct file_lock *fl) argument
903 delete_nfslock(struct file_lock *fl) argument
958 unlock_nfslock(const struct file_lock *fl, struct file_lock **released_lock, struct file_lock **left_lock, struct file_lock **right_lock) argument
1030 lock_hwlock(struct file_lock *fl) argument
1113 unlock_hwlock(const struct file_lock *fl) argument
1174 duplicate_block(struct file_lock *fl) argument
1204 add_blockingfilelock(struct file_lock *fl) argument
1232 remove_blockingfilelock(struct file_lock *fl) argument
1338 lock_partialfilelock(struct file_lock *fl) argument
1454 unlock_partialfilelock(const struct file_lock *fl) argument
1645 test_partialfilelock(const struct file_lock *fl, struct file_lock **conflicting_fl) argument
1690 do_test(struct file_lock *fl, struct file_lock **conflicting_fl) argument
1749 do_lock(struct file_lock *fl) argument
1800 do_unlock(struct file_lock *fl) argument
1973 struct file_lock fl; local
2165 send_granted(struct file_lock *fl, int opcode __unused) argument
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Drename15.sh40 fl=$newfs_flags
41 fl='-j'
42 [ $fl = "-U" -a `jot -r 1 0 1` -eq 1 ] && fl="-j"
43 echo "newfs $fl md$mdstart"
44 newfs $fl md$mdstart > /dev/null
H A Dexlock2.sh114 struct flock fl;
126 memset(&fl, 0, sizeof(fl));
127 fl.l_start = 0;
128 fl.l_len = 0;
129 fl.l_type = F_WRLCK;
130 fl.l_whence = SEEK_SET;
131 if (fcntl(fd, F_SETLK, &fl) < 0) {
H A Dnullfs22.sh103 struct flock fl;
109 memset(&fl, 0, sizeof(fl));
110 fl.l_start = pos;
111 fl.l_len = sizeof(val);
112 fl.l_type = F_WRLCK;
113 fl.l_whence = SEEK_SET;
115 while (fcntl(fd, F_SETLKW, &fl) < 0) {
145 fl.l_type = F_UNLCK;
146 if (fcntl(fd, F_SETLK, &fl) <
[all...]
H A Dfcntl.sh82 struct flock fl;
89 memset(&fl, 0, sizeof(fl));
90 fl.l_start = pos;
91 fl.l_len = sizeof(val);
92 fl.l_type = F_WRLCK;
93 fl.l_whence = SEEK_SET;
95 while (fcntl(fd, F_SETLK, &fl) < 0) {
124 fl.l_type = F_UNLCK;
125 if (fcntl(fd, F_SETLK, &fl) <
[all...]
/freebsd-current/usr.sbin/fifolog/lib/
H A Dlibfifolog.h43 off_t fifolog_reader_seek(const struct fifolog_reader *fl, time_t t0);
44 void fifolog_reader_process(struct fifolog_reader *fl, off_t from, fifolog_reader_render_t *func, void *priv, time_t end);
/freebsd-current/usr.bin/sort/
H A Dfile.h109 void file_list_init(struct file_list *fl, bool tmp);
110 void file_list_add(struct file_list *fl, const char *fn, bool allocate);
111 void file_list_populate(struct file_list *fl, int argc, char **argv, bool allocate);
112 void file_list_clean(struct file_list *fl);
115 void merge_files(struct file_list *fl, const char *fn_out);
118 int procfile(const char *fn, struct sort_list *list, struct file_list *fl);
H A Dfile.c205 file_list_init(struct file_list *fl, bool tmp) argument
208 if (fl) {
209 memset(fl, 0, sizeof(*fl));
210 fl->tmp = tmp;
218 file_list_add(struct file_list *fl, const char *fn, bool allocate) argument
221 if (fl && fn) {
222 if (fl->count >= fl->sz || (fl
236 file_list_populate(struct file_list *fl, int argc, char **argv, bool allocate) argument
252 file_list_clean(struct file_list *fl) argument
725 procfile(const char *fsrc, struct sort_list *list, struct file_list *fl) argument
1040 shrink_file_list(struct file_list *fl) argument
1085 merge_files(struct file_list *fl, const char *fn_out) argument
[all...]
/freebsd-current/contrib/ntp/scripts/calc_tickadj/
H A Dcalc_tickadj.in20 my ($fl) = `tickadj`;
21 if (defined $fl && $fl =~ /(?:KERNEL|PRESET)?\s*tick\s+=\s+(\d+)/) {
/freebsd-current/contrib/netbsd-tests/net/net/
H A Dt_tcp.c77 int ok, fl; local
121 fl = fcntl(srvr, F_GETFL, 0);
122 if (fl == -1)
125 ok = fcntl(srvr, F_SETFL, fl & ~O_NONBLOCK);
136 fl = fcntl(as, F_GETFL, 0);
137 if (fl == -1)
139 if (fl != (O_RDWR|O_NONBLOCK))
140 FAIL("fl 0x%x != 0x%x\n", fl, O_RDWR|O_NONBLOCK);
141 ok = fcntl(as, F_SETFL, fl
[all...]
/freebsd-current/contrib/nvi/ex/
H A Dex_move.c87 recno_t cnt, diff, fl, tl, mfl, mtl; local
117 fl = fm1.lno;
124 lmp->lno >= fl && lmp->lno <= tl) {
135 if (tl > fl) { /* Destination > source. */
139 if (db_get(sp, fl, DBG_FATAL, &p, &len))
148 lmp->lno == fl)
150 if (db_delete(sp, fl))
157 if (db_get(sp, fl, DBG_FATAL, &p, &len))
166 lmp->lno == fl)
168 ++fl;
[all...]
/freebsd-current/sys/geom/vinum/
H A Dgeom_vinum_subr.c570 struct gv_freelist *fl, *fl2; local
606 LIST_FOREACH(fl, &d->freelist, freelist) {
607 if (fl->size < s->size)
609 s->size = fl->size;
610 s->drive_offset = fl->offset;
611 fl2 = fl;
627 LIST_FOREACH(fl, &d->freelist, freelist) {
628 if (fl->size < s->size)
632 s->drive_offset = fl->offset;
633 fl2 = fl;
761 struct gv_freelist *fl, *fl2; local
818 struct gv_freelist *fl, *fl2; local
1088 struct gv_freelist *fl, *fl2; local
[all...]
/freebsd-current/usr.bin/lsvfs/
H A Dlsvfs.c25 } fl[] = { variable in typeref:struct:flaglist
84 static char buf[sizeof(struct flaglist) * sizeof(fl)];
88 for (i = 0; i < (int)nitems(fl); i++) {
89 if ((flags & fl[i].flag) != 0) {
90 strlcat(buf, fl[i].str, sizeof(buf));
/freebsd-current/contrib/capsicum-test/
H A Dfcntl.cc197 struct flock fl; local
198 memset(&fl, 0, sizeof(fl));
199 fl.l_type = F_RDLCK;
200 fl.l_whence = SEEK_SET;
201 fl.l_start = 0;
202 fl.l_len = 1;
203 EXPECT_EQ(0, CHECK_FCNTL(CAP_FLOCK, caps, F_GETLK, (long)&fl));
224 struct flock fl; local
225 memset(&fl,
[all...]
/freebsd-current/sys/nlm/
H A Dnlm_advlock.c77 struct vnode *vp, int op, struct flock *fl, int flags,
81 struct vnode *vp, int op, struct flock *fl, int flags,
85 struct vnode *vp, int op, struct flock *fl, int flags,
90 static int nlm_init_lock(struct flock *fl, int flags, int svid,
194 nlm_advlock_internal(struct vnode *vp, void *id, int op, struct flock *fl, argument
270 KASSERT(fl->l_start == 0 && fl->l_len == 0,
286 svid = fl->l_pid;
294 && fl->l_type == F_WRLCK) {
307 vp, F_SETLK, fl, flag
402 nlm_set_creds_for_lock(struct thread *td, struct flock *fl) argument
451 nlm_reclaim_free_lock(struct vnode *vp, struct flock *fl, void *arg) argument
488 nlm_client_recover_lock(struct vnode *vp, struct flock *fl, void *arg) argument
695 nlm_record_lock(struct vnode *vp, int op, struct flock *fl, int svid, int sysid, off_t size) argument
758 nlm_setlock(struct nlm_host *host, struct rpc_callextra *ext, rpcvers_t vers, struct timeval *timo, int retries, struct vnode *vp, int op, struct flock *fl, int flags, int svid, size_t fhlen, void *fh, off_t size, bool_t reclaim) argument
956 nlm_clearlock(struct nlm_host *host, struct rpc_callextra *ext, rpcvers_t vers, struct timeval *timo, int retries, struct vnode *vp, int op, struct flock *fl, int flags, int svid, size_t fhlen, void *fh, off_t size) argument
1031 nlm_getlock(struct nlm_host *host, struct rpc_callextra *ext, rpcvers_t vers, struct timeval *timo, int retries, struct vnode *vp, int op, struct flock *fl, int flags, int svid, size_t fhlen, void *fh, off_t size) argument
1220 nlm_init_lock(struct flock *fl, int flags, int svid, rpcvers_t vers, size_t fhlen, void *fh, off_t size, struct nlm4_lock *lock, char oh_space[32]) argument
[all...]

Completed in 1318 milliseconds

12345