Home
last modified time | relevance | path

Searched refs:fl (Results 1 – 25 of 62) sorted by relevance

123

/dragonfly/usr.sbin/rpc.lockd/
HDlockd_lock.c108 struct file_lock *fl; in testlock() local
116 for (fl = LIST_FIRST(&lcklst_head); fl != NULL; in testlock()
117 fl = LIST_NEXT(fl, lcklst)) { in testlock()
118 if (fl->status != LKST_LOCKED) in testlock()
120 if (memcmp(&fl->filehandle, &filehandle, sizeof(filehandle))) in testlock()
124 lock->caller_name, fl->client_name); in testlock()
126 return (&fl->client); in testlock()
144 struct file_lock *fl, *newfl; in getlock() local
196 for (fl = LIST_FIRST(&lcklst_head); fl != NULL; in getlock()
197 fl = LIST_NEXT(fl, lcklst)) { in getlock()
[all …]
/dragonfly/usr.sbin/config/
HDmkheaders.c53 struct file_list *fl; in headers() local
56 for (fl = ftab; fl != NULL; fl = fl->f_next) in headers()
57 if (fl->f_needs != NULL) in headers()
58 do_count(fl->f_needs, fl->f_needs, 1); in headers()
136 struct file_list *fl, *fl_head, *tflp; in do_header() local
171 fl = malloc(sizeof(*fl)); in do_header()
172 bzero(fl, sizeof(*fl)); in do_header()
173 fl->f_fn = inw; /* malloced */ in do_header()
174 fl->f_type = inc; in do_header()
175 fl->f_next = fl_head; in do_header()
[all …]
/dragonfly/lib/libc/gen/
HDlockf.c51 struct flock fl; in lockf() local
54 fl.l_start = 0; in lockf()
55 fl.l_len = size; in lockf()
56 fl.l_whence = SEEK_CUR; in lockf()
61 fl.l_type = F_UNLCK; in lockf()
65 fl.l_type = F_WRLCK; in lockf()
69 fl.l_type = F_WRLCK; in lockf()
72 fl.l_type = F_WRLCK; in lockf()
73 if (_fcntl(filedes, F_GETLK, &fl) == -1) in lockf()
75 if (fl.l_type == F_UNLCK || fl.l_pid == getpid()) in lockf()
[all …]
/dragonfly/test/lockf/
HDlockf.c89 struct flock fl; in trylocks() local
96 fl.l_start = random_uint32() % size; in trylocks()
97 fl.l_len = random_uint32() % size; in trylocks()
101 fl.l_type = F_RDLCK; in trylocks()
105 fl.l_type = F_WRLCK; in trylocks()
109 fl.l_type = F_UNLCK; in trylocks()
112 fl.l_whence = SEEK_SET; in trylocks()
114 printf("%d: try %slock %d to %d\n", id, which, (int)fl.l_start, in trylocks()
115 (int)(fl.l_start + fl.l_len)); in trylocks()
117 ret = fcntl(fd, F_SETLKW, &fl); in trylocks()
[all …]
/dragonfly/usr.bin/sort/
HDfile.c213 file_list_init(struct file_list *fl, bool tmp) in file_list_init() argument
216 if (fl) { in file_list_init()
217 fl->count = 0; in file_list_init()
218 fl->sz = 0; in file_list_init()
219 fl->fns = NULL; in file_list_init()
220 fl->tmp = tmp; in file_list_init()
228 file_list_add(struct file_list *fl, char *fn, bool allocate) in file_list_add() argument
231 if (fl && fn) { in file_list_add()
232 if (fl->count >= fl->sz || (fl->fns == NULL)) { in file_list_add()
233 fl->sz = (fl->sz) * 2 + 1; in file_list_add()
[all …]
HDfile.h108 void file_list_init(struct file_list *fl, bool tmp);
109 void file_list_add(struct file_list *fl, char *fn, bool allocate);
110 void file_list_populate(struct file_list *fl, int argc, char **argv, bool allocate);
111 void file_list_clean(struct file_list *fl);
114 void merge_files(struct file_list *fl, const char *fn_out);
117 int procfile(const char *fn, struct sort_list *list, struct file_list *fl);
HDsort.c1345 struct file_list fl; in main() local
1349 file_list_init(&fl, true); in main()
1352 procfile("-", &list, &fl); in main()
1355 procfile(*argv, &list, &fl); in main()
1361 if (fl.count < 1) in main()
1368 file_list_add(&fl, flast, false); in main()
1370 merge_files(&fl, outfile); in main()
1373 file_list_clean(&fl); in main()
1385 struct file_list fl; in main() local
1387 file_list_init(&fl, false); in main()
[all …]
/dragonfly/contrib/gmp/mpf/
HDfits_u.h32 mp_limb_t fl; in FUNCTION() local
46 fl = fp[fn-1]; in FUNCTION()
51 fl = fp[fn-1]; in FUNCTION()
52 if ((fl >> GMP_NAIL_BITS) != 0) in FUNCTION()
54 fl = (fl << GMP_NUMB_BITS); in FUNCTION()
56 fl |= fp[fn-2]; in FUNCTION()
62 return fl <= MAXIMUM; in FUNCTION()
HDfits_s.h32 mp_limb_t fl; in FUNCTION() local
47 fl = fp[fn-1]; in FUNCTION()
52 fl = fp[fn-1]; in FUNCTION()
53 if ((fl >> GMP_NAIL_BITS) != 0) in FUNCTION()
55 fl = (fl << GMP_NUMB_BITS); in FUNCTION()
57 fl |= fp[fn-2]; in FUNCTION()
63 return fl <= (fs >= 0 ? (mp_limb_t) MAXIMUM : - (mp_limb_t) MINIMUM); in FUNCTION()
HDget_si.c48 mp_limb_t fl; in mpf_get_si() local
61 fl = 0; in mpf_get_si()
64 fl = fp[abs_size-exp]; in mpf_get_si()
68 fl |= fp[abs_size - exp + 1] << GMP_NUMB_BITS; in mpf_get_si()
72 return fl & LONG_MAX; in mpf_get_si()
75 return -1 - (long) ((fl - 1) & LONG_MAX); in mpf_get_si()
HDget_ui.c69 mp_limb_t fl; in mpf_get_ui() local
75 fl = 0; in mpf_get_ui()
82 fl = fp[size-exp]; in mpf_get_ui()
86 fl += (fp[size-exp+1] << GMP_NUMB_BITS); in mpf_get_ui()
90 return (unsigned long) fl; in mpf_get_ui()
/dragonfly/contrib/nvi2/ex/
HDex_move.c87 recno_t cnt, diff, fl, tl, mfl, mtl; in ex_move() local
117 fl = fm1.lno; in ex_move()
124 lmp->lno >= fl && lmp->lno <= tl) { in ex_move()
135 if (tl > fl) { /* Destination > source. */ in ex_move()
139 if (db_get(sp, fl, DBG_FATAL, &p, &len)) in ex_move()
148 lmp->lno == fl) in ex_move()
150 if (db_delete(sp, fl)) in ex_move()
157 if (db_get(sp, fl, DBG_FATAL, &p, &len)) in ex_move()
166 lmp->lno == fl) in ex_move()
168 ++fl; in ex_move()
[all …]
/dragonfly/contrib/binutils-2.27/gold/
HDftruncate.c52 struct flock fl; in ftruncate() local
73 fl.l_whence = 0; in ftruncate()
74 fl.l_len = 0; in ftruncate()
75 fl.l_start = length; in ftruncate()
76 fl.l_type = F_WRLCK; /* write lock on file space */ in ftruncate()
82 if (fcntl (fd, F_FREESP, &fl) < 0) in ftruncate()
/dragonfly/sys/kern/
HDkern_lockf.c197 struct flock *fl = ap->a_fl; in lf_advlock() local
206 switch (fl->l_whence) { in lf_advlock()
213 start = fl->l_start; in lf_advlock()
217 start = size + fl->l_start; in lf_advlock()
227 if (fl->l_len == 0) { in lf_advlock()
230 } else if (fl->l_len < 0) { in lf_advlock()
233 end = start + fl->l_len - 1; in lf_advlock()
238 type = fl->l_type; in lf_advlock()
285 error = lf_getlock(fl, lock, owner, type, flags, start, end); in lf_advlock()
770 lf_getlock(struct flock *fl, struct lockf *lock, struct proc *owner, in lf_getlock() argument
[all …]
/dragonfly/usr.bin/lsvfs/
HDlsvfs.c24 } fl[] = { variable
79 static char buf[sizeof(struct flaglist) * sizeof(fl)]; in fmt_flags()
83 for (i = 0; i < nitems(fl); i++) in fmt_flags()
84 if (flags & fl[i].flag) { in fmt_flags()
85 strlcat(buf, fl[i].str, sizeof(buf)); in fmt_flags()
/dragonfly/games/trek/
HDklmove.c60 klmove(int fl) in klmove() argument
75 printf("klmove: fl = %d, Etc.nkling = %d\n", fl, Etc.nkling); in klmove()
80 if (fl) in klmove()
82 if (ranf(i) >= Param.moveprob[2 * Move.newquad + fl]) in klmove()
86 motion *= k->avgdist * Param.movefac[2 * Move.newquad + fl]; in klmove()
HDwarp.c57 dowarp(int fl) in dowarp() argument
64 warp(fl, c, d); in dowarp()
68 warp(int fl, int c, double d) in warp() argument
127 Move.time = move(fl, course, time, speed); in warp()
/dragonfly/sys/netproto/smb/
HDsmb_dev.c224 struct smbioc_flags *fl = (struct smbioc_flags*)data; in nsmb_dev_ioctl() local
227 if (fl->ioc_level == SMBL_VC) { in nsmb_dev_ioctl()
228 if (fl->ioc_mask & SMBV_PERMANENT) { in nsmb_dev_ioctl()
229 on = fl->ioc_flags & SMBV_PERMANENT; in nsmb_dev_ioctl()
245 } else if (fl->ioc_level == SMBL_SHARE) { in nsmb_dev_ioctl()
246 if (fl->ioc_mask & SMBS_PERMANENT) { in nsmb_dev_ioctl()
247 on = fl->ioc_flags & SMBS_PERMANENT; in nsmb_dev_ioctl()
/dragonfly/crypto/libressl/include/openssl/
HDrsa.h326 const unsigned char *f, int fl);
328 const unsigned char *f, int fl, int rsa_len);
330 const unsigned char *f, int fl);
332 const unsigned char *f, int fl, int rsa_len);
336 const unsigned char *f, int fl,
339 const unsigned char *f, int fl, int rsa_len,
348 const unsigned char *f, int fl);
350 const unsigned char *f, int fl, int rsa_len);
352 const unsigned char *f, int fl);
354 const unsigned char *f, int fl, int rsa_len);
/dragonfly/contrib/cvs-1.12/src/
HDhistory.c979 struct file_list_str *fl; in save_file() local
984 if (size_overflow_p (xtimes (file_max, sizeof (*fl)))) in save_file()
989 file_list = xnrealloc (file_list, file_max, sizeof (*fl)); in save_file()
991 fl = &file_list[file_count++]; in save_file()
992 fl->l_module = module; in save_file()
997 fl->l_file = Xasprintf ("%s/%s", dir, name); in save_file()
999 fl->l_file = Xasprintf ("*%s", dir); in save_file()
1004 fl->l_file = xstrdup (name); in save_file()
1275 struct file_list_str *fl; in select_hrec() local
1406 for (fl = file_list, count = file_count; count; fl++, count--) in select_hrec()
[all …]
/dragonfly/contrib/gcc-4.7/libcpp/
HDmakeucnid.c57 unsigned fl = 0; in read_ucnid() local
68 fl = C99; in read_ucnid()
70 fl = CXX; in read_ucnid()
98 flags[start++] |= fl; in read_ucnid()
/dragonfly/sys/dev/disk/mpt/mpilib/
HDmpi.h612 #define MPI_SGE_GET_FLAGS(fl) (((fl) & ~MPI_SGE_LENGTH_MASK) >> MPI_SGE_FLAGS_SHIFT) argument
613 #define MPI_SGE_LENGTH(fl) ((fl) & MPI_SGE_LENGTH_MASK) argument
614 #define MPI_SGE_CHAIN_LENGTH(fl) ((fl) & MPI_SGE_CHAIN_LENGTH_MASK) argument
/dragonfly/usr.bin/find/
HDfind.h88 } fl; member
116 #define fl_flags p_un.fl._f_flags
117 #define fl_notflags p_un.fl._f_notflags
/dragonfly/contrib/mdocml/
HDmdoc_argv.c419 enum argsflag fl; in mdoc_args() local
421 fl = tok == TOKEN_NONE ? ARGSFL_NONE : mdocargs[tok - MDOC_Dd].flags; in mdoc_args()
435 fl = ARGSFL_TABSEP; in mdoc_args()
440 return args(mdoc, line, pos, buf, fl, v); in mdoc_args()
445 char *buf, enum argsflag fl, char **v) in args() argument
465 if (fl == ARGSFL_DELIM && args_checkpunct(buf, *pos)) in args()
473 if (fl == ARGSFL_TABSEP) { in args()
/dragonfly/tools/tools/vop_table/
HDvop_table.tcl67 lappend fl [format "%12s" $i]
70 lappend fl [format "%12s" default]
77 foreach j $fl {

123