Searched refs:cp (Results 76 - 100 of 2100) sorted by relevance

1234567891011>>

/freebsd-current/usr.bin/login/
H A Dlogin_fbtab.c85 char *cp; local
94 if ((cp = strchr(buf, '#')))
95 *cp = 0; /* strip comment */
96 if ((cp = devname = strtok(buf, WSPACE)) == NULL)
99 || (cp = strtok(NULL, WSPACE)) == NULL
100 || *cp != '0'
101 || sscanf(cp, "%o", &prot) == 0
104 || (cp = strtok(NULL, WSPACE)) == NULL) {
105 syslog(LOG_ERR, "%s: bad entry: %s", table, cp ? cp
[all...]
/freebsd-current/bin/stty/
H A Dgfmt.c54 struct cchar *cp; local
59 for (cp = cchars1; cp->name; ++cp)
60 (void)printf("%s=%x:", cp->name, tp->c_cc[cp->sub]);
68 struct cchar *cp; local
110 for (cp = cchars1; cp->name != NULL; ++cp)
[all...]
/freebsd-current/contrib/mandoc/
H A Dcompat_mkdtemp.c31 char *start, *cp; local
43 for (cp = start; *cp != '\0'; cp++)
44 *cp = 'X';
H A Dmanpath.c124 char *cp; local
127 if ((cp = realpath(dir, buf)) == NULL)
134 if (stat(cp, &sb) == -1)
139 dirs->paths[dirs->sz++] = mandoc_strdup(cp);
170 char *line, *cp, *ep; local
181 cp = line;
182 ep = cp + linelen - 1;
183 while (ep > cp && isspace((unsigned char)*ep))
185 while (isspace((unsigned char)*cp))
186 cp
223 manconf_output(struct manoutput *conf, const char *cp, int fromfile) argument
[all...]
H A Dcompat_mkstemps.c32 char *start, *end, *cp; local
49 cp = mktemp(path);
51 if (cp == NULL)
56 for (cp = start; cp < end; cp++)
57 *cp = 'X';
/freebsd-current/lib/libdpv/
H A Ddialogrc.c111 char *cp = value; local
133 if (*cp != '(') {
135 val = dialogrc_config_option(cp)->value.str;
141 cp++;
143 strtolower(cp);
152 if (strncmp(cp, "red,", 4) == 0) attrbuf[0] = '1';
153 else if (strncmp(cp, "green,", 6) == 0) attrbuf[0] = '2';
154 else if (strncmp(cp, "yellow,", 7) == 0) attrbuf[0] = '3';
155 else if (strncmp(cp, "blue,", 5) == 0) attrbuf[0] = '4';
156 else if (strncmp(cp, "magent
286 char *cp; local
[all...]
/freebsd-current/usr.sbin/makefs/ffs/
H A Dffs_subr.c83 ffs_isblock(struct fs *fs, u_char *cp, int32_t h) argument
89 return (cp[h] == 0xff);
92 return ((cp[h >> 1] & mask) == mask);
95 return ((cp[h >> 2] & mask) == mask);
98 return ((cp[h >> 3] & mask) == mask);
111 ffs_isfreeblock(struct fs *fs, u_char *cp, int32_t h) argument
116 return (cp[h] == 0);
118 return ((cp[h >> 1] & (0x0f << ((h & 0x1) << 2))) == 0);
120 return ((cp[h >> 2] & (0x03 << ((h & 0x3) << 1))) == 0);
122 return ((cp[
133 ffs_clrblock(struct fs *fs, u_char *cp, int32_t h) argument
159 ffs_setblock(struct fs *fs, u_char *cp, int32_t h) argument
[all...]
/freebsd-current/crypto/openssh/regress/unittests/misc/
H A Dtest_hpdelim.c29 char *orig, *str, *cp, *port; local
36 cp = hpdelim(&str);
37 ASSERT_STRING_EQ(cp, "host");
44 cp = hpdelim(&str);
45 ASSERT_STRING_EQ(cp, "");
55 cp = hpdelim(&str);
56 ASSERT_STRING_EQ(cp, "host");
66 cp = hpdelim(&str);
67 ASSERT_STRING_EQ(cp, "[::1]");
77 cp
[all...]
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dcallb.c109 callb_t *cp; local
114 while ((cp = ct->ct_freelist) != NULL) {
115 ct->ct_freelist = cp->c_next;
117 kmem_free(cp, sizeof (callb_t));
140 callb_t *cp; local
147 if ((cp = ct->ct_freelist) == NULL) {
149 cp = kmem_zalloc(sizeof (callb_t), KM_SLEEP);
151 ct->ct_freelist = cp->c_next;
152 cp->c_thread = t;
153 cp
258 callb_t *cp; local
309 callb_cpr_t *cp = (callb_cpr_t *)arg; local
[all...]
/freebsd-current/usr.bin/ctags/
H A Dprint.c50 char *cp; local
55 for (cp = lbuf; GETC(!=, EOF) && c != '\n'; *cp++ = c)
62 else for (cnt = 0, cp = lbuf; GETC(!=, EOF) && cnt < ENDLINE; ++cnt) {
66 *cp++ = '\\'; *cp++ = '\\';
72 *cp++ = '\\'; *cp++ = c;
76 *cp++ = '$'; /* can find whole line */
80 *cp
[all...]
/freebsd-current/libexec/mknetid/
H A Dparse_group.c100 char *cp, **m; local
120 if (!(cp = strsep(&bp, ":\n")))
122 _gr_group.gr_gid = atoi(cp);
125 cp = NULL;
132 if (cp) {
134 *m++ = cp;
135 cp = NULL;
138 if (cp) {
140 *m++ = cp;
143 } else if (cp
[all...]
/freebsd-current/usr.sbin/bluetooth/hccontrol/
H A Dlink_policy.c44 ng_hci_role_discovery_cp cp; local
55 cp.con_handle = (uint16_t) (n & 0x0fff);
56 cp.con_handle = htole16(cp.con_handle);
67 (char const *) &cp, sizeof(cp),
90 ng_hci_switch_role_cp cp; local
97 if (!bt_aton(argv[0], &cp.bdaddr)) {
103 memcpy(&cp.bdaddr, he->h_addr, sizeof(cp
160 ng_hci_read_link_policy_settings_cp cp; local
203 ng_hci_write_link_policy_settings_cp cp; local
[all...]
H A Dlink_control.c48 ng_hci_inquiry_cp cp; local
52 cp.lap[2] = 0x9e;
53 cp.lap[1] = 0x8b;
54 cp.lap[0] = 0x33;
55 cp.inquiry_length = 5;
56 cp.num_responses = 8;
65 cp.num_responses = (n0 & 0xff);
72 cp.inquiry_length = (n0 & 0xff);
79 cp.lap[0] = (n0 & 0xff);
80 cp
175 ng_hci_create_con_cp cp; local
296 ng_hci_discon_cp cp; local
370 ng_hci_add_sco_con_cp cp; local
451 ng_hci_change_con_pkt_type_cp cp; local
521 ng_hci_remote_name_req_cp cp; local
612 ng_hci_read_remote_features_cp cp; local
681 ng_hci_read_remote_ver_info_cp cp; local
753 ng_hci_read_clock_offset_cp cp; local
[all...]
/freebsd-current/usr.sbin/nfsrevoke/
H A Dnfsrevoke.c62 char *cp; local
72 cp = argv[1];
73 if (strlen(cp) % 2)
78 while (*cp) {
79 if (*cp >= '0' && *cp <= '9')
80 val += (u_char)(*cp - '0');
81 else if (*cp >= 'A' && *cp <= 'F')
82 val += ((u_char)(*cp
[all...]
/freebsd-current/contrib/tcpdump/
H A Dprint-ascii.c63 const u_char *cp, u_int length)
70 caplength = (ndo->ndo_snapend > cp) ? ND_BYTES_AVAILABLE_AFTER(cp) : 0;
77 s = GET_U_1(cp);
78 cp++;
90 if (length > 1 && GET_U_1(cp) != '\n')
106 const u_char *cp, u_int length, u_int oset)
116 caplength = (ndo->ndo_snapend > cp) ? ND_BYTES_AVAILABLE_AFTER(cp) : 0;
125 s1 = GET_U_1(cp);
62 ascii_print(netdissect_options *ndo, const u_char *cp, u_int length) argument
105 hex_and_ascii_print_with_offset(netdissect_options *ndo, const char *ident, const u_char *cp, u_int length, u_int oset) argument
165 hex_and_ascii_print(netdissect_options *ndo, const char *ident, const u_char *cp, u_int length) argument
175 hex_print_with_offset(netdissect_options *ndo, const char *ident, const u_char *cp, u_int length, u_int oset) argument
212 hex_print(netdissect_options *ndo, const char *ident, const u_char *cp, u_int length) argument
[all...]
H A Dprint-eap.c151 const u_char *cp,
158 type = GET_U_1(cp);
159 len = GET_BE_U_2(cp + 2);
173 GET_U_1((cp + 1)),
180 ND_TCHECK_LEN(cp, len);
188 subtype = GET_U_1(cp + 4);
198 nd_printjnp(ndo, cp + 5, len - 5);
209 nd_printjnp(ndo, cp + 5, len - 5);
225 tok2str(eap_type_values, "unknown", GET_U_1((cp + count))),
226 GET_U_1(cp
150 eap_print(netdissect_options *ndo, const u_char *cp, u_int length) argument
303 eapol_print(netdissect_options *ndo, const u_char *cp) argument
[all...]
H A Dprint-realtek.c109 const u_char *cp)
114 rrcp_opcode = GET_U_1((cp + RRCP_OPCODE_ISREPLY_OFFSET)) & RRCP_OPCODE_MASK;
116 ((GET_U_1(cp + RRCP_OPCODE_ISREPLY_OFFSET)) & RRCP_ISREPLY) ? "reply" : "query",
121 GET_LE_U_2(cp + RRCP_REG_ADDR_OFFSET),
122 GET_LE_U_4(cp + RRCP_REG_DATA_OFFSET));
125 GET_BE_U_2(cp + RRCP_AUTHKEY_OFFSET));
127 ((GET_U_1(cp + RRCP_OPCODE_ISREPLY_OFFSET)) & RRCP_ISREPLY)){
129 GET_U_1(cp + RRCP_DOWNLINK_PORT_OFFSET),
130 GET_U_1(cp + RRCP_UPLINK_PORT_OFFSET),
131 GET_ETHERADDR_STRING(cp
108 rrcp_print(netdissect_options *ndo, const u_char *cp) argument
208 rtl_print(netdissect_options *ndo, const u_char *cp, u_int length _U_, const struct lladdr_info *src, const struct lladdr_info *dst) argument
[all...]
/freebsd-current/usr.bin/tip/libacu/
H A Dventel.c66 char *cp; local
88 for (cp = num; *cp; cp++) {
90 write(FD, cp, 1);
110 cp = strchr(line, '\r');
111 if (cp)
112 *cp = '\0';
113 for (cp = line; (cp
178 char *cp = response; local
[all...]
/freebsd-current/libexec/rbootd/
H A Dparseconf.c80 char *cp, *bcp; local
106 * and null terminates it. `cp' is positioned at the start
109 #define GETSTR while (isspace(*cp) || *cp == ',') cp++; \
110 bcp = cp; \
111 while (*cp && *cp!=',' && !isspace(*cp)) cp
242 char *cp; local
[all...]
/freebsd-current/lib/libcrypt/
H A Dcrypt-sha512.c69 char *cp, *p_bytes, *s_bytes, *endp; local
152 cp = p_bytes = alloca(key_len);
154 memcpy(cp, temp_result, 64);
155 cp += 64;
157 memcpy(cp, temp_result, cnt);
170 cp = s_bytes = alloca(salt_len);
172 memcpy(cp, temp_result, 64);
173 cp += 64;
175 memcpy(cp, temp_result, cnt);
209 cp
430 char *cp = crypt_sha512(tests2[cnt].input, tests2[cnt].salt); local
[all...]
/freebsd-current/contrib/nvi/ex/
H A Dex_usage.c57 EXCMDLIST const *cp; local
69 for (cp = cmds; cp->name != NULL &&
70 MEMCMP(ap->bp, cp->name, ap->len); ++cp);
71 if (cp->name == NULL ||
72 (newscreen && !F_ISSET(cp, E_NEWSCREEN))) {
79 "Command: %s\n Usage: %s\n", cp->help, cp->usage);
85 if (cp !
[all...]
/freebsd-current/crypto/openssh/
H A Dcompat.c144 char *cp = NULL, *cp2 = NULL; local
150 if ((cp = match_filter_denylist(p,
154 if ((cp2 = match_filter_denylist(cp ? cp : p,
158 free(cp);
159 cp = cp2;
161 if (cp == NULL || *cp == '\0')
163 debug2_f("compat KEX proposal: %s", cp);
164 return cp;
[all...]
/freebsd-current/usr.bin/locate/bigram/
H A Dlocate.bigram.c51 u_char *cp; local
68 for (cp = path; *cp == *oldpath; cp++, oldpath++)
69 if (*cp == '\0')
72 while (*cp != '\0' && *(cp + 1) != '\0') {
73 bigram[(u_char)*cp][(u_char)*(cp + 1)]++;
74 cp
[all...]
/freebsd-current/lib/libc/resolv/
H A Dres_init.c169 char *cp, **pp; local
256 char buf[sizeof(statp->defdname)], *cp; local
263 cp = strchr(buf, '.');
264 cp = (cp == NULL) ? buf : (cp + 1);
265 strncpy(statp->defdname, cp,
273 if ((cp = secure_getenv("LOCALDOMAIN")) != NULL) {
274 (void)strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1);
285 cp
585 const char *cp = options; local
[all...]
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dkstrtox.h50 simple_strtoull(const char *cp, char **endp, unsigned int base) argument
52 return (strtouq(cp, endp, base));
56 simple_strtoll(const char *cp, char **endp, unsigned int base) argument
58 return (strtoq(cp, endp, base));
62 simple_strtoul(const char *cp, char **endp, unsigned int base) argument
64 return (strtoul(cp, endp, base));
68 simple_strtol(const char *cp, char **endp, unsigned int base) argument
70 return (strtol(cp, endp, base));
74 kstrtoul(const char *cp, unsigned int base, unsigned long *res) argument
78 *res = strtoul(cp,
89 kstrtol(const char *cp, unsigned int base, long *res) argument
104 kstrtoint(const char *cp, unsigned int base, int *res) argument
122 kstrtouint(const char *cp, unsigned int base, unsigned int *res) argument
140 kstrtou8(const char *cp, unsigned int base, uint8_t *res) argument
158 kstrtou16(const char *cp, unsigned int base, uint16_t *res) argument
176 kstrtou32(const char *cp, unsigned int base, uint32_t *res) argument
183 kstrtos64(const char *cp, unsigned int base, int64_t *res) argument
198 kstrtoll(const char *cp, unsigned int base, long long *res) argument
204 kstrtou64(const char *cp, unsigned int base, u64 *res) argument
219 kstrtoull(const char *cp, unsigned int base, unsigned long long *res) argument
[all...]

Completed in 486 milliseconds

1234567891011>>