/support/ |
A D | xmunmap.c | 24 xmunmap (void *addr, size_t length) in xmunmap() argument 26 if (munmap (addr, length) != 0) in xmunmap() 27 FAIL_EXIT1 ("munmap of %zu bytes: %m", length); in xmunmap()
|
A D | xftruncate.c | 23 xftruncate (int fd, long long length) in xftruncate() argument 25 if (ftruncate64 (fd, length) != 0) in xftruncate() 26 FAIL_EXIT1 ("ftruncate64 (%d, %lld): %m", fd, length); in xftruncate()
|
A D | xmprotect.c | 24 xmprotect (void *addr, size_t length, int prot) in xmprotect() argument 26 if (mprotect (addr, length, prot) != 0) in xmprotect() 27 FAIL_EXIT1 ("mprotect (%p, %zu, 0x%x): %m", addr, length, prot); in xmprotect()
|
A D | xstrndup.c | 24 xstrndup (const char *s, size_t length) in xstrndup() argument 26 char *p = strndup (s, length); in xstrndup() 28 oom_error ("strndup", length); in xstrndup()
|
A D | xwrite.c | 24 xwrite (int fd, const void *buffer, size_t length) in xwrite() argument 27 const char *end = p + length; in xwrite() 33 length, p - (const char *) buffer); in xwrite() 36 p - (const char *) buffer, length); in xwrite()
|
A D | xmmap.c | 24 xmmap (void *addr, size_t length, int prot, int flags, int fd) in xmmap() argument 26 void *result = mmap (addr, length, prot, flags, fd, 0); in xmmap() 29 length, prot, flags); in xmmap()
|
A D | support_test_compare_blob.c | 27 report_length (const char *what, unsigned long int length, const char *expr) in report_length() argument 29 printf (" %s %lu bytes (from %s)\n", what, length, expr); in report_length() 34 unsigned long int length, const char *expr) in report_blob() argument 36 if (blob == NULL && length > 0) in report_blob() 38 else if (length > 0) in report_blob() 41 char *quoted = support_quote_blob (blob, length); in report_blob() 46 for (unsigned long i = 0; i < length; ++i) in report_blob()
|
A D | xcopy_file_range.c | 25 size_t length, unsigned int flags) in xcopy_file_range() argument 28 poutoff, length, flags); in xcopy_file_range()
|
A D | support_test_compare_string_main.c | 28 report_length (const char *what, const CHAR *str, size_t length) in report_length() argument 33 printf (" %s string: %zu %s\n", what, length, in report_length() 39 size_t length, const char *expr) in report_string() argument 41 if (length > 0) in report_string() 44 char *quoted = SUPPORT_QUOTE_BLOB (blob, length); in report_string() 49 for (size_t i = 0; i < length; ++i) in report_string()
|
A D | check_dns_packet.c | 30 const unsigned char *buffer, size_t length, in check_dns_packet() argument 33 char *formatted = support_format_dns_packet (buffer, length); in check_dns_packet()
|
A D | xreadlink.c | 32 ssize_t count = readlink (path, buf.data, buf.length); in xreadlink() 35 if (count < buf.length) in xreadlink()
|
A D | support_copy_file_range.c | 31 size_t length, unsigned int flags) in support_copy_file_range() argument 64 if (length > SSIZE_MAX) in support_copy_file_range() 65 length = SSIZE_MAX; in support_copy_file_range() 72 while (length > 0) in support_copy_file_range() 74 size_t to_read = length; in support_copy_file_range() 140 length -= read_count; in support_copy_file_range()
|
A D | tst-support_format_dns_packet.c | 28 check_packet (const void *buffer, size_t length, in check_packet() argument 31 char *actual = support_format_dns_packet (buffer, length); in check_packet()
|
A D | xunistd.h | 59 void xftruncate (int fd, long long length); 80 void *xmmap (void *addr, size_t length, int prot, int flags, int fd); 81 void xmprotect (void *addr, size_t length, int prot); 82 void xmunmap (void *addr, size_t length);
|
A D | support_capture_subprocess_check.c | 84 if (!(allowed & sc_allow_stdout) && proc->out.length != 0) in support_capture_subprocess_check() 88 fwrite (proc->out.buffer, proc->out.length, 1, stdout); in support_capture_subprocess_check() 91 if (!(allowed & sc_allow_stderr) && proc->err.length != 0) in support_capture_subprocess_check() 95 fwrite (proc->err.buffer, proc->err.length, 1, stdout); in support_capture_subprocess_check()
|
A D | xmemstream.h | 32 size_t length; member
|
A D | next_to_fault.h | 32 size_t length; member
|
A D | format_nss.h | 34 char *support_format_dns_packet (const unsigned char *buffer, size_t length);
|
A D | resolv_test.c | 51 unsigned char length; member 59 size_t length; in allocate_compressed_name() local 69 length = p - encoded; in allocate_compressed_name() 77 result->length = length; in allocate_compressed_name() 101 if (crleft->length != crright->length) in compare_compressed_name() 103 return crleft->length - crright->length; in compare_compressed_name() 396 if (remaining < length) in resolv_response_add_data() 398 length); in resolv_response_add_data() 400 b->offset += length; in resolv_response_add_data() 948 {&length, sizeof (length)}, in server_thread_tcp_client() [all …]
|
A D | support_format_dns_packet.c | 72 extract_bytes (struct in_buffer *in, size_t length, struct in_buffer *value) in extract_bytes() argument 74 if (in->size < length) in extract_bytes() 76 *value = (struct in_buffer) {in->data, length}; in extract_bytes() 77 in->data += length; in extract_bytes() 78 in->size -= length; in extract_bytes() 105 support_format_dns_packet (const unsigned char *buffer, size_t length) in support_format_dns_packet() argument 107 struct in_buffer full = { buffer, length }; in support_format_dns_packet()
|
A D | xmemstream.c | 31 stream->out = open_memstream (&stream->buffer, &stream->length); in xopen_memstream()
|
A D | support_quote_blob_main.c | 23 SUPPORT_QUOTE_BLOB (const void *blob, size_t length) in SUPPORT_QUOTE_BLOB() argument 29 for (size_t i = 0; i < length; ++i) in SUPPORT_QUOTE_BLOB()
|
A D | tst-support_capture_subprocess.c | 170 random_string (size_t length) in random_string() argument 172 char *result = xmalloc (length + 1); in random_string() 173 for (size_t i = 0; i < length; ++i) in random_string() 175 result[length] = '\0'; in random_string() 193 if (stream->length != strlen (expected)) in check_stream() 199 what, strlen (expected), stream->length); in check_stream()
|
A D | next_to_fault.c | 43 result.length = size; in support_next_to_fault_allocate()
|
A D | support.h | 75 char *support_quote_blob (const void *blob, size_t length); 81 char *support_quote_blob_wide (const void *blob, size_t length);
|