Home
last modified time | relevance | path

Searched refs:DEFAULT_STRLEN (Results 1 – 25 of 66) sorted by relevance

123

/external/strace/tests-m32/
Dexecve.c132 char *const str_a = tail_alloc(DEFAULT_STRLEN + 2); in main()
133 fill_memory_ex(str_a, DEFAULT_STRLEN + 1, '0', 10); in main()
134 str_a[DEFAULT_STRLEN + 1] = '\0'; in main()
136 char *const str_b = tail_alloc(DEFAULT_STRLEN + 2); in main()
137 fill_memory_ex(str_b, DEFAULT_STRLEN + 1, '_', 32); in main()
138 str_b[DEFAULT_STRLEN + 1] = '\0'; in main()
140 char **const a = tail_alloc(sizeof(*a) * (DEFAULT_STRLEN + 2)); in main()
141 char **const b = tail_alloc(sizeof(*b) * (DEFAULT_STRLEN + 2)); in main()
143 for (i = 0; i <= DEFAULT_STRLEN; ++i) { in main()
150 printf("execve(\"%s\", [\"%.*s\"...", Q_FILENAME, DEFAULT_STRLEN, a[0]); in main()
[all …]
Dexecveat.c138 char *const str_a = tail_alloc(DEFAULT_STRLEN + 2); in main()
139 fill_memory_ex(str_a, DEFAULT_STRLEN + 1, '0', 10); in main()
140 str_a[DEFAULT_STRLEN + 1] = '\0'; in main()
142 char *const str_b = tail_alloc(DEFAULT_STRLEN + 2); in main()
143 fill_memory_ex(str_b, DEFAULT_STRLEN + 1, '_', 32); in main()
144 str_b[DEFAULT_STRLEN + 1] = '\0'; in main()
146 char **const a = tail_alloc(sizeof(*a) * (DEFAULT_STRLEN + 2)); in main()
147 char **const b = tail_alloc(sizeof(*b) * (DEFAULT_STRLEN + 2)); in main()
149 for (i = 0; i <= DEFAULT_STRLEN; ++i) { in main()
156 printf("execveat(AT_FDCWD, \"%s\", [\"%.*s\"...", Q_FILENAME, DEFAULT_STRLEN, a[0]); in main()
[all …]
Dnetlink_kobject_uevent.c103 print_quoted_memory(&uh, MIN(uh_len - 1, DEFAULT_STRLEN)); in test_nlmsg_type_udev()
105 (uh_len - 1 > DEFAULT_STRLEN ? "..." : ""), in test_nlmsg_type_udev()
129 print_quoted_memory(&uh, MIN(uh_len, DEFAULT_STRLEN)); in test_nlmsg_type_kernel()
131 (uh_len > DEFAULT_STRLEN ? "..." : ""), in test_nlmsg_type_kernel()
145 char *const buf = tail_alloc(DEFAULT_STRLEN + 1); in main()
147 fill_memory_ex(buf + 1, DEFAULT_STRLEN, 0, DEFAULT_STRLEN); in main()
149 sys_send(fd, buf + 1, DEFAULT_STRLEN); in main()
151 print_quoted_memory(buf + 1, DEFAULT_STRLEN); in main()
153 DEFAULT_STRLEN, errstr); in main()
155 sys_send(fd, buf, DEFAULT_STRLEN + 1); in main()
[all …]
Dprintstr.c41 char *const buf = tail_alloc(DEFAULT_STRLEN + 1); in main()
52 memset(buf + 1, 'X', DEFAULT_STRLEN); in main()
53 buf[DEFAULT_STRLEN - 1] = 0; in main()
57 " = %s\n", DEFAULT_STRLEN - 2, buf + 1, -1UL, sprintrc(rc)); in main()
59 buf[DEFAULT_STRLEN - 1] = 'X'; in main()
60 buf[DEFAULT_STRLEN] = 0; in main()
64 " = %s\n", DEFAULT_STRLEN - 1, buf + 1, -1UL, sprintrc(rc)); in main()
Ds390_pci_mmio_read_write.c59 len > DEFAULT_STRLEN ? DEFAULT_STRLEN : len); in do_call()
61 if (len > DEFAULT_STRLEN) in do_call()
83 static const size_t buf_size = DEFAULT_STRLEN + 10; in main()
111 DEFAULT_STRLEN / 2, in main()
112 DEFAULT_STRLEN - 10, in main()
113 DEFAULT_STRLEN, in main()
114 DEFAULT_STRLEN + 1, in main()
130 DEFAULT_STRLEN + 1); in main()
Dnlattr_crypto_user_alg.c80 NLA_HDRLEN + DEFAULT_STRLEN); in main()
85 char *const str = tail_alloc(DEFAULT_STRLEN); in main()
86 fill_memory_ex(str, DEFAULT_STRLEN, '0', 10); in main()
90 DEFAULT_STRLEN, str, DEFAULT_STRLEN, in main()
91 printf("{type=\"%.*s\"...}", DEFAULT_STRLEN, str)); in main()
92 str[DEFAULT_STRLEN - 1] = '\0'; in main()
96 DEFAULT_STRLEN, str, DEFAULT_STRLEN, in main()
Dnlattr_inet_diag_msg.c142 MAX(sizeof(bigmem), DEFAULT_STRLEN)); in main()
211 char *const str = tail_alloc(DEFAULT_STRLEN); in main()
212 fill_memory_ex(str, DEFAULT_STRLEN, '0', 10); in main()
215 DEFAULT_STRLEN, str, DEFAULT_STRLEN, in main()
216 printf("\"%.*s\"...", DEFAULT_STRLEN, str)); in main()
217 str[DEFAULT_STRLEN - 1] = '\0'; in main()
220 DEFAULT_STRLEN, str, DEFAULT_STRLEN, in main()
Dnlattr_inet_diag_req_v2.c123 const unsigned int plen = sizeof(cond) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_s_cond()
124 sizeof(op) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_inet_diag_bc_s_cond()
176 const unsigned int plen = sizeof(addr) - 1 > DEFAULT_STRLEN ? in test_in_addr()
177 sizeof(cond) + sizeof(cond) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_in_addr()
227 const unsigned int plen = sizeof(addr) - 1 > DEFAULT_STRLEN ? in test_in6_addr()
228 sizeof(cond) + sizeof(cond) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_in6_addr()
313 const unsigned int plen = sizeof(op[1]) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_s_le()
314 sizeof(op[0]) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_inet_diag_bc_s_le()
356 const unsigned int plen = sizeof(markcond) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_mark_cond()
357 sizeof(markcond) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_inet_diag_bc_mark_cond()
[all …]
/external/strace/tests/
Dexecve.c132 char *const str_a = tail_alloc(DEFAULT_STRLEN + 2); in main()
133 fill_memory_ex(str_a, DEFAULT_STRLEN + 1, '0', 10); in main()
134 str_a[DEFAULT_STRLEN + 1] = '\0'; in main()
136 char *const str_b = tail_alloc(DEFAULT_STRLEN + 2); in main()
137 fill_memory_ex(str_b, DEFAULT_STRLEN + 1, '_', 32); in main()
138 str_b[DEFAULT_STRLEN + 1] = '\0'; in main()
140 char **const a = tail_alloc(sizeof(*a) * (DEFAULT_STRLEN + 2)); in main()
141 char **const b = tail_alloc(sizeof(*b) * (DEFAULT_STRLEN + 2)); in main()
143 for (i = 0; i <= DEFAULT_STRLEN; ++i) { in main()
150 printf("execve(\"%s\", [\"%.*s\"...", Q_FILENAME, DEFAULT_STRLEN, a[0]); in main()
[all …]
Dexecveat.c138 char *const str_a = tail_alloc(DEFAULT_STRLEN + 2); in main()
139 fill_memory_ex(str_a, DEFAULT_STRLEN + 1, '0', 10); in main()
140 str_a[DEFAULT_STRLEN + 1] = '\0'; in main()
142 char *const str_b = tail_alloc(DEFAULT_STRLEN + 2); in main()
143 fill_memory_ex(str_b, DEFAULT_STRLEN + 1, '_', 32); in main()
144 str_b[DEFAULT_STRLEN + 1] = '\0'; in main()
146 char **const a = tail_alloc(sizeof(*a) * (DEFAULT_STRLEN + 2)); in main()
147 char **const b = tail_alloc(sizeof(*b) * (DEFAULT_STRLEN + 2)); in main()
149 for (i = 0; i <= DEFAULT_STRLEN; ++i) { in main()
156 printf("execveat(AT_FDCWD, \"%s\", [\"%.*s\"...", Q_FILENAME, DEFAULT_STRLEN, a[0]); in main()
[all …]
Dnetlink_kobject_uevent.c103 print_quoted_memory(&uh, MIN(uh_len - 1, DEFAULT_STRLEN)); in test_nlmsg_type_udev()
105 (uh_len - 1 > DEFAULT_STRLEN ? "..." : ""), in test_nlmsg_type_udev()
129 print_quoted_memory(&uh, MIN(uh_len, DEFAULT_STRLEN)); in test_nlmsg_type_kernel()
131 (uh_len > DEFAULT_STRLEN ? "..." : ""), in test_nlmsg_type_kernel()
145 char *const buf = tail_alloc(DEFAULT_STRLEN + 1); in main()
147 fill_memory_ex(buf + 1, DEFAULT_STRLEN, 0, DEFAULT_STRLEN); in main()
149 sys_send(fd, buf + 1, DEFAULT_STRLEN); in main()
151 print_quoted_memory(buf + 1, DEFAULT_STRLEN); in main()
153 DEFAULT_STRLEN, errstr); in main()
155 sys_send(fd, buf, DEFAULT_STRLEN + 1); in main()
[all …]
Dprintstr.c41 char *const buf = tail_alloc(DEFAULT_STRLEN + 1); in main()
52 memset(buf + 1, 'X', DEFAULT_STRLEN); in main()
53 buf[DEFAULT_STRLEN - 1] = 0; in main()
57 " = %s\n", DEFAULT_STRLEN - 2, buf + 1, -1UL, sprintrc(rc)); in main()
59 buf[DEFAULT_STRLEN - 1] = 'X'; in main()
60 buf[DEFAULT_STRLEN] = 0; in main()
64 " = %s\n", DEFAULT_STRLEN - 1, buf + 1, -1UL, sprintrc(rc)); in main()
Ds390_pci_mmio_read_write.c59 len > DEFAULT_STRLEN ? DEFAULT_STRLEN : len); in do_call()
61 if (len > DEFAULT_STRLEN) in do_call()
83 static const size_t buf_size = DEFAULT_STRLEN + 10; in main()
111 DEFAULT_STRLEN / 2, in main()
112 DEFAULT_STRLEN - 10, in main()
113 DEFAULT_STRLEN, in main()
114 DEFAULT_STRLEN + 1, in main()
130 DEFAULT_STRLEN + 1); in main()
Dnlattr_crypto_user_alg.c80 NLA_HDRLEN + DEFAULT_STRLEN); in main()
85 char *const str = tail_alloc(DEFAULT_STRLEN); in main()
86 fill_memory_ex(str, DEFAULT_STRLEN, '0', 10); in main()
90 DEFAULT_STRLEN, str, DEFAULT_STRLEN, in main()
91 printf("{type=\"%.*s\"...}", DEFAULT_STRLEN, str)); in main()
92 str[DEFAULT_STRLEN - 1] = '\0'; in main()
96 DEFAULT_STRLEN, str, DEFAULT_STRLEN, in main()
Dnlattr_inet_diag_msg.c142 MAX(sizeof(bigmem), DEFAULT_STRLEN)); in main()
211 char *const str = tail_alloc(DEFAULT_STRLEN); in main()
212 fill_memory_ex(str, DEFAULT_STRLEN, '0', 10); in main()
215 DEFAULT_STRLEN, str, DEFAULT_STRLEN, in main()
216 printf("\"%.*s\"...", DEFAULT_STRLEN, str)); in main()
217 str[DEFAULT_STRLEN - 1] = '\0'; in main()
220 DEFAULT_STRLEN, str, DEFAULT_STRLEN, in main()
Dnlattr_inet_diag_req_v2.c123 const unsigned int plen = sizeof(cond) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_s_cond()
124 sizeof(op) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_inet_diag_bc_s_cond()
176 const unsigned int plen = sizeof(addr) - 1 > DEFAULT_STRLEN ? in test_in_addr()
177 sizeof(cond) + sizeof(cond) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_in_addr()
227 const unsigned int plen = sizeof(addr) - 1 > DEFAULT_STRLEN ? in test_in6_addr()
228 sizeof(cond) + sizeof(cond) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_in6_addr()
313 const unsigned int plen = sizeof(op[1]) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_s_le()
314 sizeof(op[0]) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_inet_diag_bc_s_le()
356 const unsigned int plen = sizeof(markcond) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_mark_cond()
357 sizeof(markcond) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_inet_diag_bc_mark_cond()
[all …]
/external/strace/tests-mx32/
Dexecve.c132 char *const str_a = tail_alloc(DEFAULT_STRLEN + 2); in main()
133 fill_memory_ex(str_a, DEFAULT_STRLEN + 1, '0', 10); in main()
134 str_a[DEFAULT_STRLEN + 1] = '\0'; in main()
136 char *const str_b = tail_alloc(DEFAULT_STRLEN + 2); in main()
137 fill_memory_ex(str_b, DEFAULT_STRLEN + 1, '_', 32); in main()
138 str_b[DEFAULT_STRLEN + 1] = '\0'; in main()
140 char **const a = tail_alloc(sizeof(*a) * (DEFAULT_STRLEN + 2)); in main()
141 char **const b = tail_alloc(sizeof(*b) * (DEFAULT_STRLEN + 2)); in main()
143 for (i = 0; i <= DEFAULT_STRLEN; ++i) { in main()
150 printf("execve(\"%s\", [\"%.*s\"...", Q_FILENAME, DEFAULT_STRLEN, a[0]); in main()
[all …]
Dexecveat.c138 char *const str_a = tail_alloc(DEFAULT_STRLEN + 2); in main()
139 fill_memory_ex(str_a, DEFAULT_STRLEN + 1, '0', 10); in main()
140 str_a[DEFAULT_STRLEN + 1] = '\0'; in main()
142 char *const str_b = tail_alloc(DEFAULT_STRLEN + 2); in main()
143 fill_memory_ex(str_b, DEFAULT_STRLEN + 1, '_', 32); in main()
144 str_b[DEFAULT_STRLEN + 1] = '\0'; in main()
146 char **const a = tail_alloc(sizeof(*a) * (DEFAULT_STRLEN + 2)); in main()
147 char **const b = tail_alloc(sizeof(*b) * (DEFAULT_STRLEN + 2)); in main()
149 for (i = 0; i <= DEFAULT_STRLEN; ++i) { in main()
156 printf("execveat(AT_FDCWD, \"%s\", [\"%.*s\"...", Q_FILENAME, DEFAULT_STRLEN, a[0]); in main()
[all …]
Dnetlink_kobject_uevent.c103 print_quoted_memory(&uh, MIN(uh_len - 1, DEFAULT_STRLEN)); in test_nlmsg_type_udev()
105 (uh_len - 1 > DEFAULT_STRLEN ? "..." : ""), in test_nlmsg_type_udev()
129 print_quoted_memory(&uh, MIN(uh_len, DEFAULT_STRLEN)); in test_nlmsg_type_kernel()
131 (uh_len > DEFAULT_STRLEN ? "..." : ""), in test_nlmsg_type_kernel()
145 char *const buf = tail_alloc(DEFAULT_STRLEN + 1); in main()
147 fill_memory_ex(buf + 1, DEFAULT_STRLEN, 0, DEFAULT_STRLEN); in main()
149 sys_send(fd, buf + 1, DEFAULT_STRLEN); in main()
151 print_quoted_memory(buf + 1, DEFAULT_STRLEN); in main()
153 DEFAULT_STRLEN, errstr); in main()
155 sys_send(fd, buf, DEFAULT_STRLEN + 1); in main()
[all …]
Dprintstr.c41 char *const buf = tail_alloc(DEFAULT_STRLEN + 1); in main()
52 memset(buf + 1, 'X', DEFAULT_STRLEN); in main()
53 buf[DEFAULT_STRLEN - 1] = 0; in main()
57 " = %s\n", DEFAULT_STRLEN - 2, buf + 1, -1UL, sprintrc(rc)); in main()
59 buf[DEFAULT_STRLEN - 1] = 'X'; in main()
60 buf[DEFAULT_STRLEN] = 0; in main()
64 " = %s\n", DEFAULT_STRLEN - 1, buf + 1, -1UL, sprintrc(rc)); in main()
Ds390_pci_mmio_read_write.c59 len > DEFAULT_STRLEN ? DEFAULT_STRLEN : len); in do_call()
61 if (len > DEFAULT_STRLEN) in do_call()
83 static const size_t buf_size = DEFAULT_STRLEN + 10; in main()
111 DEFAULT_STRLEN / 2, in main()
112 DEFAULT_STRLEN - 10, in main()
113 DEFAULT_STRLEN, in main()
114 DEFAULT_STRLEN + 1, in main()
130 DEFAULT_STRLEN + 1); in main()
Dnlattr_crypto_user_alg.c80 NLA_HDRLEN + DEFAULT_STRLEN); in main()
85 char *const str = tail_alloc(DEFAULT_STRLEN); in main()
86 fill_memory_ex(str, DEFAULT_STRLEN, '0', 10); in main()
90 DEFAULT_STRLEN, str, DEFAULT_STRLEN, in main()
91 printf("{type=\"%.*s\"...}", DEFAULT_STRLEN, str)); in main()
92 str[DEFAULT_STRLEN - 1] = '\0'; in main()
96 DEFAULT_STRLEN, str, DEFAULT_STRLEN, in main()
Dnlattr_inet_diag_msg.c142 MAX(sizeof(bigmem), DEFAULT_STRLEN)); in main()
211 char *const str = tail_alloc(DEFAULT_STRLEN); in main()
212 fill_memory_ex(str, DEFAULT_STRLEN, '0', 10); in main()
215 DEFAULT_STRLEN, str, DEFAULT_STRLEN, in main()
216 printf("\"%.*s\"...", DEFAULT_STRLEN, str)); in main()
217 str[DEFAULT_STRLEN - 1] = '\0'; in main()
220 DEFAULT_STRLEN, str, DEFAULT_STRLEN, in main()
Dnlattr_inet_diag_req_v2.c123 const unsigned int plen = sizeof(cond) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_s_cond()
124 sizeof(op) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_inet_diag_bc_s_cond()
176 const unsigned int plen = sizeof(addr) - 1 > DEFAULT_STRLEN ? in test_in_addr()
177 sizeof(cond) + sizeof(cond) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_in_addr()
227 const unsigned int plen = sizeof(addr) - 1 > DEFAULT_STRLEN ? in test_in6_addr()
228 sizeof(cond) + sizeof(cond) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_in6_addr()
313 const unsigned int plen = sizeof(op[1]) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_s_le()
314 sizeof(op[0]) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_inet_diag_bc_s_le()
356 const unsigned int plen = sizeof(markcond) - 1 > DEFAULT_STRLEN ? in test_inet_diag_bc_mark_cond()
357 sizeof(markcond) + DEFAULT_STRLEN : sizeof(buf) - 1; in test_inet_diag_bc_mark_cond()
[all …]
Dmincore.c46 if (i >= DEFAULT_STRLEN) { in print_mincore()
76 test_mincore(DEFAULT_STRLEN); in main()
77 test_mincore(DEFAULT_STRLEN + 1); in main()

123