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

1234567891011>>

/external/qemu/android/protocol/
H A Dcore-connection.c43 * buf - Buffer containing the string.
48 _zero_terminate(char* buf, size_t buf_size, size_t eos) argument
51 buf[eos] = '\0';
53 buf[buf_size - 1] = '\0';
89 char buf[512]; local
117 status = syncsocket_read_line_absolute(ssocket, buf, sizeof(buf), deadline);
123 if (status < 15 || memcmp(buf, "Android Console", 15)) {
124 _zero_terminate(buf, sizeof(buf), statu
257 char buf[4096]; local
[all...]
/external/wpa_supplicant_8/hostapd/src/ap/
H A Dgas_serv.c133 struct wpabuf *buf)
137 len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC);
138 wpabuf_put_be24(buf, OUI_WFA);
139 wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE);
140 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST);
141 wpabuf_put_u8(buf, 0); /* Reserved */
142 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST);
144 wpabuf_put_u8(buf, HS20_STYPE_OPERATOR_FRIENDLY_NAME);
146 wpabuf_put_u8(buf, HS20_STYPE_WAN_METRICS);
148 wpabuf_put_u8(buf, HS20_STYPE_CONNECTION_CAPABILIT
132 anqp_add_hs_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
158 anqp_add_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
186 anqp_add_venue_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
206 anqp_add_network_auth_type(struct hostapd_data *hapd, struct wpabuf *buf) argument
218 anqp_add_roaming_consortium(struct hostapd_data *hapd, struct wpabuf *buf) argument
235 anqp_add_ip_addr_type_availability(struct hostapd_data *hapd, struct wpabuf *buf) argument
246 anqp_add_nai_realm_eap(struct wpabuf *buf, struct hostapd_nai_realm_data *realm) argument
267 anqp_add_nai_realm_data(struct wpabuf *buf, struct hostapd_nai_realm_data *realm, unsigned int realm_idx) argument
284 hs20_add_nai_home_realm_matches(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len) argument
378 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
412 anqp_add_3gpp_cellular_network(struct hostapd_data *hapd, struct wpabuf *buf) argument
425 anqp_add_domain_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
438 anqp_add_operator_friendly_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
462 anqp_add_wan_metrics(struct hostapd_data *hapd, struct wpabuf *buf) argument
477 anqp_add_connection_capability(struct hostapd_data *hapd, struct wpabuf *buf) argument
493 anqp_add_operating_class(struct hostapd_data *hapd, struct wpabuf *buf) argument
517 struct wpabuf *buf; local
777 struct wpabuf *buf, *tx_buf; local
866 struct wpabuf *buf; local
937 struct wpabuf *buf, *tx_buf; local
1026 struct wpabuf *buf, *tx_buf; local
1131 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.c133 struct wpabuf *buf)
137 len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC);
138 wpabuf_put_be24(buf, OUI_WFA);
139 wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE);
140 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST);
141 wpabuf_put_u8(buf, 0); /* Reserved */
142 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST);
144 wpabuf_put_u8(buf, HS20_STYPE_OPERATOR_FRIENDLY_NAME);
146 wpabuf_put_u8(buf, HS20_STYPE_WAN_METRICS);
148 wpabuf_put_u8(buf, HS20_STYPE_CONNECTION_CAPABILIT
132 anqp_add_hs_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
158 anqp_add_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
186 anqp_add_venue_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
206 anqp_add_network_auth_type(struct hostapd_data *hapd, struct wpabuf *buf) argument
218 anqp_add_roaming_consortium(struct hostapd_data *hapd, struct wpabuf *buf) argument
235 anqp_add_ip_addr_type_availability(struct hostapd_data *hapd, struct wpabuf *buf) argument
246 anqp_add_nai_realm_eap(struct wpabuf *buf, struct hostapd_nai_realm_data *realm) argument
267 anqp_add_nai_realm_data(struct wpabuf *buf, struct hostapd_nai_realm_data *realm, unsigned int realm_idx) argument
284 hs20_add_nai_home_realm_matches(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len) argument
378 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
412 anqp_add_3gpp_cellular_network(struct hostapd_data *hapd, struct wpabuf *buf) argument
425 anqp_add_domain_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
438 anqp_add_operator_friendly_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
462 anqp_add_wan_metrics(struct hostapd_data *hapd, struct wpabuf *buf) argument
477 anqp_add_connection_capability(struct hostapd_data *hapd, struct wpabuf *buf) argument
493 anqp_add_operating_class(struct hostapd_data *hapd, struct wpabuf *buf) argument
517 struct wpabuf *buf; local
777 struct wpabuf *buf, *tx_buf; local
866 struct wpabuf *buf; local
937 struct wpabuf *buf, *tx_buf; local
1026 struct wpabuf *buf, *tx_buf; local
1131 gas_serv_rx_public_action(void *ctx, const u8 *buf, size_t len, int freq) argument
[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/wpa_supplicant/src/ap/
H A Dgas_serv.c133 struct wpabuf *buf)
137 len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC);
138 wpabuf_put_be24(buf, OUI_WFA);
139 wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE);
140 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST);
141 wpabuf_put_u8(buf, 0); /* Reserved */
142 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST);
144 wpabuf_put_u8(buf, HS20_STYPE_OPERATOR_FRIENDLY_NAME);
146 wpabuf_put_u8(buf, HS20_STYPE_WAN_METRICS);
148 wpabuf_put_u8(buf, HS20_STYPE_CONNECTION_CAPABILIT
132 anqp_add_hs_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
158 anqp_add_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument
186 anqp_add_venue_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
206 anqp_add_network_auth_type(struct hostapd_data *hapd, struct wpabuf *buf) argument
218 anqp_add_roaming_consortium(struct hostapd_data *hapd, struct wpabuf *buf) argument
235 anqp_add_ip_addr_type_availability(struct hostapd_data *hapd, struct wpabuf *buf) argument
246 anqp_add_nai_realm_eap(struct wpabuf *buf, struct hostapd_nai_realm_data *realm) argument
267 anqp_add_nai_realm_data(struct wpabuf *buf, struct hostapd_nai_realm_data *realm, unsigned int realm_idx) argument
284 hs20_add_nai_home_realm_matches(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len) argument
378 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
412 anqp_add_3gpp_cellular_network(struct hostapd_data *hapd, struct wpabuf *buf) argument
425 anqp_add_domain_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
438 anqp_add_operator_friendly_name(struct hostapd_data *hapd, struct wpabuf *buf) argument
462 anqp_add_wan_metrics(struct hostapd_data *hapd, struct wpabuf *buf) argument
477 anqp_add_connection_capability(struct hostapd_data *hapd, struct wpabuf *buf) argument
493 anqp_add_operating_class(struct hostapd_data *hapd, struct wpabuf *buf) argument
517 struct wpabuf *buf; local
777 struct wpabuf *buf, *tx_buf; local
866 struct wpabuf *buf; local
937 struct wpabuf *buf, *tx_buf; local
1026 struct wpabuf *buf, *tx_buf; local
1131 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/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
H A DCTSBlockCipher.java34 buf = new byte[blockSize * 2];
50 int leftOver = total % buf.length;
54 return total - buf.length;
92 if (bufOff == buf.length)
94 resultLen = cipher.processBlock(buf, 0, out, outOff);
95 System.arraycopy(buf, blockSize, buf, 0, blockSize);
100 buf[bufOff++] = in;
142 int gapLen = buf.length - bufOff;
146 System.arraycopy(in, inOff, buf, bufOf
[all...]
/external/dropbear/
H A Dbignum.c66 buffer * buf; local
68 buf = buf_new(512 + 20); /* max buffer is a 4096 bit key,
70 buf_putmpint(buf, mp);
71 i = buf->pos;
72 buf_setpos(buf, 0);
73 sha1_process(hs, buf_getptr(buf, i), i);
74 buf_free(buf);
/external/dropbear/libtomcrypt/src/hashes/helper/
H A Dhash_filehandle.c32 unsigned char buf[512];
54 x = fread(buf, 1, sizeof(buf), in);
55 if ((err = hash_descriptor[hash].process(&md, buf, x)) != CRYPT_OK) {
58 } while (x == sizeof(buf));
62 zeromem(buf, sizeof(buf));
/external/dropbear/libtomcrypt/src/mac/f9/
H A Df9_file.c41 unsigned char buf[512];
59 x = fread(buf, 1, sizeof(buf), in);
60 if ((err = f9_process(&f9, buf, x)) != CRYPT_OK) {
64 } while (x == sizeof(buf));
72 zeromem(buf, sizeof(buf));
/external/dropbear/libtomcrypt/src/mac/hmac/
H A Dhmac_file.c39 unsigned char buf[512];
63 x = fread(buf, 1, sizeof(buf), in);
64 if ((err = hmac_process(&hmac, buf, (unsigned long)x)) != CRYPT_OK) {
69 } while (x == sizeof(buf));
82 zeromem(buf, sizeof(buf));
/external/dropbear/libtomcrypt/src/mac/omac/
H A Domac_file.c41 unsigned char buf[512];
59 x = fread(buf, 1, sizeof(buf), in);
60 if ((err = omac_process(&omac, buf, x)) != CRYPT_OK) {
64 } while (x == sizeof(buf));
72 zeromem(buf, sizeof(buf));
/external/dropbear/libtomcrypt/src/mac/pmac/
H A Dpmac_file.c41 unsigned char buf[512];
60 x = fread(buf, 1, sizeof(buf), in);
61 if ((err = pmac_process(&pmac, buf, x)) != CRYPT_OK) {
65 } while (x == sizeof(buf));
73 zeromem(buf, sizeof(buf));
/external/dropbear/libtomcrypt/src/mac/xcbc/
H A Dxcbc_file.c41 unsigned char buf[512];
59 x = fread(buf, 1, sizeof(buf), in);
60 if ((err = xcbc_process(&xcbc, buf, x)) != CRYPT_OK) {
64 } while (x == sizeof(buf));
72 zeromem(buf, sizeof(buf));
/external/elfutils/lib/
H A Dsystem.h63 extern uint32_t crc32 (uint32_t crc, unsigned char *buf, size_t len);
74 #define pwrite_retry(fd, buf, len, off) \
75 TEMP_FAILURE_RETRY (pwrite (fd, buf, len, off))
76 #define write_retry(fd, buf, n) \
77 TEMP_FAILURE_RETRY (write (fd, buf, n))
78 #define pread_retry(fd, buf, len, off) \
79 TEMP_FAILURE_RETRY (pread (fd, buf, len, off))
/external/elfutils/libebl/
H A Deblsymbolbindingname.c60 ebl_symbol_binding_name (ebl, binding, buf, len)
63 char *buf;
68 res = ebl != NULL ? ebl->symbol_type_name (binding, buf, len) : NULL;
82 snprintf (buf, len, "LOPROC+%d", binding - STB_LOPROC);
84 snprintf (buf, len, "LOOS+%d", binding - STB_LOOS);
86 snprintf (buf, len, gettext ("<unknown>: %d"), binding);
88 res = buf;
H A Deblsymboltypename.c60 ebl_symbol_type_name (ebl, symbol, buf, len)
63 char *buf;
68 res = ebl != NULL ? ebl->symbol_type_name (symbol, buf, len) : NULL;
88 snprintf (buf, len, "LOPROC+%d", symbol - STT_LOPROC);
90 snprintf (buf, len, "LOOS+%d", symbol - STT_LOOS);
92 snprintf (buf, len, gettext ("<unknown>: %d"), symbol);
94 res = buf;
/external/libselinux/src/
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/oprofile/libpopt/
H A Dfindme.c18 char * buf; local
28 buf = malloc(strlen(path) + strlen(argv0) + sizeof("/"));
29 if (buf == NULL) return NULL; /* XXX can't happen */
37 sprintf(buf, "%s/%s", start, argv0);
39 if (!access(buf, X_OK))
40 return buf;
49 free(buf);
/external/smack/src/org/jivesoftware/smackx/packet/
H A DVersion.java118 StringBuilder buf = new StringBuilder();
119 buf.append("<query xmlns=\"jabber:iq:version\">");
121 buf.append("<name>").append(name).append("</name>");
124 buf.append("<version>").append(version).append("</version>");
127 buf.append("<os>").append(os).append("</os>");
129 buf.append("</query>");
130 return buf.toString();
H A DMUCInitialPresence.java55 StringBuilder buf = new StringBuilder();
56 buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append(
59 buf.append("<password>").append(getPassword()).append("</password>");
62 buf.append(getHistory().toXML());
64 buf.append("</").append(getElementName()).append(">");
65 return buf.toString();
203 StringBuilder buf = new StringBuilder();
204 buf.append("<history");
206 buf.append(" maxchars=\"").append(getMaxChars()).append("\"");
209 buf
[all...]
/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...]
/external/chromium/third_party/libjingle/source/talk/base/
H A Dbuffer.h50 Buffer(const Buffer& buf) { argument
51 Construct(buf.data(), buf.length(), buf.length());
60 Buffer& operator=(const Buffer& buf) { argument
61 if (&buf != this) {
62 Construct(buf.data(), buf.length(), buf.length());
66 bool operator==(const Buffer& buf) cons
98 TransferTo(Buffer* buf) argument
[all...]

Completed in 568 milliseconds

1234567891011>>