/freebsd-12-stable/lib/libc/gen/ |
H A D | lockf.c | 46 struct flock fl; local 49 fl.l_start = 0; 50 fl.l_len = size; 51 fl.l_whence = SEEK_CUR; 56 fl.l_type = F_UNLCK; 60 fl.l_type = F_WRLCK; 64 fl.l_type = F_WRLCK; 67 fl.l_type = F_WRLCK; 69 __libc_interposing[INTERPOS_fcntl])(filedes, F_GETLK, &fl) 72 if (fl [all...] |
/freebsd-12-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-12-stable/crypto/openssh/openbsd-compat/ |
H A D | bsd-flock.c | 49 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-12-stable/sys/contrib/zstd/contrib/seekable_format/ |
H A D | zstdseek_compress.c | 64 size_t ZSTD_seekable_frameLog_allocVec(ZSTD_frameLog* fl) argument 68 fl->entries = (framelogEntry_t*)malloc( 70 if (fl->entries == NULL) return ERROR(memory_allocation); 71 fl->capacity = FRAMELOG_STARTING_CAPACITY; 76 size_t ZSTD_seekable_frameLog_freeVec(ZSTD_frameLog* fl) argument 78 if (fl != NULL) free(fl->entries); 84 ZSTD_frameLog* fl = malloc(sizeof(ZSTD_frameLog)); local 85 if (fl == NULL) return NULL; 87 if (ZSTD_isError(ZSTD_seekable_frameLog_allocVec(fl))) { 100 ZSTD_seekable_freeFrameLog(ZSTD_frameLog* fl) argument 169 ZSTD_seekable_logFrame(ZSTD_frameLog* fl, unsigned compressedSize, unsigned decompressedSize, unsigned checksum) argument 268 ZSTD_seekable_seekTableSize(const ZSTD_frameLog* fl) argument 278 ZSTD_stwrite32(ZSTD_frameLog* fl, ZSTD_outBuffer* output, U32 const value, U32 const offset) argument 297 ZSTD_seekable_writeSeekTable(ZSTD_frameLog* fl, ZSTD_outBuffer* output) argument [all...] |
/freebsd-12-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/ |
H A D | d_typename_as_var.c | 13 } fl; member in struct:foo
|
/freebsd-12-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-12-stable/tests/sys/fs/fusefs/ |
H A D | locks.cc | 221 struct flock fl; local 229 fl.l_start = 10; 230 fl.l_len = 1000; 231 fl.l_pid = getpid(); 232 fl.l_type = F_RDLCK; 233 fl.l_whence = SEEK_SET; 234 fl.l_sysid = 0; 235 ASSERT_NE(-1, fcntl(fd, F_GETLK, &fl)) << strerror(errno); 248 struct flock fl; local 274 fl 291 struct flock fl; local 345 struct flock fl; local 369 struct flock fl; local 395 struct flock fl; local 421 struct flock fl; local 447 struct flock fl; local 477 struct flock fl; local 505 struct flock fl; local [all...] |
/freebsd-12-stable/tests/sys/cddl/zfs/bin/ |
H A D | randfree_file.c | 55 struct flock fl; local 90 fl.l_whence = SEEK_SET; 91 fl.l_start = start_off; 92 fl.l_len = off_len; 93 if (fcntl(fd, F_FREESP, &fl) != 0) {
|
/freebsd-12-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-12-stable/usr.sbin/rpc.lockd/ |
H A D | lockd_lock.c | 156 enum partialfilelock_status lock_partialfilelock(struct file_lock *fl); 158 void send_granted(struct file_lock *fl, int opcode); 170 void deallocate_file_lock(struct file_lock *fl); 171 void fill_file_lock(struct file_lock *fl, const fhandle_t *fh, 189 void dump_filelock(const struct file_lock *fl); 190 struct file_lock * get_lock_matching_unlock(const struct file_lock *fl); 191 enum nfslock_status test_nfslock(const struct file_lock *fl, 193 enum nfslock_status lock_nfslock(struct file_lock *fl); 194 enum nfslock_status delete_nfslock(struct file_lock *fl); 195 enum nfslock_status unlock_nfslock(const struct file_lock *fl, 319 dump_filelock(const struct file_lock *fl) argument 445 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 467 deallocate_file_lock(struct file_lock *fl) argument 726 get_lock_matching_unlock(const struct file_lock *fl) argument 790 test_nfslock(const struct file_lock *fl, struct file_lock **conflicting_fl) argument 891 lock_nfslock(struct file_lock *fl) argument 925 delete_nfslock(struct file_lock *fl) argument 1055 lock_hwlock(struct file_lock *fl) argument 1138 unlock_hwlock(const struct file_lock *fl) argument 1200 duplicate_block(struct file_lock *fl) argument 1230 add_blockingfilelock(struct file_lock *fl) argument 1258 remove_blockingfilelock(struct file_lock *fl) argument 1364 lock_partialfilelock(struct file_lock *fl) argument 1480 unlock_partialfilelock(const struct file_lock *fl) argument 1671 test_partialfilelock(const struct file_lock *fl, struct file_lock **conflicting_fl) argument 1716 do_test(struct file_lock *fl, struct file_lock **conflicting_fl) argument 1775 do_lock(struct file_lock *fl) argument 1826 do_unlock(struct file_lock *fl) argument 1999 struct file_lock fl; local [all...] |
/freebsd-12-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-12-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-12-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 834 procfile(const char *fsrc, struct sort_list *list, struct file_list *fl) argument 1151 shrink_file_list(struct file_list *fl) argument 1196 merge_files(struct file_list *fl, const char *fn_out) argument [all...] |
/freebsd-12-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-12-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-12-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-12-stable/sys/geom/vinum/ |
H A D | geom_vinum_subr.c | 572 struct gv_freelist *fl, *fl2; local 608 LIST_FOREACH(fl, &d->freelist, freelist) { 609 if (fl->size < s->size) 611 s->size = fl->size; 612 s->drive_offset = fl->offset; 613 fl2 = fl; 629 LIST_FOREACH(fl, &d->freelist, freelist) { 630 if (fl->size < s->size) 634 s->drive_offset = fl->offset; 635 fl2 = fl; 764 struct gv_freelist *fl, *fl2; local 822 struct gv_freelist *fl, *fl2; local 1093 struct gv_freelist *fl, *fl2; local [all...] |
/freebsd-12-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-12-stable/sys/nfs/ |
H A D | nfs_lock.c | 243 struct flock *fl; local 252 fl = ap->a_fl; 265 if (fl->l_whence != SEEK_END) { 266 if ((fl->l_whence != SEEK_CUR && fl->l_whence != SEEK_SET) || 267 fl->l_start < 0 || 268 (fl->l_len < 0 && 269 (fl->l_start == 0 || fl->l_start + fl [all...] |
/freebsd-12-stable/sys/nlm/ |
H A D | nlm_advlock.c | 80 struct vnode *vp, int op, struct flock *fl, int flags, 84 struct vnode *vp, int op, struct flock *fl, int flags, 88 struct vnode *vp, int op, struct flock *fl, int flags, 93 static int nlm_init_lock(struct flock *fl, int flags, int svid, 197 nlm_advlock_internal(struct vnode *vp, void *id, int op, struct flock *fl, argument 273 KASSERT(fl->l_start == 0 && fl->l_len == 0, 289 svid = fl->l_pid; 297 && fl->l_type == F_WRLCK) { 310 vp, F_SETLK, fl, flag 405 nlm_set_creds_for_lock(struct thread *td, struct flock *fl) argument 454 nlm_reclaim_free_lock(struct vnode *vp, struct flock *fl, void *arg) argument 491 nlm_client_recover_lock(struct vnode *vp, struct flock *fl, void *arg) argument 698 nlm_record_lock(struct vnode *vp, int op, struct flock *fl, int svid, int sysid, off_t size) argument 761 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 960 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 1035 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 1224 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-12-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-12-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-12-stable/sys/vm/ |
H A D | vm_phys.c | 161 static void vm_phys_split_pages(vm_page_t m, int oind, struct vm_freelist *fl, 241 struct vm_freelist *fl; local 264 fl = vm_phys_free_queues[dom][flind][pind]; 266 fl[oind].lcnt); 355 vm_freelist_add(struct vm_freelist *fl, vm_page_t m, int order, int tail) argument 360 TAILQ_INSERT_TAIL(&fl[order].pl, m, listq); 362 TAILQ_INSERT_HEAD(&fl[order].pl, m, listq); 363 fl[order].lcnt++; 367 vm_freelist_rem(struct vm_freelist *fl, vm_page_t m, int order) argument 370 TAILQ_REMOVE(&fl[orde 471 struct vm_freelist *fl; local 663 vm_phys_split_pages(vm_page_t m, int oind, struct vm_freelist *fl, int order, int tail) argument 691 vm_phys_enq_range(vm_page_t m, u_int npages, struct vm_freelist *fl, int tail) argument 730 struct vm_freelist *alt, *fl; local 825 struct vm_freelist *alt, *fl; local 1087 struct vm_freelist *fl; local 1239 struct vm_freelist *fl; local 1351 struct vm_freelist *fl; local 1439 struct vm_freelist *fl; local [all...] |