/external/ltp/testcases/kernel/syscalls/rename/ |
rename13.c | 77 struct stat buf1, buf2; variable in typeref:struct: 116 if (stat(mname, &buf2) == -1) { 130 if (buf2.st_dev != olddev || buf2.st_ino != oldino) {
|
rename06.c | 75 struct stat buf1, buf2; variable in typeref:struct: 155 if (stat(mdir, &buf2) != -1) { 162 if (stat(mdir, &buf2) == -1) { 169 olddev1 = buf2.st_dev; 170 oldino1 = buf2.st_ino;
|
rename03.c | 82 struct stat buf1, buf2; variable in typeref:struct: 132 if (stat(TC[i].name2, &buf2) == -1) { 142 if (buf2.st_dev != *TC[i].olddev || 143 buf2.st_ino != *TC[i].oldino) { 153 if (stat(fname, &buf2) != -1) {
|
/external/toybox/toys/posix/ |
cmp.c | 35 char *buf2 = toybuf+size; local 50 len2 = readall(fd, buf2, size); 54 if (toybuf[i] != buf2[i]) { 57 printf("%ld %o %o\n", byte_no, toybuf[i], buf2[i]);
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldByteArrayInputStreamTest.java | 105 byte[] buf2 = new byte[100]; 111 is.read(buf2, 0, buf2.length); 114 buf1.length).equals(new String(buf2, 0, buf2.length))); 182 byte[] buf2 = new byte[10]; 187 is.read(buf2, 0, 10); 190 .equals(new String(buf2, 0, buf2.length)));
|
OldPushbackInputStreamTest.java | 192 byte[] buf2 = new byte[25]; 193 pis.read(buf2, 0, buf2.length); 194 assertTrue("b) Incorrect bytes read", new String(buf2) 204 byte[] buf2 = str2.getBytes(); 208 tobj.unread(buf2); 211 tobj.unread(buf2); 220 tobj.read(buf2); 244 byte[] buf2 = (str2 + str2 + str2).getBytes(); 248 tobj.unread(buf2, 15, 10) [all...] |
/bionic/tests/ |
sys_uio_test.cpp | 27 char buf2[] = "world"; local 28 iovec ios[] = { { buf1, 5 }, { buf2, 5 } }; 35 memset(buf2, '2', sizeof(buf2)); 38 buf1[5] = buf2[5] = '\0'; 40 ASSERT_STREQ("world", buf2);
|
/development/tools/line_endings/ |
line_endings.c | 10 static void unix_to_dos(char* buf2, const char* buf); 84 char buf2[(BUFSIZE*2)+3]; local 85 unix_to_dos(buf2, buf); 86 strcpy(node->buf, buf2); 140 unix_to_dos(char* buf2, const char* buf) 143 char* q = buf2;
|
/external/valgrind/memcheck/tests/amd64/ |
fxsave-amd64.c | 160 unsigned char* buf2 = memalign16(512); local 169 memset(buf2, 0x55, 512); 180 do_fxsave(buf2, 0); 182 show(buf2, xx); 193 memset(buf2, 0x55, 512); 204 do_fxsave(buf2, 1); 206 show(buf2, xx); 215 free(buf1); free(buf2); free(buf3);
|
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
res_mkupdate.c | 117 char buf2[MAXDNAME];
local 241 if (!getword_str(buf2, sizeof buf2, &startp, endp))
243 if (!inet_aton(buf2, &ina))
255 if (!getword_str(buf2, sizeof buf2, &startp, endp))
257 n = dn_comp(buf2, cp, buflen, dnptrs, lastdnptr);
267 if (!getword_str(buf2, sizeof buf2, &startp,
270 n = dn_comp(buf2, cp, buflen, [all...] |
/external/vboot_reference/tests/ |
vb21_common_tests.c | 260 uint8_t *buf, *buf2; local 286 buf2 = malloc(buf_size); 287 memcpy(buf2, buf, buf_size); 295 memcpy(buf, buf2, buf_size); 299 memcpy(buf, buf2, buf_size); 304 memcpy(buf, buf2, buf_size); 310 memcpy(buf, buf2, buf_size); 316 memcpy(buf, buf2, buf_size); 322 memcpy(buf, buf2, buf_size); 331 memcpy(buf, buf2, buf_size) 387 uint8_t *buf, *buf2; local [all...] |
tlcl_tests.c | 110 uint8_t buf[32], buf2[32]; local 132 TEST_EQ(TlclSendReceive(buf, buf2, sizeof(buf2)), 0, "SendReceive"); 139 TEST_EQ(TlclSendReceive(buf, buf2, sizeof(buf2)), VBERROR_SIMULATED, 145 TEST_EQ(TlclSendReceive(buf, buf2, sizeof(buf2)), 123, 273 uint8_t buf[kPcrDigestLength], buf2[kPcrDigestLength]; local 284 TEST_EQ(TlclExtend(1, buf, buf2), 0, "Extend");
|
/prebuilts/go/darwin-x86/test/fixedbugs/ |
issue7690.go | 22 buf2 := make([]byte, 1000) 25 n := runtime.Stack(buf2, false) // CALL is followed by load of result from stack 28 buf2 = buf2[:n] 36 m2 := re.FindStringSubmatch(string(buf2)) 47 println(string(buf2))
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
issue7690.go | 22 buf2 := make([]byte, 1000) 25 n := runtime.Stack(buf2, false) // CALL is followed by load of result from stack 28 buf2 = buf2[:n] 36 m2 := re.FindStringSubmatch(string(buf2)) 47 println(string(buf2))
|
/external/valgrind/memcheck/tests/x86/ |
fxsave.c | 107 unsigned char* buf2 = memalign16(512); local 113 memset(buf2, 0x55, 512); 124 do_fxsave(buf2); 126 show(buf2, xx); 134 free(buf1); free(buf2); free(buf3);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
OldStringBufferTest.java | 49 StringBuffer buf2 = new StringBuffer(""); local 51 buf2.getChars(-1, 0, new char[5], 2); 58 buf2.getChars(0, -1, new char[5], 2); 65 buf2.getChars(0, -1, new char[5], 2); 72 buf2.getChars(2, 1, new char[5], 2); 79 buf2.getChars(0, 6, new char[5], 2); 86 buf2.getChars(0, 6, new char[10], 5);
|
/external/ltp/testcases/kernel/io/direct_io/ |
diotest_routines.c | 116 char buf1[BUFSIZ], buf2[BUFSIZ]; local 133 ret2 = read(fd2, buf2, BUFSIZ); 143 if (strncmp(&buf1[i], &buf2[i], 1)) { 149 f2, i, buf2[i], 150 isprint(buf2[i]) ? buf2[i] : '.');
|
diotest4.c | 200 char *buf0, *buf1, *buf2; local 236 if ((buf2 = valloc(bufsize)) == NULL) { 237 tst_brkm(TBROK, cleanup, "valloc() buf2 failed: %s", 266 if (write(fd, buf2, 4096) == -1) { 276 ret = runtest_f(fd, buf2, offset, count, EINVAL, 3, "odd count"); 293 ret = read(fd, buf2, count); 309 ret = runtest_f(newfd, buf2, offset, count, EBADF, 5, "negative fd"); 321 ret = runtest_f(newfd, buf2, offset, count, EBADF, 6, 336 ret = runtest_f(fd, buf2, offset, count, EBADF, 7, "closed fd"); 349 ret = runtest_s(newfd, buf2, offset, count, 9, "/dev/null") [all...] |
/external/kmod/testsuite/ |
test-scratchbuf.c | 31 char buf2[3 + 1]; local 38 scratchbuf_init(&sbuf, buf2, sizeof(buf2));
|
/external/swiftshader/third_party/subzero/crosstest/ |
mem_intrin_main.cpp | 19 uint8_t buf2[256]; local 24 int llc_result = test_func(buf, buf2, init_val, len); \ 25 int sz_result = Subzero_::test_func(buf, buf2, init_val, len); \
|
/frameworks/base/rs/java/android/renderscript/ |
ScriptC.java | 98 byte[] buf2 = new byte[pgm.length * 2]; 99 System.arraycopy(pgm, 0, buf2, 0, pgm.length); 100 pgm = buf2;
|
/device/google/marlin/dataservices/datatop/src/ |
datatop_str.h | 57 int dt_read_line(char *buf1, int len1, const char *buf2, int len2, int start);
|
/external/guava/guava-tests/test/com/google/common/io/ |
CharSequenceReaderTest.java | 212 CharBuffer buf2 = CharBuffer.allocate(expected.length()); local 213 assertEquals(expected.length() == 0 ? -1 : expected.length(), reader.read(buf2)); 214 buf2.flip(); 215 assertEquals(expected, buf2.toString()); 220 buf2 = CharBuffer.allocate(5); 222 while (reader.read(buf2) != -1) { 223 buf2.flip(); 224 builder.append(buf2); 225 buf2.clear();
|
/external/icu/icu4c/source/tools/gencolusb/ |
extract_unsafe_backwards.cpp | 84 char buf2[2048]; local 85 int32_t len2 = pattern.extract(0, pattern.length(), buf2, "utf-8"); 86 buf2[len2]=0; 87 fprintf(stderr,"===\n%s\n===\n", buf2);
|
/external/libavc/decoder/ |
ih264d_mem_request.h | 60 void * buf2; /** memory location for buf2 */ member in struct:PicMemBlock 68 UWORD32 u4_size2; /** Size of the buf2 in PicMemBlock */
|