Home
last modified time | relevance | path

Searched refs:strncmp (Results 1 – 25 of 263) sorted by relevance

1234567891011

/original-bsd/games/hack/
H A Dhack.options.c49 if(!strncmp(opts,"standout",8)) {
54 if(!strncmp(opts,"null",3)) {
59 if(!strncmp(opts,"tombstone",4)) {
64 if(!strncmp(opts,"news",4)) {
69 if(!strncmp(opts,"time",4)) {
80 if(!strncmp(opts,"fixinv",4)) {
88 if(!strncmp(opts,"male",4)) {
92 if(!strncmp(opts,"female",6)) {
98 if(!strncmp(opts,"name",4)) {
111 if(!strncmp(opts,"endgame",3)) {
[all …]
H A Dhack.objnam.c215 if(!strncmp(" of ", p, 4)) {
254 if(strncmp(bp, "cheap ", 6))
350 if(!strncmp(bp, "the ", 4)){
353 } else if(!strncmp(bp, "an ", 3)){
356 } else if(!strncmp(bp, "a ", 2)){
394 for(p = bp; *p; p++) if(!strncmp(p, " named ", 7)) {
398 for(p = bp; *p; p++) if(!strncmp(p, " called ", 8)) {
402 for(p = bp; *p; p++) if(!strncmp(p, " labeled ", 9)) {
410 for(p = bp; *p; p++) if(!strncmp(p, "s of ", 5)){
464 if(!strncmp(bp, wrp[i], j)){
[all …]
/original-bsd/usr.bin/pascal/pmerge/
H A Dpmerge.c127 if (strncmp("include", cp, 7))
257 if (len == 5 && !strncmp(word, "begin", 5)) {
271 if (len == 4 && !strncmp(word, "case", 4)) {
277 if (len == 5 && !strncmp(word, "const", 5)) {
289 if (len == 3 && !strncmp(word, "end", 3)) {
307 if (len == 8 && !strncmp(word, "external", 8)) {
325 if (len == 7 && !strncmp(word, "forward", 7)) {
332 if (len == 5 && !strncmp(word, "label", 5)) {
353 if (len == 7 && !strncmp(word, "program", 7)) {
363 if (len == 4 && !strncmp(word, "type", 4)) {
[all …]
/original-bsd/sys/tahoe/stand/vdformat/
H A Dcorrect.c82 if(!strncmp(ptr, "he", 2) || !strncmp(ptr, "?", 1) || in get_corrections()
83 !strncmp(ptr, "stat", 4) || !strncmp(ptr, "!", 1)) in get_corrections()
86 if(!strncmp(ptr, "id", 2)) { in get_corrections()
134 else if(!strncmp(ptr, "se", 2)) { in get_corrections()
178 } else if(!strncmp(ptr, "star", 4)) { in get_corrections()
H A Drelocate.c84 if(!strncmp(ptr, "he", 2) || !strncmp(ptr, "?", 1) || in get_new_relocations()
85 !strncmp(ptr, "stat", 4) || !strncmp(ptr, "!", 1)) in get_new_relocations()
119 else if(!strncmp(ptr, "se", 2)) { in get_new_relocations()
164 else if(!strncmp(ptr, "start", 4)) { in get_new_relocations()
/original-bsd/games/rogue/
H A Dinit.c244 if (!strncmp(eptr, "fruit=", 6)) { in do_opts()
247 } else if (!strncmp(eptr, "file=", 5)) { in do_opts()
250 } else if (!strncmp(eptr, "jump", 4)) { in do_opts()
252 } else if (!strncmp(eptr, "name=", 5)) { in do_opts()
255 } else if (!strncmp(eptr, "noaskquit", 9)) { in do_opts()
257 } else if (!strncmp(eptr, "noskull", 5) || in do_opts()
258 !strncmp(eptr,"notomb", 6)) { in do_opts()
260 } else if (!strncmp(eptr, "passgo", 5)) { in do_opts()
H A Dcurses.c465 if (!strncmp(buf + i, ":cl=", 4)) {
467 } else if (!strncmp(buf + i, ":cm=", 4)) {
469 } else if (!strncmp(buf + i, ":up=", 4)) {
471 } else if (!strncmp(buf + i, ":do=", 4)) {
473 } else if (!strncmp(buf + i, ":vs=", 4)) {
475 } else if (!strncmp(buf + i, ":ve=", 4)) {
477 } else if (!strncmp(buf + i, ":ti=", 4)) {
479 } else if (!strncmp(buf + i, ":te=", 4)) {
481 } else if (!strncmp(buf + i, ":vs=", 4)) {
483 } else if (!strncmp(buf + i, ":ve=", 4)) {
[all …]
/original-bsd/sbin/restore/
H A Dinteractive.c104 if (strncmp(cmd, "add", strlen(cmd)) != 0) in runcmdshell()
117 if (strncmp(cmd, "cd", strlen(cmd)) != 0) in runcmdshell()
132 if (strncmp(cmd, "delete", strlen(cmd)) != 0) in runcmdshell()
145 if (strncmp(cmd, "extract", strlen(cmd)) != 0) in runcmdshell()
158 if (strncmp(cmd, "help", strlen(cmd)) != 0) in runcmdshell()
184 if (strncmp(cmd, "ls", strlen(cmd)) != 0) in runcmdshell()
192 if (strncmp(cmd, "pwd", strlen(cmd)) != 0) in runcmdshell()
203 if (strncmp(cmd, "quit", strlen(cmd)) != 0) in runcmdshell()
207 if (strncmp(cmd, "xit", strlen(cmd)) != 0) in runcmdshell()
236 if (strncmp(cmd, "what", strlen(cmd)) != 0) in runcmdshell()
[all …]
/original-bsd/contrib/connectd/libc/
H A Dgetttyent.c127 if (strncmp(p, "on", 2) == 0 && space(2)) in getttyent()
129 else if (strncmp(p, "off", 3) == 0 && space(3)) in getttyent()
131 else if (strncmp(p, "secure", 6) == 0 && space(6)) in getttyent()
133 else if (strncmp(p, "window=", 7) == 0) in getttyent()
/original-bsd/local/ukc/restore/
H A Dinteractive.c69 if (strncmp(cmd, "add", strlen(cmd)) != 0) in runcmdshell()
82 if (strncmp(cmd, "cd", strlen(cmd)) != 0) in runcmdshell()
97 if (strncmp(cmd, "delete", strlen(cmd)) != 0) in runcmdshell()
110 if (strncmp(cmd, "extract", strlen(cmd)) != 0) in runcmdshell()
123 if (strncmp(cmd, "help", strlen(cmd)) != 0) in runcmdshell()
149 if (strncmp(cmd, "ls", strlen(cmd)) != 0) in runcmdshell()
160 if (strncmp(cmd, "pwd", strlen(cmd)) != 0) in runcmdshell()
171 if (strncmp(cmd, "quit", strlen(cmd)) != 0) in runcmdshell()
175 if (strncmp(cmd, "xit", strlen(cmd)) != 0) in runcmdshell()
204 if (strncmp(cmd, "what", strlen(cmd)) != 0) in runcmdshell()
[all …]
/original-bsd/local/ditroff/ditroff.okeeffe/eqn/
H A Dfont.c50 if (strcmp(temp, "I") == 0 || strncmp(temp, "it", 2) == 0) { in globfont()
53 } else if (strcmp(temp, "B") == 0 || strncmp(temp, "bo", 2) == 0) { in globfont()
56 } else if (strcmp(temp, "R") == 0 || strncmp(temp, "ro", 2) == 0) { in globfont()
/original-bsd/local/ditroff/ditroff.okeeffe/ideal/idfilt/
H A Dver.c15 strncmp (str, ".IE", 3) &&
16 strncmp (str, "...knot", 7) &&
17 strncmp (str, "...endspline", 12) &&
18 strncmp (str, "...left", 7) &&
19 strncmp (str, "...center", 9) &&
20 strncmp (str, "...right", 8)
H A Dhar.c15 strncmp (str, ".IE", 3) &&
16 strncmp (str, "...knot", 7) &&
17 strncmp (str, "...endspline", 12) &&
18 strncmp (str, "...left", 7) &&
19 strncmp (str, "...center", 9) &&
20 strncmp (str, "...right", 8)
H A Didsort.c69 if (strncmp(buf,".IS",3) == 0) {
77 if (strncmp(buf,"...line",7)) {
78 if (!strncmp(buf,".IE",3) || !strncmp(buf,".IF",3)) {
/original-bsd/usr.bin/last/
H A Dlast.c164 crmsg = strncmp(bp->ut_name, "shutdown", in wtmp()
204 if (!strncmp(T->tty, bp->ut_line, UT_LINESIZE)) in wtmp()
260 if (!strncmp(bp->ut_line, "ftp", sizeof("ftp") - 1))
262 else if (!strncmp(bp->ut_line, "uucp", sizeof("uucp") - 1))
274 if (!strncmp(step->name, bp->ut_line, UT_LINESIZE))
278 if (!strncmp(step->name, bp->ut_name, UT_NAMESIZE))
374 if (!strncmp(arg, _PATH_DEV, sizeof(_PATH_DEV) - 1))
/original-bsd/usr.bin/rwho/
H A Drwho.c78 if (dp->d_ino == 0 || strncmp(dp->d_name, "whod.", 5))
151 rc = strncmp(u1->myutmp.out_name, u2->myutmp.out_name, 8);
154 rc = strncmp(u1->myhost, u2->myhost, 8);
157 return (strncmp(u1->myutmp.out_line, u2->myutmp.out_line, 8));
/original-bsd/usr.sbin/config/
H A Dmkubglue.c88 if (strncmp(vector, "dzx", 3) == 0)
90 else if (strncmp(vector, "dpx", 3) == 0)
92 else if (strncmp(vector, "dpr", 3) == 0)
95 if (strncmp(vector, "uur", 3) == 0) {
/original-bsd/usr.bin/uucp/uusnap/
H A Duusnap.c157 if(strncmp(dentp->d_name, prfx, plen) != SAME) {
178 if(strncmp(fnam, sys[i].name, fnamlen) == SAME) {
220 if(strncmp(dentp->d_name, "LCK..", 5) == SAME) {
221 if(strncmp(&dentp->d_name[5], "tty", 3) == SAME ||
222 strncmp(&dentp->d_name[5], "cul", 3) == SAME)
226 if(strncmp(&fnam[5], sys[csys].name, SYSNSIZE)
255 if(strncmp(fnam, sys[csys].name, SYSNSIZE) == SAME)
/original-bsd/local/local.cmd/
H A Dshowtc.c342 if (strncmp(*envp, "TERMCAP=", 8) == 0)
530 return(strncmp(a, b, 2));
561 if (strncmp(buf, *tp, 2) == 0)
568 if (xflag && strncmp(buf, "tc=", 3) == 0)
661 return(strncmp(*a, *b, 2));
757 if (strncmp(key, capList[i].cap, 2) == 0)
768 if (strncmp(key, capList[i].cap, 2) == 0)
/original-bsd/contrib/gas-1.38/config/
H A Dsparc.c178 if (strncmp(input_line_pointer, ",\"bss\"", 6) != 0) { in s_reserve()
246 if (strncmp(input_line_pointer, ",\"bss\"", 6) != 0) { in s_common()
265 if (strncmp(input_line_pointer, "\"text\"", 6) == 0) { in s_seg()
509 if (strncmp(s, "%csr", 4) == 0) {
675 if (strncmp(s, "%fsr", 4) == 0) {
773 if (strncmp(s, "%psr", 4) == 0) {
780 if (strncmp(s, "%fq", 3) == 0) {
787 if (strncmp(s, "%cq", 3) == 0) {
801 if (strncmp(s, "%tbr", 4) != 0)
807 if (strncmp(s, "%wim", 4) != 0)
[all …]
/original-bsd/usr.bin/users/
H A Dusers.c64 if (strncmp(names[cnt], names[cnt - 1], UT_NAMESIZE))
74 return(strncmp(p, q, UT_NAMESIZE));
/original-bsd/usr.bin/uucp/libuu/
H A Dsubdir.c69 if (strncmp(s, Spool, n = strlen(Spool)) == 0 && s[n] == '/') {
82 if (strncmp(s, *p, n = strlen(*p))==0 && s[n] && s[n] != '/') {
/original-bsd/usr.bin/learn/learn/
H A Dmysys.c50 if (strncmp(*p, "PATH=", 5) == 0) in chgenv()
52 else if (strncmp(*p, "EXINIT=", 7) == 0) in chgenv()
55 else if (strncmp(*p, "PS1=", 4) == 0) in chgenv()
/original-bsd/lib/libc/net/
H A Dres_init.c100 if (!strncmp(buf, "domain", sizeof("domain") - 1)) { in res_init()
116 if (!strncmp(buf, "search", sizeof("search") - 1)) { in res_init()
153 if (!strncmp(buf, "nameserver", sizeof("nameserver") - 1) && in res_init()
/original-bsd/usr.bin/write/
H A Dwrite.c74 if (!strncmp(argv[2], "/dev/", 5))
108 if (strncmp(user, u.ut_name, sizeof(u.ut_name)) == 0 &&
109 strncmp(tty, u.ut_line, sizeof(u.ut_line)) == 0) {
145 if (strncmp(user, u.ut_name, sizeof(u.ut_name)) == 0) {

1234567891011