Searched refs:buf (Results 26 - 50 of 4982) sorted by relevance

1234567891011>>

/freebsd-10.2-release/tools/regression/lib/libc/locale/
H A Dtest-c16rtomb.c48 char buf[MB_LEN_MAX + 1]; local
65 memset(buf, 0xcc, sizeof(buf));
66 assert(c16rtomb(buf, 0, &s) == 1);
67 assert((unsigned char)buf[0] == 0 && (unsigned char)buf[1] == 0xcc);
75 memset(buf, 0xcc, sizeof(buf));
76 assert(c16rtomb(buf, L'A', &s) == 1);
77 assert((unsigned char)buf[
[all...]
H A Dtest-mblen.c49 char buf[MB_LEN_MAX + 1]; local
63 memset(buf, 0xcc, sizeof(buf));
64 buf[0] = '\0';
65 assert(mblen(buf, 1) == 0);
68 buf[0] = 'A';
69 assert(mblen(buf, 1) == 1);
72 buf[0] = '\0';
73 assert(mblen(buf, 0) == -1);
87 memset(buf,
[all...]
H A Dtest-mbrlen.c52 char buf[MB_LEN_MAX + 1]; local
63 memset(buf, 0xcc, sizeof(buf));
64 buf[0] = 0;
65 assert(mbrlen(buf, 1, NULL) == 0);
69 assert(mbrlen(buf, 1, &s) == 0);
73 buf[0] = 'A';
74 assert(mbrlen(buf, 1, NULL) == 1);
78 assert(mbrlen(buf, 1, &s) == 1);
82 assert(mbrlen(buf,
[all...]
/freebsd-10.2-release/contrib/subversion/subversion/libsvn_subr/
H A Deol.c37 svn_eol__find_eol_start(char *buf, apr_size_t len)
41 /* On some systems, we need to make sure that buf is properly aligned
45 for (; (len > 0) && ((apr_uintptr_t)buf) & (sizeof(apr_uintptr_t)-1)
46 ; ++buf, --len)
48 if (*buf == '\n' || *buf == '\r')
49 return buf;
56 ; buf += sizeof(apr_uintptr_t), len -= sizeof(apr_uintptr_t))
59 apr_uintptr_t chunk = *(const apr_uintptr_t *)buf;
78 for (; len > 0; ++buf,
36 svn_eol__find_eol_start(char *buf, apr_size_t len) argument
87 svn_eol__detect_eol(char *buf, apr_size_t len, char **eolp) argument
[all...]
/freebsd-10.2-release/contrib/ipfilter/lib/
H A Dportname.c16 static char buf[32]; local
24 strncpy(buf, sv->s_name, sizeof(buf)-1);
25 buf[sizeof(buf)-1] = '\0';
27 sv = strncasecmp(buf, sv->s_name, strlen(buf)) ?
31 return buf;
34 strncpy(buf, sv->s_name, sizeof(buf)
[all...]
/freebsd-10.2-release/contrib/wpa/src/utils/
H A Dwpabuf.c22 static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) argument
25 ((const u8 *) buf - sizeof(struct wpabuf_trace));
30 static void wpabuf_overflow(const struct wpabuf *buf, size_t len) argument
33 struct wpabuf_trace *trace = wpabuf_get_trace(buf);
40 buf, (unsigned long) buf->size, (unsigned long) buf->used,
49 struct wpabuf *buf = *_buf; local
54 if (buf == NULL) {
60 trace = wpabuf_get_trace(buf);
118 struct wpabuf *buf; local
140 struct wpabuf *buf; local
162 struct wpabuf *buf = wpabuf_alloc(len); local
171 struct wpabuf *buf = wpabuf_alloc(wpabuf_len(src)); local
182 wpabuf_free(struct wpabuf *buf) argument
208 wpabuf_put(struct wpabuf *buf, size_t len) argument
268 wpabuf_zeropad(struct wpabuf *buf, size_t len) argument
291 wpabuf_printf(struct wpabuf *buf, char *fmt, ...) argument
[all...]
/freebsd-10.2-release/sys/contrib/xz-embedded/userspace/
H A Dxz_config.h33 #define memzero(buf, size) memset(buf, 0, size)
61 static inline uint32_t get_unaligned_le32(const uint8_t *buf) argument
63 return (uint32_t)buf[0]
64 | ((uint32_t)buf[1] << 8)
65 | ((uint32_t)buf[2] << 16)
66 | ((uint32_t)buf[3] << 24);
71 static inline uint32_t get_unaligned_be32(const uint8_t *buf) argument
73 return (uint32_t)(buf[0] << 24)
74 | ((uint32_t)buf[
81 put_unaligned_le32(uint32_t val, uint8_t *buf) argument
91 put_unaligned_be32(uint32_t val, uint8_t *buf) argument
[all...]
/freebsd-10.2-release/contrib/wpa/src/p2p/
H A Dp2p_build.c17 void p2p_buf_add_action_hdr(struct wpabuf *buf, u8 subtype, u8 dialog_token) argument
19 wpabuf_put_u8(buf, WLAN_ACTION_VENDOR_SPECIFIC);
20 wpabuf_put_be24(buf, OUI_WFA);
21 wpabuf_put_u8(buf, P2P_OUI_TYPE);
23 wpabuf_put_u8(buf, subtype); /* OUI Subtype */
24 wpabuf_put_u8(buf, dialog_token);
29 void p2p_buf_add_public_action_hdr(struct wpabuf *buf, u8 subtype, argument
32 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC);
33 wpabuf_put_u8(buf, WLAN_PA_VENDOR_SPECIFIC);
34 wpabuf_put_be24(buf, OUI_WF
43 p2p_buf_add_ie_hdr(struct wpabuf *buf) argument
57 p2p_buf_update_ie_hdr(struct wpabuf *buf, u8 *len) argument
64 p2p_buf_add_capability(struct wpabuf *buf, u8 dev_capab, u8 group_capab) argument
76 p2p_buf_add_go_intent(struct wpabuf *buf, u8 go_intent) argument
87 p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country, u8 reg_class, u8 channel) argument
101 p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country, u8 reg_class, u8 channel) argument
115 p2p_buf_add_channel_list(struct wpabuf *buf, const char *country, struct p2p_channels *chan) argument
140 p2p_buf_add_status(struct wpabuf *buf, u8 status) argument
150 p2p_buf_add_device_info(struct wpabuf *buf, struct p2p_data *p2p, struct p2p_device *peer) argument
206 p2p_buf_add_device_id(struct wpabuf *buf, const u8 *dev_addr) argument
216 p2p_buf_add_config_timeout(struct wpabuf *buf, u8 go_timeout, u8 client_timeout) argument
229 p2p_buf_add_intended_addr(struct wpabuf *buf, const u8 *interface_addr) argument
240 p2p_buf_add_group_bssid(struct wpabuf *buf, const u8 *bssid) argument
251 p2p_buf_add_group_id(struct wpabuf *buf, const u8 *dev_addr, const u8 *ssid, size_t ssid_len) argument
264 p2p_buf_add_invitation_flags(struct wpabuf *buf, u8 flags) argument
274 p2p_buf_add_noa_desc(struct wpabuf *buf, struct p2p_noa_desc *desc) argument
286 p2p_buf_add_noa(struct wpabuf *buf, u8 noa_index, u8 opp_ps, u8 ctwindow, struct p2p_noa_desc *desc1, struct p2p_noa_desc *desc2) argument
300 p2p_buf_add_ext_listen_timing(struct wpabuf *buf, u16 period, u16 interval) argument
313 p2p_buf_add_p2p_interface(struct wpabuf *buf, struct p2p_data *p2p) argument
330 p2p_add_wps_string(struct wpabuf *buf, enum wps_attribute attr, const char *val) argument
355 p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, int pw_id, int all_attr) argument
[all...]
/freebsd-10.2-release/contrib/ofed/libmthca/src/
H A Dbuf.c60 int mthca_alloc_buf(struct mthca_buf *buf, size_t size, int page_size) argument
64 ret = posix_memalign(&buf->buf, page_size, align(size, page_size));
68 ret = ibv_dontfork_range(buf->buf, size);
70 free(buf->buf);
73 buf->length = size;
78 void mthca_free_buf(struct mthca_buf *buf) argument
80 ibv_dofork_range(buf
[all...]
/freebsd-10.2-release/lib/libc/gen/
H A Dfdevname.c37 fdevname_r(int fd, char *buf, int len) argument
41 fgn.buf = buf;
46 return (buf);
52 static char buf[SPECNAMELEN + 1]; local
54 return (fdevname_r(fd, buf, sizeof(buf)));
H A Dcheck_utility_compat.c51 char buf[PATH_MAX]; local
56 strlcpy(buf, p, sizeof buf);
58 if ((len = readlink(_PATH_UTIL_COMPAT, buf, sizeof(buf) - 1)) < 0)
60 buf[len] = '\0';
62 if (buf[0] == '\0')
65 bp = buf;
/freebsd-10.2-release/contrib/gdb/gdb/gdbserver/
H A Dregcache.h42 void registers_to_string (char *buf);
46 void registers_from_string (char *buf);
62 void supply_register (int n, const void *buf);
64 void supply_register_by_name (const char *name, const void *buf);
66 void collect_register (int n, void *buf);
68 void collect_register_as_string (int n, char *buf);
70 void collect_register_by_name (const char *name, void *buf);
/freebsd-10.2-release/usr.sbin/bluetooth/sdpd/
H A Dsd.c41 uint8_t *buf, uint8_t const * const eob,
49 buf, eob,
56 uint8_t *buf, uint8_t const * const eob,
65 buf, eob,
72 uint8_t *buf, uint8_t const * const eob,
75 if (buf + 3 > eob)
85 SDP_PUT8(SDP_DATA_UUID16, buf);
86 SDP_PUT16(SDP_UUID_PROTOCOL_SDP, buf); /* XXX ??? */
93 uint8_t *buf, uint8_t const * const eob,
99 buf, eo
40 sd_profile_create_service_class_id_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
55 sd_profile_create_bluetooth_profile_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
71 sd_profile_create_service_id( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
92 sd_profile_create_service_name( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
104 sd_profile_create_protocol_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
128 sd_profile_create_browse_group_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
152 sd_profile_create_version_number_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
179 sd_profile_create_service_database_state( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
[all...]
H A Dprofile.c103 uint8_t *buf, uint8_t const * const eob,
106 if (buf + 5 > eob)
109 SDP_PUT8(SDP_DATA_UINT32, buf);
110 SDP_PUT32(((provider_p) data)->handle, buf);
123 uint8_t *buf, uint8_t const * const eob,
128 if (len <= 0 || len > 0xff || buf + 2 + len > eob)
131 SDP_PUT8(SDP_DATA_SEQ8, buf);
132 SDP_PUT8(len, buf);
135 SDP_PUT8(SDP_DATA_UUID16, buf);
136 SDP_PUT16(*((uint16_t const *)data), buf);
102 common_profile_create_service_record_handle( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
122 common_profile_create_service_class_id_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
154 common_profile_create_bluetooth_profile_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
188 common_profile_create_language_base_attribute_id_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
228 common_profile_create_service_provider_name( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
244 common_profile_create_string8( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
263 common_profile_create_service_availability( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
286 rfcomm_profile_create_protocol_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
323 obex_profile_create_protocol_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
360 obex_profile_create_supported_formats_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
427 bnep_profile_create_protocol_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
481 bnep_profile_create_security_description( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument
[all...]
/freebsd-10.2-release/sys/ofed/include/net/
H A Dip.h59 ip_ib_mc_map(uint32_t addr, const unsigned char *bcast, char *buf) argument
65 buf[0] = 0;
66 buf[1] = 0xff;
67 buf[2] = 0xff;
68 buf[3] = 0xff;
69 buf[4] = 0xff;
70 buf[5] = 0x10 | scope;
71 buf[6] = 0x40;
72 buf[7] = 0x1b;
73 buf[
[all...]
/freebsd-10.2-release/contrib/mdocml/
H A Dcompat_fgetln.c54 static char *buf = NULL; local
59 if (buf == NULL) {
61 if ((buf = malloc(bufsiz)) == NULL)
65 if (fgets(buf, bufsiz, fp) == NULL)
69 while ((ptr = strchr(&buf[*len], '\n')) == NULL) {
71 char *nbuf = realloc(buf, nbufsiz);
75 free(buf);
77 buf = NULL;
80 buf = nbuf;
83 if (fgets(&buf[bufsi
[all...]
/freebsd-10.2-release/contrib/netbsd-tests/lib/libc/string/
H A Dt_memchr.c27 char buf[32]; local
99 buf[a-1] = '/';
100 strcpy(&buf[a], tab[t].val);
102 off = f(&buf[a], '/', tab[t].len);
111 if (tab[t].off != ((char*)off - &buf[a])) {
123 off2 = f(&buf[a], 0xffffff00 | '/', tab[t].len);
139 char buf[] = "abcdefg"; local
142 ATF_CHECK(memchr(buf, 'a', 0) == NULL);
143 ATF_CHECK(memchr(buf, 'g', 0) == NULL);
144 ATF_CHECK(memchr(buf, '
171 char buf[] = "abcdabcd"; local
[all...]
/freebsd-10.2-release/contrib/unbound/compat/
H A Dexplicit_bzero.c10 __explicit_bzero_hook(void *ATTR_UNUSED(buf), size_t ATTR_UNUSED(len))
15 explicit_bzero(void *buf, size_t len) argument
18 SecureZeroMemory(buf, len);
20 memset(buf, 0, len);
21 __explicit_bzero_hook(buf, len);
/freebsd-10.2-release/contrib/ncurses/ncurses/tinfo/
H A Dlib_raw.c87 TTY buf; local
92 buf = cur_term->Nttyb;
94 buf.c_lflag &= ~(ICANON | ISIG | IEXTEN);
95 buf.c_iflag &= ~(COOKED_INPUT);
96 buf.c_cc[VMIN] = 1;
97 buf.c_cc[VTIME] = 0;
99 buf.sg_flags |= RAW;
101 if ((result = _nc_set_tty_mode(&buf)) == OK) {
104 cur_term->Nttyb = buf;
119 TTY buf; local
155 TTY buf; local
180 TTY buf; local
211 TTY buf; local
244 TTY buf; local
277 TTY buf; local
[all...]
/freebsd-10.2-release/contrib/ldns/compat/
H A Dctime_r.c9 char *ctime_r(const time_t *timep, char *buf) argument
13 if(buf && result)
14 strcpy(buf, result);
/freebsd-10.2-release/contrib/netbsd-tests/rump/rumpkern/
H A Dt_copy.c70 char buf[sizeof(TESTSTR)+1]; local
77 memset(buf, 0xaa, sizeof(buf));
78 ATF_REQUIRE_EQ(thefun(TESTSTR, buf, sizeof(buf), &len), 0);
80 ATF_REQUIRE_STREQ(TESTSTR, buf);
83 memset(buf, 0xaa, sizeof(buf));
84 ATF_REQUIRE_EQ(thefun(TESTSTR, buf, sizeof(buf)
121 char buf[1024]; local
[all...]
/freebsd-10.2-release/contrib/flex/
H A Dbuf.c56 struct Buf *buf_print_strings(struct Buf * buf, FILE* out)
60 if(!buf || !out)
61 return buf;
63 for (i=0; i < buf->nelts; i++){
64 const char * s = ((char**)buf->elts)[i];
68 return buf;
72 struct Buf *buf_prints (struct Buf *buf, const char *fmt, const char *s)
81 buf = buf_strappend (buf, t);
83 return buf;
55 buf_print_strings(struct Buf * buf, FILE* out) argument
71 buf_prints(struct Buf *buf, const char *fmt, const char *s) argument
91 buf_linedir(struct Buf *buf, const char* filename, int lineno) argument
169 buf_m4_define(struct Buf *buf, const char* def, const char* val) argument
190 buf_m4_undefine(struct Buf *buf, const char* def) argument
[all...]
/freebsd-10.2-release/crypto/heimdal/lib/gssapi/krb5/
H A Dexport_name.c45 char *buf, *name; local
67 buf = exported_name->value;
68 memcpy(buf, "\x04\x01", 2);
69 buf += 2;
70 buf[0] = ((GSS_KRB5_MECHANISM->length + 2) >> 8) & 0xff;
71 buf[1] = (GSS_KRB5_MECHANISM->length + 2) & 0xff;
72 buf+= 2;
73 buf[0] = 0x06;
74 buf[1] = (GSS_KRB5_MECHANISM->length) & 0xFF;
75 buf
[all...]
/freebsd-10.2-release/crypto/heimdal/lib/roken/
H A Dlstat.c39 lstat(const char *path, struct stat *buf) argument
41 return stat(path, buf);
/freebsd-10.2-release/sys/dev/random/
H A Drwfile.h34 int randomdev_read_file(const char *filename, void *buf, size_t);
35 int randomdev_write_file(const char *filename, void *buf, size_t);

Completed in 239 milliseconds

1234567891011>>