HomeSort by: relevance | last modified time | path
    Searched refs:fl (Results 1 - 25 of 89) sorted by relevancy

1 2 3 4

  /src/lib/libc/gen/
lockf.c 50 struct flock fl; local in function:__weak_alias
53 fl.l_start = 0;
54 fl.l_len = size;
55 fl.l_whence = SEEK_CUR;
60 fl.l_type = F_UNLCK;
64 fl.l_type = F_WRLCK;
68 fl.l_type = F_WRLCK;
71 fl.l_type = F_WRLCK;
72 if (fcntl(filedes, F_GETLK, &fl) == -1)
74 if (fl.l_type == F_UNLCK || fl.l_pid == getpid()
    [all...]
  /src/tools/compat/
flock.c 47 struct flock fl = {0}; local in function:flock
51 fl.l_type = F_WRLCK;
55 fl.l_type = F_RDLCK;
59 fl.l_type = F_UNLCK;
67 fl.l_whence = SEEK_SET;
68 rc = fcntl(fd, op & LOCK_NB ? F_SETLK : F_SETLKW, &fl);
  /src/libexec/ld.elf_so/
diagassert.c 6 __diagassert13(const char *fn, int fl, const char *fu, const char *m)
  /src/usr.sbin/rpc.lockd/
lockd_lock.c 148 struct file_lock *fl; local in function:lock_lookup
150 LIST_FOREACH(fl, &lcklst_head, lcklst) {
152 newfl->client.svid != fl->client.svid)
155 strcmp(newfl->client_name, fl->client_name) != 0)
158 fhcmp(&newfl->filehandle, &fl->filehandle) != 0)
164 return fl;
177 struct file_lock *fl; local in function:testlock
188 LIST_FOREACH(fl, &lcklst_head, lcklst) {
189 if (fl->status != LKST_LOCKED)
191 if (fhcmp(&fl->filehandle, &filehandle) != 0
217 struct file_lock *fl, *newfl; local in function:getlock
361 struct file_lock *fl; local in function:unlock
438 struct file_lock *fl; local in function:sigchild_handler
690 struct file_lock *fl; local in function:do_unlock
814 struct file_lock *fl, *next_fl; local in function:notify
    [all...]
  /src/sys/lib/libsa/
alloc.c 125 * unallocated: depends on packing of struct fl
130 * unallocated: depends on packing of struct fl
134 * be at least 'sizeof(struct fl)', so that blocks can be used as structures
140 struct fl { struct
142 struct fl *next;
166 struct fl **f = &freelist, **bestf = NULL;
196 /* make _sure_ the region can hold a struct fl. */
197 if (size < ALIGN(sizeof (struct fl *)))
198 size = ALIGN(sizeof (struct fl *));
222 struct fl *f
    [all...]
  /src/sys/uvm/
uvm_pgflcache.c 113 uvm_pgflcache_fill(struct uvm_cpu *ucpu, int fl, int b, int c)
126 if (__predict_false((pc = ucpu->pgflcache[fl]) == NULL)) {
132 pgb = uvm.page_free[fl].pgfl_buckets[b];
166 uvm_pgflcache_spill(struct uvm_cpu *ucpu, int fl, int c)
176 pc = ucpu->pgflcache[fl];
178 pgfl = &uvm.page_free[fl];
204 uvm_pgflcache_alloc(struct uvm_cpu *ucpu, int fl, int c)
211 if (__predict_false((pc = ucpu->pgflcache[fl]) == NULL)) {
223 KASSERT(uvm_page_get_freelist(pg) == fl);
241 int fl, c local in function:uvm_pgflcache_free
296 int fl, color, s; local in function:uvm_pgflcache_fini_cpu
340 int fl; local in function:uvm_pgflcache_resume
    [all...]
uvm_page.h 449 unsigned fl = __SHIFTOUT(pg->phys_addr, UVM_PHYSADDR_FREELIST); local in function:uvm_page_get_freelist
450 KASSERT(fl == (unsigned)uvm_page_lookup_freelist(pg));
451 return fl;
461 uvm_page_set_freelist(struct vm_page *pg, unsigned fl)
463 KASSERT(fl < 32);
465 pg->phys_addr |= __SHIFTIN(fl, UVM_PHYSADDR_FREELIST);
  /src/sys/fs/nfs/common/
nfs_lock.c 243 struct flock *fl; local in function:nfs_dolock
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->l_len < 0))
    [all...]
  /src/sys/uvm/pmap/
pmap_devmap.h 54 #define DEVMAP_ENTRY_FLAGS(va, pa, sz, fl) \
60 .pd_flags = (fl), \
  /src/sys/fs/nfs/nlm/
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,
272 KASSERT(fl->l_start == 0 && fl->l_len == 0,
288 svid = fl->l_pid;
296 && fl->l_type == F_WRLCK) {
309 vp, F_SETLK, fl, flags & ~F_WAIT
    [all...]
  /src/usr.sbin/sysinst/arch/i386/
md.c 543 int i, names, fl, ofl; local in function:md_check_mbr
580 fl = 0;
586 fl |= ACTIVE_FOUND;
588 fl |= NETBSD_ACTIVE;
604 fl |= MBR_BS_EXTLBA;
606 fl |= NETBSD_NAMED;
608 fl |= ACTIVE_NAMED;
613 if (!(fl & ACTIVE_FOUND))
614 fl |= NETBSD_ACTIVE;
615 if (fl & NETBSD_NAMED && fl & NETBSD_ACTIVE
    [all...]
  /src/games/trek/
warp.c 52 ** only in the flag 'fl'. It is also used for automatic
53 ** emergency override mode, when 'fl' is < 0 and 'c' and 'd'
54 ** are the course and distance to be moved. If 'fl' >= 0,
65 dowarp(int fl)
72 warp(fl, c, d);
76 warp(int fl, int c, double d)
135 Move.time = move(fl, course, time, speed);
klmove.c 52 ** The flag `fl' is zero before an attack, one after an attack,
68 klmove(int fl)
83 printf("klmove: fl = %d, Etc.nkling = %d\n", fl, Etc.nkling);
88 if (fl)
90 if (ranf(i) >= Param.moveprob[2 * Move.newquad + fl])
94 motion *= k->avgdist * Param.movefac[2 * Move.newquad + fl];
  /src/sys/kern/
vfs_lockf.c 764 lf_getlock(struct lockf *lock, struct flock *fl)
774 fl->l_type = block->lf_type;
775 fl->l_whence = SEEK_SET;
776 fl->l_start = block->lf_start;
778 fl->l_len = 0;
780 fl->l_len = block->lf_end - block->lf_start + 1;
782 fl->l_pid = ((struct proc *)block->lf_id)->p_pid;
784 fl->l_pid = -1;
786 fl->l_type = F_UNLCK;
797 struct flock *fl = ap->a_fl local in function:lf_advlock
    [all...]
sys_descrip.c 237 do_fcntl_lock(int fd, int cmd, struct flock *fl)
263 switch (fl->l_type) {
274 error = (*fo_advlock)(fp, p, F_SETLK, fl, flg);
287 error = (*fo_advlock)(fp, p, F_SETLK, fl, flg);
291 error = (*fo_advlock)(fp, p, F_UNLCK, fl, F_POSIX);
301 if (fl->l_type != F_RDLCK &&
302 fl->l_type != F_WRLCK &&
303 fl->l_type != F_UNLCK) {
307 error = (*fo_advlock)(fp, p, F_GETLK, fl, F_POSIX);
336 struct flock fl; local in function:sys_fcntl
    [all...]
  /src/tests/net/net/
t_tcp.c 76 int ok, fl; local in function:accept_test
190 fl = fcntl(srvr, F_GETFL, 0);
191 if (fl == -1)
194 ok = fcntl(srvr, F_SETFL, fl & ~O_NONBLOCK);
227 fl = fcntl(acpt, F_GETFL, 0);
228 if (fl == -1)
232 if (fl != (O_RDWR|O_NONBLOCK))
233 FAIL("fl 0x%x != 0x%x\n", fl, O_RDWR|O_NONBLOCK);
234 ok = fcntl(acpt, F_SETFL, fl & ~O_NONBLOCK)
    [all...]
  /src/sys/dev/pci/cxgb/
cxgb_sge.c 550 __refill_fl(adapter_t *adap, struct sge_fl *fl)
552 refill_fl(adap, fl, uimin(16U, fl->size - fl->credits));
693 refill_rx = ((qs->fl[0].credits < qs->fl[0].size) ||
694 (qs->fl[1].credits < qs->fl[1].size));
833 if (qs->fl[0].credits < qs->fl[0].size - 16
2205 struct sge_fl *fl = (len_cq & F_RSPD_FLQ) ? &qs->fl[1] : &qs->fl[0]; local in function:get_packet
2272 struct sge_fl *fl = (len_cq & F_RSPD_FLQ) ? &qs->fl[1] : &qs->fl[0]; local in function:get_packet
    [all...]
  /src/tests/kernel/
t_lockf.c 85 struct flock fl; local in function:trylocks
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);
  /src/sys/compat/ultrix/
ultrix_misc.c 688 ultrix_to_bsd_flock(struct ultrix_flock *ufl, struct flock *fl)
691 memset(fl, 0, sizeof(*fl));
693 fl->l_start = ufl->l_start;
694 fl->l_len = ufl->l_len;
695 fl->l_pid = ufl->l_pid;
696 fl->l_whence = ufl->l_whence;
700 fl->l_type = F_RDLCK;
703 fl->l_type = F_WRLCK;
706 fl->l_type = F_UNLCK
744 struct flock fl; local in function:ultrix_sys_fcntl
    [all...]
  /src/bin/ps/
keyword.c 80 #define LVAR(n1, n2, fl, of, ty, fm) \
81 { .name = n1, .header = n2, .flag = (fl) | LWP, .oproc = pvar, \
83 #define PVAR(n1, n2, fl, of, ty, fm) \
84 { .name = n1, .header = n2, .flag = (fl) | 0, .oproc = pvar, \
86 #define PUVAR(n1, n2, fl, of, ty, fm) \
87 { .name = n1, .header = n2, .flag = (fl) | UAREA, .oproc = pvar, \
89 #define VAR3(n1, n2, fl) \
90 { .name = n1, .header = n2, .flag = fl }
91 #define VAR4(n1, n2, fl, op) \
92 { .name = n1, .header = n2, .flag = fl, .oproc = op,
    [all...]
  /src/tests/lib/librumpclient/
t_fd.c 108 int fl; local in function:ATF_TC_BODY
120 RL(fl = rump_sys_fcntl(ls, F_GETFL));
121 RL(rump_sys_fcntl(ls, F_SETFL, fl | O_ASYNC));
  /src/share/man/man4/man4.vax/
Makefile 8 fl.4 \
  /src/sys/rump/librump/rumpkern/arch/generic/
rump_generic_pmap.c 43 pmap_kenter_pa(vaddr_t va, paddr_t pa, vm_prot_t prot, u_int fl)
  /src/bin/ksh/
io.c 312 int fd, fl; local in function:check_fd
316 if ((fl = fcntl(fd = name[0] - '0', F_GETFL, 0)) < 0) {
321 fl &= O_ACCMODE;
327 if (!(mode & X_OK) && fl != O_RDWR
328 && (((mode & R_OK) && fl != O_RDONLY)
329 || ((mode & W_OK) && fl != O_WRONLY)))
332 *emsgp = (fl == O_WRONLY) ?
  /src/usr.sbin/gpioctl/
gpioctl.c 86 int pin, ch, n, fl = 0, value = 0; local in function:main
181 fl |= bs->mask;
188 gpioset(pin, nm, fl, nam);
295 gpioset(int pin, char *name, int fl, char *alias)
305 set.gp_flags = fl;
327 if (fl > 0) {
330 if (fl & bs->mask)

Completed in 23 milliseconds

1 2 3 4