/freebsd-11-stable/lib/libc/gen/ |
H A D | lockf.c | 44 struct flock fl; local 47 fl.l_start = 0; 48 fl.l_len = size; 49 fl.l_whence = SEEK_CUR; 54 fl.l_type = F_UNLCK; 58 fl.l_type = F_WRLCK; 62 fl.l_type = F_WRLCK; 65 fl.l_type = F_WRLCK; 67 __libc_interposing[INTERPOS_fcntl])(filedes, F_GETLK, &fl) 70 if (fl [all...] |
/freebsd-11-stable/tests/sys/mac/portacl/ |
H A D | nobody_test.sh | 18 bind_test fl fl uid nobody tcp 77 20 bind_test fl fl uid nobody udp 77 23 bind_test fl fl gid nobody tcp 77 25 bind_test fl fl gid nobody udp 77 30 bind_test fl fl ui [all...] |
H A D | root_test.sh | 29 bind_test fl ok uid root tcp 77 31 bind_test fl ok uid root udp 77 34 bind_test fl ok gid root tcp 77 36 bind_test fl ok gid root udp 77 43 bind_test fl ok uid root tcp 77 44 bind_test fl ok uid root tcp 7777 45 bind_test fl ok uid root udp 77 46 bind_test fl ok uid root udp 7777 48 bind_test fl ok gid root tcp 77 49 bind_test fl o [all...] |
/freebsd-11-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/ |
H A D | d_typename_as_var.c | 13 } fl; member in struct:foo
|
/freebsd-11-stable/tests/sys/file/ |
H A D | flock_helper.c | 189 struct flock fl; local 196 fl.l_start = 0; 197 fl.l_len = 0; 198 fl.l_type = F_WRLCK; 199 fl.l_whence = SEEK_SET; 211 if (fcntl(fd, F_SETLK, &fl) < 0) 231 res = fcntl(fd, F_SETLK, &fl); 260 struct flock fl; local 267 fl.l_start = 0; 268 fl 330 struct flock fl; local 416 struct flock fl; local 502 struct flock fl; local 604 struct flock fl; local 676 struct flock fl; local 753 struct flock fl; local 825 struct flock fl; local 893 struct flock fl; local 978 struct flock fl; local 1056 struct flock fl; local 1145 struct flock fl; local 1343 struct flock fl; local [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/posix/ |
H A D | LockFilePosix.cpp | 23 struct flock fl; local 25 fl.l_type = lock_type; 26 fl.l_whence = SEEK_SET; 27 fl.l_start = start; 28 fl.l_len = len; 29 fl.l_pid = ::getpid(); 32 if (llvm::sys::RetryAfterSignal(-1, ::fcntl, fd, cmd, &fl) == -1)
|
/freebsd-11-stable/usr.sbin/rpc.lockd/ |
H A D | lockd_lock.c | 154 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, 317 dump_filelock(const struct file_lock *fl) argument 443 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 465 deallocate_file_lock(struct file_lock *fl) argument 724 get_lock_matching_unlock(const struct file_lock *fl) argument 788 test_nfslock(const struct file_lock *fl, struct file_lock **conflicting_fl) argument 889 lock_nfslock(struct file_lock *fl) argument 923 delete_nfslock(struct file_lock *fl) argument 1053 lock_hwlock(struct file_lock *fl) argument 1136 unlock_hwlock(const struct file_lock *fl) argument 1198 duplicate_block(struct file_lock *fl) argument 1228 add_blockingfilelock(struct file_lock *fl) argument 1256 remove_blockingfilelock(struct file_lock *fl) argument 1362 lock_partialfilelock(struct file_lock *fl) argument 1478 unlock_partialfilelock(const struct file_lock *fl) argument 1669 test_partialfilelock(const struct file_lock *fl, struct file_lock **conflicting_fl) argument 1714 do_test(struct file_lock *fl, struct file_lock **conflicting_fl) argument 1773 do_lock(struct file_lock *fl) argument 1824 do_unlock(struct file_lock *fl) argument 1997 struct file_lock fl; local [all...] |
/freebsd-11-stable/sys/compat/cloudabi/ |
H A D | cloudabi_futex.c | 295 struct futex_lock *fl; local 311 fl = fc->fc_lock; 312 if (!futex_address_match(&fl->fl_address, &fa_lock)) { 342 struct futex_lock *fl; local 345 fl = fc->fc_lock; 352 futex_lock_release(fl); 370 futex_lock_assert(const struct futex_lock *fl) argument 378 KASSERT((fl->fl_owner == LOCK_UNMANAGED) == 379 (futex_queue_count(&fl->fl_readers) == 0 && 380 futex_queue_count(&fl 405 struct futex_lock *fl; local 428 futex_lock_rdlock(struct futex_lock *fl, struct thread *td, cloudabi_lock_t *lock, cloudabi_clockid_t clock_id, cloudabi_timestamp_t timeout, cloudabi_timestamp_t precision, bool abstime) argument 453 futex_lock_release(struct futex_lock *fl) argument 469 futex_lock_unmanage(struct futex_lock *fl, cloudabi_lock_t *lock) argument 498 futex_lock_set_owner(struct futex_lock *fl, cloudabi_lock_t lock) argument 517 futex_lock_unlock(struct futex_lock *fl, struct thread *td, cloudabi_lock_t *lock) argument 533 futex_lock_update_owner(struct futex_lock *fl, cloudabi_lock_t *address) argument 548 futex_lock_tryrdlock(struct futex_lock *fl, cloudabi_lock_t *address) argument 598 futex_lock_trywrlock(struct futex_lock *fl, cloudabi_lock_t *address, cloudabi_tid_t tid, bool force_kernel_managed) argument 659 futex_lock_wake_up_next(struct futex_lock *fl, cloudabi_lock_t *lock) argument 708 futex_lock_wrlock(struct futex_lock *fl, struct thread *td, cloudabi_lock_t *lock, cloudabi_clockid_t clock_id, cloudabi_timestamp_t timeout, cloudabi_timestamp_t precision, bool abstime, struct futex_queue *donated) argument 811 futex_queue_sleep(struct futex_queue *fq, struct futex_lock *fl, struct futex_waiter *fw, struct thread *td, cloudabi_clockid_t clock_id, cloudabi_timestamp_t timeout, cloudabi_timestamp_t precision, bool abstime) argument 984 struct futex_lock *fl; local 1056 struct futex_lock *fl; local 1075 struct futex_lock *fl; local 1100 struct futex_lock *fl; local 1156 struct futex_lock *fl; local [all...] |
/freebsd-11-stable/usr.sbin/fifolog/lib/ |
H A D | libfifolog.h | 45 off_t fifolog_reader_seek(const struct fifolog_reader *fl, time_t t0); 46 void fifolog_reader_process(struct fifolog_reader *fl, off_t from, fifolog_reader_render_t *func, void *priv, time_t end);
|
/freebsd-11-stable/usr.bin/sort/ |
H A D | file.h | 110 void file_list_init(struct file_list *fl, bool tmp); 111 void file_list_add(struct file_list *fl, const char *fn, bool allocate); 112 void file_list_populate(struct file_list *fl, int argc, char **argv, bool allocate); 113 void file_list_clean(struct file_list *fl); 116 void merge_files(struct file_list *fl, const char *fn_out); 119 int procfile(const char *fn, struct sort_list *list, struct file_list *fl);
|
H A D | file.c | 215 file_list_init(struct file_list *fl, bool tmp) argument 218 if (fl) { 219 fl->count = 0; 220 fl->sz = 0; 221 fl->fns = NULL; 222 fl->tmp = tmp; 230 file_list_add(struct file_list *fl, const char *fn, bool allocate) argument 233 if (fl && fn) { 234 if (fl->count >= fl 248 file_list_populate(struct file_list *fl, int argc, char **argv, bool allocate) argument 264 file_list_clean(struct file_list *fl) argument 835 procfile(const char *fsrc, struct sort_list *list, struct file_list *fl) argument 1152 shrink_file_list(struct file_list *fl) argument 1197 merge_files(struct file_list *fl, const char *fn_out) argument [all...] |
/freebsd-11-stable/contrib/ntp/scripts/calc_tickadj/ |
H A D | calc_tickadj.in | 20 my ($fl) = `tickadj`; 21 if (defined $fl && $fl =~ /(?:KERNEL|PRESET)?\s*tick\s+=\s+(\d+)/) {
|
/freebsd-11-stable/contrib/nvi/ex/ |
H A D | ex_move.c | 91 recno_t cnt, diff, fl, tl, mfl, mtl; local 121 fl = fm1.lno; 128 lmp->lno >= fl && lmp->lno <= tl) { 139 if (tl > fl) { /* Destination > source. */ 143 if (db_get(sp, fl, DBG_FATAL, &p, &len)) 152 lmp->lno == fl) 154 if (db_delete(sp, fl)) 161 if (db_get(sp, fl, DBG_FATAL, &p, &len)) 170 lmp->lno == fl) 172 ++fl; [all...] |
/freebsd-11-stable/contrib/netbsd-tests/net/net/ |
H A D | t_tcp.c | 77 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-11-stable/sys/geom/vinum/ |
H A D | geom_vinum_subr.c | 570 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; 762 struct gv_freelist *fl, *fl2; local 820 struct gv_freelist *fl, *fl2; local 1091 struct gv_freelist *fl, *fl2; local [all...] |
/freebsd-11-stable/usr.bin/lsvfs/ |
H A D | lsvfs.c | 28 } fl[] = { variable in typeref:struct:flaglist 85 static char buf[sizeof(struct flaglist) * sizeof(fl)]; 89 for (i = 0; i < (int)nitems(fl); i++) 90 if (flags & fl[i].flag) { 91 strlcat(buf, fl[i].str, sizeof(buf));
|
/freebsd-11-stable/sys/nfs/ |
H A D | nfs_lock.c | 241 struct flock *fl; local 250 fl = ap->a_fl; 263 if (fl->l_whence != SEEK_END) { 264 if ((fl->l_whence != SEEK_CUR && fl->l_whence != SEEK_SET) || 265 fl->l_start < 0 || 266 (fl->l_len < 0 && 267 (fl->l_start == 0 || fl->l_start + fl [all...] |
/freebsd-11-stable/sys/dev/cxgbe/ |
H A D | t4_sge.c | 1163 snprintf(name, sizeof(name), "%s rxq%d-fl", 1165 init_fl(sc, &rxq->fl, vi->qsize_rxq / 8, maxp, name); 1186 snprintf(name, sizeof(name), "%s ofld_rxq%d-fl", 1188 init_fl(sc, &ofld_rxq->fl, vi->qsize_rxq / 8, maxp, name); 1374 * Interrupt handler for iq+fl queues. 1434 ("%s: called for iq %p with fl (iq->flags 0x%x)", __func__, iq, 1551 * Deals with interrupts on an iq+fl queue. 1557 struct sge_fl *fl; local 1574 fl = &rxq->fl; 1718 cl_has_metadata(struct sge_fl *fl, struct cluster_layout *cll) argument 1729 cl_metadata(struct adapter *sc, struct sge_fl *fl, struct cluster_layout *cll, caddr_t cl) argument 1762 get_scatter_segment(struct adapter *sc, struct sge_fl *fl, int fr_offset, int remaining) argument 1872 get_fl_payload(struct adapter *sc, struct sge_fl *fl, uint32_t len_newbuf) argument 2126 struct sge_fl *fl; local 2709 init_fl(struct adapter *sc, struct sge_fl *fl, int qsize, int maxp, char *name) argument 2795 alloc_iq_fl(struct vi_info *vi, struct sge_iq *iq, struct sge_fl *fl, int intr_idx, int cong) argument 2988 free_iq_fl(struct vi_info *vi, struct sge_iq *iq, struct sge_fl *fl) argument 3053 add_fl_sysctls(struct adapter *sc, struct sysctl_ctx_list *ctx, struct sysctl_oid *oid, struct sge_fl *fl) argument 3903 ring_fl_db(struct adapter *sc, struct sge_fl *fl) argument 3927 refill_fl(struct adapter *sc, struct sge_fl *fl, int n) argument 4054 struct sge_fl *fl, *fl_temp; local 4072 alloc_fl_sdesc(struct sge_fl *fl) argument 4082 free_fl_sdesc(struct adapter *sc, struct sge_fl *fl) argument 4976 find_best_refill_source(struct adapter *sc, struct sge_fl *fl, int maxp) argument 5107 find_safe_refill_source(struct adapter *sc, struct sge_fl *fl) argument 5151 add_fl_to_sfl(struct adapter *sc, struct sge_fl *fl) argument [all...] |
/freebsd-11-stable/sys/nlm/ |
H A D | nlm_advlock.c | 78 struct vnode *vp, int op, struct flock *fl, int flags, 82 struct vnode *vp, int op, struct flock *fl, int flags, 86 struct vnode *vp, int op, struct flock *fl, int flags, 91 static int nlm_init_lock(struct flock *fl, int flags, int svid, 195 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 957 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 1032 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 1221 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...] |
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | tls.h | 74 # define DANEMODE(fl) ((fl) & 0x3) 94 # define TLSA_SET_FL(dane_tlsa, fl) (dane_tlsa)->dane_tlsa_flags |= (fl) 95 # define TLSA_CLR_FL(dane_tlsa, fl) (dane_tlsa)->dane_tlsa_flags &= ~(fl) 96 # define TLSA_IS_FL(dane_tlsa, fl) ((dane_tlsa)->dane_tlsa_flags & (fl)) 97 # define TLSA_STORE_FL(fl) ((fl) > [all...] |
/freebsd-11-stable/contrib/ipfilter/tools/ |
H A D | ipf.c | 353 int fl = 0, rem; local 359 fl = 0; 361 fl = 1; 363 fl = atoi(arg); 364 rem = fl; 383 fl = -1; 385 fl = obj.ipfo_retval; 388 if (ioctl(fd, SIOCIPFFL, &fl) == -1) { 398 printf("%d state entries removed\n", fl); 403 fl [all...] |
/freebsd-11-stable/usr.sbin/fifolog/fifolog_reader/ |
H A D | fifolog_reader.c | 101 struct fifolog_reader *fl; local 160 fl = fifolog_reader_open(argv[0]); 170 o = fifolog_reader_seek(fl, opt_B); 171 fifolog_reader_process(fl, o, Render, NULL, opt_E);
|
/freebsd-11-stable/sys/vm/ |
H A D | vm_phys.c | 178 static void vm_phys_split_pages(vm_page_t m, int oind, struct vm_freelist *fl, 363 struct vm_freelist *fl; local 386 fl = vm_phys_free_queues[dom][flind][pind]; 388 fl[oind].lcnt); 477 vm_freelist_add(struct vm_freelist *fl, vm_page_t m, int order, int tail) argument 482 TAILQ_INSERT_TAIL(&fl[order].pl, m, plinks.q); 484 TAILQ_INSERT_HEAD(&fl[order].pl, m, plinks.q); 485 fl[order].lcnt++; 489 vm_freelist_rem(struct vm_freelist *fl, vm_page_t m, int order) argument 492 TAILQ_REMOVE(&fl[orde 599 struct vm_freelist *fl; local 718 vm_phys_split_pages(vm_page_t m, int oind, struct vm_freelist *fl, int order) argument 803 struct vm_freelist *fl; local 1048 struct vm_freelist *fl; local 1198 struct vm_freelist *fl; local 1259 static struct vm_freelist *fl; local 1368 struct vm_freelist *fl; local 1456 struct vm_freelist *fl; local [all...] |
/freebsd-11-stable/sys/net/ |
H A D | iflib.c | 828 iflib_fl_t fl = &rxq->ifr_fl[0]; local 834 map = fl->ifl_sds.ifsd_map; 844 void *addr = PNMB(na, slot, &fl->ifl_bus_addrs[tmp_pidx]); 853 fl->ifl_vm_addrs[tmp_pidx] = addr; 855 netmap_load_map(na, fl->ifl_ifdi->idi_tag, map[nic_i], addr); 858 netmap_reload_map(na, fl->ifl_ifdi->idi_tag, map[nic_i], addr); 863 fl->ifl_rxd_idxs[tmp_pidx] = nic_i = nm_next(nic_i, lim); 876 bus_dmamap_sync(fl->ifl_ifdi->idi_tag, map[nic_i_dma], 886 bus_dmamap_sync(fl->ifl_ifdi->idi_tag, fl 1059 iflib_fl_t fl = rxq->ifr_fl; local 1235 iflib_fl_t fl; local 1710 iflib_fl_t fl; local 1824 _iflib_fl_refill(if_ctx_t ctx, iflib_fl_t fl, int count) argument 1967 __iflib_fl_refill_lt(if_ctx_t ctx, iflib_fl_t fl, int max) argument 1994 iflib_fl_bufs_free(iflib_fl_t fl) argument 2047 iflib_fl_setup(iflib_fl_t fl) argument 2091 iflib_fl_t fl; local 2192 iflib_fl_t fl; local 2287 iflib_fl_t fl; local 2334 calc_next_rxd(iflib_fl_t fl, int cidx) argument 2353 prefetch_pkts(iflib_fl_t fl, int cidx) argument 2380 iflib_fl_t fl; local 2576 iflib_fl_t fl; local 4543 iflib_fl_t fl; local 4863 iflib_fl_t fl = NULL; local 5947 iflib_fl_t fl; local [all...] |
/freebsd-11-stable/contrib/netbsd-tests/kernel/ |
H A D | t_lockf.c | 85 struct flock fl; local 87 fl.l_start = random_uint32() % filesize; 88 fl.l_len = random_uint32() % filesize; 91 fl.l_type = F_RDLCK; 94 fl.l_type = F_WRLCK; 97 fl.l_type = F_UNLCK; 100 fl.l_whence = SEEK_SET; 102 (void)fcntl(fd, F_SETLKW, &fl);
|