Home
last modified time | relevance | path

Searched refs:tsttxt1 (Results 1 – 10 of 10) sorted by relevance

/netbsd/external/gpl3/gdb/dist/sim/testsuite/sim/cris/c/
H A Dtruncate1.c17 const char tsttxt1[] in main() local
20 char buf[sizeof (tsttxt1) + sizeof (tsttxt2) - 1] = ""; in main()
24 || fwrite (tsttxt1, 1, strlen (tsttxt1), f) != strlen (tsttxt1) in main()
31 if (truncate (fname, strlen(tsttxt1) - 10) != 0) in main()
39 || fread (buf, 1, sizeof (buf), f) != strlen (tsttxt1) - 10 in main()
40 || strncmp (buf, tsttxt1, strlen (tsttxt1) - 10) != 0 in main()
H A Dftruncate1.c21 const char tsttxt1[] in main() local
24 char buf[sizeof (tsttxt1) + sizeof (tsttxt2) - 1] = ""; in main()
28 || fwrite (tsttxt1, 1, strlen (tsttxt1), f) != strlen (tsttxt1)) in main()
34 if (ftruncate (fileno (f), strlen(tsttxt1) - 20) != 0) in main()
42 || fread (buf, 1, sizeof (buf), f) != strlen (tsttxt1) - 20 in main()
43 || strncmp (buf, tsttxt1, strlen (tsttxt1) - 20) != 0 in main()
H A Dappend1.c15 const char tsttxt1[] in main() local
18 char buf[sizeof (tsttxt1) + sizeof (tsttxt2) - 1] = ""; in main()
22 || fwrite (tsttxt1, 1, strlen (tsttxt1), f) != strlen (tsttxt1) in main()
41 || strncmp (buf, tsttxt1, strlen (tsttxt1)) != 0 in main()
42 || strncmp (buf + strlen (tsttxt1), tsttxt2, strlen (tsttxt2)) != 0 in main()
H A Dfdopen1.c22 const char tsttxt1[] in main() local
24 char buf[sizeof (tsttxt1)] = ""; in main()
32 || fwrite (tsttxt1, 1, strlen (tsttxt1), f) != strlen (tsttxt1)) in main()
44 || fread (buf, 1, sizeof (buf), f) != strlen (tsttxt1) in main()
45 || strcmp (buf, tsttxt1) != 0 in main()
H A Dfdopen2.c24 const char tsttxt1[] in main() local
26 char buf[sizeof (tsttxt1)] = ""; in main()
31 || fwrite (tsttxt1, 1, strlen (tsttxt1), f) != strlen (tsttxt1)) in main()
/netbsd/external/gpl3/gdb.old/dist/sim/testsuite/sim/cris/c/
H A Dtruncate1.c17 const char tsttxt1[] in main() local
20 char buf[sizeof (tsttxt1) + sizeof (tsttxt2) - 1] = ""; in main()
24 || fwrite (tsttxt1, 1, strlen (tsttxt1), f) != strlen (tsttxt1) in main()
31 if (truncate (fname, strlen(tsttxt1) - 10) != 0) in main()
39 || fread (buf, 1, sizeof (buf), f) != strlen (tsttxt1) - 10 in main()
40 || strncmp (buf, tsttxt1, strlen (tsttxt1) - 10) != 0 in main()
H A Dftruncate1.c21 const char tsttxt1[] in main() local
24 char buf[sizeof (tsttxt1) + sizeof (tsttxt2) - 1] = ""; in main()
28 || fwrite (tsttxt1, 1, strlen (tsttxt1), f) != strlen (tsttxt1)) in main()
34 if (ftruncate (fileno (f), strlen(tsttxt1) - 20) != 0) in main()
42 || fread (buf, 1, sizeof (buf), f) != strlen (tsttxt1) - 20 in main()
43 || strncmp (buf, tsttxt1, strlen (tsttxt1) - 20) != 0 in main()
H A Dappend1.c15 const char tsttxt1[] in main() local
18 char buf[sizeof (tsttxt1) + sizeof (tsttxt2) - 1] = ""; in main()
22 || fwrite (tsttxt1, 1, strlen (tsttxt1), f) != strlen (tsttxt1) in main()
41 || strncmp (buf, tsttxt1, strlen (tsttxt1)) != 0 in main()
42 || strncmp (buf + strlen (tsttxt1), tsttxt2, strlen (tsttxt2)) != 0 in main()
H A Dfdopen1.c22 const char tsttxt1[] in main() local
24 char buf[sizeof (tsttxt1)] = ""; in main()
32 || fwrite (tsttxt1, 1, strlen (tsttxt1), f) != strlen (tsttxt1)) in main()
44 || fread (buf, 1, sizeof (buf), f) != strlen (tsttxt1) in main()
45 || strcmp (buf, tsttxt1) != 0 in main()
H A Dfdopen2.c24 const char tsttxt1[] in main() local
26 char buf[sizeof (tsttxt1)] = ""; in main()
31 || fwrite (tsttxt1, 1, strlen (tsttxt1), f) != strlen (tsttxt1)) in main()