Searched refs:strneq (Results 1 - 25 of 81) sorted by relevance

1234

/ast/src/lib/libpz/
H A Dsfdczip.c72 if (strneq(meth, "bzip", len))
76 if (strneq(meth, "gzip", len))
80 if (strneq(meth, "lzw", len))
84 if (strneq(meth, "pzip", len))
89 if (strneq(meth, "qzip", len))
150 if (strneq(part, "crc", 3))
/ast/src/lib/libsum/
H A Dsum-prng.c74 if (isdigit(*t) || v && strneq(t, "mpy", i) && (t = v + 1))
76 else if (strneq(t, "add", i))
78 else if (strneq(t, "init", i))
H A Dsum-crc.c84 if (isdigit(*t) || v && i >= 4 && strneq(t, "poly", 4) && (t = v + 1))
86 else if (strneq(t, "done", i))
88 else if (strneq(t, "init", i))
90 else if (strneq(t, "rotate", i))
92 else if (strneq(t, "size", i))
/ast/src/lib/libast/misc/
H A Dconformance.c64 if ((c = (m - t)) == 6 && strneq(t, "linux", 5))
69 else if (c > 3 && strneq(t, "bsd", 3) || c == 7 && strneq(t, "debian", 7))
145 if (strneq(t, m, s - t))
H A Drecstr.c90 if (strneq(s, "data", 4))
96 else if (strneq(s, "path", 4))
H A Dmime.c311 if ((strneq(s, "~/", n = 2) || strneq(s, "$HOME/", n = 6) || strneq(s, "${HOME}/", n = 8)) && (t = getenv("HOME")))
666 if (a1.name.size == 6 && strneq(a1.name.data, "strcmp", 6) || a1.name.size == 10 && strneq(a1.name.data, "strcasecmp", 10))
681 else if (a1.name.size == 4 && strneq(a1.name.data, "test", 4))
686 if (!arg(&a2, -1) || a2.name.size > 2 || a2.name.size == 1 && *a2.name.data != '=' || a2.name.size == 2 && (!strneq(a1.name.data, "!=", 2) || !strneq(a2.name.data, "==", 2)))
700 if (!arg(&a1, -1) || a1.name.size != 4 || !strneq(a1.name.data, "echo", 4) || !arg(&a1, -1))
703 if (!arg(&a4, 1) || a4.name.size < 21 || !strneq(a
[all...]
/ast/src/cmd/dsslib/bgp/
H A Dbgp-ipma.c59 if (s < e1 && strneq(s, magic1, sizeof(magic1) - 1) || s < e2 && strneq(s, magic2, sizeof(magic2) - 1))
96 if (s < e1 && strneq(s, magic1, sizeof(magic1) - 1) || s < e2 && strneq(s, magic2, sizeof(magic2) - 1))
189 if ((isdigit(*s) || (e - s) > 5 && strneq(s, "local", 5)) && (isspace(*(s - 1)) || *(s - 1) == '>' || *(s - 1) == ';' || *(s - 1) == '='))
260 else if ((e - s) > 6 && (strneq(s, "Prefix", 6) || strneq(s, "Networ", 6) || strneq(s, "Receiv", 6) || strneq(s, "Advert", 6)))
/ast/src/lib/libdss/
H A Ddssprintf.c466 if (strneq(v, "edit=", 5))
477 else if (strneq(v, "endquote=", 8))
487 else if (strneq(v, "expand=", 7))
497 if (strneq(v, "all", 3))
502 else if (strneq(v, "char", 4))
507 else if (strneq(v, "line", 4))
512 else if (strneq(v, "nocr", 4))
517 else if (strneq(v, "nonl", 4))
522 else if (strneq(v, "wide", 4))
535 else if (strneq(
[all...]
/ast/src/lib/libast/aso/
H A Daso-sem.c87 if (strneq(path, "perm=", 5))
95 else if (strneq(path, "size=", 5))
H A Daso-fcntl.c95 if (strneq(path, "perm=", 5))
103 else if (strneq(path, "size=", 5))
/ast/src/lib/libast/path/
H A Dpathcheck.c80 else if (*s != '#' && !isspace(*s) && !strneq(s, "127.", 4) && !strmatch(s, PARANOID_FREE) && o++ > 4)
/ast/src/lib/libast/string/
H A Dtokscan.c93 else if (strneq(b, "null)", 5))
/ast/src/lib/libcs/
H A Dcsport.c52 if (strneq(serv, CS_SVC_INET, sizeof(CS_SVC_INET) - 1))
/ast/src/cmd/mailx/
H A Dlocal.h155 #define strneq(a,b,n) (*(a)==*(b)&&!strncmp(a,b,n)) macro
H A Dspam.c462 if (n == n1 && strneq(s, d1, n1) || n == n2 && strneq(s, d2, n2))
626 if ((t == pp.data || *(t - 1) == '(' || *(t - 1) == ' ') && strneq(t, "unknown ", 8))
635 if (strneq(t, "forged", 6))
641 else if (ours && strneq(t, "from ", 5))
/ast/src/cmd/at/
H A Dat.c348 if (strneq(s, "cron ", n = 5) || strneq(s, "each ", n = 5) || strneq(s, "every ", n = 6) || strneq(s, "repeat ", n = 7))
/ast/src/cmd/mailx/port/
H A Dmime.c363 if ((strneq(s, "~/", n = 2) || strneq(s, "$HOME/", n = 6) || strneq(s, "${HOME}/", n = 8)) && (t = getenv("HOME")))
610 if (a1.name.size == 6 && strneq(a1.name.data, "strcmp", 6) || a1.name.size == 10 && strneq(a1.name.data, "strcasecmp", 10))
625 else if (a1.name.size == 4 && strneq(a1.name.data, "test", 4))
630 if (!arg(&a2, -1) || a2.name.size > 2 || a2.name.size == 1 && *a2.name.data != '=' || a2.name.size == 2 && (!strneq(a1.name.data, "!=", 2) || !strneq(a2.name.data, "==", 2)))
644 if (!arg(&a1, -1) || a1.name.size != 4 || !strneq(a1.name.data, "echo", 4) || !arg(&a1, -1))
647 if (!arg(&a4, 1) || a4.name.size < 21 || !strneq(a
[all...]
/ast/src/cmd/paxlib/calib/
H A Dcalib.c554 if ((b - m) == 7 && strneq((char*)m, "NEWPAGE", 7) || (b - m) == 4 && strneq((char*)m, "FILE", 4))
565 else if ((b - m) == 7 && strneq((char*)m, "INCLUDE", 7) || (b - m) == 4 && strneq((char*)m, "NAME", 4))
570 else if ((b - m) == 5 && (strneq((char*)m, "TITLE", 5) || strneq((char*)m, "SPACE", 5)))
575 else if ((b - m) == 3 && strneq((char*)m, "DCL", 3))
580 else if ((b - m) == 10 && strneq((char*)m, "SUBROUTINE", 10) || (b - m) == 9 && strneq((char*)m, "DIMENSION", 9) || (b - m) == 6 && strneq((cha
[all...]
/ast/src/cmd/pax/
H A Dpax-slt.c137 if (!ap->io->blocked && !*slt->last && slt->buf[3] == '2' && (strneq(slt->buf, "HDR", 3) || strneq(slt->buf, "EOF", 3) || strneq(slt->buf, "EOV", 3)))
139 if (*slt->last && strneq(slt->buf, slt->last, 4))
198 if (!strneq(hdr, key, sizeof(key) - 1))
208 if (!strneq(hdr, key, sizeof(key) - 1))
230 if (strneq(slt->buf, "UVL1", 4) && strneq(slt->buf + 5, ID, IDLEN))
287 if (strneq(slt->buf, "HDR", 3))
352 else if (!ap->io->blocked && strneq(sl
[all...]
H A Dpax-vdb.c60 if (s[0] != VDB_DELIMITER || !strneq(s + 1, VDB_MAGIC, sizeof(VDB_MAGIC) - 1) || s[sizeof(VDB_MAGIC)] != VDB_DELIMITER)
81 if (!strneq(s, VDB_DIRECTORY, sizeof(VDB_DIRECTORY) - 1))
94 if (!strneq(vdb->header.base, VDB_DIRECTORY, sizeof(VDB_DIRECTORY) - 1))
151 if (strneq(t, VDB_DATE, sizeof(VDB_DATE) - 1))
153 else if (strneq(t, VDB_MODE, sizeof(VDB_MODE) - 1))
/ast/src/lib/libdll/
H A Ddll_lib.c52 if (strneq(name, id, n) && (streq(name + n, "_s") || streq(name + n, "_t")))
70 if (strneq(s, "lib", 3))
/ast/src/lib/libast/regex/
H A Dregclass.c201 if (n == cp->size && strneq(s, cp->name, n))
216 if (n == cp->size && strneq(s, cp->name, n) && (!cp->next || cp->next == lc))
266 if (cp->size == n && strneq(name, cp->name, n))
/ast/src/cmd/nmake/
H A Dread.c296 if (strneq(s, "rules", 5))
320 if (strneq(s, "rules", 5))
327 else if (strneq(s, ".SOURCE", 7) && (*(s + 7) == '.' || *(s + 7) == ':' || isspace(*(s + 7))))
439 if (r && (r->time || strneq(r->name, "/dev/", 5) && !rstat(r->name, &st, 0)))
/ast/src/lib/libcoshell/
H A Dcoopen.c122 if (strneq(v, "command=", 8))
124 else if (strneq(v, "state=", 6))
126 else if (strneq(v, "db=", 3))
/ast/src/lib/libast/astsa/
H A Dast.h114 #define strneq(a,b,n) (*(a)==*(b)&&!strncmp(a,b,n)) macro

Completed in 46 milliseconds

1234