Searched refs:cp (Results 126 - 150 of 1532) sorted by relevance

1234567891011>>

/openbsd-current/usr.bin/file/
H A Dtext.c137 const char *cp, *end, *next, *word; local
142 for (cp = base; cp != end; /* nothing */) {
143 while (cp != end && isspace((u_char)*cp))
144 cp++;
146 next = cp;
156 if ((size_t)(next - cp) != wordlen)
158 if (memcmp(cp, word, wordlen) != 0)
165 cp
[all...]
/openbsd-current/usr.bin/less/
H A Dcmdbuf.c30 static char *cp; /* Pointer into cmdbuf */ variable
100 cp = cmdbuf;
101 *cp = '\0';
219 * Repaint the line from cp onwards.
229 while (*cp != '\0') {
230 char *np = cp;
235 cp = np;
239 while (*cp != '\0') {
240 char *np = cp;
245 cp
[all...]
/openbsd-current/usr.bin/rdist/
H A Dexpand.c72 char *cp; local
81 eargv[eargc - 1] = cp = xmalloc(len);
86 } while ((*cp++ = *s1++) != '\0');
87 cp--;
91 } while ((*cp++ = *s2++) != '\0');
167 u_char *cp; local
169 for (cp = str; cp && *cp != CNULL; ++cp)
179 u_char *cp, *cp1; local
309 u_char *cp, *oldcp; local
[all...]
/openbsd-current/sys/arch/macppc/stand/
H A Dmain.c75 char *cp, *lp = 0; local
77 for (cp = dev; *cp; cp++)
78 if (*cp == ':')
79 lp = cp;
81 lp = cp;
184 char *cp; local
188 cp = bootline + strlen(bootline);
189 *cp
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.bugs/
H A D900210_01.C30 char* cp; variable
39 i = cp; /* ERROR - */
45 l = cp; /* ERROR - */
51 s = cp; /* ERROR - */
57 c = cp; /* ERROR - */
63 si = cp; /* ERROR - */
69 sl = cp; /* ERROR - */
75 ss = cp; /* ERROR - */
81 sc = cp; /* ERROR - */
87 ui = cp; /* ERRO
[all...]
H A D900210_02.C30 char* cp; variable
50 cp = i; /* ERROR - */
51 cp = l; /* ERROR - */
52 cp = s; /* ERROR - */
53 cp = c; /* ERROR - */
54 cp = si; /* ERROR - */
55 cp = sl; /* ERROR - */
56 cp = ss; /* ERROR - */
57 cp = sc; /* ERROR - */
58 cp
[all...]
/openbsd-current/regress/lib/libc/strlcpy/
H A Dstrlcpytest.c41 char *buf, *buf2, *cp, *ep; local
75 for (cp = buf + len + 1; cp < ep; cp++) {
76 if (*cp != 'z') {
99 for (cp = buf + len + 1; cp < ep; cp++) {
100 if (*cp != 'z') {
120 for (cp
[all...]
/openbsd-current/sys/dev/isa/
H A Dspkr.c211 playstring(char *cp, size_t slen) argument
215 #define GETNUM(cp, v) \
217 for (v = 0; slen > 0 && isdigit(cp[1]); ) { \
218 v = v * 10 + (*++cp - '0'); \
223 for (; slen--; cp++) {
225 char c = toupper(*cp);
243 if (slen > 0 && (cp[1] == '#' || cp[1] == '+')) {
245 ++cp;
247 } else if (slen > 0 && cp[
[all...]
H A Dad1848var.h139 ad1848_to_vol(mixer_ctrl_t *cp, struct ad1848_volume *vol) argument
141 if (cp->un.value.num_channels == 1) {
142 vol->left = vol->right = cp->un.value.level[AUDIO_MIXER_LEVEL_MONO];
145 else if (cp->un.value.num_channels == 2) {
146 vol->left = cp->un.value.level[AUDIO_MIXER_LEVEL_LEFT];
147 vol->right = cp->un.value.level[AUDIO_MIXER_LEVEL_RIGHT];
154 ad1848_from_vol(mixer_ctrl_t *cp, struct ad1848_volume *vol) argument
156 if (cp->un.value.num_channels == 1) {
157 cp->un.value.level[AUDIO_MIXER_LEVEL_MONO] = vol->left;
160 else if (cp
[all...]
/openbsd-current/regress/usr.bin/ssh/unittests/sshkey/
H A Dtest_file.c41 char *cp; local
129 cp = sshkey_fingerprint(k1, SSH_DIGEST_SHA256, SSH_FP_BASE64);
130 ASSERT_PTR_NE(cp, NULL);
131 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf));
133 free(cp);
138 cp = sshkey_fingerprint(k2, SSH_DIGEST_SHA256, SSH_FP_BASE64);
139 ASSERT_PTR_NE(cp, NULL);
140 ASSERT_STRING_EQ(cp, (const char *)sshbuf_ptr(buf));
142 free(cp);
148 cp
[all...]
/openbsd-current/usr.bin/unifdef/
H A Dunifdef.c787 const char *cp; local
793 cp = skiphash();
794 if (cp == NULL)
802 if (*cp == '\0') {
806 keyword = tline + (cp - tline);
807 if ((cp = matchsym("ifdef", keyword)) != NULL ||
808 (cp = matchsym("ifndef", keyword)) != NULL) {
809 cp = skipcomment(cp);
810 if ((cursym = findsym(&cp)) <
967 const char *cp; local
1057 const char *cp; local
1114 const char *cp; local
1139 skipline(const char *cp) argument
1160 skipcomment(const char *cp) argument
1272 skipargs(const char *cp) argument
1297 skipsym(const char *cp) argument
1310 const char *cp = *cpp, *sym; local
1380 const char *cp; local
1430 const char *cp = sym; local
1481 const char *cp, *kw, *sym, *val, *end; local
[all...]
/openbsd-current/bin/csh/
H A Dexp.c335 Char *cp, *dp, *ep; local
341 cp = exp6(vp, ignore);
342 i = egetn(cp);
343 free(cp);
348 cp = exp6(vp, ignore);
349 i = egetn(cp);
350 free(cp);
394 cp = *(*vp)++;
395 if (*cp == '-' && any("erwxfdzopls", cp[
505 isa(Char *cp, int what) argument
552 egetn(Char *cp) argument
[all...]
/openbsd-current/usr.bin/mail/
H A Dnames.c85 char *cp; local
95 cp = line;
96 while ((cp = yankword(cp, nbuf)) != NULL) {
116 char *cp, *top; local
137 cp = top;
141 cp = copy(p->n_name, cp);
143 *cp++ = ',';
144 *cp
159 char *cp, *cp2; local
347 char *cp; local
369 struct name *new, *np, *cp; local
406 char *cp; local
[all...]
/openbsd-current/games/robots/
H A Dplay_level.c42 COORD *cp; local
47 for (cp = Robots; cp < &Robots[MAXROBOTS]; cp++) {
48 if (cp->y < 0)
50 move(cp->y, cp->x);
/openbsd-current/lib/libc/gen/
H A Dpw_dup.c41 (void)memcpy(cp, pw->name, size); \
42 newpw->name = cp; \
43 cp += size; \
50 char *cp; local
63 if ((cp = malloc(total)) == NULL)
65 newpw = (struct passwd *)cp;
72 cp += sizeof(struct passwd);
/openbsd-current/usr.sbin/amd/amd/
H A Dafs_ops.c511 #define IN_PROGRESS(cp) ((cp)->mp->am_mnt->mf_flags & MFF_MOUNTING)
517 free_continuation(struct continuation *cp) argument
519 if (cp->callout)
520 untimeout(cp->callout);
521 free(cp->key);
522 free(cp->xivec);
523 free(cp->info);
524 free(cp->auto_opts);
525 free(cp
574 struct continuation *cp = (struct continuation *) closure; local
641 struct continuation *cp = (struct continuation *) closure; local
770 afs_bgmount(struct continuation *cp, int mpe) argument
1133 struct continuation *cp; /* Continuation structure if we need to mount */ local
[all...]
/openbsd-current/games/cribbage/
H A Dcards.c116 CARD *cp, *endp; local
120 for (cp = h + 1; cp < endp; cp++)
121 if ((cp->rank < h->rank) ||
122 (cp->rank == h->rank && cp->suit < h->suit)) {
124 *h = *cp;
125 *cp = c;
/openbsd-current/sys/dev/microcode/cyclades/
H A Dcyzfirm2h.c61 char *include_name, *cp; local
83 for (cp = include_name; *cp != '\0'; cp++) {
84 if (isalpha(*cp))
85 *cp = toupper(*cp);
86 else if (*cp == '.')
87 *cp = '_';
/openbsd-current/usr.sbin/lpr/lpq/
H A Dlpq.c73 char *buf, *cp; local
99 l = strtol(optarg, &cp, 10);
100 if (*cp != '\0' || l < 0 || l >= INT_MAX)
133 for (cp = buf; *cp; cp++)
134 if (*cp == '|' || *cp == ':') {
135 *cp = '\0';
/openbsd-current/regress/lib/libedit/read/
H A Dtest_read_char.c45 wchar_t cp; local
55 irc = read_char(&el, &cp);
65 printf("%x", cp);
/openbsd-current/usr.sbin/mailwrapper/
H A Dmailwrapper.c82 char *line, *cp, *from, *to, *ap; local
122 cp = line;
124 cp += strspn(cp, WS);
125 if (cp[0] == '\0') {
131 if ((from = strsep(&cp, WS)) == NULL || cp == NULL)
134 cp += strspn(cp, WS);
136 if ((to = strsep(&cp, W
[all...]
/openbsd-current/sys/kern/
H A Dexec_script.c67 char *cp, *shellname, *shellarg, *oldpnbuf; local
98 for (cp = hdrstr + EXEC_SCRIPT_MAGICLEN; cp < hdrstr + hdrlinelen;
99 cp++) {
100 if (*cp == '\n') {
101 *cp = '\0';
105 if (cp >= hdrstr + hdrlinelen)
113 for (cp = hdrstr + EXEC_SCRIPT_MAGICLEN; *cp == ' ' || *cp
[all...]
/openbsd-current/usr.bin/getconf/
H A Dgetconf.c405 const struct conf_variable *cp; local
435 cp = uposix_conf_table;
439 cp = posix_conf_table;
442 cp = conf_table;
447 for (; cp->name != NULL; cp++)
448 if (strcmp(*argv + slen, cp->name) == 0)
457 if (cp->name == NULL && strncmp(*argv + slen, compat_posix2_prefix,
460 for (cp = compat_posix2_conf_table; cp
549 const struct conf_variable *cp; local
569 const struct conf_variable *cp; local
[all...]
/openbsd-current/gnu/usr.bin/binutils/gdb/
H A Dfork-child.c54 char *cp = scratch; local
59 while (*cp == ' ' || *cp == '\t' || *cp == '\n')
60 cp++;
63 if (*cp == '\0')
67 *argv++ = cp;
70 cp = strchr (cp, ' ');
71 if (cp
[all...]
/openbsd-current/usr.bin/ssh/
H A Dauthfile.c204 char *line = NULL, *cp; local
221 cp = line;
222 switch (*cp) {
229 if (strncmp(cp, "-----BEGIN", 10) == 0 ||
230 strcmp(cp, "SSH PRIVATE KEY FILE") == 0)
233 for (; *cp && (*cp == ' ' || *cp == '\t'); cp++)
235 if (*cp) {
377 char *line = NULL, *cp; local
474 char *cp = *cpp; local
[all...]

Completed in 248 milliseconds

1234567891011>>