Symbol: cam_strmatch
lib/libcam/tests/cam_test.c
100
ATF_CHECK_EQ(0, cam_strmatch("f[o", "f[[]o", 3));
lib/libcam/tests/cam_test.c
101
ATF_CHECK_NE(0, cam_strmatch("foo", "f[[]o", 3));
lib/libcam/tests/cam_test.c
106
ATF_TP_ADD_TC(tp, cam_strmatch);
lib/libcam/tests/cam_test.c
39
ATF_TC_WITHOUT_HEAD(cam_strmatch);
lib/libcam/tests/cam_test.c
40
ATF_TC_BODY(cam_strmatch, tc)
lib/libcam/tests/cam_test.c
43
ATF_CHECK_EQ(0, cam_strmatch("foo", "foo", 3));
lib/libcam/tests/cam_test.c
44
ATF_CHECK_NE(0, cam_strmatch("foo", "bar", 3));
lib/libcam/tests/cam_test.c
45
ATF_CHECK_NE(0, cam_strmatch("foo", "foobar", 3));
lib/libcam/tests/cam_test.c
48
ATF_CHECK_EQ(0, cam_strmatch("fooxuehfxeuf", "foo", 3));
lib/libcam/tests/cam_test.c
49
ATF_CHECK_NE(0, cam_strmatch("foo\0bar", "foo", 7));
lib/libcam/tests/cam_test.c
52
ATF_CHECK_EQ(0, cam_strmatch("foo ", "foo", 16));
lib/libcam/tests/cam_test.c
55
ATF_CHECK_EQ(0, cam_strmatch("foobar", "foo*", 6));
lib/libcam/tests/cam_test.c
56
ATF_CHECK_EQ(0, cam_strmatch("foobar", "*bar", 6));
lib/libcam/tests/cam_test.c
57
ATF_CHECK_NE(0, cam_strmatch("foobar", "foo*x", 6));
lib/libcam/tests/cam_test.c
58
ATF_CHECK_EQ(0, cam_strmatch("foobarbaz", "*bar*", 9));
lib/libcam/tests/cam_test.c
60
ATF_CHECK_EQ(0, cam_strmatch("foo\0bar", "foo*", 7));
lib/libcam/tests/cam_test.c
62
ATF_CHECK_EQ(0, cam_strmatch("foo", "foo*", 3));
lib/libcam/tests/cam_test.c
64
ATF_CHECK_NE(0, cam_strmatch("foo", "foo*x", 3));
lib/libcam/tests/cam_test.c
67
ATF_CHECK_EQ(0, cam_strmatch("foobar", "foo?ar", 6));
lib/libcam/tests/cam_test.c
68
ATF_CHECK_NE(0, cam_strmatch("foo", "foo?", 3));
lib/libcam/tests/cam_test.c
70
ATF_CHECK_EQ(0, cam_strmatch("foo\0bar", "foo?bar", 7));
lib/libcam/tests/cam_test.c
73
ATF_CHECK_EQ(0, cam_strmatch("foobar", "foo[abc]ar", 6));
lib/libcam/tests/cam_test.c
74
ATF_CHECK_EQ(0, cam_strmatch("foobar", "foo[b]ar", 6));
lib/libcam/tests/cam_test.c
75
ATF_CHECK_NE(0, cam_strmatch("foobar", "foo[ac]ar", 6));
lib/libcam/tests/cam_test.c
78
ATF_CHECK_EQ(0, cam_strmatch("foobar", "foo[a-c]ar", 6));
lib/libcam/tests/cam_test.c
79
ATF_CHECK_EQ(0, cam_strmatch("fooxar", "foo[a-cx]ar", 6));
lib/libcam/tests/cam_test.c
80
ATF_CHECK_NE(0, cam_strmatch("foodar", "foo[a-c]ar", 6));
lib/libcam/tests/cam_test.c
83
ATF_CHECK_EQ(0, cam_strmatch("foobar", "fo[a-z][abc]ar", 6));
lib/libcam/tests/cam_test.c
84
ATF_CHECK_NE(0, cam_strmatch("foAbar", "fo[a-z][abc]ar", 6));
lib/libcam/tests/cam_test.c
85
ATF_CHECK_NE(0, cam_strmatch("foodar", "fo[a-z][abc]ar", 6));
lib/libcam/tests/cam_test.c
88
ATF_CHECK_NE(0, cam_strmatch("foobar", "foo[^abc]ar", 6));
lib/libcam/tests/cam_test.c
89
ATF_CHECK_NE(0, cam_strmatch("foobar", "foo[^b]ar", 6));
lib/libcam/tests/cam_test.c
90
ATF_CHECK_EQ(0, cam_strmatch("foobar", "foo[^ac]ar", 6));
lib/libcam/tests/cam_test.c
91
ATF_CHECK_NE(0, cam_strmatch("foobar", "foo[^a-c]ar", 6));
lib/libcam/tests/cam_test.c
92
ATF_CHECK_NE(0, cam_strmatch("fooxar", "foo[^a-cx]ar", 6));
lib/libcam/tests/cam_test.c
93
ATF_CHECK_EQ(0, cam_strmatch("foodar", "foo[^a-c]ar", 6));
lib/libcam/tests/cam_test.c
96
ATF_CHECK_EQ(0, cam_strmatch("f]o", "f]o", 3));
lib/libcam/tests/cam_test.c
97
ATF_CHECK_NE(0, cam_strmatch("foo", "f]o", 3));
sbin/camcontrol/fwdownload.c
317
if (!cam_strmatch((const u_char *)vendor,
sys/cam/ata/ata_all.c
1008
if ((cam_strmatch(ident->model, entry->product,
sys/cam/ata/ata_all.c
1010
&& (cam_strmatch(ident->revision, entry->revision,
sys/cam/ata/ata_all.c
1026
if ((cam_strmatch(ident->model, entry->product,
sys/cam/ata/ata_all.c
1028
&& (cam_strmatch(ident->revision, entry->revision,
sys/cam/cam.c
219
if (cam_strmatch(str, pattern, str_len) == 0)
sys/cam/cam.h
411
int cam_strmatch(const uint8_t *str, const uint8_t *pattern, int str_len);
sys/cam/scsi/scsi_all.c
9319
&& (cam_strmatch(inq->vendor, entry->vendor, sizeof(inq->vendor)) == 0)
sys/cam/scsi/scsi_all.c
9320
&& (cam_strmatch(inq->product, entry->product,
sys/cam/scsi/scsi_all.c
9322
&& (cam_strmatch(inq->revision, entry->revision,
sys/cam/scsi/scsi_all.c
9346
&& (cam_strmatch(inq->vendor, entry->vendor, sizeof(inq->vendor)) == 0)
sys/cam/scsi/scsi_all.c
9347
&& (cam_strmatch(inq->product, entry->product,
sys/cam/scsi/scsi_all.c
9349
&& (cam_strmatch(inq->revision, entry->revision,