/freebsd-current/contrib/mandoc/ |
H A D | dbm.c | 236 static const char *cp; local 250 cp = dbm_get(pages[0].name); 253 cp = dbm_get(pages[0].sect); 256 cp = dbm_get(pages[0].desc); 261 if (cp == NULL) { 264 cp = NULL; 275 cp++; 276 if (dbm_match(match, cp)) 278 cp = strchr(cp, '\ 318 const char *cp; local 353 static const char *cp; local [all...] |
/freebsd-current/lib/libdpv/ |
H A D | dialog_util.c | 119 char *cp; local 155 if ((cp = strchr(cols, '\n')) != NULL) 156 *cp = '\0'; 227 char *cp; local 239 if ((cp = getenv(ENV_DIALOG)) != NULL) 240 snprintf(dialog, PATH_MAX, "%s", cp); 344 const char *cp = prompt; local 350 while (*cp != '\0') { 352 if (strncmp(cp, "\\n", 2) == 0) { 353 cp 497 char *cp; local 601 const char *cp; local [all...] |
/freebsd-current/usr.bin/mkuzip/ |
H A D | mkuz_conveyor.c | 106 struct mkuz_conveyor *cp; local 110 cp = mkuz_safe_zmalloc(sizeof(struct mkuz_conveyor) + 113 cp->wrk_queue = mkuz_fqueue_ctor(1); 114 cp->results = mkuz_fqueue_ctor(1); 119 cwp->cvp = cp; 120 r = pthread_create(&cp->wthreads[i], NULL, cworker, (void *)cwp); 126 return (cp);
|
/freebsd-current/sys/geom/journal/ |
H A D | g_journal_ufs.c | 66 g_journal_ufs_dirty(struct g_consumer *cp) argument 72 if (SBLOCKSIZE % cp->provider->sectorsize != 0 || 73 ffs_sbget(cp, &fs, UFS_STDSB, UFS_NOCSUM, M_GEOM, g_use_g_read_data) 76 "as dirty.", cp->provider->name); 92 error = ffs_sbput(cp, fs, fs->fs_sblockloc, g_use_g_write_data); 96 "(error=%d).", cp->provider->name, error); 99 cp->provider->name);
|
/freebsd-current/libexec/rtld-elf/ |
H A D | libmap.c | 203 char *cp, *f, *t, *c, *p; local 225 cp = &line[0]; 229 while (rtld_isspace(*cp)) 230 cp++; 233 if (iseol(*cp)) 237 if (*cp == '[') { 238 cp++; 241 while (rtld_isspace(*cp)) 242 cp++; 245 if (iseol(*cp) || *c [all...] |
/freebsd-current/usr.bin/ul/ |
H A D | ul.c | 358 wchar_t *cp = lbuf; local 366 *cp++ = ' '; 369 *cp++ = '_'; 372 *cp++ = obuf[i].c_char; 379 for (*cp=' '; *cp==' '; cp--) 380 *cp = 0; 381 for (cp=lbuf; *cp; c 398 wchar_t *cp = lbuf; local [all...] |
/freebsd-current/bin/cp/tests/ |
H A D | cp_test.sh | 41 atf_check cp bar baz 51 atf_check cp baz foo 63 atf_check cp /dev/null trunc 65 atf_check cp bar trunc 67 atf_check cp /dev/null trunc 75 atf_check cp -l foo bar 85 atf_check -s not-exit:0 -e match:exists cp -l foo bar 95 atf_check cp -fl foo bar 104 # PR235438: `cp -R foo foo` would previously infinitely recurse and 108 cp fo [all...] |
/freebsd-current/contrib/libxo/encoder/csv/ |
H A D | enc_csv.c | 305 const char *cp, *ep, *np; local 307 for (cp = value, ep = value + len; cp && cp < ep; cp = np) { 308 np = strchr(cp, '"'); 311 xo_buf_append(xbp, cp, np - cp); 314 xo_buf_append(xbp, cp, ep - cp); 539 char *cp = xo_buf_cur(xbp); local 563 char *cp = xo_buf_cur(xbp); local 577 char *cp, *ep, *np; local 611 char *cp, *ep, *np; local 672 char *cp, *ep, *np, *vp; local [all...] |
/freebsd-current/tools/test/stress2/testcases/openat/ |
H A D | doat.c | 42 char *cp; member in union:param 198 tests[0].tests[0].params[1].cp = relative_path; 203 tests[0].tests[1].params[1].cp = relative_path; 208 tests[0].tests[2].params[1].cp = absolute_path; 213 tests[0].tests[3].params[1].cp = relative_file; 218 tests[0].tests[4].params[1].cp = file; 223 tests[0].tests[5].params[1].cp = file; 228 tests[0].tests[6].params[1].cp = absolute_path; 238 tests[1].tests[0].params[1].cp = relative_path; 243 tests[1].tests[1].params[1].cp [all...] |
/freebsd-current/lib/libc/stdio/ |
H A D | xprintf_float.c | 141 * C: cp points to the string MMMNNN. Leading and trailing 153 char *cp; local 208 dtoaresult = cp = 213 dtoaresult = cp = 218 prec = dtoaend - cp; 248 dtoaresult = cp = 253 dtoaresult = cp = 263 if (*cp == 'N') { 264 cp = (pi->spec >= 'a') ? "nan" : "NAN"; 267 cp [all...] |
/freebsd-current/tools/regression/doat/ |
H A D | doat.c | 45 const char *cp; member in union:param 201 tests[0].tests[0].params[1].cp = relative_path; 206 tests[0].tests[1].params[1].cp = relative_path; 211 tests[0].tests[2].params[1].cp = absolute_path; 216 tests[0].tests[3].params[1].cp = relative_file; 221 tests[0].tests[4].params[1].cp = file; 226 tests[0].tests[5].params[1].cp = file; 231 tests[0].tests[6].params[1].cp = absolute_path; 241 tests[1].tests[0].params[1].cp = relative_path; 246 tests[1].tests[1].params[1].cp [all...] |
/freebsd-current/lib/libc/net/ |
H A D | gethostbynis.c | 55 char *cp, **q; local 94 if ((cp = strchr(result, '\n'))) 95 *cp = '\0'; 97 cp = strpbrk(result, " \t"); 98 *cp++ = '\0'; 124 while (*cp == ' ' || *cp == '\t') 125 cp++; 130 p = strpbrk(cp, " \t"); 133 size = strlen(cp) [all...] |
H A D | gethostbyht.c | 91 char *cp, **q; local 106 cp = strpbrk(p, "#\n"); 107 if (cp != NULL) 108 *cp = '\0'; 109 if (!(cp = strpbrk(p, " \t"))) 111 *cp++ = '\0'; 133 while (*cp == ' ' || *cp == '\t') 134 cp++; 139 if ((p = strpbrk(cp, " \ 226 char **cp; local [all...] |
/freebsd-current/contrib/tnftp/src/ |
H A D | fetch.c | 149 const char *cp, *scheme, *errormsg; local 159 cp = challenge; 165 if (! match_token(&cp, scheme)) { 172 if (STRNEQUAL(cp, REALM)) 173 cp += sizeof(REALM) - 1; 180 if ((ep = strchr(cp, '\"')) != NULL) { 181 len = ep - cp; 183 (void)strlcpy(realm, cp, len + 1); 246 unsigned char *cp; local 249 cp 327 char *cp, *ep, *thost; local 494 const char *cp, *token; local 1372 char *cp, *xargv[5], rempath[MAXPATHLEN]; local [all...] |
/freebsd-current/contrib/tcsh/ |
H A D | sh.misc.c | 210 strspl(const char *cp, const char *dp) argument 215 if (!cp) 216 cp = ""; 219 cl = strlen(cp); 222 memcpy(ep, cp, cl); 237 lastchr(Char *cp) argument 240 if (!cp) 242 if (!*cp) 244 while (cp[1]) 245 cp 423 number(Char *cp) argument 447 strend(const char *cp) argument 457 strip(Char *cp) argument 474 quote(Char *cp) argument [all...] |
/freebsd-current/stand/common/ |
H A D | commands.c | 63 char line[81], *cp, *ep; local 74 cp = line + 2; 75 while (cp != NULL && *cp != 0) { 76 ep = strchr(cp, ' '); 77 if (*cp == 'T' && *topic == NULL) { 80 *topic = strdup(cp + 1); 81 } else if (*cp == 'S' && *subtopic == NULL) { 84 *subtopic = strdup(cp + 1); 85 } else if (*cp 263 char *cp; local 317 const char **cp; local 408 char *cp; local [all...] |
/freebsd-current/crypto/openssh/regress/ |
H A D | check-perm.c | 37 const char *cp; local 50 for (cp = path; cp != NULL;) { 51 if ((cp = strchr(cp, '/')) == NULL) 54 cp++; 55 memcpy(component, path, cp - path); 56 component[cp - path] = '\0'; 67 cp == NULL ? "" : "component ", component); 70 cp 98 char *cp; local [all...] |
H A D | match-subsystem.sh | 6 cp $OBJ/sshd_proxy $OBJ/sshd_proxy_bak 23 cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy 30 cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy 38 cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy 46 cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy 55 cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy 63 cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy 74 cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy 83 cp $OBJ/sshd_proxy_bak $OBJ/sshd_proxy
|
/freebsd-current/crypto/heimdal/appl/rcp/ |
H A D | rcp.c | 423 char ch, *cp, *np, *targ, *why, *vect[1], buf[BUFSIZ]; local 444 cp = buf; 445 if (read(remin, cp, 1) <= 0) 447 if (*cp++ == '\n') 452 *cp++ = ch; 453 } while (cp < &buf[BUFSIZ - 1] && ch != '\n'); 454 *cp = 0; 471 *--cp = 0; 473 cp = buf; 474 if (*cp 649 char ch, *cp, resp, rbuf[BUFSIZ]; local [all...] |
/freebsd-current/usr.bin/systat/ |
H A D | cmds.c | 49 char *cp, *tmpstr, *tmpstr1; local 53 for (cp = tmpstr1; *cp && !isspace(*cp); cp++) 55 if (*cp) 56 *cp++ = '\0'; 59 for (; *cp && isspace(*cp); cp [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/ |
H A D | cp_files_002_pos.ksh | 32 # Verify all cp --reflink modes work with modified file. 35 # 1. Verify "cp --reflink=never|auto|always" behaves as expected. 52 log_unsupported "cp --reflink is a GNU coreutils option" 57 datasetexists $TESTPOOL/cp-reflink && \ 58 destroy_dataset $$TESTPOOL/cp-reflink -f 73 log_assert "Verify all cp --reflink modes work with modified file" 84 log_must zfs create -o recordsize=$RECORDSIZE $TESTPOOL/cp-reflink 85 CP_TESTDIR=$(get_prop mountpoint $TESTPOOL/cp-reflink) 93 log_note "Checking 'cp --reflink=$mode'" 99 log_mustnot cp [all...] |
/freebsd-current/contrib/ncurses/ncurses/widechar/ |
H A D | lib_ins_wch.c | 118 const wchar_t *cp; local 123 for (cp = wstr; (*cp != L'\0') && ((cp - wstr) < n); cp++) { 124 int len = _nc_wacs_width(*cp); 126 if ((len >= 0 && len != 1) || !is7bits(*cp)) { 128 wchar_t tmp_wchar = *cp; 138 code = _nc_insert_ch(sp, win, (chtype) (*cp));
|
/freebsd-current/sys/dev/qat/include/common/ |
H A D | qat_freebsd.h | 92 compat_strtoul(const char *cp, unsigned int base, unsigned long *res) argument 96 *res = strtoul(cp, &end, base); 101 if (*cp == 0 || *end != 0) 107 compat_strtouint(const char *cp, unsigned int base, unsigned int *res) argument 112 *res = temp = strtoul(cp, &end, base); 117 if (*cp == 0 || *end != 0) 125 compat_strtou8(const char *cp, unsigned int base, unsigned char *res) argument 130 *res = temp = strtoul(cp, &end, base); 135 if (*cp == 0 || *end != 0)
|
/freebsd-current/usr.bin/leave/ |
H A D | leave.c | 55 char c, *cp = NULL; local 67 cp = fgets(buf, sizeof(buf), stdin); 68 if (cp == NULL || *cp == '\n') 73 cp = argv[1]; 75 if (*cp == '+') { 77 ++cp; 81 for (hours = 0; (c = *cp) && c != '\n'; ++cp) {
|
/freebsd-current/bin/stty/ |
H A D | cchar.c | 89 struct cchar *cp, tmp; local 96 if (!(cp = (struct cchar *)bsearch(&tmp, cchars1, 98 c_cchar)) && !(cp = (struct cchar *)bsearch(&tmp, cchars2, 111 ip->t.c_cc[cp->sub] = _POSIX_VDISABLE; 112 else if (cp->sub == VMIN || cp->sub == VTIME) { 123 ip->t.c_cc[cp->sub] = val; 125 ip->t.c_cc[cp->sub] = (arg[1] == '?') ? 0177 : 128 ip->t.c_cc[cp->sub] = arg[0];
|