Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 249) sorted by relevance

12345678910

/glibc-2.36/resolv/
Dtst-resolv-trustad.c42 HEADER header; in response() local
43 memcpy (&header, ctx->query_buffer, sizeof (header)); in response()
44 TEST_COMPARE (header.ad, query_ad_bit); in response()
60 HEADER header; in check_answer() local
61 TEST_VERIFY (buffer_length > sizeof (header)); in check_answer()
62 memcpy (&header, buffer, sizeof (header)); in check_answer()
63 TEST_COMPARE (0, header.aa); in check_answer()
64 TEST_COMPARE (expected_ad, header.ad); in check_answer()
65 TEST_COMPARE (0, header.opcode); in check_answer()
66 TEST_COMPARE (1, header.qr); in check_answer()
[all …]
Dres-noaaaa.c54 HEADER header; in __res_handle_no_aaaa() member
57 memcpy (&replacement.header, buf, sizeof (replacement.header)); in __res_handle_no_aaaa()
59 if (replacement.header.qr in __res_handle_no_aaaa()
60 || replacement.header.opcode != 0 in __res_handle_no_aaaa()
61 || replacement.header.rcode != 0 in __res_handle_no_aaaa()
62 || ntohs (replacement.header.qdcount) != 1 in __res_handle_no_aaaa()
63 || ntohs (replacement.header.ancount) != 0 in __res_handle_no_aaaa()
64 || ntohs (replacement.header.nscount) != 0) in __res_handle_no_aaaa()
70 replacement.header.arcount = htons (0); in __res_handle_no_aaaa()
129 memcpy (&replacement.header, ans, sizeof (replacement.header)); in __res_handle_no_aaaa()
[all …]
/glibc-2.36/iconv/
Dgconv_cache.c51 struct gconvcache_header *header; in __gconv_load_cache() local
112 header = (struct gconvcache_header *) gconv_cache; in __gconv_load_cache()
113 if (__builtin_expect (header->magic, GCONVCACHE_MAGIC) != GCONVCACHE_MAGIC in __gconv_load_cache()
114 || __builtin_expect (header->string_offset >= cache_size, 0) in __gconv_load_cache()
115 || __builtin_expect (header->hash_offset >= cache_size, 0) in __gconv_load_cache()
116 || __builtin_expect (header->hash_size == 0, 0) in __gconv_load_cache()
117 || __builtin_expect ((header->hash_offset in __gconv_load_cache()
118 + header->hash_size * sizeof (struct hash_entry)) in __gconv_load_cache()
120 || __builtin_expect (header->module_offset >= cache_size, 0) in __gconv_load_cache()
121 || __builtin_expect (header->otherconv_offset > cache_size, 0)) in __gconv_load_cache()
[all …]
/glibc-2.36/nss/nss_db/
Ddb-XXX.c146 const struct nss_db_header *header = state.header; \
148 for (i = 0; i < header->ndbs; ++i) \
149 if (header->dbs[i].id == db_char) \
151 if (i == header->ndbs) \
169 = (const stridx_t *) ((const char *) header \
170 + header->dbs[i].hashoffset); \
171 const char *valstrtab = (const char *) header + header->valstroffset; \
173 size_t hidx = hashval % header->dbs[i].hashsize; \
174 size_t hval2 = 1 + hashval % (header->dbs[i].hashsize - 2); \
197 if ((hidx += hval2) >= header->dbs[i].hashsize) \
[all …]
Ddb-open.c42 struct nss_db_header header; in internal_setent() local
44 if (read (fd, &header, sizeof (header)) == sizeof (header)) in internal_setent()
46 mapping->header = mmap (NULL, header.allocate, PROT_READ, in internal_setent()
48 mapping->len = header.allocate; in internal_setent()
49 if (mapping->header != MAP_FAILED) in internal_setent()
66 if (mapping->header != NULL) in internal_endent()
68 munmap (mapping->header, mapping->len); in internal_endent()
69 mapping->header = NULL; in internal_endent()
Ddb-initgroups.c47 const struct nss_db_header *header = state.header; in _nss_db_initgroups_dyn() local
49 for (i = 0; i < header->ndbs; ++i) in _nss_db_initgroups_dyn()
50 if (header->dbs[i].id == ':') in _nss_db_initgroups_dyn()
52 if (i == header->ndbs) in _nss_db_initgroups_dyn()
59 = (const stridx_t *) ((const char *) header in _nss_db_initgroups_dyn()
60 + header->dbs[i].hashoffset); in _nss_db_initgroups_dyn()
61 const char *valstrtab = (const char *) header + header->valstroffset; in _nss_db_initgroups_dyn()
64 size_t hidx = hashval % header->dbs[i].hashsize; in _nss_db_initgroups_dyn()
65 size_t hval2 = 1 + hashval % (header->dbs[i].hashsize - 2); in _nss_db_initgroups_dyn()
132 if ((hidx += hval2) >= header->dbs[i].hashsize) in _nss_db_initgroups_dyn()
[all …]
Ddb-netgrp.c48 const struct nss_db_header *header = state.header; in _nss_db_setnetgrent() local
50 = (const stridx_t *) ((const char *) header in _nss_db_setnetgrent()
51 + header->dbs[0].hashoffset); in _nss_db_setnetgrent()
52 const char *valstrtab = (const char *) header + header->valstroffset; in _nss_db_setnetgrent()
55 size_t hidx = hashval % header->dbs[0].hashsize; in _nss_db_setnetgrent()
56 size_t hval2 = 1 + hashval % (header->dbs[0].hashsize - 2); in _nss_db_setnetgrent()
83 if ((hidx += hval2) >= header->dbs[0].hashsize) in _nss_db_setnetgrent()
84 hidx -= header->dbs[0].hashsize; in _nss_db_setnetgrent()
/glibc-2.36/malloc/
Dtst-interpose-aux.c132 struct allocation_header *header = ((struct allocation_header *) ptr) - 1; in get_header() local
133 if (header->allocation_index >= allocation_index) in get_header()
135 op, ptr, header->allocation_index, allocation_index); in get_header()
136 if (allocations[header->allocation_index] != header) in get_header()
138 op, ptr, allocations[header->allocation_index]); in get_header()
139 return header; in get_header()
178 free_internal (const char *op, struct allocation_header *header) in free_internal() argument
180 size_t index = header->allocation_index; in free_internal()
181 int result = mprotect (header, header->allocation_size, PROT_NONE); in free_internal()
183 fail ("%s: mprotect (%p, %zu): %m", op, header, header->allocation_size); in free_internal()
[all …]
/glibc-2.36/sysdeps/i386/nptl/
Dtls.h125 THREAD_SETMEM (__pd, header.dtv, (dtvp)); })
145 ((pd)->header.sysinfo = THREAD_GETMEM (THREAD_SELF, header.sysinfo))
147 assert ((pd)->header.sysinfo == THREAD_GETMEM (THREAD_SELF, header.sysinfo))
222 THREAD_GETMEM (__pd, header.dtv); })
233 (*(struct pthread *__seg_gs *) offsetof (struct pthread, header.self))
238 : "i" (offsetof (struct pthread, header.self))); \
251 THREAD_SETMEM (THREAD_SELF, header.stack_guard, value)
253 ((descr)->header.stack_guard \
254 = THREAD_GETMEM (THREAD_SELF, header.stack_guard))
259 THREAD_SETMEM (THREAD_SELF, header.pointer_guard, value)
[all …]
/glibc-2.36/locale/
DC-ctype.c295 uint32_t header[5]; \
460 uint32_t header[5]; member
506 uint32_t header[5]; member
583 { .string = (const char *) _nl_C_LC_CTYPE_width.header },
667 { .string = (const char *) _nl_C_LC_CTYPE_class_upper.header },
668 { .string = (const char *) _nl_C_LC_CTYPE_class_lower.header },
669 { .string = (const char *) _nl_C_LC_CTYPE_class_alpha.header },
670 { .string = (const char *) _nl_C_LC_CTYPE_class_digit.header },
671 { .string = (const char *) _nl_C_LC_CTYPE_class_xdigit.header },
672 { .string = (const char *) _nl_C_LC_CTYPE_class_space.header },
[all …]
/glibc-2.36/elf/
Dtst-_dl_addr_inside_object.c33 ElfW(Phdr) header; in do_test()
34 map.l_phdr = &header; in do_test()
38 header.p_vaddr = 0x2000; in do_test()
39 header.p_memsz = 0x2000; in do_test()
40 header.p_type = PT_LOAD; in do_test()
139 header.p_vaddr = 0x0 - 0x1; in do_test()
140 header.p_memsz = 0x1; in do_test()
157 header.p_vaddr = 0x0; in do_test()
158 header.p_memsz = 0x1; in do_test()
175 header.p_vaddr = 0x0; in do_test()
[all …]
Ddl-load.h88 _dl_postprocess_loadcmd (struct link_map *l, const ElfW(Ehdr) *header, in _dl_postprocess_loadcmd() argument
95 && c->mapoff <= header->e_phoff in _dl_postprocess_loadcmd()
97 >= header->e_phoff + header->e_phnum * sizeof (ElfW(Phdr)))) in _dl_postprocess_loadcmd()
99 l->l_phdr = (void *) (uintptr_t) (c->mapstart + header->e_phoff in _dl_postprocess_loadcmd()
117 const ElfW(Ehdr) *header, int type,
/glibc-2.36/sysdeps/x86_64/nptl/
Dtls.h129 THREAD_SETMEM (__pd, header.dtv, (dtvp)); })
168 THREAD_GETMEM (__pd, header.dtv); })
179 (*(struct pthread *__seg_fs *) offsetof (struct pthread, header.self))
184 : "i" (offsetof (struct pthread, header.self))); \
196 THREAD_SETMEM (THREAD_SELF, header.stack_guard, value)
198 ((descr)->header.stack_guard \
199 = THREAD_GETMEM (THREAD_SELF, header.stack_guard))
204 THREAD_SETMEM (THREAD_SELF, header.pointer_guard, value)
206 ((descr)->header.pointer_guard \
207 = THREAD_GETMEM (THREAD_SELF, header.pointer_guard))
[all …]
/glibc-2.36/scripts/
Dcheck-wrapper-headers.py59 for header in args.headers:
60 if not (header.startswith('bits/')
61 or os.path.exists(os.path.join(args.root, INCLUDE, header))
62 or header in generated):
64 .format(header, INCLUDE))
71 for header in args.headers:
73 if header.endswith(".x"):
76 is_nonsysdep_header = os.access(header, os.R_OK)
79 if header.startswith("finclude/"):
82 include_path = os.path.join(args.root, INCLUDE, header)
[all …]
/glibc-2.36/posix/
Dannexc.c557 static struct header struct
633 static int check_header (const struct header *, const char **);
801 check_header (const struct header *header, const char **except) in check_header() argument
803 char line[BUFSIZ], command[sizeof fmt + strlen (header->name) in check_header()
808 int found[header->nsyms]; in check_header()
811 memset (found, '\0', header->nsyms * sizeof (int)); in check_header()
813 printf ("=== %s ===\n", header->name); in check_header()
814 sprintf (command, fmt, header->name, CC, INC, CC, macrofile); in check_header()
817 if (header->subset != NULL) in check_header()
819 sprintf (line, testfmt, header->subset, header->subset, CC, INC, CC, in check_header()
[all …]
/glibc-2.36/hurd/
Dintr-msg.c56 mach_msg_header_t header; in _hurd_intr_rpc_mach_msg() member
60 mach_msg_header_t header; in _hurd_intr_rpc_mach_msg() member
70 mach_msg_header_t header; in _hurd_intr_rpc_mach_msg() member
87 return __mach_msg (&m->header, option, send_size, rcv_size, rcv_name, in _hurd_intr_rpc_mach_msg()
95 msgh_bits = m->header.msgh_bits; in _hurd_intr_rpc_mach_msg()
96 remote_port = m->header.msgh_remote_port; in _hurd_intr_rpc_mach_msg()
97 msgid = m->header.msgh_id; in _hurd_intr_rpc_mach_msg()
106 ss->intr_port = m->header.msgh_remote_port; in _hurd_intr_rpc_mach_msg()
308 m->header.msgh_local_port = rcv_name = __mig_get_reply_port (); in _hurd_intr_rpc_mach_msg()
309 m->header.msgh_bits = msgh_bits; in _hurd_intr_rpc_mach_msg()
[all …]
/glibc-2.36/nss/
Dmakedb.c738 struct nss_db_header *header; in write_output() local
740 + (ndatabases * sizeof (header->dbs[0]))); in write_output()
741 header = alloca (file_offset); in write_output()
743 header->magic = NSS_DB_MAGIC; in write_output()
744 header->ndbs = ndatabases; in write_output()
745 header->valstroffset = file_offset; in write_output()
746 header->valstrlen = valstrlen; in write_output()
751 iov[0].iov_base = header; in write_output()
765 header->dbs[filled_dbs].id = db->dbid; in write_output()
766 memset (header->dbs[filled_dbs].pad, '\0', in write_output()
[all …]
/glibc-2.36/support/
Dsupport_shared_allocate.c27 struct header struct
36 size_t total_size = size + offsetof (struct header, data); in support_shared_allocate() argument
45 struct header *result = xmmap (NULL, total_size, PROT_READ | PROT_WRITE, in support_shared_allocate()
55 struct header *header = data - offsetof (struct header, data); in support_shared_free() local
56 xmunmap (header, header->total_size); in support_shared_free()
/glibc-2.36/sysdeps/sparc/nptl/
Dtls.h113 THREAD_SETMEM (THREAD_SELF, header.stack_guard, value)
115 ((descr)->header.stack_guard \
116 = THREAD_GETMEM (THREAD_SELF, header.stack_guard))
120 THREAD_GETMEM (THREAD_SELF, header.pointer_guard)
122 THREAD_SETMEM (THREAD_SELF, header.pointer_guard, value)
124 ((descr)->header.pointer_guard = THREAD_GET_POINTER_GUARD ())
133 = atomic_exchange_rel (&THREAD_SELF->header.gscope_flag, \
136 lll_futex_wake (&THREAD_SELF->header.gscope_flag, 1, LLL_PRIVATE); \
142 THREAD_SELF->header.gscope_flag = THREAD_GSCOPE_FLAG_USED; \
/glibc-2.36/conform/
DMakefile101 conformtest-header-list-base := $(foreach std,$(conformtest-standards),\
102 header-list-$(std).out)
103 conformtest-header-list-tests := $(addprefix $(objpfx),\
104 $(conformtest-header-list-base))
105 tests-special += $(conformtest-header-list-tests)
106 generated += $(conformtest-header-list-base)
108 conformtest-header-base := $(foreach std,\
113 conformtest-header-tests := $(addprefix $(objpfx),$(conformtest-header-base))
115 tests-special += $(conformtest-header-tests)
116 generated += $(conformtest-header-base)
[all …]
/glibc-2.36/sysdeps/s390/nptl/
Dtls.h139 THREAD_SETMEM (THREAD_SELF, header.stack_guard, value); \
143 ((descr)->header.stack_guard \
144 = THREAD_GETMEM (THREAD_SELF, header.stack_guard))
149 THREAD_GETMEM (THREAD_SELF, header.stack_guard)
160 = atomic_exchange_rel (&THREAD_SELF->header.gscope_flag, \
163 lll_futex_wake (&THREAD_SELF->header.gscope_flag, 1, LLL_PRIVATE); \
169 THREAD_SELF->header.gscope_flag = THREAD_GSCOPE_FLAG_USED; \
/glibc-2.36/sysdeps/x86_64/
Dtst-x86-64-tls-1.c26 saved_ssp_base = THREAD_GETMEM (THREAD_SELF, header.ssp_base); in do_test()
28 THREAD_SETMEM (THREAD_SELF, header.ssp_base, (1ULL << 57) - 1); in do_test()
29 ssp_base = THREAD_GETMEM (THREAD_SELF, header.ssp_base); in do_test()
34 THREAD_SETMEM (THREAD_SELF, header.ssp_base, -1ULL); in do_test()
35 ssp_base = THREAD_GETMEM (THREAD_SELF, header.ssp_base); in do_test()
39 THREAD_SETMEM (THREAD_SELF, header.ssp_base, saved_ssp_base); in do_test()
/glibc-2.36/conform/data/
Dwctype.h-data53 allow-header ctype.h
54 allow-header stdio.h
55 allow-header stdarg.h
56 allow-header stdlib.h
57 allow-header string.h
58 allow-header stddef.h
59 allow-header time.h
60 allow-header wchar.h
/glibc-2.36/manual/
Dsummary.pl341 my ($header, $standard, $node)
343 if ($header =~ /^\(none\)$/i) {
344 $header = "\@emph{no header}";
345 } elsif ($header =~ /\(optional\)$/) {
346 $header =~ s/^(\S+) \((.*)\)$/\@file{$1} \@emph{$2}/;
347 } elsif ($header ne '???') {
348 $header = "\@file{$header}";
350 print "$header ($standard): \@ref{$node}.\n\n";
/glibc-2.36/sysdeps/mach/hurd/
Dioctl.c62 mig_reply_header_t header; in __ioctl() member
75 mig_reply_error_t header; in __ioctl()
82 mach_msg_header_t *const m = &msg.header.Head; in __ioctl()
101 mach_msg_type_t *t = &msg.header.RetCodeType; in __ioctl()
103 void *p = &msg.header.RetCode; in __ioctl()
204 && m->msgh_size != sizeof msg.header) in __ioctl()
210 { t: io2mach_type (1, _IOTS (msg.header.RetCode)) }).i) in __ioctl()
213 return msg.header.RetCode; in __ioctl()
250 reply_size = sizeof msg.header; in __ioctl()

12345678910