/glibc-2.36/inet/ |
D | inet6_opt.c | 52 add_padding (uint8_t *extbuf, int offset, int npad) in add_padding() argument 55 extbuf[offset] = IP6OPT_PAD1; in add_padding() 58 struct ip6_opt *pad_opt = (struct ip6_opt *) (extbuf + offset); in add_padding() 79 inet6_opt_append (void *extbuf, socklen_t extlen, int offset, uint8_t type, in inet6_opt_append() argument 83 if (offset < sizeof (struct ip6_hbh)) in inet6_opt_append() 104 int data_offset = offset + sizeof (struct ip6_opt); in inet6_opt_append() 113 add_padding (extbuf, offset, npad); in inet6_opt_append() 115 offset += npad; in inet6_opt_append() 118 struct ip6_opt *opt = (struct ip6_opt *) ((uint8_t *) extbuf + offset); in inet6_opt_append() 126 offset += npad; in inet6_opt_append() [all …]
|
D | test-inet6_opt.c | 18 int offset; in encode_inet6_opt() local 61 offset = inet6_opt_set_val (db, 0, &val4, sizeof (val4)); in encode_inet6_opt() 63 inet6_opt_set_val (db, offset, &val8, sizeof (val8)); in encode_inet6_opt() 68 offset = inet6_opt_set_val (db, 0, &val1, sizeof (val1)); in encode_inet6_opt() 70 offset = inet6_opt_set_val (db, offset, &val2, sizeof (val2)); in encode_inet6_opt() 72 inet6_opt_set_val (db, offset, &val4, sizeof (val4)); in encode_inet6_opt() 97 int offset; in decode_inet6_opt() local 121 offset = inet6_opt_get_val (db, 0, &val4, sizeof (val4)); in decode_inet6_opt() 127 offset = inet6_opt_get_val (db, offset, &val8, sizeof (val8)); in decode_inet6_opt() 128 if (offset != len || val8 != 0x0102030405060708LL) in decode_inet6_opt() [all …]
|
/glibc-2.36/posix/ |
D | wordexp.c | 49 const char *words, size_t *offset, int flags, 54 size_t *offset, int flags, wordexp_t *pwordexp, 57 const char *words, size_t *offset, int flags, 182 const char *words, size_t *offset) in parse_backslash() argument 186 switch (words[1 + *offset]) in parse_backslash() 193 ++(*offset); in parse_backslash() 197 *word = w_addchar (*word, word_length, max_length, words[1 + *offset]); in parse_backslash() 201 ++(*offset); in parse_backslash() 210 const char *words, size_t *offset) in parse_qtd_backslash() argument 214 switch (words[1 + *offset]) in parse_qtd_backslash() [all …]
|
D | tst-truncate-common.c | 49 do_test_with_offset (off_t offset) in do_test_with_offset() argument 56 if (pwrite (temp_fd, buf, sizeof (buf), offset) != sizeof (buf)) in do_test_with_offset() 58 if (fstat (temp_fd, &st) < 0 || st.st_size != (offset + sizeof (buf))) in do_test_with_offset() 61 if (ftruncate (temp_fd, offset + 800) < 0) in do_test_with_offset() 63 if (fstat (temp_fd, &st) < 0 || st.st_size != (offset + 800)) in do_test_with_offset() 69 if (ftruncate (temp_fd, offset + 1200) < 0) in do_test_with_offset() 71 if (fstat (temp_fd, &st) < 0 || st.st_size != (offset + 1200)) in do_test_with_offset() 74 if (truncate (temp_filename, offset + 800) < 0) in do_test_with_offset() 76 if (fstat (temp_fd, &st) < 0 || st.st_size != (offset + 800)) in do_test_with_offset() 82 if (truncate (temp_filename, (offset + 1200)) < 0) in do_test_with_offset() [all …]
|
D | tst-regex.c | 220 size_t offset; in run_test() local 237 offset = 0; in run_test() 239 while (offset < memlen) in run_test() 245 err = regexec (&re, mem + offset, 1, ma, 0); in run_test() 257 sp = mem + offset + ma[0].rm_so; in run_test() 261 ep = mem + offset + ma[0].rm_so; in run_test() 267 offset = ep + 1 - mem; in run_test() 300 offset = 0; in run_test() 310 while (offset < memlen) in run_test() 314 err = regexec (&re, mem + offset, 1, ma, 0); in run_test() [all …]
|
/glibc-2.36/sysdeps/sparc/sparc32/ |
D | memset.S | 23 #define ZERO_BIG_BLOCK(base, offset, source) \ argument 24 std source, [base + offset + 0x00]; \ 25 std source, [base + offset + 0x08]; \ 26 std source, [base + offset + 0x10]; \ 27 std source, [base + offset + 0x18]; \ 28 std source, [base + offset + 0x20]; \ 29 std source, [base + offset + 0x28]; \ 30 std source, [base + offset + 0x30]; \ 31 std source, [base + offset + 0x38]; 33 #define ZERO_LAST_BLOCKS(base, offset, source) \ argument [all …]
|
D | memcpy.S | 23 #define MOVE_BIGCHUNK(src, dst, offset, t0, t1, t2, t3, t4, t5, t6, t7) \ argument 24 ldd [%src + offset + 0x00], %t0; \ 25 ldd [%src + offset + 0x08], %t2; \ 26 ldd [%src + offset + 0x10], %t4; \ 27 ldd [%src + offset + 0x18], %t6; \ 28 st %t0, [%dst + offset + 0x00]; \ 29 st %t1, [%dst + offset + 0x04]; \ 30 st %t2, [%dst + offset + 0x08]; \ 31 st %t3, [%dst + offset + 0x0c]; \ 32 st %t4, [%dst + offset + 0x10]; \ [all …]
|
/glibc-2.36/sysdeps/posix/ |
D | posix_fallocate64.c | 31 __posix_fallocate64_l64 (int fd, __off64_t offset, __off64_t len) in __posix_fallocate64_l64() argument 35 if (offset < 0 || len < 0) in __posix_fallocate64_l64() 40 if ((__off64_t) ((uint64_t) offset + (uint64_t) len) < 0) in __posix_fallocate64_l64() 62 if (st.st_size < offset) in __posix_fallocate64_l64() 64 int ret = __ftruncate64 (fd, offset); in __posix_fallocate64_l64() 100 for (offset += (len - 1) % increment; len > 0; offset += increment) in __posix_fallocate64_l64() 104 if (offset < st.st_size) in __posix_fallocate64_l64() 107 ssize_t rsize = __libc_pread64 (fd, &c, 1, offset); in __posix_fallocate64_l64() 117 if (__libc_pwrite64 (fd, "", 1, offset) != 1) in __posix_fallocate64_l64() 132 __posix_fallocate64_l32 (int fd, off64_t offset, size_t len) in __posix_fallocate64_l32() argument [all …]
|
D | posix_fallocate.c | 31 posix_fallocate (int fd, __off_t offset, __off_t len) in posix_fallocate() argument 35 if (offset < 0 || len < 0) in posix_fallocate() 40 if ((__off_t) ((uint64_t) offset + (uint64_t) len) < 0) in posix_fallocate() 62 if (st.st_size < offset) in posix_fallocate() 64 int ret = __ftruncate (fd, offset); in posix_fallocate() 100 for (offset += (len - 1) % increment; len > 0; offset += increment) in posix_fallocate() 104 if (offset < st.st_size) in posix_fallocate() 107 ssize_t rsize = __pread (fd, &c, 1, offset); in posix_fallocate() 117 if (__pwrite (fd, "", 1, offset) != 1) in posix_fallocate()
|
/glibc-2.36/sysdeps/x86_64/multiarch/ |
D | strspn-sse4.c | 70 unsigned int offset = (int) ((size_t) a & 15); in STRSPN() local 72 if (offset != 0) in STRSPN() 80 maskz_bits = _mm_movemask_epi8 (maskz) >> offset; in STRSPN() 83 mask = __m128i_shift_right (mask0, offset); in STRSPN() 84 offset = (unsigned int) ((size_t) s & 15); in STRSPN() 85 if (offset) in STRSPN() 107 offset = (unsigned int) ((size_t) s & 15); in STRSPN() 109 if (offset != 0) in STRSPN() 115 __m128i adj_value = __m128i_shift_right (value, offset); in STRSPN() 119 if (length < 16 - offset) in STRSPN() [all …]
|
D | strcspn-sse4.c | 94 unsigned int offset = (unsigned int) ((size_t) a & 15); in STRCSPN() local 96 if (offset != 0) in STRCSPN() 104 maskz_bits = _mm_movemask_epi8 (maskz) >> offset; in STRCSPN() 107 mask = __m128i_shift_right (mask0, offset); in STRCSPN() 108 offset = (unsigned int) ((size_t) s & 15); in STRCSPN() 109 if (offset) in STRCSPN() 131 offset = (unsigned int) ((size_t) s & 15); in STRCSPN() 132 if (offset != 0) in STRCSPN() 139 value = __m128i_shift_right (value, offset); in STRCSPN() 148 if (index < 16 - offset) in STRCSPN()
|
/glibc-2.36/sysdeps/unix/sysv/linux/generic/wordsize-32/ |
D | sendfile.c | 26 sendfile (int out_fd, int in_fd, off_t *offset, size_t count) in sendfile() argument 31 if (offset != NULL) in sendfile() 33 if (*offset < 0 || (off_t) (*offset + count) < 0) in sendfile() 38 off64 = *offset; in sendfile() 42 offset ? &off64 : NULL, count); in sendfile() 43 if (offset) in sendfile() 44 *offset = off64; in sendfile()
|
/glibc-2.36/string/ |
D | test-strnlen.c | 189 size_t i, exp_len, start_offset, offset; in do_page_tests() local 198 offset = last_offset; in do_page_tests() 202 offset--; in do_page_tests() 203 exp_len = last_offset - offset; in do_page_tests() 211 do_one_test (impl, (CHAR *) (s + offset), page_size, exp_len); in do_page_tests() 212 do_one_test (impl, (CHAR *) (s + offset), exp_len + 1, exp_len); in do_page_tests() 213 do_one_test (impl, (CHAR *) (s + offset), exp_len, exp_len); in do_page_tests() 215 do_one_test (impl, (CHAR *) (s + offset), exp_len - 1, exp_len - 1); in do_page_tests() 224 offset = start_offset + i; in do_page_tests() 225 if (offset >= (last_offset + 1)) in do_page_tests() [all …]
|
/glibc-2.36/iconvdata/ |
D | cns11643.h | 42 cns11643_to_ucs4 (const unsigned char **s, size_t avail, unsigned char offset) in uint32_t() 50 if (ch < offset || (ch - offset) <= 0x20 || (ch - offset) > 0x30) in uint32_t() 57 if ((ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f) in uint32_t() 61 if ((ch3 - offset) <= 0x20 || (ch3 - offset) >= 0x7f) in uint32_t() 64 idx = (ch2 - 0x21 - offset) * 94 + (ch3 - 0x21 - offset); in uint32_t() 66 switch (ch - 0x20 - offset) in uint32_t()
|
D | jis0212.h | 45 jisx0212_to_ucs4 (const unsigned char **s, size_t avail, unsigned char offset) in uint32_t() 53 if (ch < offset || (ch - offset) < 0x22 || (ch - offset) > 0x6d) in uint32_t() 60 if (ch2 < offset || (ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f) in uint32_t() 63 idx = (ch - offset - 0x21) * 94 + (ch2 - offset - 0x21); in uint32_t()
|
D | cns11643l2.h | 29 unsigned char offset) in uint32_t() 35 if (ch < offset || (ch - offset) <= 0x20 || (ch - offset) > 0x7d) in uint32_t() 42 if ((ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f) in uint32_t() 45 idx = (ch - 0x21 - offset) * 94 + (ch2 - 0x21 - offset); in uint32_t()
|
D | ksc5601.h | 47 ksc5601_to_ucs4 (const unsigned char **s, size_t avail, unsigned char offset) in uint32_t() 58 if (ch < offset || (ch - offset) <= 0x20 || (ch - offset) >= 0x7e in uint32_t() 59 || (ch - offset) == 0x49) in uint32_t() 63 if (ch2 < offset || (ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f) in uint32_t() 66 idx = (ch - offset - 0x21) * 94 + (ch2 - offset - 0x21); in uint32_t()
|
D | jis0208.h | 48 jisx0208_to_ucs4 (const unsigned char **s, size_t avail, unsigned char offset) in uint32_t() 54 if (ch < offset || (ch - offset) <= 0x20) in uint32_t() 61 if (ch2 < offset || (ch2 - offset) <= 0x20 || (ch2 - offset) >= 0x7f) in uint32_t() 64 idx = (ch - 0x21 - offset) * 94 + (ch2 - 0x21 - offset); in uint32_t()
|
/glibc-2.36/sysdeps/mips/ |
D | dl-r_debug.h | 23 E(r_debug_offset) (EW(Dyn) *d, int fd, EW(Addr) offset) in E() 28 offset += d->d_un.d_val; in E() 31 offset = d->d_un.d_ptr; in E() 37 if (pread (fd, &offset, sizeof (offset), offset) != sizeof (offset)) in E() 40 return offset; in E()
|
/glibc-2.36/support/ |
D | resolv_test.c | 50 uint16_t offset; member 56 allocate_compressed_name (const unsigned char *encoded, unsigned int offset) in allocate_compressed_name() argument 76 result->offset = offset; in allocate_compressed_name() 144 size_t offset; /* Bytes written so far in buffer. */ member 167 if (b->offset > 0) in resolv_response_init() 168 FAIL_EXIT1 ("response_init: called at offset %zu", b->offset); in resolv_response_init() 200 b->offset = 12; in resolv_response_init() 206 if (b->offset == 0) in resolv_response_section() 217 if (b->offset == max_response_length) in response_add_byte() 219 b->buffer[b->offset] = ch; in response_add_byte() [all …]
|
/glibc-2.36/malloc/ |
D | malloc-check.c | 26 #define SAFE_CHAR_OFFSET(p,offset) \ argument 27 ((unsigned char *) tag_at (((unsigned char *) p) + offset)) 143 unsigned long offset, page_mask = GLRO (dl_pagesize) - 1; in mem2chunk_check() local 148 offset = (unsigned long) mem & page_mask; in mem2chunk_check() 149 if ((offset != MALLOC_ALIGNMENT && offset != 0 && offset != 0x10 && in mem2chunk_check() 150 offset != 0x20 && offset != 0x40 && offset != 0x80 && offset != 0x100 && in mem2chunk_check() 151 offset != 0x200 && offset != 0x400 && offset != 0x800 && offset != 0x1000 && in mem2chunk_check() 152 offset < 0x2000) || in mem2chunk_check()
|
/glibc-2.36/libio/ |
D | tst-ftell-active-handler.c | 144 long offset = ftell (fp); in do_ftruncate_test() local 166 if (offset != new_offset) in do_ftruncate_test() 169 offset, new_offset); in do_ftruncate_test() 174 printf ("offset = %ld\n", offset); in do_ftruncate_test() 248 long offset = ftell (fp); in do_rewind_test() local 250 if (offset != test_modes[i].old_off) in do_rewind_test() 253 test_modes[i].old_off, offset); in do_rewind_test() 257 printf ("old offset = %ld, ", offset); in do_rewind_test() 269 offset = ftell (fp); in do_rewind_test() 270 if (offset != test_modes[i].new_off) in do_rewind_test() [all …]
|
/glibc-2.36/sysdeps/powerpc/powerpc32/ |
D | dl-machine.c | 227 Elf32_Word offset; in __elf_machine_runtime_setup() local 274 offset = PLT_INITIAL_ENTRY_WORDS; in __elf_machine_runtime_setup() 278 plt[offset ] = OPCODE_LI (11, i * 4); in __elf_machine_runtime_setup() 279 plt[offset+1] = OPCODE_B ((PLT_TRAMPOLINE_ENTRY_WORDS + 2 in __elf_machine_runtime_setup() 280 - (offset+1)) in __elf_machine_runtime_setup() 283 offset += 2; in __elf_machine_runtime_setup() 287 plt[offset ] = OPCODE_LIS_HI (11, i * 4 + data_words); in __elf_machine_runtime_setup() 288 plt[offset+1] = OPCODE_LWZU (12, i * 4 + data_words, 11); in __elf_machine_runtime_setup() 289 plt[offset+2] = OPCODE_B ((PLT_TRAMPOLINE_ENTRY_WORDS in __elf_machine_runtime_setup() 290 - (offset+2)) in __elf_machine_runtime_setup() [all …]
|
/glibc-2.36/sysdeps/unix/sysv/linux/s390/s390-32/ |
D | posix_fadvise64.c | 22 int __posix_fadvise64_l64 (int fd, off64_t offset, off64_t len, int advise); 23 int __posix_fadvise64_l32 (int fd, off64_t offset, size_t len, int advise); 31 off64_t offset; member 37 __posix_fadvise64_l64 (int fd, off64_t offset, off64_t len, int advise) in __posix_fadvise64_l64() argument 42 parameters.offset = offset; in __posix_fadvise64_l64() 57 __posix_fadvise64_l32 (int fd, off64_t offset, size_t len, int advise) in __posix_fadvise64_l32() argument 59 return __posix_fadvise64_l64 (fd, offset, len, advise); in __posix_fadvise64_l32()
|
/glibc-2.36/io/ |
D | tst-posix_fallocate-common.c | 43 do_test_with_offset (off_t offset) in do_test_with_offset() argument 47 if (posix_fallocate (temp_fd, offset, 768) != 0) in do_test_with_offset() 53 if (st.st_size != (offset + 768)) in do_test_with_offset() 64 if (st.st_size != (offset) + 768) in do_test_with_offset() 67 offset += 2048; in do_test_with_offset() 68 if (posix_fallocate (temp_fd, offset, 64) != 0) in do_test_with_offset() 74 if (st.st_size != (offset + 64)) in do_test_with_offset()
|