/freebsd-current/lib/libc/net/ |
H A D | getnetbynis.c | 55 char *cp, **q; local 83 if ((cp = strchr(result, '\n'))) 84 *cp = '\0'; 86 cp = strpbrk(result, " \t"); 87 *cp++ = '\0'; 99 while (*cp == ' ' || *cp == '\t') 100 cp++; 102 ne->n_net = inet_network(cp); 106 cp 187 char *str, *cp; local [all...] |
H A D | getnetbyht.c | 82 char *cp, **q; local 95 cp = strpbrk(p, "#\n"); 96 if (cp != NULL) 97 *cp = '\0'; 101 cp = strpbrk(p, " \t"); 102 if (cp == NULL) 104 *cp++ = '\0'; 112 while (*cp == ' ' || *cp == '\t') 113 cp 194 char **cp; local [all...] |
/freebsd-current/contrib/libevent/test/ |
H A D | bench_cascade.c | 84 evutil_socket_t *cp; local 95 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { 96 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, cp) == -1) { 109 for (cp = pipes, i = 0; i < num_pipes; i++, cp += 2) { 110 evutil_socket_t fd = i < num_pipes - 1 ? cp[3] : -1; 111 event_set(&events[i], cp[0], EV_READ, read_cb, 127 for (cp = pipes, i = 0; i < num_pipes; i++, cp [all...] |
/freebsd-current/usr.bin/tip/tip/ |
H A D | value.c | 54 char file[FILENAME_MAX], *cp; local 60 if ((cp = getenv(p->v_name))) 61 p->v_value = cp; 83 cp = value(HOME); 84 if (cp == NULL) { 87 } else if (strlen(cp) + sizeof("/.tiprc") > sizeof(file)) { 154 char *cp; local 162 if ((cp = vinterp(s, ' '))) 163 cp++; 165 s = cp; 178 char *cp; local 215 char *cp; local [all...] |
/freebsd-current/lib/libc/resolv/ |
H A D | res_mkupdate.c | 93 u_char *cp, *sp2, *startp, *endp; local 120 cp = buf + HFIXEDSZ; 194 if ((n = dn_comp(rrecp->r_dname, cp, buflen, dnptrs, 197 cp += n; 199 PUTSHORT(rtype, cp); 200 PUTSHORT(rclass, cp); 207 PUTLONG(rttl, cp); 208 sp2 = cp; /*%< save pointer to length byte */ 209 cp += INT16SZ; 229 PUTLONG(n1, cp); 738 char *cp; local 768 char *cp; local [all...] |
/freebsd-current/stand/uboot/ |
H A D | uboot_console.c | 33 static void uboot_cons_probe(struct console *cp); 50 uboot_cons_probe(struct console *cp) argument 53 cp->c_flags |= (C_PRESENTIN | C_PRESENTOUT);
|
/freebsd-current/sys/netinet/ |
H A D | ip_options.c | 104 u_char *cp; local 124 cp = (u_char *)(ip + 1); 126 for (; cnt > 0; cnt -= optlen, cp += optlen) { 127 opt = cp[IPOPT_OPTVAL]; 133 if (cnt < IPOPT_OLEN + sizeof(*cp)) { 134 code = &cp[IPOPT_OLEN] - (u_char *)ip; 137 optlen = cp[IPOPT_OLEN]; 138 if (optlen < IPOPT_OLEN + sizeof(*cp) || optlen > cnt) { 139 code = &cp[IPOPT_OLEN] - (u_char *)ip; 161 if (optlen < IPOPT_OFFSET + sizeof(*cp)) { 557 u_char *cp, *dp; local 602 u_char *cp; local 634 bcopy(mtod(m, void *), cp, (unsigned)cnt); local 719 u_char *cp; local [all...] |
/freebsd-current/usr.bin/mail/ |
H A D | names.c | 84 char *cp, *nbuf; local 93 cp = line; 94 while ((cp = yankword(cp, nbuf)) != NULL) { 114 char *cp, *top; local 135 cp = top; 139 cp += strlcpy(cp, p->n_name, strlen(p->n_name) + 1); 141 *cp++ = ','; 142 *cp 157 char *cp, *cp2; local 202 char *cp, *cp2, *cp_temp; local 427 char *cp; local 450 struct name *new, *np, *cp; local 488 char *cp; local [all...] |
H A D | collect.c | 71 char linebuf[LINESIZE], tempname[PATHSIZE], *cp, getsub; local 122 if ((cp = value("escape")) != NULL) 123 escape = *cp; 244 cp = &linebuf[2]; 245 while (isspace((unsigned char)*cp)) 246 cp++; 247 hp->h_subject = savestr(cp); 253 cp = &linebuf[2]; 254 while (isspace((unsigned char)*cp)) 255 cp 711 char *cp; local [all...] |
/freebsd-current/sbin/devfs/ |
H A D | devfs.c | 99 char *cp; local 101 ul = strtoul(s, &cp, 10); 102 if (ul > UINT16_MAX || *cp != '\0') 114 char *cp; local 117 l = strtol(s, &cp, 10); 118 if (l > INT_MAX || *cp != '\0') 147 char *cp; local 149 cp = fgetln(fp, &rv); 150 if (cp == NULL) { 154 if (cp[r 188 char **ap, *cp, *wline, *xcp; local [all...] |
/freebsd-current/crypto/openssh/ |
H A D | authfile.c | 209 char *line = NULL, *cp; local 226 cp = line; 227 switch (*cp) { 234 if (strncmp(cp, "-----BEGIN", 10) == 0 || 235 strcmp(cp, "SSH PRIVATE KEY FILE") == 0) 238 for (; *cp && (*cp == ' ' || *cp == '\t'); cp++) 240 if (*cp) { 382 char *line = NULL, *cp; local 479 char *cp = *cpp; local [all...] |
H A D | auth2-pubkeyfile.c | 172 auth_check_principals_line(char *cp, const struct sshkey_cert *cert, argument 184 ep = cp + strlen(cp) - 1; 185 while (ep > cp && (*ep == '\n' || *ep == ' ' || *ep == '\t')) 193 if ((ep = strrchr(cp, ' ')) != NULL || 194 (ep = strrchr(cp, '\t')) != NULL) { 197 line_opts = cp; 198 cp = ep; 207 if (strcmp(cp, cert->principals[i]) != 0) 225 char loc[256], *line = NULL, *cp, *e local 264 auth_check_authkey_line(struct passwd *pw, struct sshkey *key, char *cp, const char *remote_ip, const char *remote_host, const char *loc, struct sshauthopt **authoptsp) argument 410 char *cp, *line = NULL, loc[256]; local [all...] |
/freebsd-current/usr.sbin/bluetooth/hccontrol/ |
H A D | host_controller_baseband.c | 140 ng_hci_write_pin_type_cp cp; local 150 cp.pin_type = (uint8_t) n; 161 (char const *) &cp, sizeof(cp), 180 ng_hci_read_stored_link_key_cp cp; member in struct:__anon6588 199 cmd.hdr.length = sizeof(cmd.cp); 204 if (!bt_aton(argv[0], &cmd.cp.bdaddr)) { 210 memcpy(&cmd.cp.bdaddr, he->h_addr, sizeof(cmd.cp.bdaddr)); 215 cmd.cp 299 } cp; local 352 ng_hci_delete_stored_link_key_cp cp; local 399 ng_hci_change_local_name_cp cp; local 484 ng_hci_write_con_accept_timo_cp cp; local 549 ng_hci_write_page_timo_cp cp; local 613 ng_hci_write_scan_enable_cp cp; local 680 ng_hci_write_page_scan_activity_cp cp; local 761 ng_hci_write_inquiry_scan_activity_cp cp; local 838 ng_hci_write_auth_enable_cp cp; local 901 ng_hci_write_encryption_mode_cp cp; local 964 ng_hci_write_unit_class_cp cp; local 1045 ng_hci_write_voice_settings_cp cp; local 1109 ng_hci_write_num_broadcast_retrans_cp cp; local 1179 ng_hci_write_hold_mode_activity_cp cp; local 1242 ng_hci_write_sco_flow_control_cp cp; local 1280 ng_hci_read_link_supervision_timo_cp cp; local 1325 ng_hci_write_link_supervision_timo_cp cp; local 1396 ng_hci_write_page_scan_period_cp cp; local 1458 ng_hci_write_page_scan_cp cp; local 1518 ng_hci_write_le_host_supported_cp cp; local [all...] |
H A D | le.c | 85 ng_hci_le_set_scan_parameters_cp cp; local 117 cp.le_scan_type = type; 118 cp.le_scan_interval = interval; 119 cp.own_address_type = adrtype; 120 cp.le_scan_window = window; 121 cp.scanning_filter_policy = policy; 126 (void *)&cp, sizeof(cp), (void *)&rp, &n) == ERROR) 141 ng_hci_le_set_scan_enable_cp cp; local 154 cp 233 ng_hci_le_set_scan_response_data_cp cp; local 407 ng_hci_le_set_advertise_enable_cp cp; local 439 ng_hci_le_set_advertising_parameters_cp cp; local 541 ng_hci_le_set_advertising_data_cp cp; local 825 ng_hci_le_add_device_to_white_list_cp cp; local 884 ng_hci_le_remove_device_from_white_list_cp cp; local 943 ng_hci_le_create_connection_cp cp; local 1093 ng_hci_le_read_channel_map_cp cp; local 1138 ng_hci_le_read_remote_used_features_cp cp; local [all...] |
/freebsd-current/contrib/tcpdump/ |
H A D | print-ip6.c | 50 const u_char *cp; local 60 cp = (const u_char *)ip6; 65 while (cp < ndo->ndo_snapend) { 66 cp += advance; 80 advance = (GET_U_1(cp + 1) + 1) << 3; 81 nh = GET_U_1(cp); 91 nh = GET_U_1(cp); 98 dp = (const struct ip6_rthdr *)cp; 232 const u_char *cp; local 315 cp [all...] |
H A D | print-ip.c | 56 const u_char *cp, u_int length) 67 ptr = GET_U_1(cp + 2) - 1; 69 ND_PRINT(" [bad ptr %u]", GET_U_1(cp + 2)); 72 ND_TCHECK_4(cp + len); /* Needed to print the IP addresses */ 73 ND_PRINT(" %s", GET_IPADDR_STRING(cp + len)); 96 const u_char *cp; local 98 cp = (const u_char *)(ip + 1); 104 for (; length != 0; cp += len, length -= len) { 107 tt = GET_U_1(cp); 113 len = GET_U_1(cp 55 ip_printroute(netdissect_options *ndo, const u_char *cp, u_int length) argument 168 ip_printts(netdissect_options *ndo, const u_char *cp, u_int length) argument 231 ip_optprint(netdissect_options *ndo, const u_char *cp, u_int length) argument [all...] |
/freebsd-current/sys/geom/vinum/ |
H A D | geom_vinum_events.c | 102 struct g_consumer *cp; local 121 cp = g_new_consumer(gp); 122 if (g_attach(cp, pp) != 0) { 123 g_destroy_consumer(cp); 128 if (g_access(cp, 1, 0, 0) != 0) { 129 g_detach(cp); 130 g_destroy_consumer(cp); 139 error = gv_read_header(cp, hdr); 163 d->consumer = cp; 167 buf = g_read_data(cp, GV_CFG_OFFSE 216 struct g_consumer *cp; local [all...] |
/freebsd-current/contrib/ncurses/ncurses/tinfo/ |
H A D | lib_tparm.c | 416 const char *cp = string; local 418 if (cp == 0) 421 if ((len2 = strlen(cp)) + 2 > TPS(fmt_size)) { 431 while ((cp - string) < (int) len2) { 432 if (*cp == '%') { 433 cp++; 434 cp = parse_format(cp, TPS(fmt_buff), &len); 435 switch (*cp) { 464 cp 701 const char *cp = string; local [all...] |
/freebsd-current/contrib/nvi/ex/ |
H A D | ex.c | 119 gp->excmd.cp = L(" "); /* __TK__ why not |? */ 122 gp->excmd.cp = tp->lb; 258 for (notempty = 0; ecp->clen > 0; ++ecp->cp, --ecp->clen) 259 if ((ch = *ecp->cp) == '\n') { 276 while (--ecp->clen > 0 && (ch = *++ecp->cp) == ':'); 289 while (--ecp->clen > 0 && *++ecp->cp != '\n'); 290 if (*ecp->cp == '\n') { 292 ++ecp->cp; 299 for (; ecp->clen > 0; ++ecp->cp, --ecp->clen) { 300 ch = *ecp->cp; 2234 EXCMDLIST const *cp; local 2251 EXCMDLIST const *cp; local 2271 EXCMDLIST const *cp; local 2293 ex_badaddr(SCR *sp, const EXCMDLIST *cp, enum badaddr ba, enum nresult nret) argument [all...] |
/freebsd-current/contrib/ee/ |
H A D | Makefile | 24 cp ee /usr/local/bin/ee 25 cp ee.1 /usr/local/man/man1/ee.1
|
/freebsd-current/contrib/ntp/libntp/ |
H A D | strdup.c | 19 char * cp; local 23 if ((cp = malloc(octets)) == NULL) 25 memcpy(cp, s, octets); 27 return cp;
|
/freebsd-current/sys/contrib/ncsw/inc/ |
H A D | stdlib_ext.h | 45 * @cp: The start of the string 49 uint32_t strtoul(const char *cp,char **endp,uint32_t base); 53 * @cp: The start of the string 57 long strtol(const char *cp,char **endp,uint32_t base); 61 * @cp: The start of the string 65 uint64_t strtoull(const char *cp,char **endp,uint32_t base); 69 * @cp: The start of the string 73 long long strtoll(const char *cp,char **endp,uint32_t base);
|
/freebsd-current/tools/test/stress2/lib/ |
H A D | options.c | 85 char *cp; local 89 cp = getenv(help); 90 if (cp == NULL) 91 cp = getenv(name); 92 return (cp); 98 char *cp; local 100 if ((cp = gete("INCARNATIONS")) != NULL) { 101 if (sscanf(cp, "%d", &op->incarnations) != 1) 104 if ((cp = gete("LOAD")) != NULL) { 105 if (sscanf(cp, " [all...] |
/freebsd-current/sys/dev/qat/qat_api/common/include/ |
H A D | sal_string_parse.h | 52 * Parses the string cp in the specified base, and returned it as an 55 * @param[in] cp String to be converted 63 Cpa64U Sal_Strtoul(const char *cp, char **endp, unsigned int cfgBase);
|
/freebsd-current/usr.sbin/lpr/filters.ru/koi2alt/ |
H A D | koi2alt.c | 67 char *cp; local 70 if (*(cp = *++argv) == '-') { 71 switch (*++cp) { 73 if ((i = atoi(++cp)) > 0)
|