Searched refs:buf (Results 1 - 25 of 6266) sorted by relevance

1234567891011>>

/external/ltp/tools/
H A Dltpoutput27 $buf = "";
30 $buf = $buf . $line;
32 if($buf =~ "termination_id=[^0]") {
33 $buf =~ tr/<>/-/;
34 print $buf;
36 $buf = "";
H A Dltpoutput226 $buf = <STDIN>;
29 $buf = $buf . $line;
31 if($buf =~ "termination_id=[^0]") {
32 $buf =~ tr/<>/-/;
33 print $buf;
35 $buf = "";
/external/clang/test/Analysis/
H A Dundef-buffers.c7 char buf[2]; local
8 buf[0] = 'a';
9 return buf[1]; // expected-warning{{Undefined}}
13 char buf[2]; local
14 buf[1] = 'a';
15 return buf[0]; // expected-warning{{Undefined}}
20 char buf[2]; local
22 buf[0] = 'a';
24 return buf[1]; // expected-warning{{Undefined}}
26 return buf[
30 char *buf = malloc(2); local
38 char *buf = malloc(2); local
[all...]
H A DPR7218.c3 char buf[2]; local
4 buf[0] = a;
5 return buf[1]; // expected-warning {{Undefined or garbage value returned to caller}}
H A Dout-of-bounds.c7 int buf[100]; local
8 buf[100] = 1; // expected-warning{{Out of bound memory access}}
12 int buf[100]; local
13 buf[99] = 1; // no-warning
36 int buf[100]; local
37 int *p = buf;
42 int buf[100]; local
43 int *p = buf;
52 int buf[100]; local
53 int *p = buf;
59 int buf[100]; local
66 int buf[100]; local
73 int buf[100]; local
83 int buf[100]; local
92 int buf[100]; local
102 int buf[100]; local
113 int buf[100][100]; local
122 int buf[100][100]; local
127 int buf[100][100]; local
135 int buf[100]; local
144 int buf[100]; local
153 int *buf = get_symbolic(); local
[all...]
/external/curl/lib/
H A Dcurl_endian.c36 * buf [in] - A pointer to a 2 byte buffer.
40 unsigned short Curl_read16_le(unsigned char *buf) argument
42 return (unsigned short)(((unsigned short)buf[0]) |
43 ((unsigned short)buf[1] << 8));
55 * buf [in] - A pointer to a 4 byte buffer.
59 unsigned int Curl_read32_le(unsigned char *buf) argument
61 return ((unsigned int)buf[0]) | ((unsigned int)buf[1] << 8) |
62 ((unsigned int)buf[2] << 16) | ((unsigned int)buf[
80 Curl_read64_le(unsigned char *buf) argument
92 Curl_read64_le(unsigned char *buf) argument
116 Curl_read16_be(unsigned char *buf) argument
135 Curl_read32_be(unsigned char *buf) argument
156 Curl_read64_be(unsigned char *buf) argument
168 Curl_read64_be(unsigned char *buf) argument
[all...]
/external/valgrind/none/tests/x86/
H A Dcpuid_c.c5 extern void get_cpuid0 ( unsigned int* buf );
6 extern void get_cpuid1 ( unsigned int* buf );
8 unsigned int buf[4]; variable
12 get_cpuid0(&buf[0]);
14 buf[0], buf[1], buf[2], buf[3] );
16 get_cpuid1(&buf[0]);
18 buf[
[all...]
/external/strace/tests/
H A Dgetrandom.c39 unsigned char buf[4]; local
41 if (syscall(__NR_getrandom, buf, sizeof(buf) - 1, 0) != sizeof(buf) - 1)
44 (int) buf[0], (int) buf[1], (int) buf[2]);
46 if (syscall(__NR_getrandom, buf, sizeof(buf), 1) != sizeof(buf))
[all...]
/external/strace/tests-m32/
H A Dgetrandom.c39 unsigned char buf[4]; local
41 if (syscall(__NR_getrandom, buf, sizeof(buf) - 1, 0) != sizeof(buf) - 1)
44 (int) buf[0], (int) buf[1], (int) buf[2]);
46 if (syscall(__NR_getrandom, buf, sizeof(buf), 1) != sizeof(buf))
[all...]
/external/strace/tests-mx32/
H A Dgetrandom.c39 unsigned char buf[4]; local
41 if (syscall(__NR_getrandom, buf, sizeof(buf) - 1, 0) != sizeof(buf) - 1)
44 (int) buf[0], (int) buf[1], (int) buf[2]);
46 if (syscall(__NR_getrandom, buf, sizeof(buf), 1) != sizeof(buf))
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_dynarray.h47 util_dynarray_init(struct util_dynarray *buf) argument
49 memset(buf, 0, sizeof(*buf));
53 util_dynarray_fini(struct util_dynarray *buf) argument
55 if(buf->data)
57 FREE(buf->data);
58 util_dynarray_init(buf);
64 util_dynarray_resize(struct util_dynarray *buf, unsigned newsize) argument
67 if(newsize > buf->capacity)
69 unsigned newcap = buf
82 util_dynarray_grow(struct util_dynarray *buf, int diff) argument
88 util_dynarray_trim(struct util_dynarray *buf) argument
[all...]
/external/compiler-rt/test/msan/Linux/
H A Dsyscalls.cc22 char buf[1000] __attribute__((aligned(8))); local
25 memset(buf, 0, sizeof(buf));
26 __msan_unpoison(buf, sizeof(buf));
27 __sanitizer_syscall_pre_recvmsg(0, buf, 0);
28 __sanitizer_syscall_pre_rt_sigpending(buf, kTen);
29 __sanitizer_syscall_pre_getdents(0, buf, kTen);
30 __sanitizer_syscall_pre_getdents64(0, buf, kTen);
32 __msan_unpoison(buf, sizeo
[all...]
/external/curl/tests/server/
H A Dbase64.pl5 my $buf;
6 while(read(STDIN, $buf, 60*57)) {
7 my $enc = encode_base64($buf);
/external/valgrind/none/tests/s390x/
H A Dstmg.c8 char buf[24]; local
15 :"=m" (buf)
20 "lgr 3, %0\n\t" // buf
23 : : "a" (buf)
30 char buf[64]; local
38 :"=m" (buf)
43 "lgr 3, %0\n\t" // buf
46 : : "a" (buf)
/external/kmod/shared/
H A Dstrbuf.c31 static bool buf_grow(struct strbuf *buf, size_t newsize) argument
36 if (newsize <= buf->size)
44 tmp = realloc(buf->bytes, sz);
47 buf->bytes = tmp;
48 buf->size = sz;
52 void strbuf_init(struct strbuf *buf) argument
54 buf->bytes = NULL;
55 buf->size = 0;
56 buf->used = 0;
59 void strbuf_release(struct strbuf *buf) argument
64 strbuf_steal(struct strbuf *buf) argument
77 strbuf_str(struct strbuf *buf) argument
85 strbuf_pushchar(struct strbuf *buf, char ch) argument
94 strbuf_pushchars(struct strbuf *buf, const char *str) argument
112 strbuf_popchar(struct strbuf *buf) argument
118 strbuf_popchars(struct strbuf *buf, unsigned n) argument
124 strbuf_clear(struct strbuf *buf) argument
[all...]
H A Dstrbuf.h14 void strbuf_init(struct strbuf *buf);
15 void strbuf_release(struct strbuf *buf);
16 void strbuf_clear(struct strbuf *buf);
19 char *strbuf_steal(struct strbuf *buf);
25 const char *strbuf_str(struct strbuf *buf);
27 bool strbuf_pushchar(struct strbuf *buf, char ch);
28 unsigned strbuf_pushchars(struct strbuf *buf, const char *str);
29 void strbuf_popchar(struct strbuf *buf);
30 void strbuf_popchars(struct strbuf *buf, unsigned n);
/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.members/
H A Dstr.pass.cpp23 std::stringbuf buf("testing");
24 assert(buf.str() == "testing");
25 buf.str("another test");
26 assert(buf.str() == "another test");
29 std::wstringbuf buf(L"testing");
30 assert(buf.str() == L"testing");
31 buf.str(L"another test");
32 assert(buf.str() == L"another test");
/external/ltp/tools/top-LTP/proc/
H A Dstatus.c14 static char buf[4] = " "; local
16 buf[0] = task->state;
19 buf[1] = 'W';
21 buf[1] = ' ';
24 buf[2] = '<';
26 buf[2] = 'N';
28 buf[2] = ' ';
30 return (buf);
/external/webrtc/webrtc/base/
H A Dbyteorder_unittest.cc20 uint8_t buf[8] = {0u, 0u, 0u, 0u, 0u, 0u, 0u, 0u}; local
21 Set8(buf, 0, 0xfb);
22 Set8(buf, 1, 0x12);
23 EXPECT_EQ(0xfb, buf[0]);
24 EXPECT_EQ(0x12, buf[1]);
25 SetBE16(buf, 0x1234);
26 EXPECT_EQ(0x12, buf[0]);
27 EXPECT_EQ(0x34, buf[1]);
28 SetLE16(buf, 0x1234);
29 EXPECT_EQ(0x34, buf[
63 uint8_t buf[8]; local
[all...]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
H A DBaseDexBuffer.java39 @Nonnull /* package private */ final byte[] buf; field in class:BaseDexBuffer
42 public BaseDexBuffer(@Nonnull byte[] buf) { argument
43 this(buf, 0);
45 public BaseDexBuffer(@Nonnull byte[] buf, int offset) { argument
46 this.buf = buf;
51 byte[] buf = this.buf;
53 int result = (buf[offset] & 0xff) |
54 ((buf[offse
[all...]
/external/openssh/
H A Dsshbuf.c32 sshbuf_check_sanity(const struct sshbuf *buf) argument
35 if (__predict_false(buf == NULL ||
36 (!buf->readonly && buf->d != buf->cd) ||
37 buf->refcount < 1 || buf->refcount > SSHBUF_REFS_MAX ||
38 buf->cd == NULL ||
39 (buf->dont_free && (buf
54 sshbuf_maybe_pack(struct sshbuf *buf, int force) argument
119 sshbuf_fromb(struct sshbuf *buf) argument
148 sshbuf_free(struct sshbuf *buf) argument
189 sshbuf_reset(struct sshbuf *buf) argument
210 sshbuf_max_size(const struct sshbuf *buf) argument
216 sshbuf_alloc(const struct sshbuf *buf) argument
222 sshbuf_parent(const struct sshbuf *buf) argument
228 sshbuf_refcount(const struct sshbuf *buf) argument
234 sshbuf_set_max_size(struct sshbuf *buf, size_t max_size) argument
273 sshbuf_len(const struct sshbuf *buf) argument
281 sshbuf_avail(const struct sshbuf *buf) argument
289 sshbuf_ptr(const struct sshbuf *buf) argument
297 sshbuf_mutable_ptr(const struct sshbuf *buf) argument
305 sshbuf_check_reserve(const struct sshbuf *buf, size_t len) argument
321 sshbuf_reserve(struct sshbuf *buf, size_t len, u_char **dpp) argument
374 sshbuf_consume(struct sshbuf *buf, size_t len) argument
391 sshbuf_consume_end(struct sshbuf *buf, size_t len) argument
[all...]
/external/clang/test/Sema/
H A Dbuiltin-longjmp.c17 jmp_buf buf; variable
26 __builtin_longjmp(buf, 1); // expected-error {{__builtin_longjmp is not supported for the current target}}
32 if (!__builtin_setjmp(buf)) // expected-error {{__builtin_setjmp is not supported for the current target}}
/external/compiler-rt/test/asan/TestCases/Posix/
H A Dstrerror_r_test.cc10 char buf[1024]; local
11 char *res = (char *)strerror_r(300, buf, sizeof(buf));
/external/dtc/tests/
H A Dmangle-layout.c33 char *buf; member in struct:bufstate
37 static void expand_buf(struct bufstate *buf, int newsize) argument
39 buf->buf = realloc(buf->buf, newsize);
40 if (!buf->buf)
42 buf->size = newsize;
45 static void new_header(struct bufstate *buf, in argument
65 add_block(struct bufstate *buf, int version, char block, const void *fdt) argument
127 struct bufstate buf = {NULL, 0}; local
[all...]
/external/libpng/contrib/tools/
H A Dpng-fix-itxt.c45 unsigned char buf[MAX_LENGTH]; local
62 GETBREAK; buf[0] = c; length = c; length <<= 8;
63 GETBREAK; buf[1] = c; length += c; length <<= 8;
64 GETBREAK; buf[2] = c; length += c; length <<= 8;
65 GETBREAK; buf[3] = c; length += c;
68 GETBREAK; buf[4] = c;
69 GETBREAK; buf[5] = c;
70 GETBREAK; buf[6] = c;
71 GETBREAK; buf[7] = c;
75 if (buf[
[all...]

Completed in 980 milliseconds

1234567891011>>