Searched refs:buf (Results 201 - 225 of 4444) sorted by relevance

1234567891011>>

/external/iproute2/lib/
H A Dinet_proto.c25 char *inet_proto_n2a(int proto, char *buf, int len) argument
38 strncpy(buf, pe->p_name, len);
39 return buf;
41 snprintf(buf, len, "ipproto-%d", proto);
42 return buf;
45 int inet_proto_a2n(char *buf) argument
51 if (icache>=0 && strcmp(ncache, buf) == 0)
54 if (buf[0] >= '0' && buf[0] <= '9') {
56 if (get_u8(&ret, buf, 1
[all...]
/external/libselinux/src/
H A Dcanonicalize_context.c16 char *buf; local
31 buf = malloc(size);
32 if (!buf) {
36 strncpy(buf, con, size);
38 ret = write(fd, buf, strlen(buf) + 1);
42 memset(buf, 0, size);
43 ret = read(fd, buf, size - 1);
47 strncpy(buf, con, size);
50 *canoncon = strdup(buf);
[all...]
H A Dget_initial_context.c17 char *buf; local
33 buf = malloc(size);
34 if (!buf) {
38 memset(buf, 0, size);
39 ret = read(fd, buf, size - 1);
43 *con = strdup(buf);
50 free(buf);
/external/mesa3d/src/gallium/winsys/i915/drm/
H A Di915_drm_buffer.c31 struct i915_drm_buffer *buf = CALLOC_STRUCT(i915_drm_buffer); local
34 if (!buf)
37 buf->magic = 0xDEAD1337;
38 buf->flinked = FALSE;
39 buf->flink = 0;
41 buf->bo = drm_intel_bo_alloc(idws->gem_manager,
44 if (!buf->bo)
47 return (struct i915_winsys_buffer *)buf;
51 FREE(buf);
61 struct i915_drm_buffer *buf local
98 struct i915_drm_buffer *buf = CALLOC_STRUCT(i915_drm_buffer); local
130 struct i915_drm_buffer *buf = i915_drm_buffer(buffer); local
156 struct i915_drm_buffer *buf = i915_drm_buffer(buffer); local
182 struct i915_drm_buffer *buf = i915_drm_buffer(buffer); local
197 struct i915_drm_buffer *buf = i915_drm_buffer(buffer); local
[all...]
/external/mockito/cglib-and-asm/src/org/mockito/asm/util/
H A DTraceAbstractVisitor.java113 buf.setLength(0);
114 buf.append(tab).append('@');
116 buf.append('(');
117 text.add(buf.toString());
130 buf.setLength(0);
131 buf.append(tab).append("ATTRIBUTE ");
135 ((Traceable) attr).trace(buf, null);
137 buf.append(" : unknown\n");
140 text.add(buf.toString());
160 * {@link #buf bu
[all...]
/external/openssh/
H A Dmsg.c47 u_char buf[5]; local
52 put_u32(buf, mlen + 1);
53 buf[4] = type; /* 1st byte of payload is mesg-type */
54 if (atomicio(vwrite, fd, buf, sizeof(buf)) != sizeof(buf)) {
68 u_char buf[4], *p; local
74 if (atomicio(read, fd, buf, sizeof(buf)) != sizeof(buf)) {
[all...]
/external/selinux/libselinux/src/
H A Dcanonicalize_context.c16 char *buf; local
31 buf = malloc(size);
32 if (!buf) {
36 strncpy(buf, con, size);
38 ret = write(fd, buf, strlen(buf) + 1);
42 memset(buf, 0, size);
43 ret = read(fd, buf, size - 1);
47 strncpy(buf, con, size);
50 *canoncon = strdup(buf);
[all...]
H A Dfgetfilecon.c12 char *buf; local
17 buf = malloc(size);
18 if (!buf)
20 memset(buf, 0, size);
22 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1);
31 newbuf = realloc(buf, size);
35 buf = newbuf;
36 memset(buf, 0, size);
37 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1);
46 free(buf);
[all...]
H A Dgetfilecon.c12 char *buf; local
17 buf = malloc(size);
18 if (!buf)
20 memset(buf, 0, size);
22 ret = getxattr(path, XATTR_NAME_SELINUX, buf, size - 1);
31 newbuf = realloc(buf, size);
35 buf = newbuf;
36 memset(buf, 0, size);
37 ret = getxattr(path, XATTR_NAME_SELINUX, buf, size - 1);
46 free(buf);
[all...]
H A Dgetpeercon.c16 char *buf; local
21 buf = malloc(size);
22 if (!buf)
24 memset(buf, 0, size);
26 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size);
30 newbuf = realloc(buf, size);
34 buf = newbuf;
35 memset(buf, 0, size);
36 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size);
40 free(buf);
[all...]
H A Dlgetfilecon.c12 char *buf; local
17 buf = malloc(size);
18 if (!buf)
20 memset(buf, 0, size);
22 ret = lgetxattr(path, XATTR_NAME_SELINUX, buf, size - 1);
31 newbuf = realloc(buf, size);
35 buf = newbuf;
36 memset(buf, 0, size);
37 ret = lgetxattr(path, XATTR_NAME_SELINUX, buf, size - 1);
46 free(buf);
[all...]
/external/toybox/toys/pending/
H A Dfold.c41 char *buf = toybuf; local
45 switch (buf[pos]) {
48 if ((toys.optflags & FLAG_u) && buf[pos-1] != '\n'
49 && buf[pos+1] != '\n') {
50 xwrite(1, buf, pos);
52 buf += pos + 1;
79 if (maxlen > 0 && len >= maxlen && buf[pos+1] != '\n' && buf[pos+1] != '\b') {
81 xwrite(1, buf, split + 1);
84 buf
[all...]
/external/wpa_supplicant_8/wpa_supplicant/
H A Dnfc_pw_token.c18 static void print_bin(const char *title, const struct wpabuf *buf) argument
23 if (buf == NULL)
28 pos = wpabuf_head(buf);
29 len = wpabuf_len(buf);
41 struct wpabuf *buf = NULL, *ndef = NULL; local
53 buf = wpas_wps_nfc_token(&wpa_s, 0);
54 if (buf == NULL)
57 ndef = ndef_build_wifi(buf);
61 wpa_snprintf_hex_uppercase(txt, sizeof(txt), wpabuf_head(buf),
62 wpabuf_len(buf));
[all...]
H A Dwpa_passphrase.c19 char *ssid, *passphrase, buf[64], *pos; local
34 if (fgets(buf, sizeof(buf), stdin) == NULL) {
38 buf[sizeof(buf) - 1] = '\0';
39 pos = buf;
47 passphrase = buf;
/external/wpa_supplicant_8/hostapd/src/ap/
H A Dgas_serv.c141 struct wpabuf *buf)
145 len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC);
146 wpabuf_put_be24(buf, OUI_WFA);
147 wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE);
148 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST);
149 wpabuf_put_u8(buf, 0); /* Reserved */
150 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST);
152 wpabuf_put_u8(buf, HS20_STYPE_OPERATOR_FRIENDLY_NAME);
154 wpabuf_put_u8(buf, HS20_STYPE_WAN_METRICS);
156 wpabuf_put_u8(buf, HS20_STYPE_CONNECTION_CAPABILIT
140 anqp_add_hs_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
170 anqp_add_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
198 anqp_add_venue_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
218 anqp_add_network_auth_type(struct hostapd_data *hapd, struct wpabuf *buf) argument
230 anqp_add_roaming_consortium(struct hostapd_data *hapd, struct wpabuf *buf) argument
247 anqp_add_ip_addr_type_availability(struct hostapd_data *hapd, struct wpabuf *buf) argument
258 anqp_add_nai_realm_eap(struct wpabuf *buf, struct hostapd_nai_realm_data *realm) argument
279 anqp_add_nai_realm_data(struct wpabuf *buf, struct hostapd_nai_realm_data *realm, unsigned int realm_idx) argument
296 hs20_add_nai_home_realm_matches(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len) argument
390 anqp_add_nai_realm(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len, int nai_realm, int nai_home_realm) argument
424 anqp_add_3gpp_cellular_network(struct hostapd_data *hapd, struct wpabuf *buf) argument
437 anqp_add_domain_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
450 anqp_add_operator_friendly_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
474 anqp_add_wan_metrics(struct hostapd_data *hapd, struct wpabuf *buf) argument
489 anqp_add_connection_capability(struct hostapd_data *hapd, struct wpabuf *buf) argument
505 anqp_add_operating_class(struct hostapd_data *hapd, struct wpabuf *buf) argument
521 anqp_add_osu_provider(struct wpabuf *buf, struct hostapd_bss_config *bss, struct hs20_osu_provider *p) argument
598 anqp_add_osu_providers_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
628 anqp_add_icon_binary_file(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *name, size_t name_len) argument
692 struct wpabuf *buf; local
978 struct wpabuf *buf, *tx_buf; local
1081 struct wpabuf *buf; local
1156 struct wpabuf *buf, *tx_buf; local
1235 gas_serv_rx_public_action(void *ctx, const u8 *buf, size_t len, int freq) argument
[all...]
/external/wpa_supplicant_8/src/ap/
H A Dgas_serv.c141 struct wpabuf *buf)
145 len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC);
146 wpabuf_put_be24(buf, OUI_WFA);
147 wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE);
148 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST);
149 wpabuf_put_u8(buf, 0); /* Reserved */
150 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST);
152 wpabuf_put_u8(buf, HS20_STYPE_OPERATOR_FRIENDLY_NAME);
154 wpabuf_put_u8(buf, HS20_STYPE_WAN_METRICS);
156 wpabuf_put_u8(buf, HS20_STYPE_CONNECTION_CAPABILIT
140 anqp_add_hs_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
170 anqp_add_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
198 anqp_add_venue_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
218 anqp_add_network_auth_type(struct hostapd_data *hapd, struct wpabuf *buf) argument
230 anqp_add_roaming_consortium(struct hostapd_data *hapd, struct wpabuf *buf) argument
247 anqp_add_ip_addr_type_availability(struct hostapd_data *hapd, struct wpabuf *buf) argument
258 anqp_add_nai_realm_eap(struct wpabuf *buf, struct hostapd_nai_realm_data *realm) argument
279 anqp_add_nai_realm_data(struct wpabuf *buf, struct hostapd_nai_realm_data *realm, unsigned int realm_idx) argument
296 hs20_add_nai_home_realm_matches(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len) argument
390 anqp_add_nai_realm(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len, int nai_realm, int nai_home_realm) argument
424 anqp_add_3gpp_cellular_network(struct hostapd_data *hapd, struct wpabuf *buf) argument
437 anqp_add_domain_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
450 anqp_add_operator_friendly_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
474 anqp_add_wan_metrics(struct hostapd_data *hapd, struct wpabuf *buf) argument
489 anqp_add_connection_capability(struct hostapd_data *hapd, struct wpabuf *buf) argument
505 anqp_add_operating_class(struct hostapd_data *hapd, struct wpabuf *buf) argument
521 anqp_add_osu_provider(struct wpabuf *buf, struct hostapd_bss_config *bss, struct hs20_osu_provider *p) argument
598 anqp_add_osu_providers_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
628 anqp_add_icon_binary_file(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *name, size_t name_len) argument
692 struct wpabuf *buf; local
978 struct wpabuf *buf, *tx_buf; local
1081 struct wpabuf *buf; local
1156 struct wpabuf *buf, *tx_buf; local
1235 gas_serv_rx_public_action(void *ctx, const u8 *buf, size_t len, int freq) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dgas_serv.c141 struct wpabuf *buf)
145 len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC);
146 wpabuf_put_be24(buf, OUI_WFA);
147 wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE);
148 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST);
149 wpabuf_put_u8(buf, 0); /* Reserved */
150 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST);
152 wpabuf_put_u8(buf, HS20_STYPE_OPERATOR_FRIENDLY_NAME);
154 wpabuf_put_u8(buf, HS20_STYPE_WAN_METRICS);
156 wpabuf_put_u8(buf, HS20_STYPE_CONNECTION_CAPABILIT
140 anqp_add_hs_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
170 anqp_add_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
198 anqp_add_venue_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
218 anqp_add_network_auth_type(struct hostapd_data *hapd, struct wpabuf *buf) argument
230 anqp_add_roaming_consortium(struct hostapd_data *hapd, struct wpabuf *buf) argument
247 anqp_add_ip_addr_type_availability(struct hostapd_data *hapd, struct wpabuf *buf) argument
258 anqp_add_nai_realm_eap(struct wpabuf *buf, struct hostapd_nai_realm_data *realm) argument
279 anqp_add_nai_realm_data(struct wpabuf *buf, struct hostapd_nai_realm_data *realm, unsigned int realm_idx) argument
296 hs20_add_nai_home_realm_matches(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len) argument
390 anqp_add_nai_realm(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len, int nai_realm, int nai_home_realm) argument
424 anqp_add_3gpp_cellular_network(struct hostapd_data *hapd, struct wpabuf *buf) argument
437 anqp_add_domain_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
450 anqp_add_operator_friendly_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
474 anqp_add_wan_metrics(struct hostapd_data *hapd, struct wpabuf *buf) argument
489 anqp_add_connection_capability(struct hostapd_data *hapd, struct wpabuf *buf) argument
505 anqp_add_operating_class(struct hostapd_data *hapd, struct wpabuf *buf) argument
521 anqp_add_osu_provider(struct wpabuf *buf, struct hostapd_bss_config *bss, struct hs20_osu_provider *p) argument
598 anqp_add_osu_providers_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
628 anqp_add_icon_binary_file(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *name, size_t name_len) argument
692 struct wpabuf *buf; local
978 struct wpabuf *buf, *tx_buf; local
1081 struct wpabuf *buf; local
1156 struct wpabuf *buf, *tx_buf; local
1235 gas_serv_rx_public_action(void *ctx, const u8 *buf, size_t len, int freq) argument
[all...]
/external/bison/lib/
H A Dfstat.c35 orig_fstat (int fd, struct stat *buf) argument
37 return fstat (fd, buf);
55 fstat_nothrow (int fd, struct stat *buf) argument
61 result = orig_fstat (fd, buf);
77 rpl_fstat (int fd, struct stat *buf) argument
84 return stat (name, buf);
87 return fstat_nothrow (fd, buf);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x500/style/
H A DX500NameTokenizer.java14 private StringBuffer buf = new StringBuffer(); field in class:X500NameTokenizer
47 buf.setLength(0);
59 buf.append(c);
66 buf.append(c);
71 buf.append(c);
80 buf.append(c);
88 return buf.toString();
/external/elfutils/src/libebl/
H A Deblobjnotetypename.c41 ebl_object_note_type_name (ebl, name, type, buf, len)
45 char *buf;
48 const char *res = ebl->object_note_type_name (name, type, buf, len);
54 snprintf (buf, len, "Version: %" PRIu32, type);
55 return buf;
73 snprintf (buf, len, "%s: %" PRIu32, gettext ("<unknown>"), type);
75 res = buf;
H A Deblsymbolbindingname.c39 ebl_symbol_binding_name (ebl, binding, buf, len)
42 char *buf;
47 res = ebl != NULL ? ebl->symbol_type_name (binding, buf, len) : NULL;
63 snprintf (buf, len, "LOPROC+%d", binding - STB_LOPROC);
69 snprintf (buf, len, "LOOS+%d", binding - STB_LOOS);
71 snprintf (buf, len, gettext ("<unknown>: %d"), binding);
73 res = buf;
H A Deblsymboltypename.c39 ebl_symbol_type_name (ebl, symbol, buf, len)
42 char *buf;
47 res = ebl != NULL ? ebl->symbol_type_name (symbol, buf, len) : NULL;
69 snprintf (buf, len, "LOPROC+%d", symbol - STT_LOPROC);
75 snprintf (buf, len, "LOOS+%d", symbol - STT_LOOS);
77 snprintf (buf, len, gettext ("<unknown>: %d"), symbol);
79 res = buf;
/external/strace/tests/
H A Duio.c15 char buf[4]; local
16 struct iovec iov = { buf, sizeof buf };
19 assert(pread(fd, buf, sizeof buf, offset) == 4);
24 assert(pwrite(fd, buf, sizeof buf, offset) == 4);
/external/toybox/toys/posix/
H A Duuencode.c25 char *name = toys.optargs[toys.optc-1], buf[(76/4)*3]; local
37 if (!(i = xread(fd, buf, m ? sizeof(buf) : 45))) break;
40 in = buf;
42 for (in = buf; in-buf < i; ) {
43 int j, x, bytes = i - (in-buf);
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
H A DChannelHelper.java37 ByteBuffer buf = ByteBuffer.allocate(l2i(size));
38 readFully(channel, buf, buf.limit());
39 buf.rewind();
40 assert buf.limit() == size;
42 return buf;
48 public static void readFully(final ReadableByteChannel channel, final ByteBuffer buf) argument
50 readFully(channel, buf, buf.remaining());
53 public static int readFully(final ReadableByteChannel channel, final ByteBuffer buf, fina argument
69 writeFully(final WritableByteChannel channel, final ByteBuffer buf) argument
[all...]

Completed in 2098 milliseconds

1234567891011>>