/external/compiler-rt/test/msan/ |
H A D | strerror_r-non-gnu.c | 13 char buf[1000]; local 14 int res = strerror_r(EINVAL, buf, sizeof(buf)); 16 volatile int z = strlen(buf);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | ReplaceableString.java | 24 private StringBuffer buf; field in class:ReplaceableString 32 buf = new StringBuffer(str); 36 * Construct a new object using <code>buf</code> for internal 37 * storage. The contents of <code>buf</code> at the time of 39 * Modifications to <code>buf</code> will modify this object, and 41 * @param buf object to be used as internal storage 44 public ReplaceableString(StringBuffer buf) { argument 45 this.buf = buf; 53 buf [all...] |
/external/wpa_supplicant_8/hostapd/src/common/ |
H A D | gas.c | 20 struct wpabuf *buf; local 22 buf = wpabuf_alloc(100 + size); 23 if (buf == NULL) 26 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); 27 wpabuf_put_u8(buf, action); 28 wpabuf_put_u8(buf, dialog_token); 30 return buf; 51 struct wpabuf *buf; local 53 buf = wpabuf_alloc(100 + size); 54 if (buf 99 gas_add_adv_proto_anqp(struct wpabuf *buf, u8 query_resp_len_limit, u8 pame_bi) argument 114 struct wpabuf *buf; local 131 struct wpabuf *buf; local 151 struct wpabuf *buf; local 172 struct wpabuf *buf; local 193 struct wpabuf *buf; local 217 gas_anqp_set_len(struct wpabuf *buf) argument 255 gas_anqp_add_element(struct wpabuf *buf, u16 info_id) argument 270 gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos) argument [all...] |
/external/wpa_supplicant_8/src/common/ |
H A D | gas.c | 20 struct wpabuf *buf; local 22 buf = wpabuf_alloc(100 + size); 23 if (buf == NULL) 26 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); 27 wpabuf_put_u8(buf, action); 28 wpabuf_put_u8(buf, dialog_token); 30 return buf; 51 struct wpabuf *buf; local 53 buf = wpabuf_alloc(100 + size); 54 if (buf 99 gas_add_adv_proto_anqp(struct wpabuf *buf, u8 query_resp_len_limit, u8 pame_bi) argument 114 struct wpabuf *buf; local 131 struct wpabuf *buf; local 151 struct wpabuf *buf; local 172 struct wpabuf *buf; local 193 struct wpabuf *buf; local 217 gas_anqp_set_len(struct wpabuf *buf) argument 255 gas_anqp_add_element(struct wpabuf *buf, u16 info_id) argument 270 gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos) argument [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/common/ |
H A D | gas.c | 20 struct wpabuf *buf; local 22 buf = wpabuf_alloc(100 + size); 23 if (buf == NULL) 26 wpabuf_put_u8(buf, WLAN_ACTION_PUBLIC); 27 wpabuf_put_u8(buf, action); 28 wpabuf_put_u8(buf, dialog_token); 30 return buf; 51 struct wpabuf *buf; local 53 buf = wpabuf_alloc(100 + size); 54 if (buf 99 gas_add_adv_proto_anqp(struct wpabuf *buf, u8 query_resp_len_limit, u8 pame_bi) argument 114 struct wpabuf *buf; local 131 struct wpabuf *buf; local 151 struct wpabuf *buf; local 172 struct wpabuf *buf; local 193 struct wpabuf *buf; local 217 gas_anqp_set_len(struct wpabuf *buf) argument 255 gas_anqp_add_element(struct wpabuf *buf, u16 info_id) argument 270 gas_anqp_set_element_len(struct wpabuf *buf, u8 *len_pos) argument [all...] |
/external/valgrind/none/tests/s390x/ |
H A D | mvcl.c | 146 print_buf(const char *prefix, char *buf, uint32_t len) argument 153 putchar(buf[i]); 174 uint8_t byte, buf[10], small[5], i; local 183 run_test(NULL, 0, buf, sizeof buf, 0x00); 184 run_test(NULL, 0, buf, sizeof buf, 0xFF); 189 memset(buf, 'x', sizeof buf); 190 run_test(buf, sizeo [all...] |
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
H A D | getpass.cc | 18 char buf[1024]; local 19 int res = read(master, buf, sizeof(buf)); 20 write(1, buf, res); 22 while ((res = read(master, buf, sizeof(buf))) > 0) write(1, buf, res);
|
/external/elfutils/src/libebl/ |
H A D | eblobjecttypename.c | 39 ebl_object_type_name (ebl, object, buf, len) 42 char *buf; 47 res = ebl != NULL ? ebl->object_type_name (object, buf, len) : NULL; 52 snprintf (buf, len, "LOOS+%x", object - ET_LOOS); 55 snprintf (buf, len, "LOPROC+%x", object - ET_LOPROC); 57 snprintf (buf, len, "%s: %d", gettext ("<unknown>"), object); 59 res = buf;
|
/external/wpa_supplicant_8/hostapd/ |
H A D | nt_password_hash.c | 19 char *password, buf[64], *pos; local 24 if (fgets(buf, sizeof(buf), stdin) == NULL) { 28 buf[sizeof(buf) - 1] = '\0'; 29 pos = buf; 37 password = buf;
|
/external/google-breakpad/src/third_party/libdisasm/ |
H A D | x86_imm.c | 6 unsigned int x86_imm_signsized( unsigned char * buf, size_t buf_len, argument 17 /* Copy 'size' bytes from *buf to *op 21 *cp = *((signed char *) buf); 24 *sp = *((signed short *) buf); 28 *qp = *((qword_t *) buf); 32 *lp = *((int32_t *) buf); 38 unsigned int x86_imm_sized( unsigned char * buf, size_t buf_len, void *dest, argument 49 /* Copy 'size' bytes from *buf to *op 53 *cp = *((unsigned char *) buf); 56 *sp = *((unsigned short *) buf); [all...] |
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/helper/ |
H A D | RandomHelper.java | 39 StringBuilder buf = new StringBuilder(); 43 buf.append(c); 45 return buf.toString(); 53 StringBuilder buf = new StringBuilder(); 55 while (buf.length() < totalLength) { 56 int remaining = totalLength - buf.length(); 60 buf.append(randomString(currentNodeLength)); 61 buf.append('/'); 64 buf.append(randomString(currentNodeLength)); 67 return buf [all...] |
/external/valgrind/memcheck/tests/ |
H A D | test-plo.c | 49 char *buf = memalign16(5); local 50 buf[0] = 'a'; 51 buf[1] = 'b'; 52 buf[2] = 'c'; 53 buf[3] = 'd'; 54 buf[4] = '\0'; 58 if (aligned_strlen(buf) == 4) 63 buf[4] = 'x'; 64 if (aligned_strlen(buf) == 0) 67 free(buf); [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/asm/util/ |
H A D | ASMifierMethodVisitor.java | 59 buf.setLength(0);
60 buf.append("{\n").append("av0 = mv.visitAnnotationDefault();\n");
61 text.add(buf.toString());
73 buf.setLength(0);
74 buf.append("{\n")
79 buf.append(", ").append(visible).append(");\n");
80 text.add(buf.toString());
98 buf.setLength(0);
105 buf.append("mv.visitFrame(Opcodes.F_NEW, ");
107 buf [all...] |
H A D | ASMifierClassVisitor.java | 236 buf.setLength(0);
237 buf.append("cw.visit(");
240 buf.append("V1_1");
243 buf.append("V1_2");
246 buf.append("V1_3");
249 buf.append("V1_4");
252 buf.append("V1_5");
255 buf.append("V1_6");
258 buf.append(version);
261 buf [all...] |
/external/apache-harmony/support/src/test/java/tests/support/ |
H A D | Support_StringWriter.java | 24 private StringBuffer buf; field in class:Support_StringWriter 33 buf = new StringBuffer(16); 34 lock = buf; 44 buf = new StringBuffer(initialSize); 45 lock = buf; 78 return buf; 92 return buf.toString(); 98 * in <code>buf</code> to this StringWriter. 100 * @param buf the non-null array containing characters to write. 101 * @param offset offset in buf t 107 write(char[] buf, int offset, int count) argument [all...] |
/external/icu/icu4c/source/test/intltest/ |
H A D | testutil.cpp | 16 UnicodeString &TestUtility::appendHex(UnicodeString &buf, UChar32 ch) { argument 19 buf.append(HEX[0xF&(ch>>20)]); 21 buf.append(HEX[0xF&(ch>>16)]); 23 buf.append(HEX[0xF&(ch>>12)]); 24 buf.append(HEX[0xF&(ch>>8)]); 25 buf.append(HEX[0xF&(ch>>4)]); 26 buf.append(HEX[0xF&ch]); 27 return buf; 31 UnicodeString buf; local 32 appendHex(buf, c 55 UnicodeString buf; local [all...] |
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/sample/ |
H A D | ModuleTestSample.java | 127 StringBuffer buf = new StringBuffer("String[] {"); 130 buf.append(","); 132 buf.append(" " + a[i]); 134 buf.append(" }"); 135 return buf.toString(); 139 StringBuffer buf = new StringBuffer("int[] {"); 142 buf.append(","); 144 buf.append(" " + a[i]); 146 buf.append(" }"); 147 return buf [all...] |
/external/libedit/src/ |
H A D | fgetln.c | 50 static char *buf = NULL; local 55 if (buf == NULL) { 57 if ((buf = malloc(bufsiz)) == NULL) 61 if (fgets(buf, bufsiz, fp) == NULL) 65 while ((ptr = strchr(&buf[*len], '\n')) == NULL) { 67 char *nbuf = realloc(buf, nbufsiz); 71 free(buf); 73 buf = NULL; 76 buf = nbuf; 78 if (fgets(&buf[bufsi [all...] |
/external/boringssl/src/crypto/buf/ |
H A D | buf.c | 57 #include <openssl/buf.h> 78 void BUF_MEM_free(BUF_MEM *buf) { argument 79 if (buf == NULL) { 83 if (buf->data != NULL) { 84 OPENSSL_cleanse(buf->data, buf->max); 85 OPENSSL_free(buf->data); 88 OPENSSL_free(buf); 91 static size_t buf_mem_grow(BUF_MEM *buf, size_t len, char clean) { argument 95 if (buf 142 BUF_MEM_grow(BUF_MEM *buf, size_t len) argument 146 BUF_MEM_grow_clean(BUF_MEM *buf, size_t len) argument 150 BUF_strdup(const char *buf) argument 170 BUF_strndup(const char *buf, size_t size) argument [all...] |
/external/openssh/ |
H A D | sshbuf.h | 43 size_t off; /* First available byte is buf->d + buf->off */ 44 size_t size; /* Last byte is buf->d + buf->size - 1 */ 46 size_t alloc; /* Total bytes allocated to buf->d */ 59 void sshbuf_init(struct sshbuf *buf); 76 * buffer. The contents of "buf" must not change in the lifetime of the 80 struct sshbuf *sshbuf_fromb(struct sshbuf *buf); 85 * The contents of "buf" must not change in the lifetime of the resultant 89 int sshbuf_froms(struct sshbuf *buf, struc [all...] |
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
H A D | pb_bufmgr_cache.c | 89 pb_cache_buffer(struct pb_buffer *buf) argument 91 assert(buf); 92 return (struct pb_cache_buffer *)buf; 108 _pb_cache_buffer_destroy(struct pb_cache_buffer *buf) argument 110 struct pb_cache_manager *mgr = buf->mgr; 112 LIST_DEL(&buf->head); 115 assert(!pipe_is_referenced(&buf->base.reference)); 116 pb_reference(&buf->buffer, NULL); 117 FREE(buf); 128 struct pb_cache_buffer *buf; local 152 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 172 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 180 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 190 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 199 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 209 struct pb_cache_buffer *buf = pb_cache_buffer(_buf); local 226 pb_cache_is_buffer_compat(struct pb_cache_buffer *buf, pb_size size, const struct pb_desc *desc) argument 265 struct pb_cache_buffer *buf; local 361 struct pb_cache_buffer *buf; local [all...] |
/external/vboot_reference/tests/ |
H A D | stateful_util_tests.c | 24 char buf[128]; local 28 StatefulInit(&s, buf, 128); 31 TEST_PTR_EQ(buf, s.remaining_buf, "StatefulInit() buf"); 38 char buf[128]; local 41 StatefulInit(&s, buf, 128); 44 TEST_PTR_EQ(buf + 5, s.remaining_buf, "StatefulSkip(5) buf"); 48 StatefulInit(&s, buf, 128); 51 TEST_PTR_EQ(buf 83 char buf[129]; local 148 char buf[129]; local 221 char buf[129]; local [all...] |
/external/webp/src/dec/ |
H A D | buffer.c | 44 const WebPYUVABuffer* const buf = &buffer->u.YUVA; local 45 const int y_stride = abs(buf->y_stride); 46 const int u_stride = abs(buf->u_stride); 47 const int v_stride = abs(buf->v_stride); 48 const int a_stride = abs(buf->a_stride); 53 ok &= (y_size <= buf->y_size); 54 ok &= (u_size <= buf->u_size); 55 ok &= (v_size <= buf->v_size); 59 ok &= (buf->y != NULL); 60 ok &= (buf 68 const WebPRGBABuffer* const buf = &buffer->u.RGBA; local 114 WebPYUVABuffer* const buf = &buffer->u.YUVA; local 130 WebPRGBABuffer* const buf = &buffer->u.RGBA; local 144 WebPRGBABuffer* const buf = &buffer->u.RGBA; local 148 WebPYUVABuffer* const buf = &buffer->u.YUVA; local [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/asm/ |
H A D | Type.java | 157 private final char[] buf;
field in class:Type 160 * The offset of the internal name of this Java type in {@link #buf buf}.
188 * @param buf a buffer containing the descriptor of the previous type.
192 private Type(final int sort, final char[] buf, final int off, final int len)
argument 195 this.buf = buf;
217 char[] buf = internalName.toCharArray();
218 return new Type(buf[0] == '[' ? ARRAY : OBJECT, buf, 337 getType(final char[] buf, final int off) argument 514 getDescriptor(final StringBuffer buf) argument 623 getDescriptor(final StringBuffer buf, final Class c) argument [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
H A D | JavaScriptTarget.java | 56 StringBuffer buf = new StringBuffer(22); // enough for the two "0x", "," and " " 57 buf.append("0x"); 58 writeHexWithPadding(buf, Integer.toHexString((int)(word & 0x00000000ffffffffL))); 59 buf.append(", 0x"); 60 writeHexWithPadding(buf, Integer.toHexString((int)(word >> 32))); 62 return buf.toString(); 65 private void writeHexWithPadding(StringBuffer buf, String digits) { argument 70 buf.append('0'); 72 buf.append(digits);
|