/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.dg/ |
H A D | pr30473.c | 9 foo (char *buf1, char *buf2) argument 12 sprintf (buf2, "%s");
|
H A D | builtin-stringop-chk-1.c | 19 char buf2[20]; local 23 memcpy (&buf2[19], "ab", 1); 24 memcpy (&buf2[19], "ab", 2); /* { dg-warning "will always overflow" "memcpy" } */ 25 vx = mempcpy (&buf2[19], "ab", 1); 26 vx = mempcpy (&buf2[19], "ab", 2); /* { dg-warning "will always overflow" "mempcpy" } */ 27 memmove (&buf2[18], &buf1[10], 2); 28 memmove (&buf2[18], &buf1[10], 3); /* { dg-warning "will always overflow" "memmove" } */ 29 memset (&buf2[16], 'a', 4); 30 memset (&buf2[15], 'b', 6); /* { dg-warning "will always overflow" "memset" } */ 31 strcpy (&buf2[1 [all...] |
H A D | pr48144.c | 11 int buf2[8]; local 15 memcpy (buf2, data + i, data_len);
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.target/powerpc/ |
H A D | rs6000-fpint-2.c | 8 char buf2 [32][1024]; local 9 bar (buf2 [(int) x]);
|
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.dg/ |
H A D | pr30473.c | 9 foo (char *buf1, char *buf2) argument 12 sprintf (buf2, "%s");
|
H A D | builtin-stringop-chk-1.c | 19 char buf2[20]; local 23 memcpy (&buf2[19], "ab", 1); 24 memcpy (&buf2[19], "ab", 2); /* { dg-warning "will always overflow" "memcpy" } */ 25 vx = mempcpy (&buf2[19], "ab", 1); 26 vx = mempcpy (&buf2[19], "ab", 2); /* { dg-warning "will always overflow" "mempcpy" } */ 27 memmove (&buf2[18], &buf1[10], 2); 28 memmove (&buf2[18], &buf1[10], 3); /* { dg-warning "will always overflow" "memmove" } */ 29 memset (&buf2[16], 'a', 4); 30 memset (&buf2[15], 'b', 6); /* { dg-warning "will always overflow" "memset" } */ 31 strcpy (&buf2[1 [all...] |
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.target/powerpc/ |
H A D | rs6000-fpint-2.c | 8 char buf2 [32][1024]; local 9 bar (buf2 [(int) x]);
|
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/testsuite/gdb.reverse/ |
H A D | i386-sse-reverse.c | 27 char buf2[] = {32, 33, 34, 35, 36, 37, 38, 39, local 32 asm ("movupd %0, %%xmm2":"=m"(buf2)); 82 char buf2[] = {32, 33, 34, 35, 36, 37, 38, 39, local 87 asm ("movupd %0, %%xmm2":"=m"(buf2));
|
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/ |
H A D | readlink2.c | 14 char buf2[1024]; local 34 if (getcwd (buf2, sizeof (buf2)) != buf2) 57 if (buf2[strlen (buf2) - 1] != '/') 58 strcat (buf2, "/"); 59 strcat (buf2, argv[0]); 60 if (strcmp (buf2, buf) != 0) 62 printf ("%s != %s\n", buf, buf2); [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.c-torture/execute/builtins/ |
H A D | mempcpy-2.c | 14 char *buf2 = (char *) (buf1 + 32); variable 90 if (mempcpy (buf2, "ABCDEFGHI", 9) != buf2 + 9 91 || memcmp (buf2, "ABCDEFGHI\0", 11)) 94 if (mempcpy (buf2, "abcdefghijklmnopq", 17) != buf2 + 17 95 || memcmp (buf2, "abcdefghijklmnopq\0", 19)) 98 if (__builtin_mempcpy (buf4, "ABCDEF", 6) != buf2 + 6 99 || memcmp (buf2, "ABCDEFghijklmnopq\0", 19)) 102 if (__builtin_mempcpy (buf4, "a", 1) != buf2 [all...] |
H A D | memcpy-chk.c | 82 char *buf2 = (char *) (buf1 + 32); variable 168 if (memcpy (buf2, "ABCDEFGHI", 9) != buf2 169 || memcmp (buf2, "ABCDEFGHI\0", 11)) 172 if (memcpy (buf2, "abcdefghijklmnopq", 17) != buf2 173 || memcmp (buf2, "abcdefghijklmnopq\0", 19)) 176 if (__builtin_memcpy (buf4, "ABCDEF", 6) != buf2 177 || memcmp (buf2, "ABCDEFghijklmnopq\0", 19)) 180 if (__builtin_memcpy (buf4, "a", 1) != buf2 251 struct A { char buf1[10]; char buf2[10]; } a; member in struct:A 317 struct A { char buf1[10]; char buf2[10]; } a; member in struct:A [all...] |
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.c-torture/execute/builtins/ |
H A D | mempcpy-2.c | 14 char *buf2 = (char *) (buf1 + 32); variable 90 if (mempcpy (buf2, "ABCDEFGHI", 9) != buf2 + 9 91 || memcmp (buf2, "ABCDEFGHI\0", 11)) 94 if (mempcpy (buf2, "abcdefghijklmnopq", 17) != buf2 + 17 95 || memcmp (buf2, "abcdefghijklmnopq\0", 19)) 98 if (__builtin_mempcpy (buf4, "ABCDEF", 6) != buf2 + 6 99 || memcmp (buf2, "ABCDEFghijklmnopq\0", 19)) 102 if (__builtin_mempcpy (buf4, "a", 1) != buf2 [all...] |
H A D | memcpy-chk.c | 82 char *buf2 = (char *) (buf1 + 32); variable 168 if (memcpy (buf2, "ABCDEFGHI", 9) != buf2 169 || memcmp (buf2, "ABCDEFGHI\0", 11)) 172 if (memcpy (buf2, "abcdefghijklmnopq", 17) != buf2 173 || memcmp (buf2, "abcdefghijklmnopq\0", 19)) 176 if (__builtin_memcpy (buf4, "ABCDEF", 6) != buf2 177 || memcmp (buf2, "ABCDEFghijklmnopq\0", 19)) 180 if (__builtin_memcpy (buf4, "a", 1) != buf2 251 struct A { char buf1[10]; char buf2[10]; } a; member in struct:A 317 struct A { char buf1[10]; char buf2[10]; } a; member in struct:A [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/libgomp/testsuite/libgomp.c/ |
H A D | loop-9.c | 4 char buf2[8] = "23456789"; variable 13 for (q = &buf2[0]; q <= buf2 + 7; q++) 15 if (p != &buf[8] || q != buf2 + 8 || sum != 576)
|
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.c-torture/execute/ |
H A D | strncmp-1.c | 47 unsigned char *buf1, *buf2; local 71 buf2 = p2; 81 test (buf1, buf2, MAX_LENGTH, 0); 82 test (buf1, buf2, len, 0); 87 test (buf1, buf2, MAX_LENGTH, +1); 88 test (buf1, buf2, len, 0); 93 test (buf1, buf2, MAX_LENGTH, -1); 94 test (buf1, buf2, len, 0); 100 test (buf1, buf2, MAX_LENGTH, -1); 101 test (buf1, buf2, le [all...] |
H A D | strcmp-1.c | 47 unsigned char *buf1, *buf2; local 71 buf2 = p2; 81 test (buf1, buf2, 0); 86 test (buf1, buf2, +1); 91 test (buf1, buf2, -1); 97 test (buf1, buf2, -1); 103 test (buf1, buf2, +1); 109 test (buf1, buf2, -1); 115 test (buf1, buf2, +1); 121 test (buf1, buf2, [all...] |
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.c-torture/execute/ |
H A D | strncmp-1.c | 47 unsigned char *buf1, *buf2; local 71 buf2 = p2; 81 test (buf1, buf2, MAX_LENGTH, 0); 82 test (buf1, buf2, len, 0); 87 test (buf1, buf2, MAX_LENGTH, +1); 88 test (buf1, buf2, len, 0); 93 test (buf1, buf2, MAX_LENGTH, -1); 94 test (buf1, buf2, len, 0); 100 test (buf1, buf2, MAX_LENGTH, -1); 101 test (buf1, buf2, le [all...] |
H A D | strcmp-1.c | 47 unsigned char *buf1, *buf2; local 71 buf2 = p2; 81 test (buf1, buf2, 0); 86 test (buf1, buf2, +1); 91 test (buf1, buf2, -1); 97 test (buf1, buf2, -1); 103 test (buf1, buf2, +1); 109 test (buf1, buf2, -1); 115 test (buf1, buf2, +1); 121 test (buf1, buf2, [all...] |
/netbsd-6-1-5-RELEASE/external/gpl2/lvm2/dist/include/ |
H A D | lvm-file.h | 52 #define is_same_inode(buf1, buf2) \ 53 ((buf1).st_ino == (buf2).st_ino && \ 54 (buf1).st_dev == (buf2).st_dev)
|
/netbsd-6-1-5-RELEASE/external/gpl2/lvm2/dist/lib/misc/ |
H A D | lvm-file.h | 52 #define is_same_inode(buf1, buf2) \ 53 ((buf1).st_ino == (buf2).st_ino && \ 54 (buf1).st_dev == (buf2).st_dev)
|
/netbsd-6-1-5-RELEASE/external/gpl2/xcvs/dist/src/ |
H A D | ms-buffer.h | 20 struct buffer *buf, struct buffer *buf2);
|
/netbsd-6-1-5-RELEASE/games/battlestar/ |
H A D | getcom.c | 76 getword(char *buf1, char *buf2, int flag) argument 85 *buf2 = 0; 92 *buf2++ = 96 *buf2++ = *buf1++; 101 *buf2++ = 105 *buf2++ = *buf1++; 109 *buf2++ = *buf1++; 116 *buf2++ = *buf1++; 117 *buf2 = '\0';
|
/netbsd-6-1-5-RELEASE/tests/lib/libc/string/ |
H A D | t_strcmp.c | 109 char buf2[10] = "xxy"; local 112 ATF_CHECK(strcmp(buf2, buf2) == 0); 118 ATF_CHECK(strcmp(buf1 + 0, buf2 + 0) < 0); 119 ATF_CHECK(strcmp(buf1 + 1, buf2 + 1) < 0); 120 ATF_CHECK(strcmp(buf1 + 2, buf2 + 2) < 0); 121 ATF_CHECK(strcmp(buf1 + 3, buf2 + 3) == 0); 123 ATF_CHECK(strcmp(buf2 + 0, buf1 + 0) > 0); 124 ATF_CHECK(strcmp(buf2 + 1, buf1 + 1) > 0); 125 ATF_CHECK(strcmp(buf2 [all...] |
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.c-torture/compile/ |
H A D | pr36245.c | 2 extern char buf2[10]; 15 w = buf2[p - buf1];
|
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/ |
H A D | coremaker.c | 40 char *buf2; variable 47 /* Note that if the mapping fails for any reason, we set buf2 72 buf2 = (char *) -1; 77 /* Now map the file into our address space as buf2 */ 79 buf2 = (char *) mmap (0, MAPSIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); 80 if (buf2 == (char *) -1) 92 if (buf1[j] != buf2[j]) 95 buf2 = (char *) -1; 99 /* Touch buf2 so kernel writes it out into 'core'. */ 100 buf2[ [all...] |