Searched refs:buf (Results 51 - 75 of 6080) sorted by relevance

1234567891011>>

/external/libcxx/test/depr/depr.str.strstreams/depr.ostrstream/depr.ostrstream.members/
H A Drdbuf.pass.cpp22 char buf[] = "123 4.5 dog"; local
23 const std::ostrstream out(buf, 0);
26 assert(buf == std::string("a23 4.5 dog"));
/external/libcxx/test/depr/depr.str.strstreams/depr.strstream/depr.strstream.dest/
H A Drdbuf.pass.cpp22 char buf[] = "123 4.5 dog"; local
23 const std::strstream out(buf, 0);
26 assert(buf == std::string("a23 4.5 dog"));
/external/libcxx/test/input.output/string.streams/stringbuf/stringbuf.cons/
H A Dstring.pass.cpp24 std::stringbuf buf("testing");
25 assert(buf.str() == "testing");
28 std::stringbuf buf("testing", std::ios_base::in);
29 assert(buf.str() == "testing");
32 std::stringbuf buf("testing", std::ios_base::out);
33 assert(buf.str() == "testing");
36 std::wstringbuf buf(L"testing");
37 assert(buf.str() == L"testing");
40 std::wstringbuf buf(L"testing", std::ios_base::in);
41 assert(buf
[all...]
/external/libcxx/test/language.support/support.dynamic/new.delete/new.delete.placement/
H A Dnew.pass.cpp25 char buf[sizeof(A)]; local
27 A* ap = new(buf) A;
28 assert((char*)ap == buf);
H A Dnew_array.pass.cpp25 char buf[3*sizeof(A)]; local
27 A* ap = new(buf) A[3];
28 assert((char*)ap == buf);
/external/valgrind/main/VEX/test/
H A Dfldenv.c18 unsigned short* buf = malloc(14*sizeof(short)); local
20 buf[i] = i;
21 buf[0] = 0x037f;
23 do_fldenv(buf);
24 do_fstenv(buf);
26 printf("%04x ", buf[i]);
/external/llvm/unittests/ADT/
H A DSmallPtrSetTest.cpp20 int buf[8]; local
22 buf[i] = 0;
25 s1.insert(&buf[0]);
26 s1.insert(&buf[1]);
29 (s2 = s1).insert(&buf[2]);
32 (s2 = s2).insert(&buf[3]);
38 EXPECT_TRUE(s1.count(&buf[i]));
40 EXPECT_FALSE(s1.count(&buf[i]));
45 int buf[8]; local
46 for(i=0; i<8; ++i) buf[
[all...]
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/socket/
H A Drecv.c10 ssize_t recv(int fd, void* buf, size_t len, int flags) { argument
11 return ki_recv(fd, buf, len, flags);
H A Dsend.c10 ssize_t send(int fd, const void* buf, size_t len, int flags) { argument
11 return ki_send(fd, buf, len, flags);
/external/compiler-rt/test/msan/
H A Dc-strdup.c12 char buf[] = "abc"; local
13 char *p = strdup(buf);
/external/libcxx/test/depr/depr.str.strstreams/depr.istrstream/depr.istrstream.members/
H A Dstr.pass.cpp22 const char buf[] = "123 4.5 dog"; local
23 std::istrstream in(buf);
/external/libcxx/test/input.output/string.streams/stringbuf/stringbuf.assign/
H A Dmember_swap.pass.cpp24 std::stringbuf buf; local
25 buf.swap(buf1);
26 assert(buf.str() == "testing");
31 std::stringbuf buf; local
32 buf.swap(buf1);
33 assert(buf.str() == "testing");
38 std::stringbuf buf; local
39 buf.swap(buf1);
40 assert(buf.str() == "testing");
45 std::wstringbuf buf; local
52 std::wstringbuf buf; local
59 std::wstringbuf buf; local
[all...]
H A Dmove.pass.cpp24 std::stringbuf buf; local
25 buf = move(buf1);
26 assert(buf.str() == "testing");
30 std::stringbuf buf; local
31 buf = move(buf1);
32 assert(buf.str() == "testing");
36 std::stringbuf buf; local
37 buf = move(buf1);
38 assert(buf.str() == "testing");
42 std::wstringbuf buf; local
48 std::wstringbuf buf; local
54 std::wstringbuf buf; local
[all...]
H A Dnonmember_swap.pass.cpp26 std::stringbuf buf; local
27 swap(buf, buf1);
28 assert(buf.str() == "testing");
33 std::stringbuf buf; local
34 swap(buf, buf1);
35 assert(buf.str() == "testing");
40 std::stringbuf buf; local
41 swap(buf, buf1);
42 assert(buf.str() == "testing");
47 std::wstringbuf buf; local
54 std::wstringbuf buf; local
61 std::wstringbuf buf; local
[all...]
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/packet/
H A DDataPacketExtension.java129 StringBuilder buf = new StringBuilder();
130 buf.append("<");
131 buf.append(getElementName());
132 buf.append(" ");
133 buf.append("xmlns=\"");
134 buf.append(InBandBytestreamManager.NAMESPACE);
135 buf.append("\" ");
136 buf.append("seq=\"");
137 buf.append(seq);
138 buf
[all...]
/external/valgrind/main/coregrind/m_gdbserver/
H A Dregcache.h45 void registers_to_string (char *buf);
49 void registers_from_string (const char *buf);
65 /* *mod set to True if *buf provides a new value. */
66 void supply_register (int n, const void *buf, Bool *mod);
68 /* Reads register data from buf (hex string in target byte order)
70 *mod set to True if *buf provides a new value. */
71 void supply_register_from_string (int n, const char *buf, Bool *mod);
73 /* *mod set to True if *buf provides a new value. */
74 void supply_register_by_name (const char *name, const void *buf, Bool *mod);
76 void collect_register (int n, void *buf);
[all...]
/external/zlib/src/contrib/blast/
H A Dblast.h38 typedef unsigned (*blast_in)(void *how, unsigned char **buf);
39 typedef int (*blast_out)(void *how, unsigned char *buf, unsigned len);
52 * The input function is invoked: len = infun(how, &buf), where buf is set by
58 * The output function is invoked: err = outfun(how, buf, len), where the bytes
59 * to be written are buf[0..len-1]. If err is not zero, then blast() returns
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Daes-eax.c32 u8 *buf; local
46 buf = os_malloc(buf_len);
47 if (buf == NULL)
50 os_memset(buf, 0, 15);
52 buf[15] = 0;
53 os_memcpy(buf + 16, nonce, nonce_len);
54 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac))
57 buf[15] = 1;
58 os_memcpy(buf + 16, hdr, hdr_len);
59 if (omac1_aes_128(key, buf, 1
96 u8 *buf; local
[all...]
/external/wpa_supplicant_8/src/crypto/
H A Daes-eax.c32 u8 *buf; local
46 buf = os_malloc(buf_len);
47 if (buf == NULL)
50 os_memset(buf, 0, 15);
52 buf[15] = 0;
53 os_memcpy(buf + 16, nonce, nonce_len);
54 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac))
57 buf[15] = 1;
58 os_memcpy(buf + 16, hdr, hdr_len);
59 if (omac1_aes_128(key, buf, 1
96 u8 *buf; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Daes-eax.c32 u8 *buf; local
46 buf = os_malloc(buf_len);
47 if (buf == NULL)
50 os_memset(buf, 0, 15);
52 buf[15] = 0;
53 os_memcpy(buf + 16, nonce, nonce_len);
54 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac))
57 buf[15] = 1;
58 os_memcpy(buf + 16, hdr, hdr_len);
59 if (omac1_aes_128(key, buf, 1
96 u8 *buf; local
[all...]
/external/iproute2/include/
H A Drt_names.h6 char* rtnl_rtprot_n2a(int id, char *buf, int len);
7 char* rtnl_rtscope_n2a(int id, char *buf, int len);
8 char* rtnl_rttable_n2a(__u32 id, char *buf, int len);
9 char* rtnl_rtrealm_n2a(int id, char *buf, int len);
10 char* rtnl_dsfield_n2a(int id, char *buf, int len);
18 const char *inet_proto_n2a(int proto, char *buf, int len);
19 int inet_proto_a2n(char *buf);
22 const char * ll_type_n2a(int type, char *buf, int len);
24 const char *ll_addr_n2a(unsigned char *addr, int alen, int type, char *buf, int blen);
27 const char * ll_proto_n2a(unsigned short id, char *buf, in
[all...]
/external/libselinux/src/
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...]

Completed in 4469 milliseconds

1234567891011>>