Home
last modified time | relevance | path

Searched refs:cmp (Results 1 – 25 of 979) sorted by relevance

12345678910>>...40

/freebsd/contrib/diff/src/
H A Ddiff.c1038 struct comparison cmp; in compare_files() local
1039 #define DIR_P(f) (S_ISDIR (cmp.file[f].stat.st_mode) != 0) in compare_files()
1064 memset (cmp.file, 0, sizeof cmp.file); in compare_files()
1065 cmp.parent = parent; in compare_files()
1074 cmp.file[0].desc = name0 == 0 ? NONEXISTENT : UNOPENED; in compare_files()
1075 cmp.file[1].desc = name1 == 0 ? NONEXISTENT : UNOPENED; in compare_files()
1088 cmp.file[0].name = name0; in compare_files()
1089 cmp.file[1].name = name1; in compare_files()
1093 cmp.file[0].name = free0 in compare_files()
1095 cmp.file[1].name = free1 in compare_files()
[all …]
H A Danalyze.c792 diff_2_files (struct comparison *cmp) in diff_2_files() argument
807 if (read_files (cmp->file, files_can_be_treated_as_binary)) in diff_2_files()
810 if (cmp->file[0].stat.st_size != cmp->file[1].stat.st_size in diff_2_files()
811 && (cmp->file[0].desc < 0 || S_ISREG (cmp->file[0].stat.st_mode)) in diff_2_files()
812 && (cmp->file[1].desc < 0 || S_ISREG (cmp->file[1].stat.st_mode))) in diff_2_files()
816 else if (cmp->file[0].desc == cmp->file[1].desc) in diff_2_files()
826 buffer_lcm (STAT_BLOCKSIZE (cmp->file[0].stat), in diff_2_files()
827 STAT_BLOCKSIZE (cmp->file[1].stat), in diff_2_files()
831 cmp->file[f].buffer = xrealloc (cmp->file[f].buffer, buffer_size); in diff_2_files()
833 for (;; cmp->file[0].buffered = cmp->file[1].buffered = 0) in diff_2_files()
[all …]
H A Ddir.c200 diff_dirs (struct comparison const *cmp, in diff_dirs() argument
208 if ((cmp->file[0].desc == -1 || dir_loop (cmp, 0)) in diff_dirs()
209 && (cmp->file[1].desc == -1 || dir_loop (cmp, 1))) in diff_dirs()
212 cmp->file[cmp->file[0].desc == -1].name); in diff_dirs()
218 if (! dir_read (&cmp->file[i], &dirdata[i])) in diff_dirs()
220 perror_with_name (cmp->file[i].name); in diff_dirs()
243 if (starting_file && ! cmp->parent) in diff_dirs()
259 int v1 = (*handle_file) (cmp, in diff_dirs()
281 dir_loop (struct comparison const *cmp, int i) in dir_loop() argument
283 struct comparison const *p = cmp; in dir_loop()
[all …]
/freebsd/usr.bin/cmp/tests/
H A Dcmp_test2.sh34 atf_check -s exit:0 -o empty -e empty cmp a - <a
35 atf_check -s exit:0 -o empty -e empty cmp - a <a
36 atf_check -s exit:1 -o not-empty -e empty cmp a - <b
37 atf_check -s exit:1 -o not-empty -e empty cmp - a <b
39 atf_check -s exit:0 -o empty -e empty cmp a a <&-
54 atf_check -s exit:0 cmp a a.lnk
55 atf_check -s exit:0 cmp a.lnk a
56 atf_check -s not-exit:0 -o ignore cmp a b.lnk
57 atf_check -s not-exit:0 -o ignore cmp b.lnk a
58 atf_check -s not-exit:0 -o ignore -e ignore cmp -h a a.lnk
[all …]
/freebsd/lib/libc/arm/gen/
H A Ddivsi3.S58 cmp r0, #1
81 cmp r0, #1
177 cmp r1, r0
179 cmp r1, r0, lsl #1
181 cmp r1, r0, lsl #2
183 cmp r1, r0, lsl #3
185 cmp r1, r0, lsl #4
187 cmp r1, r0, lsl #5
189 cmp r1, r0, lsl #6
191 cmp r1, r0, lsl #7
[all …]
/freebsd/sys/libkern/arm/
H A Ddivsi3.S60 cmp r0, #1
87 cmp r0, #1
183 cmp r1, r0
185 cmp r1, r0, lsl #1
187 cmp r1, r0, lsl #2
189 cmp r1, r0, lsl #3
191 cmp r1, r0, lsl #4
193 cmp r1, r0, lsl #5
195 cmp r1, r0, lsl #6
197 cmp r1, r0, lsl #7
[all …]
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Datomic.h50 extern uint64_t atomic_cas_64(volatile uint64_t *target, uint64_t cmp,
93 atomic_cas_32(volatile uint32_t *target, uint32_t cmp, uint32_t newval) in atomic_cas_32() argument
96 (void)atomic_fcmpset_32(target, &cmp, newval); in atomic_cas_32()
98 uint32_t expected = cmp; in atomic_cas_32()
101 if (atomic_fcmpset_32(target, &cmp, newval)) in atomic_cas_32()
103 } while (cmp == expected); in atomic_cas_32()
105 return (cmp); in atomic_cas_32()
124 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t newval) in atomic_cas_64() argument
127 (void)atomic_fcmpset_64(target, &cmp, newval); in atomic_cas_64()
129 uint64_t expected = cmp; in atomic_cas_64()
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Datomic.h56 extern uint64_t atomic_cas_64(volatile uint64_t *target, uint64_t cmp,
102 atomic_cas_32(volatile uint32_t *target, uint32_t cmp, uint32_t newval) in atomic_cas_32() argument
105 (void) atomic_fcmpset_32(target, &cmp, newval); in atomic_cas_32()
107 uint32_t expected = cmp; in atomic_cas_32()
110 if (atomic_fcmpset_32(target, &cmp, newval)) in atomic_cas_32()
112 } while (cmp == expected); in atomic_cas_32()
114 return (cmp); in atomic_cas_32()
135 atomic_cas_64(volatile uint64_t *target, uint64_t cmp, uint64_t newval) in atomic_cas_64() argument
138 (void) atomic_fcmpset_64(target, &cmp, newval); in atomic_cas_64()
140 uint64_t expected = cmp; in atomic_cas_64()
[all …]
/freebsd/usr.bin/tail/tests/
H A Dtail_test.sh37 atf_check cmp expectfile outfile
38 atf_check cmp expectfile outpipe
60 atf_check cmp expectfile outfile
61 atf_check cmp expectfile outpipe
82 atf_check cmp expectfile outfile
83 atf_check cmp expectfile outpipe
103 atf_check cmp expectfile outfile
104 atf_check cmp expectfile outpipe
125 atf_check cmp expectfile outfile
126 atf_check cmp expectfile outpipe
[all …]
/freebsd/sys/contrib/openzfs/scripts/
H A Dupdate_authors.pl269 my $cmp;
293 my $cmp;
296 $cmp = (($b =~ tr/@//) == 1) <=> (($a =~ tr/@//) == 1);
297 return $cmp unless $cmp == 0;
300 $cmp = (($a =~ $internal_re) <=> ($b =~ $internal_re));
301 return $cmp unless $cmp == 0;
304 $cmp = (($a =~ $noreply_re) <=> ($b =~ $noreply_re));
305 return $cmp unless $cmp == 0;
308 $cmp = (($a =~ $freemail_re) <=> ($b =~ $freemail_re));
309 return $cmp unless $cmp == 0;
[all …]
/freebsd/contrib/arm-optimized-routines/pl/math/
H A Dsv_math.h43 sv_call_f64 (double (*f) (double), svfloat64_t x, svfloat64_t y, svbool_t cmp) in sv_call_f64() argument
45 svbool_t p = svpfirst (cmp, svpfalse ()); in sv_call_f64()
46 while (svptest_any (cmp, p)) in sv_call_f64()
52 p = svpnext_b64 (cmp, p); in sv_call_f64()
59 svfloat64_t y, svbool_t cmp) in sv_call2_f64() argument
61 svbool_t p = svpfirst (cmp, svpfalse ()); in sv_call2_f64()
62 while (svptest_any (cmp, p)) in sv_call2_f64()
69 p = svpnext_b64 (cmp, p); in sv_call2_f64()
101 sv_call_f32 (float (*f) (float), svfloat32_t x, svfloat32_t y, svbool_t cmp) in sv_call_f32() argument
103 svbool_t p = svpfirst (cmp, svpfalse ()); in sv_call_f32()
[all …]
/freebsd/crypto/openssl/crypto/
H A Dx86cpuid.pl39 &cmp ("ebx",0x756e6547); # "Genu"
42 &cmp ("edx",0x49656e69); # "ineI"
45 &cmp ("ecx",0x6c65746e); # "ntel"
50 &cmp ("ebx",0x68747541); # "Auth"
53 &cmp ("edx",0x69746E65); # "enti"
56 &cmp ("ecx",0x444D4163); # "cAMD"
64 &cmp ("eax",0x80000001);
71 &cmp ("esi",0x80000008);
86 &cmp ("ebx","esi");
92 &cmp ("edi",4);
[all …]
/freebsd/contrib/netbsd-tests/include/sys/
H A Dt_socket.c32 struct cmsghdr *cmp; in ATF_TC_BODY() local
43 cmp = malloc(CMSG_SPACE(sizeof(int))); in ATF_TC_BODY()
48 cmp->cmsg_level = SOL_SOCKET; in ATF_TC_BODY()
49 cmp->cmsg_type = SCM_RIGHTS; in ATF_TC_BODY()
50 cmp->cmsg_len = CMSG_LEN(sizeof(int)); in ATF_TC_BODY()
56 msg.msg_control = cmp; in ATF_TC_BODY()
64 *(int *)CMSG_DATA(cmp) = 0x12345678; in ATF_TC_BODY()
83 struct cmsghdr *cmp; in ATF_TC_BODY() local
132 cmp = malloc(CMSG_SPACE(sizeof(int))); in ATF_TC_BODY()
137 cmp->cmsg_level = SOL_SOCKET; in ATF_TC_BODY()
[all …]
/freebsd/lib/libc/stdlib/
H A Dqsort.c71 #define CMP(t, x, y) (cmp((x), (y), (t)))
73 #define CMP(t, x, y) (cmp((t), (x), (y)))
75 #define CMP(t, x, y) (cmp((x), (y), (t)))
77 #define CMP(t, x, y) (cmp((x), (y)))
81 med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk in med3() argument
104 local_qsort(void *a, size_t n, size_t es, cmp_t *cmp, void *thunk) in local_qsort() argument
131 pl = med3(pl, pl + d, pl + 2 * d, cmp, thunk); in local_qsort()
132 pm = med3(pm - d, pm, pm + d, cmp, thunk); in local_qsort()
133 pn = med3(pn - 2 * d, pn - d, pn, cmp, thunk); in local_qsort()
135 pm = med3(pl, pm, pn, cmp, thunk); in local_qsort()
[all …]
/freebsd/crypto/openssl/test/
H A Dparams_api_test.c69 static int test_param_type_extra(OSSL_PARAM *param, const unsigned char *cmp, in test_param_type_extra() argument
103 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra()
108 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra()
113 if (!TEST_mem_eq(buf, sz, cmp, sz)) in test_param_type_extra()
151 unsigned char buf[MAX_LEN], cmp[sizeof(int)]; in test_param_int() local
162 le_copy(cmp, &out, sizeof(out)); in test_param_int()
163 if (!TEST_mem_eq(cmp, len, raw_values[n].value, len)) in test_param_int()
168 le_copy(cmp, &in, sizeof(in)); in test_param_int()
169 if (!TEST_mem_eq(cmp, sizeof(in), raw_values[n].value, sizeof(in))) in test_param_int()
178 unsigned char buf[MAX_LEN], cmp[sizeof(long int)]; in test_param_long() local
[all …]
/freebsd/lib/libc/db/test/
H A Drun.test72 if (cmp -s $TMP1 $TMP3) ; then :
86 if (cmp -s $TMP1 $TMP3) ; then :
111 if (cmp -s $TMP1 $TMP3) ; then :
124 if (cmp -s $TMP1 $TMP3) ; then :
147 if (cmp -s $TMP1 $TMP3) ; then :
166 if (cmp -s $TMP1 $TMP3) ; then :
183 if (cmp -s $TMP1 $TMP3) ; then :
248 if (cmp -s $TMP1 $TMP3) ; then :
284 if (cmp -s $TMP1 $TMP3) ; then :
336 if (cmp -s $TMP1 $TMP3) ; then :
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dt-qic.c59 int cmp; local
70 cmp = strcmp(line_in, line_back);
71 SM_TEST(exp == cmp);
72 if (cmp != exp && !SmTestVerbose)
77 fprintf(stderr, "cmp=%d\n", cmp);
85 fprintf(stderr, "cmp=%d\n", cmp);
106 int i, los, cmp, mode; local
175 cmp = strcmp(inout[i].qic_out, obp);
176 SM_TEST(inout[i].qic_exp == cmp);
177 if (inout[i].qic_exp != cmp && !SmTestVerbose)
[all …]
/freebsd/usr.bin/compress/tests/
H A Dcompress_test.sh41 atf_check cmp file1 expectfile1
60 atf_check cmp file1 expectfile1
137 atf_check -s exit:1 cmp -s file1.Z expectfile1
139 atf_check cmp file1 expectfile1
155 atf_check -s exit:1 cmp -s file1.Z expectfile1
156 atf_check -s exit:1 cmp -s file2.Z expectfile2
157 atf_check -s exit:1 cmp -s file1.Z file2.Z
159 atf_check cmp file1 expectfile1
160 atf_check cmp file2 expectfile2
176 atf_check -s exit:1 cmp -s file1.Z expectfile1
[all …]
/freebsd/crypto/openssl/ssl/record/
H A Ddtls1_bitmap.c40 int cmp; in dtls1_record_replay_check() local
44 cmp = satsub64be(seq, bitmap->max_seq_num); in dtls1_record_replay_check()
45 if (cmp > 0) { in dtls1_record_replay_check()
49 shift = -cmp; in dtls1_record_replay_check()
61 int cmp; in dtls1_record_bitmap_update() local
65 cmp = satsub64be(seq, bitmap->max_seq_num); in dtls1_record_bitmap_update()
66 if (cmp > 0) { in dtls1_record_bitmap_update()
67 shift = cmp; in dtls1_record_bitmap_update()
74 shift = -cmp; in dtls1_record_bitmap_update()
/freebsd/sys/netinet/
H A Daccf_http.c48 static int mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp);
51 int max, char *cmp);
91 mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp) in mbufstrcmp() argument
100 for (; offset < m->m_len; offset++, cmp++) { in mbufstrcmp()
101 if (*cmp == '\0') in mbufstrcmp()
103 else if (*cmp != *(mtod(m, char *) + offset)) in mbufstrcmp()
106 if (*cmp == '\0') in mbufstrcmp()
120 mbufstrncmp(struct mbuf *m, struct mbuf *npkt, int offset, int max, char *cmp) in mbufstrncmp() argument
129 for (; offset < m->m_len; offset++, cmp++, max--) { in mbufstrncmp()
130 if (max == 0 || *cmp == '\0') in mbufstrncmp()
[all …]
/freebsd/sys/sys/
H A Dqueue_mergesort.h185 #define SLIST_MERGESORT(head, thunk, cmp, TYPE, NAME) \ argument
186 SYSQUEUE_MERGESORT((head), (thunk), (cmp), TYPE, NAME, SLIST_HEAD, \
189 #define SLIST_MERGE(list1, list2, thunk, cmp, TYPE, NAME) \ argument
190 SYSQUEUE_MERGE((list1), (list2), (thunk), (cmp), TYPE, NAME, SLIST_FIRST, \
193 #define LIST_MERGESORT(head, thunk, cmp, TYPE, NAME) \ argument
194 SYSQUEUE_MERGESORT((head), (thunk), (cmp), TYPE, NAME, LIST_HEAD, \
197 #define LIST_MERGE(list1, list2, thunk, cmp, TYPE, NAME) \ argument
198 SYSQUEUE_MERGE((list1), (list2), (thunk), (cmp), TYPE, NAME, LIST_FIRST, \
201 #define STAILQ_MERGESORT(head, thunk, cmp, TYPE, NAME) \ argument
202 SYSQUEUE_MERGESORT((head), (thunk), (cmp), TYPE, NAME, STAILQ_HEAD, \
[all …]
/freebsd/crypto/openssh/regress/
H A Dsftp-cmds.sh72 cmp $DATA ${COPY} || fail "corrupted copy after get"
78 cmp $DATA ${COPY} || fail "corrupted copy after get"
85 cmp ${COPY} ${QUOTECOPY} || fail "corrupted copy after get with quotes"
93 cmp ${COPY} "$SPACECOPY" || fail "corrupted copy after get with spaces"
100 cmp ${COPY} "$GLOBMETACOPY" || \
107 cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after get"
114 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get"
121 cmp $DATA ${COPY}.dd/$DATANAME || fail "corrupted copy after get"
128 cmp /bin/$x ${COPY}.dd/$x || fail "corrupted copy after get"
135 cmp $DATA ${COPY} || fail "corrupted copy after put"
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_atomic_msvc.h169 u8 *cmp, in atomic_compare_exchange_strong() argument
174 u8 cmpv = *cmp; in atomic_compare_exchange_strong()
190 *cmp = prev; in atomic_compare_exchange_strong()
195 uptr *cmp, in atomic_compare_exchange_strong() argument
198 uptr cmpv = *cmp; in atomic_compare_exchange_strong()
203 *cmp = prev; in atomic_compare_exchange_strong()
208 u16 *cmp, in atomic_compare_exchange_strong() argument
211 u16 cmpv = *cmp; in atomic_compare_exchange_strong()
216 *cmp = prev; in atomic_compare_exchange_strong()
221 u32 *cmp, in atomic_compare_exchange_strong() argument
[all …]
H A Dsanitizer_lfstack.h36 u64 cmp = atomic_load(&head_, memory_order_relaxed); in Push() local
38 u64 cnt = (cmp & kCounterMask) + kCounterInc; in Push()
40 p->next = (T*)(uptr)(cmp & kPtrMask); in Push()
41 if (atomic_compare_exchange_weak(&head_, &cmp, xch, in Push()
48 u64 cmp = atomic_load(&head_, memory_order_acquire); in Pop() local
50 T *cur = (T*)(uptr)(cmp & kPtrMask); in Pop()
54 u64 cnt = (cmp & kCounterMask); in Pop()
56 if (atomic_compare_exchange_weak(&head_, &cmp, xch, in Pop()
/freebsd/contrib/llvm-project/compiler-rt/lib/builtins/hexagon/
H A Ddfaddsub.S87 BIGB = cmp.gtu(EXPB,EXPA) // Is B substantially greater than A?
111 A_POS = cmp.gt(AH,#-1)
125 NO_STICKIES = cmp.eq(ATMP2,ZERO)
128 B_POS = cmp.gt(BH,#-1)
136 p0 = cmp.gtu(EXPA,ZTMPH) // must be pretty high in case of large cancellation
137 p0 = !cmp.gtu(EXPA,ZTMPL)
143 p0 = cmp.eq(ATMPH,#0)
144 p0 = cmp.eq(ATMPL,#0)
173 p0 = cmp.eq(TMP,#2)
194 p0 = cmp.eq(ATMPH,#0)
[all …]

12345678910>>...40