Home
last modified time | relevance | path

Searched refs:TRUNC_LEN (Results 1 – 3 of 3) sorted by relevance

/external/ltp/testcases/kernel/syscalls/truncate/
Dtruncate03.c67 #define TRUNC_LEN 256 macro
77 { TEST_FILE1, TRUNC_LEN, EACCES },
78 { TEST_FILE2, TRUNC_LEN, ENOTDIR },
80 { NULL, TRUNC_LEN, EFAULT },
81 { (char *)-1, TRUNC_LEN, EFAULT },
83 { long_pathname, TRUNC_LEN, ENAMETOOLONG },
84 { "", TRUNC_LEN, ENOENT },
85 { TEST_DIR1, TRUNC_LEN, EISDIR },
87 { TEST_SYM1, TRUNC_LEN, ELOOP }
Dtruncate01.c86 #define TRUNC_LEN 256 /* truncation length */ macro
112 TEST(truncate(TESTFILE, TRUNC_LEN)); in main()
117 TESTFILE, TRUNC_LEN, TEST_ERRNO, in main()
136 if (file_length != TRUNC_LEN) { in main()
141 TRUNC_LEN); in main()
145 TESTFILE, TRUNC_LEN); in main()
/external/ltp/testcases/kernel/syscalls/ftruncate/
Dftruncate01.c84 #define TRUNC_LEN 256 /* truncation length */ macro
111 TEST(ftruncate(fildes, TRUNC_LEN)); in main()
134 if (file_length != TRUNC_LEN) { in main()
138 (int64_t) file_length, TRUNC_LEN); in main()