Home
last modified time | relevance | path

Searched refs:lf (Results 1 – 25 of 99) sorted by relevance

1234

/freebsd-12-stable/sys/kern/
Dkern_linker.c195 linker_file_sysinit(linker_file_t lf) in linker_file_sysinit() argument
200 lf->filename)); in linker_file_sysinit()
204 if (linker_file_lookup_set(lf, "sysinit_set", &start, &stop, NULL) != 0) in linker_file_sysinit()
243 linker_file_sysuninit(linker_file_t lf) in linker_file_sysuninit() argument
248 lf->filename)); in linker_file_sysuninit()
252 if (linker_file_lookup_set(lf, "sysuninit_set", &start, &stop, in linker_file_sysuninit()
293 linker_file_register_sysctls(linker_file_t lf, bool enable) in linker_file_register_sysctls() argument
299 lf->filename)); in linker_file_register_sysctls()
303 if (linker_file_lookup_set(lf, "sysctl_set", &start, &stop, NULL) != 0) in linker_file_register_sysctls()
319 linker_file_enable_sysctls(linker_file_t lf) in linker_file_enable_sysctls() argument
[all …]
Dlink_elf.c78 struct linker_file lf; /* Common fields */ member
190 typedef int (*elf_reloc_fn)(linker_file_t lf, Elf_Addr relocbase,
361 link_elf_link_common_finish(linker_file_t lf) in link_elf_link_common_finish() argument
364 elf_file_t ef = (elf_file_t)lf; in link_elf_link_common_finish()
370 error = elf_cpu_load_file(lf); in link_elf_link_common_finish()
376 ef->gdb.l_addr = lf->address; in link_elf_link_common_finish()
377 newfilename = malloc(strlen(lf->filename) + 1, M_LINKER, M_WAITOK); in link_elf_link_common_finish()
378 strcpy(newfilename, lf->filename); in link_elf_link_common_finish()
386 link_elf_invoke_ctors(lf->ctors_addr, lf->ctors_size); in link_elf_link_common_finish()
624 error = link_elf_lookup_set(&ef->lf, "pcpu", (void ***)&ef->pcpu_start, in parse_dpcpu()
[all …]
Dlink_elf_obj.c95 struct linker_file lf; /* Common fields */ member
152 static int elf_obj_lookup(linker_file_t lf, Elf_Size symidx, int deps,
209 end <= round_page((vm_offset_t)ef->address + ef->lf.size), in link_elf_protect_range()
312 round_page((vm_offset_t)ef->address + ef->lf.size), gapprot); in link_elf_protect()
325 linker_file_t lf; in link_elf_link_preload() local
350 lf = linker_make_file(filename, &link_elf_class); in link_elf_link_preload()
351 if (lf == NULL) in link_elf_link_preload()
354 ef = (elf_file_t)lf; in link_elf_link_preload()
357 lf->address = *(caddr_t *)baseptr; in link_elf_link_preload()
358 lf->size = *(size_t *)sizeptr; in link_elf_link_preload()
[all …]
Dkern_lockf.c339 struct lockf_entry *lf; in lf_alloc_lock() local
341 lf = malloc(sizeof(struct lockf_entry), M_LOCKF, M_WAITOK|M_ZERO); in lf_alloc_lock()
345 printf("Allocated lock %p\n", lf); in lf_alloc_lock()
351 lf->lf_owner = lo; in lf_alloc_lock()
354 return (lf); in lf_alloc_lock()
708 struct lockf_entry *lf; in lf_advlockasync() local
713 LIST_FOREACH(lf, &state->ls_active, lf_link) { in lf_advlockasync()
714 if (lock == lf) in lf_advlockasync()
716 KASSERT(!lf_blocks(lock, lf), in lf_advlockasync()
718 if (lock->lf_owner == lf->lf_owner) in lf_advlockasync()
[all …]
/freebsd-12-stable/contrib/ntp/sntp/scripts/
DgenLocInfo31 lf=loc/$locfile
32 if test -f $lf
34 LF=$lf
56 lf=loc/$CVO_OSNAME$x
57 ${V}echo "Looking for <$lf>" >&2
58 if test -f $lf
60 LF=$lf
70 lf=loc/$CVO_OSNAME
71 ${V}echo "Looking for <$lf>" >&2
72 if test -f $lf
[all …]
/freebsd-12-stable/sys/arm/arm/
Delf_machdep.c194 elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_internal() argument
226 addr = elf_relocaddr(lf, relocbase + addend); in elf_reloc_internal()
239 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
255 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
273 elf_reloc(linker_file_t lf, Elf_Addr relocbase, const void *data, int type, in elf_reloc() argument
277 return (elf_reloc_internal(lf, relocbase, data, type, 0, lookup)); in elf_reloc()
281 elf_reloc_local(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_local() argument
285 return (elf_reloc_internal(lf, relocbase, data, type, 1, lookup)); in elf_reloc_local()
289 elf_cpu_load_file(linker_file_t lf) in elf_cpu_load_file() argument
307 if (lf->id == 1) in elf_cpu_load_file()
[all …]
Dunwind.c173 populate_module_info(struct module_info *info, linker_file_t lf) in populate_module_info() argument
180 info->exidx_start = UADDR(lf->exidx_addr); in populate_module_info()
181 info->exidx_end = UADDR(lf->exidx_addr) + lf->exidx_size; in populate_module_info()
182 info->module_start = UADDR(lf->address); in populate_module_info()
183 info->module_end = UADDR(lf->address) + lf->size; in populate_module_info()
224 unwind_module_loaded(struct linker_file *lf) in unwind_module_loaded() argument
232 if (lf->exidx_size == 0) in unwind_module_loaded()
247 populate_module_info(info, lf); in unwind_module_loaded()
252 unwind_module_unloaded(struct linker_file *lf) in unwind_module_unloaded() argument
260 if (lf->exidx_size == 0) in unwind_module_unloaded()
[all …]
/freebsd-12-stable/contrib/elftoolchain/libdwarf/
Dlibdwarf_lineno.c35 Dwarf_LineFile lf; in _dwarf_lineno_add_file() local
43 if ((lf = malloc(sizeof(struct _Dwarf_LineFile))) == NULL) { in _dwarf_lineno_add_file()
48 lf->lf_fullpath = NULL; in _dwarf_lineno_add_file()
49 lf->lf_fname = (char *) src; in _dwarf_lineno_add_file()
50 src += strlen(lf->lf_fname) + 1; in _dwarf_lineno_add_file()
51 lf->lf_dirndx = _dwarf_decode_uleb128(&src); in _dwarf_lineno_add_file()
52 if (lf->lf_dirndx > li->li_inclen) { in _dwarf_lineno_add_file()
53 free(lf); in _dwarf_lineno_add_file()
59 if (*lf->lf_fname != '/') { in _dwarf_lineno_add_file()
60 filepath = open_memstream(&lf->lf_fullpath, &slen); in _dwarf_lineno_add_file()
[all …]
Ddwarf_lineno.c98 Dwarf_LineFile lf; in dwarf_srcfiles() local
145 for (i = 0, lf = STAILQ_FIRST(&li->li_lflist); in dwarf_srcfiles()
146 i < *srccount && lf != NULL; i++, lf = STAILQ_NEXT(lf, lf_next)) { in dwarf_srcfiles()
147 if (lf->lf_fullpath) in dwarf_srcfiles()
148 li->li_lfnarray[i] = lf->lf_fullpath; in dwarf_srcfiles()
150 li->li_lfnarray[i] = lf->lf_fname; in dwarf_srcfiles()
251 Dwarf_LineFile lf; in dwarf_linesrc() local
262 for (i = 1, lf = STAILQ_FIRST(&li->li_lflist); in dwarf_linesrc()
263 (Dwarf_Unsigned) i < ln->ln_fileno && lf != NULL; in dwarf_linesrc()
264 i++, lf = STAILQ_NEXT(lf, lf_next)) in dwarf_linesrc()
[all …]
/freebsd-12-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/
Dman.ListProbesWithFunctions39 * /usr/sbin/dtrace -lf profile
43 * /usr/sbin/dtrace -lf genunix
47 * /usr/sbin/dtrace -lf read
51 * /usr/sbin/dtrace -lf genunix:read
56 * /usr/sbin/dtrace -lf sysinfo:genunix:read
61 * /usr/sbin/dtrace -lf :genunix::
65 * /usr/sbin/dtrace -lf ::read:
69 * /usr/sbin/dtrace -lf profile:::profile-97
73 * /usr/sbin/dtrace -lf read -lf write
77 * /usr/sbin/dtrace -lf read -lm fight
[all …]
/freebsd-12-stable/contrib/bmake/
Dparse.c173 struct loadedfile *lf; /* loadedfile object, if any */ member
399 struct loadedfile *lf; in loadedfile_create() local
401 lf = bmake_malloc(sizeof(*lf)); in loadedfile_create()
402 lf->path = (path == NULL ? "(stdin)" : path); in loadedfile_create()
403 lf->buf = NULL; in loadedfile_create()
404 lf->len = 0; in loadedfile_create()
405 lf->maplen = 0; in loadedfile_create()
406 lf->used = FALSE; in loadedfile_create()
407 return lf; in loadedfile_create()
411 loadedfile_destroy(struct loadedfile *lf) in loadedfile_destroy() argument
[all …]
/freebsd-12-stable/usr.sbin/lpr/lpc/
Dcmds.c84 static int kill_qtask(const char *lf);
288 kill_qtask(const char *lf) in kill_qtask() argument
295 fp = fopen(lf, "r"); in kill_qtask()
410 char lf[MAXPATHLEN]; in abort_q() local
412 lock_file_name(pp, lf, sizeof lf); in abort_q()
418 setres = set_qstate(SQS_STOPP, lf); in abort_q()
433 killres = kill_qtask(lf); in abort_q()
881 char lf[MAXPATHLEN]; in enable_q() local
883 lock_file_name(pp, lf, sizeof lf); in enable_q()
886 setres = set_qstate(SQS_ENABLEQ, lf); in enable_q()
[all …]
/freebsd-12-stable/sys/arm64/arm64/
Delf_machdep.c145 elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_internal() argument
175 *where = elf_relocaddr(lf, relocbase + addend); in elf_reloc_internal()
185 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
192 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
200 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
209 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
228 elf_reloc_local(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_local() argument
232 return (elf_reloc_internal(lf, relocbase, data, type, 1, lookup)); in elf_reloc_local()
237 elf_reloc(linker_file_t lf, Elf_Addr relocbase, const void *data, int type, in elf_reloc() argument
241 return (elf_reloc_internal(lf, relocbase, data, type, 0, lookup)); in elf_reloc()
[all …]
/freebsd-12-stable/contrib/diff/src/
Dsdiff.c358 lf_init (struct line_filter *lf, FILE *infile) in lf_init() argument
360 lf->infile = infile; in lf_init()
361 lf->bufpos = lf->buffer = lf->buflim = xmalloc (SDIFF_BUFSIZE + 1); in lf_init()
362 lf->buflim[0] = '\n'; in lf_init()
367 lf_refill (struct line_filter *lf) in lf_refill() argument
369 size_t s = ck_fread (lf->buffer, SDIFF_BUFSIZE, lf->infile); in lf_refill()
370 lf->bufpos = lf->buffer; in lf_refill()
371 lf->buflim = lf->buffer + s; in lf_refill()
372 lf->buflim[0] = '\n'; in lf_refill()
379 lf_copy (struct line_filter *lf, lin lines, FILE *outfile) in lf_copy() argument
[all …]
/freebsd-12-stable/sys/powerpc/powerpc/
Delf32_machdep.c225 elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_internal() argument
258 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
261 *where = elf_relocaddr(lf, addr + addend); in elf_reloc_internal()
265 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
275 addr = elf_relocaddr(lf, addr + addend); in elf_reloc_internal()
280 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
290 addr = elf_relocaddr(lf, addr + addend); in elf_reloc_internal()
296 *where = elf_relocaddr(lf, relocbase + addend); in elf_reloc_internal()
341 elf_reloc(linker_file_t lf, Elf_Addr relocbase, const void *data, int type, in elf_reloc() argument
345 return (elf_reloc_internal(lf, relocbase, data, type, 0, lookup)); in elf_reloc()
[all …]
Delf64_machdep.c286 elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_internal() argument
317 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
325 *where = elf_relocaddr(lf, relocbase + addend); in elf_reloc_internal()
329 lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
380 elf_reloc(linker_file_t lf, Elf_Addr relocbase, const void *data, int type, in elf_reloc() argument
384 return (elf_reloc_internal(lf, relocbase, data, type, 0, lookup)); in elf_reloc()
388 elf_reloc_local(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_local() argument
392 return (elf_reloc_internal(lf, relocbase, data, type, 1, lookup)); in elf_reloc_local()
396 elf_cpu_load_file(linker_file_t lf) in elf_cpu_load_file() argument
399 if (lf->id != 1) in elf_cpu_load_file()
[all …]
/freebsd-12-stable/sys/riscv/riscv/
Delf_machdep.c265 elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_internal() argument
301 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
317 *where = elf_relocaddr(lf, relocbase + addend); in elf_reloc_internal()
325 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
352 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
377 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
393 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
408 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
424 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
440 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
[all …]
/freebsd-12-stable/sys/cddl/dev/sdt/
Dsdt.c275 sdt_kld_load_providers(struct linker_file *lf) in sdt_kld_load_providers() argument
279 if (linker_file_lookup_set(lf, "sdt_providers_set", &begin, &end, in sdt_kld_load_providers()
287 sdt_kld_load_probes(struct linker_file *lf) in sdt_kld_load_probes() argument
292 if (linker_file_lookup_set(lf, "sdt_probes_set", &p_begin, &p_end, in sdt_kld_load_probes()
295 (*probe)->sdtp_lf = lf; in sdt_kld_load_probes()
301 if (linker_file_lookup_set(lf, "sdt_argtypes_set", &a_begin, &a_end, in sdt_kld_load_probes()
319 sdt_kld_load(void *arg __unused, struct linker_file *lf) in sdt_kld_load() argument
321 sdt_kld_load_providers(lf); in sdt_kld_load()
322 sdt_kld_load_probes(lf); in sdt_kld_load()
326 sdt_kld_unload_try(void *arg __unused, struct linker_file *lf, int *error) in sdt_kld_unload_try() argument
[all …]
/freebsd-12-stable/sys/mips/mips/
Delf_machdep.c305 elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_internal() argument
352 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
361 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
380 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
408 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
437 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
448 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
490 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
499 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
517 elf_reloc(linker_file_t lf, Elf_Addr relocbase, const void *data, int type, in elf_reloc() argument
[all …]
/freebsd-12-stable/contrib/lua/src/
Dlauxlib.c643 LoadF *lf = (LoadF *)ud; in getF() local
645 if (lf->n > 0) { /* are there pre-read characters to be read? */ in getF()
646 *size = lf->n; /* return them (chars already in buffer) */ in getF()
647 lf->n = 0; /* no more pre-read characters */ in getF()
653 if (feof(lf->f)) return NULL; in getF()
654 *size = fread(lf->buff, 1, sizeof(lf->buff), lf->f); /* read block */ in getF()
656 return lf->buff; in getF()
669 static int skipBOM (LoadF *lf) { in skipBOM() argument
672 lf->n = 0; in skipBOM()
674 c = getc(lf->f); in skipBOM()
[all …]
/freebsd-12-stable/sys/i386/i386/
Delf_machdep.c172 elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_internal() argument
204 addr = elf_relocaddr(lf, relocbase + addend); in elf_reloc_internal()
217 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
226 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
244 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
269 elf_reloc(linker_file_t lf, Elf_Addr relocbase, const void *data, int type, in elf_reloc() argument
273 return (elf_reloc_internal(lf, relocbase, data, type, lookup, 0)); in elf_reloc()
277 elf_reloc_local(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_local() argument
281 return (elf_reloc_internal(lf, relocbase, data, type, lookup, in elf_reloc_local()
286 elf_cpu_load_file(linker_file_t lf __unused) in elf_cpu_load_file()
[all …]
/freebsd-12-stable/sys/amd64/amd64/
Delf_machdep.c188 elf_reloc_internal(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_internal() argument
234 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
245 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
255 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
274 error = lookup(lf, symidx, 1, &addr); in elf_reloc_internal()
282 addr = elf_relocaddr(lf, relocbase + addend); in elf_reloc_internal()
304 elf_reloc(linker_file_t lf, Elf_Addr relocbase, const void *data, int type, in elf_reloc() argument
308 return (elf_reloc_internal(lf, relocbase, data, type, lookup)); in elf_reloc()
312 elf_reloc_local(linker_file_t lf, Elf_Addr relocbase, const void *data, in elf_reloc_local() argument
316 return (elf_reloc_internal(lf, relocbase, data, type, lookup)); in elf_reloc_local()
[all …]
/freebsd-12-stable/crypto/openssh/regress/unittests/sshkey/
Dmktestdata.sh189 ssh-keygen -lf rsa_1 | awk '{print $2}' > rsa_1.fp
190 ssh-keygen -lf dsa_1 | awk '{print $2}' > dsa_1.fp
191 ssh-keygen -lf ecdsa_1 | awk '{print $2}' > ecdsa_1.fp
192 ssh-keygen -lf ed25519_1 | awk '{print $2}' > ed25519_1.fp
193 ssh-keygen -lf ecdsa_sk1 | awk '{print $2}' > ecdsa_sk1.fp
194 ssh-keygen -lf ed25519_sk1 | awk '{print $2}' > ed25519_sk1.fp
195 ssh-keygen -lf rsa_2 | awk '{print $2}' > rsa_2.fp
196 ssh-keygen -lf dsa_2 | awk '{print $2}' > dsa_2.fp
197 ssh-keygen -lf ecdsa_2 | awk '{print $2}' > ecdsa_2.fp
198 ssh-keygen -lf ed25519_2 | awk '{print $2}' > ed25519_2.fp
[all …]
/freebsd-12-stable/contrib/ntp/scripts/monitoring/
Dntploopwatch442 my($lo, $lf) = @_;
445 = ("%s \"%s\" using 1:%d title '%s <%lf %lf> %6s' with lines");
447 = ("%s ((%lf * x) + %lf) title 'lin. approx. %s (%f t[h]) %s %f <%f> %6s' with lines");
476 ($s .= sprintf("'' %lf",($i - $LastTimeBase)/3600))) ||
478 ($s .= sprintf("'%d:%02d:%02d' %lf",
482 ($s .= sprintf("'%d:%02d' %lf",
486 ($s .= sprintf("'%s %d:00' %lf",
490 || ($s .= sprintf("'%d.%d-%d:00' %lf",
500 $doplot .= defined($MinY) ? sprintf("%lf", $MinY) : $miny;
502 $doplot .= defined($MaxY) ? sprintf("%lf", $MaxY) : $maxy;
[all …]
/freebsd-12-stable/sys/cddl/dev/fbt/mips/
Dfbt_isa.c81 fbt_provide_module_function(linker_file_t lf, int symindx, in fbt_provide_module_function() argument
113 fbt->fbtp_ctl = lf; in fbt_provide_module_function()
114 fbt->fbtp_loadcnt = lf->loadcnt; in fbt_provide_module_function()
123 lf->fbt_nentries++; in fbt_provide_module_function()
151 fbt->fbtp_ctl = lf; in fbt_provide_module_function()
152 fbt->fbtp_loadcnt = lf->loadcnt; in fbt_provide_module_function()
160 lf->fbt_nentries++; in fbt_provide_module_function()

1234