Home
last modified time | relevance | path

Searched refs:right (Results 1 – 25 of 147) sorted by relevance

123456

/glibc-2.36/string/
Dtst-cmp.c43 max_size_t (size_t left, size_t right) in max_size_t() argument
45 if (left > right) in max_size_t()
48 return right; in max_size_t()
56 strncmp_no_terminator (const char *left, const char *right) in strncmp_no_terminator() argument
59 size_t right_len = strlen (right); in strncmp_no_terminator()
60 return strncmp (left, right, max_size_t (left_len, right_len)); in strncmp_no_terminator()
64 strncasecmp_no_terminator (const char *left, const char *right) in strncasecmp_no_terminator() argument
67 size_t right_len = strlen (right); in strncasecmp_no_terminator()
68 return strncasecmp (left, right, max_size_t (left_len, right_len)); in strncasecmp_no_terminator()
72 strncmp_terminator (const char *left, const char *right) in strncmp_terminator() argument
[all …]
/glibc-2.36/support/
Dsupport_descriptors.c43 const struct procfs_descriptor *right = r; in descriptor_compare() local
45 return left->fd - right->fd; in descriptor_compare()
184 struct procfs_descriptor *right) in report_opened_descriptor() argument
188 char *quoted = support_quote_string (right->link_target); in report_opened_descriptor()
189 printf ("error: descriptor %d was opened (\"%s\")\n", right->fd, quoted); in report_opened_descriptor()
203 struct procfs_descriptor *right = descriptor_list_begin (&current->list); in support_descriptors_check() local
207 while (left != left_end && right != right_end) in support_descriptors_check()
209 if (left->fd == right->fd) in support_descriptors_check()
211 if (strcmp (left->link_target, right->link_target) != 0) in support_descriptors_check()
215 char *right_quoted = support_quote_string (right->link_target); in support_descriptors_check()
[all …]
Dcheck.h101 #define TEST_COMPARE(left, right) \ argument
105 typedef __typeof__ (+ (right)) __right_type; \
107 __right_type __right_value = (right); \
127 #right, __right_value, __right_is_positive, sizeof (__right_type)); \
153 #define TEST_COMPARE_BLOB(left, left_length, right, right_length) \ argument
154 (support_test_compare_blob (left, left_length, right, right_length, \
156 #left, #left_length, #right, #right_length))
160 const void *right,
171 #define TEST_COMPARE_STRING(left, right) \ argument
172 (support_test_compare_string (left, right, __FILE__, __LINE__, \
[all …]
Dtimespec.c27 struct timespec right) in test_timespec_before_impl() argument
29 if (left.tv_sec > right.tv_sec in test_timespec_before_impl()
30 || (left.tv_sec == right.tv_sec in test_timespec_before_impl()
31 && left.tv_nsec > right.tv_nsec)) { in test_timespec_before_impl()
33 const struct timespec diff = timespec_sub (left, right); in test_timespec_before_impl()
38 (intmax_t) right.tv_sec, (intmax_t) right.tv_nsec, in test_timespec_before_impl()
46 struct timespec right) in test_timespec_equal_or_after_impl() argument
48 if (left.tv_sec < right.tv_sec in test_timespec_equal_or_after_impl()
49 || (left.tv_sec == right.tv_sec in test_timespec_equal_or_after_impl()
50 && left.tv_nsec < right.tv_nsec)) { in test_timespec_equal_or_after_impl()
[all …]
Dtimespec.h46 struct timespec right);
50 struct timespec right);
67 struct timespec right),
71 struct timespec right),
89 #define TEST_TIMESPEC_BEFORE(left, right) \ argument
90 test_timespec_before_impl (__FILE__, __LINE__, (left), (right))
103 #define TEST_TIMESPEC_EQUAL_OR_AFTER(left, right) \ argument
104 test_timespec_equal_or_after_impl (__FILE__, __LINE__, left, right)
106 #define TEST_TIMESPEC_NOW_OR_AFTER(clockid, right) \ argument
111 TEST_TIMESPEC_EQUAL_OR_AFTER (now, (right)); \
Dsupport_test_compare_string_main.c65 SUPPORT_TEST_COMPARE_STRING (const CHAR *left, const CHAR *right, in SUPPORT_TEST_COMPARE_STRING() argument
70 if (left == NULL && right == NULL) in SUPPORT_TEST_COMPARE_STRING()
74 size_t right_length = string_length_or_zero (right); in SUPPORT_TEST_COMPARE_STRING()
76 if (left_length != right_length || left == NULL || right == NULL in SUPPORT_TEST_COMPARE_STRING()
77 || MEMCMP (left, right, left_length) != 0) in SUPPORT_TEST_COMPARE_STRING()
81 if (left_length == right_length && right != NULL && left != NULL) in SUPPORT_TEST_COMPARE_STRING()
87 report_length ("right", right, right_length); in SUPPORT_TEST_COMPARE_STRING()
91 report_string ("right", (const UCHAR *) right, in SUPPORT_TEST_COMPARE_STRING()
Dsupport_test_compare_blob.c54 const void *right, unsigned long int right_length, in support_test_compare_blob() argument
63 if (left_length != right_length || left == NULL || right == NULL in support_test_compare_blob()
64 || memcmp (left, right, left_length) != 0) in support_test_compare_blob()
76 report_blob ("right", right, right_length, right_expr); in support_test_compare_blob()
Dsupport_run_diff.c45 const char *right_label, const char *right) in support_run_diff() argument
52 char *right_path = write_to_temp_file ("right-diff", right); in support_run_diff()
71 status, left_label, left, right_label, right); in support_run_diff()
/glibc-2.36/elf/
Ddl-cache.c66 glibc_hwcaps_compare (uint32_t left_index, struct dl_hwcaps_priority *right) in glibc_hwcaps_compare() argument
71 if (left_name_length < right->name_length) in glibc_hwcaps_compare()
74 to_compare = right->name_length; in glibc_hwcaps_compare()
75 int cmp = memcmp (left_name, right->name, to_compare); in glibc_hwcaps_compare()
78 if (left_name_length < right->name_length) in glibc_hwcaps_compare()
80 else if (left_name_length > right->name_length) in glibc_hwcaps_compare()
116 struct dl_hwcaps_priority *right = _dl_hwcaps_priorities; in glibc_hwcaps_priorities_init() local
117 struct dl_hwcaps_priority *right_end = right + _dl_hwcaps_priorities_length; in glibc_hwcaps_priorities_init()
120 while (left < left_end && right < right_end) in glibc_hwcaps_priorities_init()
124 int cmp = glibc_hwcaps_compare (*left, right); in glibc_hwcaps_priorities_init()
[all …]
Dstringtable.c126 struct stringtable_entry *right = *(struct stringtable_entry **) r; in finalize_compare() local
128 if (left->length < right->length) in finalize_compare()
131 to_compare = right->length; in finalize_compare()
135 unsigned char rch = right->string[right->length - i]; in finalize_compare()
139 if (left->length == right->length) in finalize_compare()
141 else if (left->length < right->length) in finalize_compare()
/glibc-2.36/sysdeps/pthread/
Dposix-timer.h117 timespec_compare (const struct timespec *left, const struct timespec *right) in timespec_compare() argument
119 if (left->tv_sec < right->tv_sec) in timespec_compare()
121 if (left->tv_sec > right->tv_sec) in timespec_compare()
124 if (left->tv_nsec < right->tv_nsec) in timespec_compare()
126 if (left->tv_nsec > right->tv_nsec) in timespec_compare()
134 const struct timespec *right) in timespec_add() argument
136 sum->tv_sec = left->tv_sec + right->tv_sec; in timespec_add()
137 sum->tv_nsec = left->tv_nsec + right->tv_nsec; in timespec_add()
148 const struct timespec *right) in timespec_sub() argument
150 diff->tv_sec = left->tv_sec - right->tv_sec; in timespec_sub()
[all …]
/glibc-2.36/io/
Dfile_change_detection.c26 const struct file_change_detection *right) in __file_is_unchanged() argument
28 if (left->size < 0 || right->size < 0) in __file_is_unchanged()
31 else if (left->size == 0 && right->size == 0) in __file_is_unchanged()
36 return left->size == right->size in __file_is_unchanged()
37 && left->ino == right->ino in __file_is_unchanged()
38 && left->mtime.tv_sec == right->mtime.tv_sec in __file_is_unchanged()
39 && left->mtime.tv_nsec == right->mtime.tv_nsec in __file_is_unchanged()
40 && left->ctime.tv_sec == right->ctime.tv_sec in __file_is_unchanged()
41 && left->ctime.tv_nsec == right->ctime.tv_nsec; in __file_is_unchanged()
/glibc-2.36/inet/
Dnet-internal.h124 __deadline_first (struct deadline left, struct deadline right) in __deadline_first() argument
126 if (__deadline_is_infinite (right) in __deadline_first()
127 || left.absolute.tv_sec < right.absolute.tv_sec in __deadline_first()
128 || (left.absolute.tv_sec == right.absolute.tv_sec in __deadline_first()
129 && left.absolute.tv_nsec < right.absolute.tv_nsec)) in __deadline_first()
132 return right; in __deadline_first()
/glibc-2.36/sysdeps/generic/
Dsigsetops.h42 # define __sigandset(dest, left, right) \ argument
44 *(dest) = *(left) & *(right); \
48 # define __sigorset(dest, left, right) \ argument
50 *(dest) = *(left) | *(right); \
/glibc-2.36/iconv/
Dstrtab.c37 struct Strent *right; member
169 newstr->right = NULL; in newstring()
205 return searchstring (&(*sep)->right, newstr); in searchstring()
265 newstr->right = (*sep)->right; in strtabadd()
303 if (nodep->right != NULL) in copystrings()
304 copystrings (nodep->right, freep, offsetp); in copystrings()
/glibc-2.36/resolv/
Dresolv_conf.c205 const struct sockaddr_in *right) in same_address_v4() argument
207 return left->sin_addr.s_addr == right->sin_addr.s_addr in same_address_v4()
208 && left->sin_port == right->sin_port; in same_address_v4()
215 const struct sockaddr_in6 *right) in same_address_v6() argument
217 return memcmp (&left->sin6_addr, &right->sin6_addr, in same_address_v6()
219 && left->sin6_port == right->sin6_port in same_address_v6()
220 && left->sin6_scope_id == right->sin6_scope_id; in same_address_v6()
224 same_address (const struct sockaddr *left, const struct sockaddr *right) in same_address() argument
226 if (left->sa_family != right->sa_family) in same_address()
232 (const struct sockaddr_in *) right); in same_address()
[all …]
/glibc-2.36/intl/
Dplural.y104 new_exp_1 (enum expression_operator op, struct expression *right)
108 args[0] = right;
114 struct expression *right)
119 args[1] = right;
142 %right '?' /* ? */
149 %right '!' /* ! */
/glibc-2.36/sysdeps/unix/sysv/linux/
Dinternal-sigset.h65 const internal_sigset_t *right) in internal_sigandset() argument
69 dest->__val[cnt] = left->__val[cnt] & right->__val[cnt]; in internal_sigandset()
74 const internal_sigset_t *right) in internal_sigorset() argument
78 dest->__val[cnt] = left->__val[cnt] | right->__val[cnt]; in internal_sigorset()
Dsigsetops.h76 __sigandset (sigset_t *dest, const sigset_t *left, const sigset_t *right) in __sigandset() argument
80 dest->__val[cnt] = left->__val[cnt] & right->__val[cnt]; in __sigandset()
84 __sigorset (sigset_t *dest, const sigset_t *left, const sigset_t *right) in __sigorset() argument
88 dest->__val[cnt] = left->__val[cnt] | right->__val[cnt]; in __sigorset()
/glibc-2.36/signal/
Dsigandset.c24 sigandset (sigset_t *dest, const sigset_t *left, const sigset_t *right) in sigandset() argument
26 if (!dest || !left || !right) in sigandset()
32 __sigandset (dest, left, right); in sigandset()
Dsigorset.c24 sigorset (sigset_t *dest, const sigset_t *left, const sigset_t *right) in sigorset() argument
26 if (!dest || !left || !right) in sigorset()
32 __sigorset (dest, left, right); in sigorset()
/glibc-2.36/socket/
Dtst-accept4.c74 const struct sockaddr_in *right) in check_same_address() argument
77 TEST_VERIFY (right->sin_family == AF_INET); in check_same_address()
78 TEST_VERIFY (left->sin_addr.s_addr == right->sin_addr.s_addr); in check_same_address()
79 TEST_VERIFY (left->sin_port == right->sin_port); in check_same_address()
/glibc-2.36/posix/
Dregcomp.c117 bin_tree_t *left, bin_tree_t *right,
120 bin_tree_t *left, bin_tree_t *right,
1235 while (node->left || node->right) in postorder()
1239 node = node->right; in postorder()
1252 while (node->right == prev || node->right == NULL); in postorder()
1253 node = node->right; in postorder()
1275 while (node->right == prev || node->right == NULL) in preorder()
1282 node = node->right; in preorder()
1333 if (node->right && node->right->token.type == SUBEXP) in lower_subexps()
1335 node->right = lower_subexp (&err, preg, node->right); in lower_subexps()
[all …]
/glibc-2.36/stdlib/
Dtst-arc4random-fork.c106 const struct index *right = right1; in index_compare() local
109 shared_data->results[right->run][right->process_index].bytes, in index_compare()
Dtst-arc4random-thread.c104 const struct blob *right = right1; in compare_blob() local
106 if (left->size != right->size) in compare_blob()
108 return left->size - right->size; in compare_blob()
109 return memcmp (left->bytes, right->bytes, left->size); in compare_blob()

123456