q 61 kernel/string.c strncmp(const char *p, const char *q, uint n) q 63 kernel/string.c while(n > 0 && *p && *p == *q) q 64 kernel/string.c n--, p++, q++; q 67 kernel/string.c return (uchar)*p - (uchar)*q; q 15 user/grep.c char *p, *q; q 22 user/grep.c while((q = strchr(p, '\n')) != 0){ q 23 user/grep.c *q = 0; q 25 user/grep.c *q = '\n'; q 26 user/grep.c write(1, p, q+1 - p); q 28 user/grep.c p = q+1; q 267 user/sh.c gettoken(char **ps, char *es, char **q, char **eq) q 275 user/sh.c if(q) q 276 user/sh.c *q = s; q 379 user/sh.c char *q, *eq; q 383 user/sh.c if(gettoken(ps, es, &q, &eq) != 'a') q 387 user/sh.c cmd = redircmd(cmd, q, eq, O_RDONLY, 0); q 390 user/sh.c cmd = redircmd(cmd, q, eq, O_WRONLY|O_CREATE|O_TRUNC, 1); q 393 user/sh.c cmd = redircmd(cmd, q, eq, O_WRONLY|O_CREATE, 1); q 419 user/sh.c char *q, *eq; q 433 user/sh.c if((tok=gettoken(ps, es, &q, &eq)) == 0) q 437 user/sh.c cmd->argv[argc] = q; q 29 user/ulib.c strcmp(const char *p, const char *q) q 31 user/ulib.c while(*p && *p == *q) q 32 user/ulib.c p++, q++; q 33 user/ulib.c return (uchar)*p - (uchar)*q;