Searched refs:cp (Results 276 - 300 of 2100) sorted by relevance

<<11121314151617181920>>

/freebsd-current/stand/libsa/
H A Ddev.c73 char *cp; local
80 cp = (char *)devspec; /* strtol interface, alas */
84 unit = strtol(devspec, &cp, 0);
85 if (errno != 0 || cp == devspec) {
90 if (*cp != '\0' && *cp != ':') {
97 *path = (*cp == 0) ? cp : cp + 1;
/freebsd-current/lib/libc/net/
H A Dlinkaddr.c52 char *cp = sdl->sdl_data; local
78 *cp++ = addr[-1];
82 sdl->sdl_nlen = cp - sdl->sdl_data;
85 *cp++ = byte;
97 *cp++ = byte;
102 *cp++ = byte;
108 } while (cp < cplim);
109 sdl->sdl_alen = cp - LLADDR(sdl);
110 new = cp - (char *)sdl;
/freebsd-current/contrib/ntp/sntp/libpkgver/
H A Dcolcomp.c107 char **cp; local
119 cp = (char **)base;
121 printf("%s\n", *cp++);
127 cp = (char **)base;
129 printf("%s\n", *cp++);
/freebsd-current/contrib/less/
H A Dcmdbuf.c32 static char *cp; /* Pointer into cmdbuf */ variable
122 cp = cmdbuf;
123 *cp = '\0';
246 * and set cp to the corresponding char in cmdbuf.
254 cmd_step_left(&cp, &width, &bswidth);
260 cp = &cmdbuf[cmd_offset];
264 * Repaint the line from cp onwards.
274 old_cp = cp;
278 while (*cp != '\0')
280 char *np = cp;
[all...]
/freebsd-current/crypto/openssl/crypto/des/
H A Dqud_cksm.c40 const unsigned char *cp; local
53 cp = input;
57 t0 = (DES_LONG)(*(cp++));
58 t0 |= (DES_LONG)Q_B1(*(cp++));
61 t0 = (DES_LONG)(*(cp++));
/freebsd-current/usr.sbin/bluetooth/hcsecd/
H A Dhcsecd.c278 ng_hci_pin_code_rep_cp *cp = NULL; local
282 cmd->length = sizeof(*cp);
284 cp = (ng_hci_pin_code_rep_cp *)(cmd + 1);
285 memcpy(&cp->bdaddr, bdaddr, sizeof(cp->bdaddr));
286 strncpy((char *) cp->pin, pin, sizeof(cp->pin));
287 cp->pin_size = strlen((char const *) cp->pin);
293 ng_hci_pin_code_neg_rep_cp *cp local
337 ng_hci_link_key_rep_cp *cp = NULL; local
351 ng_hci_link_key_neg_rep_cp *cp = NULL; local
[all...]
/freebsd-current/usr.bin/mail/
H A Dlist.c377 char c, *cp, *cp2, quotec; local
386 cp = line;
388 for (; *cp == ' ' || *cp == '\t'; cp++)
390 if (*cp == '\0')
399 while ((c = *cp) != '\0') {
407 cp++;
412 switch (c = *cp++) {
415 cp
501 char *cp, *cp2; local
648 char *cp; local
669 char *cp, **to; local
705 char *cp, *cp2; local
[all...]
/freebsd-current/contrib/tcpdump/
H A Dprint-udp.c373 const u_char *cp; local
421 cp = (const u_char *)(up + 1);
422 if (cp > ndo->ndo_snapend) {
435 vat_print(ndo, cp, length);
440 wb_print(ndo, cp, length);
444 rp = (const struct sunrpc_msg *)cp;
456 rtp_print(ndo, cp, length);
461 while (cp < ep)
462 cp = rtcp_print(ndo, cp, e
[all...]
H A Dprint-cdp.c69 const u_char *cp, const u_int len)
72 (void)nd_printn(ndo, cp, len, NULL);
78 const u_char *cp, const u_int len)
84 val = GET_U_1(cp);
87 val = GET_BE_U_2(cp);
90 val = GET_BE_U_3(cp);
98 const u_char *cp, const u_int len _U_)
100 uint32_t val = GET_BE_U_4(cp);
109 const u_char *cp, const u_int len)
115 u_char c = GET_U_1(cp
68 cdp_print_string(netdissect_options *ndo, const u_char *cp, const u_int len) argument
77 cdp_print_power(netdissect_options *ndo, const u_char *cp, const u_int len) argument
97 cdp_print_capability(netdissect_options *ndo, const u_char *cp, const u_int len _U_) argument
108 cdp_print_version(netdissect_options *ndo, const u_char *cp, const u_int len) argument
125 cdp_print_uint16(netdissect_options *ndo, const u_char *cp, const u_int len _U_) argument
132 cdp_print_duplex(netdissect_options *ndo, const u_char *cp, const u_int len _U_) argument
151 cdp_print_ata186(netdissect_options *ndo, const u_char *cp, const u_int len) argument
161 cdp_print_mtu(netdissect_options *ndo, const u_char *cp, const u_int len _U_) argument
168 cdp_print_uint8x(netdissect_options *ndo, const u_char *cp, const u_int len _U_) argument
175 cdp_print_phys_loc(netdissect_options *ndo, const u_char *cp, const u_int len) argument
[all...]
/freebsd-current/sys/dev/sym/
H A Dsym_hipd.c1441 #define CCB_BA(cp,lbl) (cp->ccb_ba + offsetof(struct sym_ccb, lbl))
2177 static int sym_prepare_nego (hcb_p np, ccb_p cp, int nego, u_char *msgptr);
2178 static void sym_put_start_queue (hcb_p np, ccb_p cp);
2189 static void sym_setsync (hcb_p np, ccb_p cp, u_char ofs, u_char per,
2191 static void sym_setwide (hcb_p np, ccb_p cp, u_char wide);
2192 static void sym_setpprot(hcb_p np, ccb_p cp, u_char dt, u_char ofs,
2194 static void sym_settrans(hcb_p np, ccb_p cp, u_char dt, u_char ofs,
2207 static void sym_sir_bad_scsi_status (hcb_p np, ccb_p cp);
2210 static int sym_evaluate_dp (hcb_p np, ccb_p cp, u3
2276 PRINT_ADDR(ccb_p cp) argument
2315 sym_enqueue_cam_ccb(ccb_p cp) argument
2338 sym_xpt_done(hcb_p np, union ccb *ccb, ccb_p cp) argument
2807 sym_prepare_nego(hcb_p np, ccb_p cp, int nego, u_char *msgptr) argument
2878 sym_put_start_queue(hcb_p np, ccb_p cp) argument
3044 ccb_p cp; local
3471 sym_setwide(hcb_p np, ccb_p cp, u_char wide) argument
3493 sym_setsync(hcb_p np, ccb_p cp, u_char ofs, u_char per, u_char div, u_char fak) argument
3514 sym_setpprot(hcb_p np, ccb_p cp, u_char dt, u_char ofs, u_char per, u_char wide, u_char div, u_char fak) argument
3535 sym_settrans(hcb_p np, ccb_p cp, u_char dt, u_char ofs, u_char per, u_char wide, u_char div, u_char fak) argument
3989 ccb_p cp = sym_ccb_from_dsa(np, dsa); local
4118 ccb_p cp = sym_ccb_from_dsa(np, dsa); local
4205 ccb_p cp; local
4549 ccb_p cp; local
4607 ccb_p cp; local
4643 sym_sir_bad_scsi_status(hcb_p np, ccb_p cp) argument
4820 ccb_p cp; local
4902 ccb_p cp; local
5247 sym_evaluate_dp(hcb_p np, ccb_p cp, u32 scr, int *ofs) argument
5364 sym_modify_dp(hcb_p np, ccb_p cp, int ofs) argument
5461 sym_compute_residual(hcb_p np, ccb_p cp) argument
5542 sym_print_msg(ccb_p cp, char *label, u_char *msg) argument
5589 sym_sync_nego(hcb_p np, tcb_p tp, ccb_p cp) argument
5690 sym_ppr_nego(hcb_p np, tcb_p tp, ccb_p cp) argument
5829 sym_wide_nego(hcb_p np, tcb_p tp, ccb_p cp) argument
5940 sym_nego_default(hcb_p np, tcb_p tp, ccb_p cp) argument
5974 sym_nego_rejected(hcb_p np, tcb_p tp, ccb_p cp) argument
5987 ccb_p cp = sym_ccb_from_dsa(np, dsa); local
6257 ccb_p cp = (ccb_p) NULL; local
6371 sym_free_ccb(hcb_p np, ccb_p cp) argument
6462 ccb_p cp = NULL; local
6545 ccb_p cp; local
7025 sym_print_xerr(ccb_p cp, int x_status) argument
7078 sym_complete_error(hcb_p np, ccb_p cp) argument
7232 sym_complete_ok(hcb_p np, ccb_p cp) argument
7325 ccb_p cp; local
7401 ccb_p cp; local
7611 sym_setup_cdb(hcb_p np, struct ccb_scsiio *csio, ccb_p cp) argument
7661 sym_setup_data_pointers(hcb_p np, ccb_p cp, int dir) argument
7706 ccb_p cp; local
7804 sym_setup_data_and_start(hcb_p np, struct ccb_scsiio *csio, ccb_p cp) argument
7842 sym_fast_scatter_sg_physical(hcb_p np, ccb_p cp, bus_dma_segment_t *psegs, int nsegs) argument
7879 sym_scatter_sg_physical(hcb_p np, ccb_p cp, bus_dma_segment_t *psegs, int nsegs) argument
8748 ccb_p cp; local
[all...]
/freebsd-current/contrib/tcsh/
H A Dtc.prompt.c112 const Char *cp; local
117 cp = varval(STRprompt);
120 cp = varval(STRprompt2);
123 cp = varval(STRprompt3);
127 cp = ocp;
131 cp = varval(STRprompt);
136 ocp = cp;
142 Prompt = tprintf(FMT_PROMPT, cp, str, lclock, NULL);
144 for (cp = Prompt; *cp ; )
187 const Char *cp = fmt; local
[all...]
/freebsd-current/sys/contrib/openzfs/cmd/zed/agents/
H A Dfmd_api.c261 fmd_case_t *cp; local
263 cp = fmd_hdl_zalloc(hdl, sizeof (fmd_case_t), FMD_SLEEP);
264 cp->ci_mod = hdl;
265 cp->ci_state = FMD_CASE_UNSOLVED;
266 cp->ci_flags = FMD_CF_DIRTY;
267 cp->ci_data = data;
268 cp->ci_bufptr = NULL;
269 cp->ci_bufsiz = 0;
272 uuid_unparse(uuid, cp->ci_uuid);
274 fmd_hdl_debug(hdl, "case opened (%s)", cp
281 fmd_case_solve(fmd_hdl_t *hdl, fmd_case_t *cp) argument
299 fmd_case_close(fmd_hdl_t *hdl, fmd_case_t *cp) argument
325 fmd_case_solved(fmd_hdl_t *hdl, fmd_case_t *cp) argument
332 fmd_case_add_ereport(fmd_hdl_t *hdl, fmd_case_t *cp, fmd_event_t *ep) argument
398 fmd_case_add_suspect(fmd_hdl_t *hdl, fmd_case_t *cp, nvlist_t *fault) argument
435 fmd_case_setspecific(fmd_hdl_t *hdl, fmd_case_t *cp, void *data) argument
442 fmd_case_getspecific(fmd_hdl_t *hdl, fmd_case_t *cp) argument
449 fmd_buf_create(fmd_hdl_t *hdl, fmd_case_t *cp, const char *name, size_t size) argument
460 fmd_buf_read(fmd_hdl_t *hdl, fmd_case_t *cp, const char *name, void *buf, size_t size) argument
472 fmd_buf_write(fmd_hdl_t *hdl, fmd_case_t *cp, const char *name, const void *buf, size_t size) argument
[all...]
/freebsd-current/contrib/netbsd-tests/bin/cp/
H A Dt_cp.sh65 atf_check -s eq:0 -o empty -e empty cp file file2
83 atf_check -s eq:0 -o empty -e empty cp -p file file3
95 atf_check -s eq:0 -o empty -e empty cp -p -N file file3
109 atf_check -s eq:0 -o empty -e empty cp file2 link
120 atf_check -s eq:1 -o empty -e ignore cp link file
121 atf_check -s eq:0 -o empty -e empty cp link file2
132 atf_check -s eq:0 -o empty -e empty cp -P file link
143 atf_check -s eq:0 -o empty -e empty cp -P link file
156 atf_check -s eq:1 -o empty -e ignore cp file file2 file3
157 atf_check -s eq:0 -o empty -e empty cp fil
[all...]
/freebsd-current/contrib/tcp_wrappers/
H A Dtcpdchk.c270 char *cp; local
276 for (cp = strtok(buf, sep); cp != 0; cp = next) {
277 fputs(cp, stdout);
290 char *cp; local
296 for (cp = strtok(buf, sep); cp != 0; cp = strtok((char *) 0, sep)) {
297 if (STR_EQ(cp, "EXCEP
317 char *cp; local
429 char *cp; local
[all...]
H A Dtry-from.c44 char *cp; local
49 if ((cp = strrchr(argv[0], '/')) != 0)
50 argv[0] = cp + 1;
/freebsd-current/lib/libc/stdlib/
H A Dradixsort.c130 int *cp, bigc; local
187 for (cp = count + bmin; nc > 0; cp++) {
188 while (*cp == 0) /* Find next non-empty pile. */
189 cp++;
190 if (*cp > 1) {
191 if (*cp > bigc) {
192 bigc = *cp;
195 push(ak, *cp, i+1);
197 top[cp
230 int *cp, bigc; local
[all...]
/freebsd-current/contrib/netbsd-tests/ipf/
H A Dh_common.sh36 cp $(atf_get_srcdir)/input/$1 in
38 cp $(atf_get_srcdir)/regress/$1 reg
40 cp $(atf_get_srcdir)/expected/$1 exp
/freebsd-current/sys/contrib/openzfs/
H A Dcopy-builtin26 cp -R include "$KERNEL_DIR/include/zfs"
27 cp -R module "$KERNEL_DIR/fs/zfs"
28 cp zfs_config.h "$KERNEL_DIR/include/zfs/"
/freebsd-current/crypto/openssh/regress/
H A Dreexec.sh12 # NB. prefer ln to cp here. On some OSX 19.4 configurations,
15 ln $SSHD_ORIG $SSHD_COPY || cp $SSHD_ORIG $SSHD_COPY
36 cp $OBJ/sshd_config $OBJ/sshd_config.orig
44 cp $OBJ/sshd_config.orig $OBJ/sshd_config
/freebsd-current/sbin/mksnap_ffs/
H A Dmksnap_ffs.c95 char *cp, *snapname; local
119 cp = strrchr(snapname, '/');
120 if (cp == NULL) {
122 } else if (cp == snapname) {
125 strlcpy(path, snapname, cp - snapname + 1);
147 for (cp = stfsbuf.f_mntonname; issamefs(cp, &stfsbuf) != 1;
148 cp = strchrnul(cp + 1, '/')) {
149 if (cp[
[all...]
/freebsd-current/lib/libc/tests/net/
H A Dether_test.c137 char buf[256], *cp; local
139 cp = ether_ntoa_r(&ether_ntoa_addr, buf);
140 ATF_REQUIRE_MSG(cp != NULL, "ether_ntoa_r failed");
141 ATF_REQUIRE_MSG(cp == buf,
142 "ether_ntoa_r returned a different pointer; %p != %p", cp, buf);
143 ATF_REQUIRE_MSG(strcmp(cp, ether_ntoa_string) == 0,
144 "strings did not match (`%s` != `%s`)", cp, ether_ntoa_string); local
150 char *cp; local
152 cp = ether_ntoa(&ether_ntoa_addr);
153 ATF_REQUIRE_MSG(cp !
155 "strings did not match (`%s` != `%s`)", cp, ether_ntoa_string); local
[all...]
/freebsd-current/lib/libsecureboot/tests/
H A Dtvo.c50 char *cp; local
124 cp = (char *)verify_asc(argv[optind], 1);
125 if (cp) {
127 argv[optind], cp);
130 prefix, Skip, cp, NULL);
138 cp = (char *)verify_sig(argv[optind], 1);
139 if (cp) {
141 argv[optind], cp);
144 prefix, Skip, cp, NULL);
150 cp
[all...]
/freebsd-current/sys/dev/ofw/
H A Dofw_console.c162 ofw_cnprobe(struct consdev *cp) argument
167 cp->cn_pri = CN_DEAD;
172 cp->cn_pri = CN_DEAD;
177 cp->cn_pri = CN_DEAD;
181 cp->cn_pri = CN_LOW;
185 ofw_cninit(struct consdev *cp) argument
189 strcpy(cp->cn_name, "ofwcons");
193 ofw_cnterm(struct consdev *cp) argument
198 ofw_cngrab(struct consdev *cp) argument
203 ofw_cnungrab(struct consdev *cp) argument
208 ofw_cngetc(struct consdev *cp) argument
223 ofw_cnputc(struct consdev *cp, int c) argument
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_hostid_changed_cachefile_unclean_export.ksh57 log_must cp $CPATH $CPATHBKP
60 log_must cp $VDEV0 $VDEV0.bak
62 log_must cp -f $VDEV0.bak $VDEV0
/freebsd-current/sys/dev/cfe/
H A Dcfe_console.c151 cfe_cnprobe(struct consdev *cp) argument
156 cp->cn_pri = CN_DEAD;
166 cfe_cnputc(cp, bootmsg[i]);
169 cp->cn_pri = CN_LOW;
173 cfe_cninit(struct consdev *cp) argument
176 strcpy(cp->cn_name, "cfecons");
180 cfe_cnterm(struct consdev *cp) argument
186 cfe_cngrab(struct consdev *cp) argument
192 cfe_cnungrab(struct consdev *cp) argument
198 cfe_cngetc(struct consdev *cp) argument
213 cfe_cnputc(struct consdev *cp, int c) argument
[all...]

Completed in 377 milliseconds

<<11121314151617181920>>