Home
last modified time | relevance | path

Searched refs:info (Results 1 – 25 of 176) sorted by relevance

12345678

/glibc-2.36/posix/
Dtst-waitid.c59 sigchld (int signo, siginfo_t *info, void *ctx) in sigchld() argument
91 siginfo_t info; in do_test_waitd_common() local
94 info.si_signo = 0; /* A successful call sets it to SIGCHLD. */ in do_test_waitd_common()
95 fail = waitid (P_PID, pid, &info, WEXITED|WCONTINUED|WNOHANG); in do_test_waitd_common()
99 TEST_COMPARE (info.si_signo, 0); in do_test_waitd_common()
102 info.si_signo = 0; /* A successful call sets it to SIGCHLD. */ in do_test_waitd_common()
103 info.si_pid = -1; in do_test_waitd_common()
104 info.si_status = -1; in do_test_waitd_common()
105 fail = waitid (P_PID, pid, &info, WSTOPPED|WNOHANG); in do_test_waitd_common()
109 TEST_COMPARE (info.si_signo, SIGCHLD); in do_test_waitd_common()
[all …]
/glibc-2.36/stdio-common/
Dprintf-parsemb.c73 spec->info.alt = 0; in __parse_one_specwc()
74 spec->info.space = 0; in __parse_one_specwc()
75 spec->info.left = 0; in __parse_one_specwc()
76 spec->info.showsign = 0; in __parse_one_specwc()
77 spec->info.group = 0; in __parse_one_specwc()
78 spec->info.i18n = 0; in __parse_one_specwc()
79 spec->info.extra = 0; in __parse_one_specwc()
80 spec->info.pad = ' '; in __parse_one_specwc()
81 spec->info.wide = sizeof (UCHAR_T) > 1; in __parse_one_specwc()
82 spec->info.is_binary128 = 0; in __parse_one_specwc()
[all …]
Dprintf_fphex.c92 const struct printf_info *info, in __printf_fphex() argument
107 assert (info->extra == 0); in __printf_fphex()
147 int precision = info->prec; in __printf_fphex()
150 int width = info->width; in __printf_fphex()
156 int wide = info->wide; in __printf_fphex()
165 if (isupper (info->spec)) \ in __printf_fphex()
180 if (isupper (info->spec)) \ in __printf_fphex()
197 if (info->is_binary128) in __printf_fphex()
202 if (info->is_long_double && sizeof (long double) > sizeof (double)) in __printf_fphex()
212 int width = info->width; in __printf_fphex()
[all …]
Dprintf_size.c75 extern int __printf_fp (FILE *fp, const struct printf_info *info,
80 __printf_size (FILE *fp, const struct printf_info *info, in __printf_size() argument
91 const char *tag = units[isupper (info->spec) != 0]; in __printf_size()
92 int divisor = isupper (info->spec) ? 1000 : 1024; in __printf_size()
114 int wide = info->wide; in __printf_size()
143 if (info->is_binary128) in __printf_size()
148 if (info->is_long_double && sizeof (long double) > sizeof (double)) in __printf_size()
158 int width = info->prec > info->width ? info->prec : info->width; in __printf_size()
160 if (is_neg || info->showsign || info->space) in __printf_size()
164 if (!info->left && width > 0) in __printf_size()
[all …]
Dtst-vfprintf-user-type.c56 my_printf_function (FILE *fp, const struct printf_info *info, in my_printf_function() argument
61 __func__, fp, info, args[0], args, (wint_t) info->spec, in my_printf_function()
62 info->prec); in my_printf_function()
64 TEST_COMPARE (info->wide, fwide (fp, 0) > 0); in my_printf_function()
66 TEST_VERIFY (info->spec == 'P'); in my_printf_function()
69 if (info->prec >= 0) in my_printf_function()
71 if (info->wide) in my_printf_function()
81 nargs = info->prec; in my_printf_function()
94 if (info->wide) in my_printf_function()
112 if (info->wide) in my_printf_function()
[all …]
Dprintf_fp.c214 const struct printf_info *info, in __printf_fp_l() argument
266 int wide = info->wide; in __printf_fp_l()
277 if (info->extra == 0) in __printf_fp_l()
298 if (info->group) in __printf_fp_l()
300 if (info->extra == 0) in __printf_fp_l()
312 if (info->extra == 0) in __printf_fp_l()
322 if (info->extra == 0) in __printf_fp_l()
351 if (isupper (info->spec)) \ in __printf_fp_l()
365 if (isupper (info->spec)) \ in __printf_fp_l()
387 if (info->is_binary128) in __printf_fp_l()
[all …]
Dvfprintf-internal.c348 __printf_fp_spec (FILE *fp, const struct printf_info *info, in __printf_fp_spec() argument
351 if (info->spec == 'a' || info->spec == 'A') in __printf_fp_spec()
352 return __printf_fphex (fp, info, args); in __printf_fp_spec()
354 return __printf_fp (fp, info, args); in __printf_fp_spec()
1038 struct printf_info info = in vfprintf() local
1058 PARSE_FLOAT_VA_ARG_EXTENDED (info); in vfprintf()
1061 int function_done = __printf_fp_spec (s, &info, &ptr); in vfprintf()
1243 (void) (*__printf_arginfo_table[specs[cnt].info.spec]) in printf_positional()
1244 (&specs[cnt].info, in printf_positional()
1329 int alt = specs[nspecs_done].info.alt; in printf_positional()
[all …]
Dtst-printfsz-islongdouble.c32 struct printf_info info; in do_test() local
34 memset (&info, 0, sizeof (info)); in do_test()
35 info.spec = L'f'; in do_test()
38 printf_size (stdout, &info, (void *) &dptr); in do_test()
41 info.is_long_double = 1; in do_test()
42 printf_size (stdout, &info, (void *) &ldptr); in do_test()
/glibc-2.36/elf/
Dget-dynamic-info.h43 ElfW(Dyn) **info = l->l_info; in elf_get_dynamic_info()
68 info[i] = dyn; in elf_get_dynamic_info()
79 if (info[tag] != NULL) \ in elf_get_dynamic_info()
80 info[tag]->d_un.d_ptr += l_addr; \ in elf_get_dynamic_info()
98 if (info[tag] != NULL && info[tag]->d_un.d_ptr != 0) \ in elf_get_dynamic_info()
99 info[tag]->d_un.d_ptr += l_addr; \ in elf_get_dynamic_info()
110 if (info[DT_PLTREL] != NULL) in elf_get_dynamic_info()
113 assert (info[DT_PLTREL]->d_un.d_val == DT_REL); in elf_get_dynamic_info()
115 assert (info[DT_PLTREL]->d_un.d_val == DT_RELA); in elf_get_dynamic_info()
117 assert (info[DT_PLTREL]->d_un.d_val == DT_REL in elf_get_dynamic_info()
[all …]
Ddl-iteratephdr.c31 __dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info, in __dl_iterate_phdr() argument
35 struct dl_phdr_info info; in __dl_iterate_phdr() local
64 info.dlpi_addr = l->l_real->l_addr; in __dl_iterate_phdr()
65 info.dlpi_name = l->l_real->l_name; in __dl_iterate_phdr()
66 info.dlpi_phdr = l->l_real->l_phdr; in __dl_iterate_phdr()
67 info.dlpi_phnum = l->l_real->l_phnum; in __dl_iterate_phdr()
68 info.dlpi_adds = GL(dl_load_adds); in __dl_iterate_phdr()
69 info.dlpi_subs = GL(dl_load_adds) - nloaded; in __dl_iterate_phdr()
70 info.dlpi_tls_data = NULL; in __dl_iterate_phdr()
71 info.dlpi_tls_modid = l->l_real->l_tls_modid; in __dl_iterate_phdr()
[all …]
Dtst-auditmod28.c63 Dl_info info = { }; in la_version() local
64 TEST_VERIFY (dladdr (&_exit, &info) != 0); in la_version()
65 if (strcmp (info.dli_sname, "_Exit") != 0) /* _Exit is an alias. */ in la_version()
66 TEST_COMPARE_STRING (info.dli_sname, "_exit"); in la_version()
67 TEST_VERIFY (info.dli_saddr == &_exit); in la_version()
68 TEST_VERIFY (strstr (info.dli_fname, LIBC_SO)); in la_version()
70 memset (&info, 0, sizeof (info)); in la_version()
71 TEST_VERIFY (dladdr1 (&_exit, &info, &extra_info, RTLD_DL_LINKMAP) != 0); in la_version()
77 memset (&info, 0, sizeof (info)); in la_version()
80 TEST_VERIFY (dladdr1 (ptr, &info, &extra_info, RTLD_DL_LINKMAP) != 0); in la_version()
Ddl-addr.c26 determine_info (const ElfW(Addr) addr, struct link_map *match, Dl_info *info, in determine_info() argument
30 info->dli_fname = match->l_name; in determine_info()
31 info->dli_fbase = (void *) match->l_map_start; in determine_info()
36 info->dli_fname = _dl_argv[0]; in determine_info()
105 info->dli_sname = strtab + matchsym->st_name; in determine_info()
106 info->dli_saddr = DL_SYMBOL_ADDRESS (matchl, matchsym); in determine_info()
111 info->dli_sname = NULL; in determine_info()
112 info->dli_saddr = NULL; in determine_info()
118 _dl_addr (const void *address, Dl_info *info, in _dl_addr() argument
131 determine_info (addr, l, info, mapp, symbolp); in _dl_addr()
/glibc-2.36/debug/
Dbacktracesyms.c38 Dl_info info[size]; in __backtrace_symbols() local
48 status[cnt] = _dl_addr (array[cnt], &info[cnt], &map, NULL); in __backtrace_symbols()
49 if (status[cnt] && info[cnt].dli_fname && info[cnt].dli_fname[0] != '\0') in __backtrace_symbols()
53 total += (strlen (info[cnt].dli_fname ?: "") in __backtrace_symbols()
54 + strlen (info[cnt].dli_sname ?: "") in __backtrace_symbols()
61 info[cnt].dli_fbase = (void *) map->l_addr; in __backtrace_symbols()
78 && info[cnt].dli_fname != NULL && info[cnt].dli_fname[0] != '\0') in __backtrace_symbols()
80 if (info[cnt].dli_sname == NULL) in __backtrace_symbols()
83 info[cnt].dli_saddr = info[cnt].dli_fbase; in __backtrace_symbols()
85 if (info[cnt].dli_sname == NULL && info[cnt].dli_saddr == 0) in __backtrace_symbols()
[all …]
Dbacktracesymsfd.c44 Dl_info info; in __backtrace_symbols_fd() local
48 if (_dl_addr (array[cnt], &info, &map, NULL) in __backtrace_symbols_fd()
49 && info.dli_fname != NULL && info.dli_fname[0] != '\0') in __backtrace_symbols_fd()
52 iov[0].iov_base = (void *) info.dli_fname; in __backtrace_symbols_fd()
53 iov[0].iov_len = strlen (info.dli_fname); in __backtrace_symbols_fd()
56 if (info.dli_sname != NULL || map->l_addr != 0) in __backtrace_symbols_fd()
64 if (info.dli_sname != NULL) in __backtrace_symbols_fd()
67 iov[last].iov_base = (void *) info.dli_sname; in __backtrace_symbols_fd()
68 iov[last].iov_len = strlen (info.dli_sname); in __backtrace_symbols_fd()
77 info.dli_saddr = (void *) map->l_addr; in __backtrace_symbols_fd()
[all …]
/glibc-2.36/sysdeps/unix/sysv/linux/
Dtst-pidfd.c56 siginfo_t info; in subprocess() local
57 TEST_COMPARE (sigtimedwait (&set, &info, NULL), SIGUSR1); in subprocess()
58 TEST_COMPARE (info.si_signo, SIGUSR1); in subprocess()
59 TEST_COMPARE (info.si_errno, 0); in subprocess()
60 TEST_COMPARE (info.si_code, SI_USER); in subprocess()
61 TEST_COMPARE (info.si_pid, ppid); in subprocess()
62 TEST_COMPARE (info.si_uid, puid); in subprocess()
70 siginfo_t info; in subprocess() local
71 TEST_COMPARE (sigtimedwait (&set, &info, NULL), SIGUSR2); in subprocess()
72 TEST_COMPARE (info.si_signo, SIGUSR2); in subprocess()
[all …]
Daio_sigqueue.c33 siginfo_t info; in __aio_sigqueue() local
37 memset (&info, 0, sizeof (siginfo_t)); in __aio_sigqueue()
39 info.si_signo = sig; in __aio_sigqueue()
40 info.si_code = SI_ASYNCIO; in __aio_sigqueue()
41 info.si_pid = caller_pid; in __aio_sigqueue()
42 info.si_uid = __getuid (); in __aio_sigqueue()
43 info.si_value = val; in __aio_sigqueue()
45 return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, sig, &info); in __aio_sigqueue()
Dgai_sigqueue.c33 siginfo_t info; in __gai_sigqueue() local
37 memset (&info, 0, sizeof (siginfo_t)); in __gai_sigqueue()
39 info.si_signo = sig; in __gai_sigqueue()
40 info.si_code = SI_ASYNCNL; in __gai_sigqueue()
41 info.si_pid = caller_pid; in __gai_sigqueue()
42 info.si_uid = __getuid (); in __gai_sigqueue()
43 info.si_value = val; in __gai_sigqueue()
45 return INLINE_SYSCALL (rt_sigqueueinfo, 3, info.si_pid, sig, &info); in __gai_sigqueue()
Dsigqueue.c28 siginfo_t info; in __sigqueue() local
32 memset (&info, 0, sizeof (siginfo_t)); in __sigqueue()
34 info.si_signo = sig; in __sigqueue()
35 info.si_code = SI_QUEUE; in __sigqueue()
36 info.si_pid = __getpid (); in __sigqueue()
37 info.si_uid = __getuid (); in __sigqueue()
38 info.si_value = val; in __sigqueue()
40 return INLINE_SYSCALL_CALL (rt_sigqueueinfo, pid, sig, &info); in __sigqueue()
Dsigtimedwait.c22 __sigtimedwait64 (const sigset_t *set, siginfo_t *info, in __sigtimedwait64() argument
31 result = SYSCALL_CANCEL (rt_sigtimedwait_time64, set, info, timeout, in __sigtimedwait64()
37 result = SYSCALL_CANCEL (rt_sigtimedwait_time64, set, info, timeout, in __sigtimedwait64()
52 result = SYSCALL_CANCEL (rt_sigtimedwait, set, info, pts32, in __sigtimedwait64()
61 if (result != -1 && info != NULL && info->si_code == SI_TKILL) in __sigtimedwait64()
62 info->si_code = SI_USER; in __sigtimedwait64()
70 __sigtimedwait (const sigset_t *set, siginfo_t *info, in libc_hidden_def()
79 return __sigtimedwait64 (set, info, pts64); in libc_hidden_def()
/glibc-2.36/dlfcn/
Dmodstatic2.c42 Dl_info info; in test() local
43 int res = dladdr (test2, &info); in test()
51 if (strstr (info.dli_fname, "modstatic2.so") == NULL in test()
52 || strcmp (info.dli_sname, "test") != 0) in test()
54 fprintf (out, "fname %s sname %s\n", info.dli_fname, info.dli_sname); in test()
57 if (info.dli_saddr != (void *) test2) in test()
59 fprintf (out, "saddr %p != test %p\n", info.dli_saddr, test2); in test()
66 res = dladdr1 (test2, &info, &symp, RTLD_DL_SYMENT); in test()
74 if (strstr (info.dli_fname, "modstatic2.so") == NULL in test()
75 || strcmp (info.dli_sname, "test") != 0) in test()
[all …]
Dtst-dladdr.c35 Dl_info info; in do_test() local
47 memset (&info, 0, sizeof (info)); in do_test()
48 ret = dladdr (sym, &info); in do_test()
54 printf ("info.dli_fname = %p (\"%s\")\n", info.dli_fname, info.dli_fname); in do_test()
55 printf ("info.dli_fbase = %p\n", info.dli_fbase); in do_test()
56 printf ("info.dli_sname = %p (\"%s\")\n", info.dli_sname, info.dli_sname); in do_test()
57 printf ("info.dli_saddr = %p\n", info.dli_saddr); in do_test()
59 if (info.dli_fname == NULL) in do_test()
61 if (info.dli_fbase == NULL) in do_test()
63 if (info.dli_sname == NULL) in do_test()
[all …]
Dtststatic2.c33 Dl_info info; in do_test() local
34 int res = dladdr (test, &info); in do_test()
42 if (strstr (info.dli_fname, "modstatic2.so") == NULL in do_test()
43 || strcmp (info.dli_sname, "test") != 0) in do_test()
45 printf ("fname %s sname %s\n", info.dli_fname, info.dli_sname); in do_test()
48 if (info.dli_saddr != (void *) test) in do_test()
50 printf ("saddr %p != test %p\n", info.dli_saddr, test); in do_test()
57 res = dladdr1 (test, &info, &symp, RTLD_DL_SYMENT); in do_test()
65 if (strstr (info.dli_fname, "modstatic2.so") == NULL in do_test()
66 || strcmp (info.dli_sname, "test") != 0) in do_test()
[all …]
/glibc-2.36/malloc/
Dmtrace-impl.c39 tr_where (const void *caller, Dl_info *info) in tr_where() argument
43 if (info != NULL) in tr_where()
46 if (info->dli_sname != NULL) in tr_where()
48 size_t len = strlen (info->dli_sname); in tr_where()
52 (ptrdiff_t) info->dli_saddr - (ptrdiff_t) caller; in tr_where()
54 if (caller >= (const void *) info->dli_saddr) in tr_where()
62 sprintf (buf, "(%s%c%" PRIxPTR ")", info->dli_sname, sign, in tr_where()
67 info->dli_fname ? : "", info->dli_fname ? ":" : "", buf, in tr_where()
68 caller - info->dli_fbase); in tr_where()
95 Dl_info *info = lock_and_info (caller, &mem); in free_mtrace() local
[all …]
/glibc-2.36/stdlib/
Dstrfrom-skeleton.c58 struct printf_info info; in STRFROM() local
127 memset (&info, '\0', sizeof (info)); in STRFROM()
133 info.is_long_double = __builtin_types_compatible_p (FLOAT, long double); in STRFROM()
138 info.is_binary128 = __builtin_types_compatible_p (FLOAT, _Float128); in STRFROM()
142 info.prec = precision; in STRFROM()
143 info.spec = specifier; in STRFROM()
145 if (info.spec != 'a' && info.spec != 'A') in STRFROM()
146 done = __printf_fp_l (&sfile.f._sbf._f, _NL_CURRENT_LOCALE, &info, &fpptr); in STRFROM()
148 done = __printf_fphex (&sfile.f._sbf._f, &info, &fpptr); in STRFROM()
/glibc-2.36/nptl/
Dpthread_sigqueue.c49 siginfo_t info; in __pthread_sigqueue() local
50 memset (&info, '\0', sizeof (siginfo_t)); in __pthread_sigqueue()
51 info.si_signo = signo; in __pthread_sigqueue()
52 info.si_code = SI_QUEUE; in __pthread_sigqueue()
53 info.si_pid = pid; in __pthread_sigqueue()
54 info.si_uid = __getuid (); in __pthread_sigqueue()
55 info.si_value = value; in __pthread_sigqueue()
59 &info); in __pthread_sigqueue()

12345678