/external/libselinux/src/ |
H A D | setenforce.c | 16 char buf[20]; local 28 snprintf(buf, sizeof buf, "%d", value); 29 ret = write(fd, buf, strlen(buf));
|
H A D | canonicalize_context.c | 16 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...] |
/external/smack/src/org/jivesoftware/smackx/packet/ |
H A D | PEPEvent.java | 98 StringBuilder buf = new StringBuilder(); 99 buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append("\">"); 100 buf.append(item.toXML()); 101 buf.append("</").append(getElementName()).append(">"); 102 return buf.toString();
|
H A D | PEPItem.java | 85 StringBuilder buf = new StringBuilder(); 86 buf.append("<").append(getElementName()).append(" id=\"").append(id).append("\">"); 87 buf.append(getItemDetailsXML()); 88 buf.append("</").append(getElementName()).append(">"); 89 return buf.toString();
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
H A D | CountOutputStream.java | 43 public void write(byte[] buf, int off, int len) throws IOException argument 45 out.write(buf, off, len); 54 public void write(byte[] buf) throws IOException argument 56 out.write(buf); 57 bytesWritten += buf.length;
|
/external/valgrind/main/coregrind/m_gdbserver/ |
H A D | valgrind-low-amd64.c | 152 void transfer_register (ThreadId tid, int abs_regno, void * buf, argument 165 case 0: VG_(transfer) (&amd64->guest_RAX, buf, dir, size, mod); break; 166 case 1: VG_(transfer) (&amd64->guest_RBX, buf, dir, size, mod); break; 167 case 2: VG_(transfer) (&amd64->guest_RCX, buf, dir, size, mod); break; 168 case 3: VG_(transfer) (&amd64->guest_RDX, buf, dir, size, mod); break; 169 case 4: VG_(transfer) (&amd64->guest_RSI, buf, dir, size, mod); break; 170 case 5: VG_(transfer) (&amd64->guest_RDI, buf, dir, size, mod); break; 171 case 6: VG_(transfer) (&amd64->guest_RBP, buf, dir, size, mod); break; 172 case 7: VG_(transfer) (&amd64->guest_RSP, buf, dir, size, mod); break; 173 case 8: VG_(transfer) (&amd64->guest_R8, buf, di [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/ |
H A D | NFAConfiguration.java | 128 StringBuffer buf = new StringBuffer(); 129 buf.append(state); 131 buf.append("|"); 132 buf.append(alt); 135 buf.append("|"); 136 buf.append(context); 140 buf.append("|"); 142 buf.append(escQuote); 145 buf.append("|resolved"); 148 buf [all...] |
/external/dropbear/libtomcrypt/src/misc/pkcs5/ |
H A D | pkcs_5_1.c | 37 unsigned char *buf; local 51 buf = XMALLOC(MAXBLOCKSIZE); 52 if (md == NULL || buf == NULL) { 56 if (buf != NULL) { 57 XFREE(buf); 72 if ((err = hash_descriptor[hash_idx].done(md, buf)) != CRYPT_OK) { 79 if ((err = hash_memory(hash_idx, buf, hash_descriptor[hash_idx].hashsize, buf, &x)) != CRYPT_OK) { 86 out[x] = buf[x]; 92 zeromem(buf, MAXBLOCKSIZ [all...] |
/external/dropbear/libtomcrypt/src/pk/pkcs1/ |
H A D | pkcs_1_mgf1.c | 37 unsigned char *buf; local 52 buf = XMALLOC(hLen); 53 if (md == NULL || buf == NULL) { 57 if (buf != NULL) { 58 XFREE(buf); 68 STORE32H(counter, buf); 78 if ((err = hash_descriptor[hash_idx].process(md, buf, 4)) != CRYPT_OK) { 81 if ((err = hash_descriptor[hash_idx].done(md, buf)) != CRYPT_OK) { 87 *mask++ = buf[x]; 94 zeromem(buf, hLe [all...] |
/external/elfutils/libebl/ |
H A D | eblsectionname.c | 60 ebl_section_name (ebl, section, xsection, buf, len, scnnames, shnum) 64 char *buf; 70 buf, len) : NULL; 93 snprintf (buf, len, "%d", idx); 94 res = buf; 101 snprintf (buf, len, "%s: %d", "XINDEX", xsection); 103 snprintf (buf, len, "LOOS+%x", section - SHN_LOOS); 106 snprintf (buf, len, "LOPROC+%x", section - SHN_LOPROC); 108 snprintf (buf, len, "LORESERVE+%x", section - SHN_LORESERVE); 110 snprintf (buf, le [all...] |
/external/iproute2/lib/ |
H A D | inet_proto.c | 25 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/openssh/ |
H A D | msg.c | 46 u_char buf[5]; local 51 put_u32(buf, mlen + 1); 52 buf[4] = type; /* 1st byte of payload is mesg-type */ 53 if (atomicio(vwrite, fd, buf, sizeof(buf)) != sizeof(buf)) { 67 u_char buf[4]; local 72 if (atomicio(read, fd, buf, sizeof(buf)) != sizeof(buf)) { [all...] |
/external/qemu/android/protocol/ |
H A D | core-connection.c | 43 * 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 D | gas_serv.c | 133 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 D | gas_serv.c | 133 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 D | nfc_pw_token.c | 18 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...] |
/external/wpa_supplicant_8/wpa_supplicant/src/ap/ |
H A D | gas_serv.c | 133 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 D | fstat.c | 35 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/crypto/modes/ |
H A D | CTSBlockCipher.java | 34 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 D | bignum.c | 66 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 D | hash_filehandle.c | 32 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 D | f9_file.c | 41 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 D | hmac_file.c | 39 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 D | omac_file.c | 41 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 D | pmac_file.c | 41 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));
|