Searched refs:buf (Results 351 - 375 of 4642) sorted by relevance

<<11121314151617181920>>

/freebsd-10.0-release/contrib/ntp/libntp/
H A Dmsyslog.c53 addto_syslog(int level, char * buf) argument
60 syslog(level, "%s", buf);
73 (void) fprintf(out_file, "%s[%d]: %s", prog, (int)getpid(), buf);
78 printf("addto_syslog: %s\n", buf);
143 char buf[1025], nfmt[256]; local
164 vsnprintf(buf, sizeof(buf), nfmt, ap);
165 addto_syslog(level, buf);
182 char buf[1025], nfmt[256]; local
203 vsnprintf(buf, sizeo
[all...]
/freebsd-10.0-release/contrib/openbsm/bin/auditdistd/
H A Dfstatat.h42 fstatat(int fd, const char *path, struct stat *buf, int flag) argument
58 ret = lstat(path, buf);
60 ret = stat(path, buf);
/freebsd-10.0-release/contrib/wpa/src/utils/
H A Dpcsc_funcs.c245 unsigned char *buf, size_t *buf_len,
249 unsigned char *buf, size_t *buf_len);
258 static int scard_parse_fsp_templ(unsigned char *buf, size_t buf_len, argument
268 pos = buf;
400 unsigned char buf[127]; local
403 efdir = (struct efdir *) buf;
404 blen = sizeof(buf);
405 if (scard_select_file(scard, SCARD_FILE_EF_DIR, buf, &blen)) {
409 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR select", buf, blen);
419 blen = sizeof(buf);
508 unsigned char buf[100]; local
789 _scard_select_file(struct scard_data *scard, unsigned short file_id, unsigned char *buf, size_t *buf_len, sim_types sim_type, unsigned char *aid, size_t aidlen) argument
870 scard_select_file(struct scard_data *scard, unsigned short file_id, unsigned char *buf, size_t *buf_len) argument
881 unsigned char buf[255]; local
919 unsigned char *buf; local
965 unsigned char *buf; local
1092 unsigned char buf[100]; local
1166 unsigned char buf[100]; local
1230 unsigned char resp[3], buf[12 + 3 + 2]; local
1330 unsigned char resp[3], buf[64], *pos, *end; local
[all...]
/freebsd-10.0-release/contrib/wpa/wpa_supplicant/
H A Dctrl_iface.h19 * @buf: Received command buffer (nul terminated string)
32 char *buf, size_t *resp_len);
37 * @buf: Received command buffer (nul terminated string)
49 char *buf, size_t *resp_len);
131 char *buf, size_t len)
130 wpa_supplicant_ctrl_iface_send(struct ctrl_iface_priv *priv, int level, char *buf, size_t len) argument
/freebsd-10.0-release/crypto/heimdal/kadmin/
H A Dstash.c44 char buf[1024]; local
87 n = read(opt->master_key_fd_integer, buf, sizeof(buf));
94 buf[n] = '\0';
95 buf[strcspn(buf, "\r\n")] = '\0';
97 random_password (buf, sizeof(buf));
98 printf("Using random master stash password: %s\n", buf);
100 if(UI_UTIL_read_pw_string(buf, sizeo
[all...]
/freebsd-10.0-release/crypto/heimdal/lib/krb5/
H A Dn-fold.c36 rr13(unsigned char *buf, size_t len) argument
50 memcpy(tmp, buf, bytes);
55 tmp[bytes - 1] |= buf[0] >> i;
74 buf[i] = (tmp[b1] << s1) | (tmp[b2] >> s2);
108 unsigned char *buf = malloc(len); local
110 if (tmp == NULL || buf == NULL) {
115 memcpy(buf, str, len);
118 memcpy(tmp + l, buf, len);
120 ret = rr13(buf, len * 8);
132 if (buf) {
[all...]
/freebsd-10.0-release/crypto/heimdal/lib/roken/
H A Dstrsep_copy.c42 /* strsep, but with const stringp, so return string in buf */
45 strsep_copy(const char **stringp, const char *delim, char *buf, size_t len) argument
54 memcpy(buf, save, l);
55 buf[l] = '\0';
H A Dgetarg.c96 char buf[128]; local
128 print_arg(buf, sizeof(buf), 1, 0, args + i, i18n);
129 printf("Fl %c%s", args[i].short_name, buf);
134 print_arg(buf, sizeof(buf), 1, 1, args + i, i18n);
137 args[i].long_name, buf);
141 print_arg(buf, sizeof(buf), 1, 0, args + i, i18n);
142 printf(".Oo Fl %c%s \\*(Ba Xo\n", args[i].short_name, buf);
228 char buf[128]; local
[all...]
/freebsd-10.0-release/crypto/openssh/
H A Ddeattack.c82 check_crc(u_char *S, u_char *buf, u_int32_t len) argument
88 for (c = buf; c < buf + len; c += SSH_BLOCKSIZE) {
103 detect_attack(u_char *buf, u_int32_t len) argument
131 for (c = buf; c < buf + len; c += SSH_BLOCKSIZE) {
132 for (d = buf; d < c; d += SSH_BLOCKSIZE) {
134 if ((check_crc(c, buf, len)))
145 for (c = buf, same = j = 0; c < (buf
[all...]
/freebsd-10.0-release/gnu/usr.bin/gdb/gdbserver/
H A Dfbsd-amd64-low.c84 amd64_fill_gregset(void *buf) argument
89 collect_register(i, ((char *)buf) + amd64_regmap[i]);
93 amd64_store_gregset(const void *buf) argument
98 supply_register(i, ((char *)buf) + amd64_regmap[i]);
102 amd64_fill_fpregset(void *buf) argument
105 i387_cache_to_fsave(buf);
109 amd64_store_fpregset(const void *buf) argument
112 i387_fsave_to_cache(buf);
116 amd64_fill_fpxregset(void *buf) argument
119 i387_cache_to_fxsave(buf);
123 amd64_store_fpxregset(const void *buf) argument
[all...]
/freebsd-10.0-release/lib/libc/inet/
H A Dinet_ntoa.c63 inet_ntoa_r(struct in_addr in, char *buf, socklen_t size) argument
66 (void) inet_ntop(AF_INET, &in, buf, size);
67 return (buf);
/freebsd-10.0-release/lib/libc/rpc/
H A Ddes_crypt.c74 cbc_crypt(key, buf, len, mode, ivec)
76 char *buf;
85 dp.UDES.UDES_buf = buf;
91 err = common_crypt(key, buf, len, mode, &dp);
101 ecb_crypt(key, buf, len, mode)
103 char *buf;
110 dp.UDES.UDES_buf = buf;
115 return(common_crypt(key, buf, len, mode, &dp));
124 common_crypt(key, buf, len, mode, desp)
126 char *buf;
[all...]
/freebsd-10.0-release/lib/libipsec/
H A Dipsec_dump_policy.c78 char *buf; local
121 if ((buf = malloc(buflen)) == NULL) {
125 snprintf(buf, buflen, "%s %s", ipsp_dir_strs[xpl->sadb_x_policy_dir],
130 return buf;
143 free(buf);
153 free(buf);
157 buflen = strlen(buf) + strlen(delimiter) + strlen(isrbuf) + 1;
158 newbuf = (char *)realloc(buf, buflen);
161 free(buf);
164 buf
[all...]
/freebsd-10.0-release/lib/libkse/thread/
H A Dthr_read.c43 ssize_t __read(int fd, void *buf, size_t nbytes);
48 __read(int fd, void *buf, size_t nbytes) argument
54 ret = __sys_read(fd, buf, nbytes);
H A Dthr_write.c40 __ssize_t __write(int fd, const void *buf, size_t nbytes);
45 __write(int fd, const void *buf, size_t nbytes) argument
51 ret = __sys_write(fd, buf, nbytes);
/freebsd-10.0-release/sys/boot/i386/libi386/
H A Dpread.c51 static char buf[BUFSIZE]; variable
67 got = read(fd, buf, count);
72 vpbcopy(buf, dest, got);
/freebsd-10.0-release/sys/net/
H A Dbpf_buffer.h39 void bpf_buffer_append_bytes(struct bpf_d *d, caddr_t buf, u_int offset,
41 void bpf_buffer_append_mbuf(struct bpf_d *d, caddr_t buf, u_int offset,
46 int bpf_buffer_uiomove(struct bpf_d *d, caddr_t buf, u_int len,
/freebsd-10.0-release/tools/tools/scsi-defects/
H A Dscsi-defects.pl86 read(PIPE, $buf, 4); # defect list header
90 while(read(PIPE, $buf, 8)) {
91 ($cylhi, $cyllo, $head, $sec) = unpack("CnCN", $buf);
/freebsd-10.0-release/usr.bin/csup/
H A Dmux.c137 struct buf { struct
151 struct buf *recvbuf;
157 struct buf *sendbuf;
202 static struct buf *buf_new(size_t);
203 static size_t buf_count(struct buf *);
204 static size_t buf_avail(struct buf *);
205 static void buf_get(struct buf *, void *, size_t);
206 static void buf_put(struct buf *, const void *, size_t);
207 static void buf_free(struct buf *);
241 sock_write(int s, void *buf, size_ argument
253 sock_read(int s, void *buf, size_t size) argument
265 sock_readwait(int s, void *buf, size_t size) argument
444 chan_read(struct chan *chan, void *buf, size_t size) argument
479 chan_write(struct chan *chan, const void *buf, size_t size) argument
782 struct buf *buf; local
979 struct buf *buf; local
1114 struct buf *buf; local
1125 buf_free(struct buf *buf) argument
1134 buf_count(struct buf *buf) argument
1147 buf_avail(struct buf *buf) argument
1159 buf_put(struct buf *buf, const void *data, size_t size) argument
1182 buf_get(struct buf *buf, void *data, size_t size) argument
[all...]
/freebsd-10.0-release/contrib/tcpdump/
H A Dutil.c149 static char buf[sizeof("00:00:00.000000")]; local
150 (void)snprintf(buf, sizeof(buf), "%02d:%02d:%02d.%06u",
153 return buf;
285 register int v, char *buf, size_t bufsize)
297 (void)snprintf(buf, bufsize, fmt, v);
298 return (const char *)buf;
308 static char buf[4][128]; local
312 ret = buf[idx];
314 return tok2strbuf(lp, fmt, v, ret, sizeof(buf[
284 tok2strbuf(register const struct tok *lp, register const char *fmt, register int v, char *buf, size_t bufsize) argument
326 static char buf[256]; /* our stringbuffer */ local
401 static char buf[128]; local
515 char *buf; local
556 struct stat buf; local
[all...]
/freebsd-10.0-release/sys/dev/bxe/
H A Dbxe_debug.c143 char buf[128]; local
145 snprintf(buf, sizeof(buf), "ELINK: %s", fmt);
146 device_printf(sc->dev, "%s", buf);
155 char tmp[128], buf[128]; local
158 snprintf(buf, sizeof(buf), tmp, arg1);
159 device_printf(sc->dev, "%s", buf);
169 char tmp[128], buf[128]; local
172 snprintf(buf, sizeo
184 char tmp[128], buf[128]; local
202 char buf[256]; local
240 char buf[256]; local
[all...]
/freebsd-10.0-release/contrib/ntp/util/
H A Dansi2knr.c239 char *buf; local
302 buf = malloc(bufsize);
303 if ( buf == NULL )
308 line = buf;
309 while ( fgets(line, (unsigned)(buf + bufsize - line), in) != NULL )
312 switch ( test1(buf) )
315 convert1(buf, out, 1, convert_varargs);
320 f: if ( line >= buf + (bufsize - 1) ) /* overflow check */
322 if ( fgets(line, (unsigned)(buf + bufsize - line), in) == NULL )
328 convert1(buf, ou
[all...]
/freebsd-10.0-release/contrib/sendmail/src/
H A Dsavemail.c67 char buf[MAXLINE + 1]; local
196 expand("\201n", buf, sizeof(buf), e);
198 "\r\nMessage from %s...\r\n", buf);
207 buf, sizeof(buf)) >= 0 &&
211 buf);
308 expand(DoubleBounceAddr, buf, sizeof(buf), e);
315 if (*buf
516 char buf[MAXNAME + 1]; local
769 char buf[MAXLINE]; local
[all...]
/freebsd-10.0-release/sys/geom/part/
H A Dg_part_apm.c109 swab(char *buf, size_t bufsz) argument
115 ch = buf[i];
116 buf[i] = buf[i + 1];
117 buf[i + 1] = ch;
122 apm_parse_type(const char *type, char *buf, size_t bufsz) argument
133 strncpy(buf, type, bufsz);
138 strcpy(buf, APM_ENT_TYPE_APPLE_BOOT);
143 strcpy(buf, APM_ENT_TYPE_APPLE_HFS);
148 strcpy(buf, APM_ENT_TYPE_APPLE_UF
194 char *buf; local
371 g_part_apm_name(struct g_part_table *table, struct g_part_entry *baseentry, char *buf, size_t bufsz) argument
384 char *buf; local
475 g_part_apm_type(struct g_part_table *basetable, struct g_part_entry *baseentry, char *buf, size_t bufsz) argument
516 char *buf, *ptr; local
[all...]
/freebsd-10.0-release/sys/netgraph/
H A Dng_patch.c51 const u_char *start, const u_char *buf)
55 p = (const struct ng_patch_config *)(buf -
320 uint64_t buf; local
333 conf->ops[i].length, (caddr_t)&buf);
340 *((uint8_t *)&buf) = privp->val[i].v1;
343 *((uint8_t *)&buf) += privp->val[i].v1;
346 *((uint8_t *)&buf) -= privp->val[i].v1;
349 *((uint8_t *)&buf) *= privp->val[i].v1;
352 *((uint8_t *)&buf) /= privp->val[i].v1;
355 *((int8_t *)&buf)
50 ng_patch_config_getlen(const struct ng_parse_type *type, const u_char *start, const u_char *buf) argument
[all...]

Completed in 311 milliseconds

<<11121314151617181920>>