Home
last modified time | relevance | path

Searched refs:TEMP_FILE (Results 1 – 13 of 13) sorted by relevance

/external/ltp/testcases/kernel/syscalls/lseek/
Dlseek07.c82 #define TEMP_FILE "tmp_file" macro
120 TEMP_FILE); in main()
150 " errno = %d", TEMP_FILE, errno); in main()
154 if ((fildes = open(TEMP_FILE, O_RDWR)) < 0) { in main()
157 TEMP_FILE, errno); in main()
167 "error=%d", TEMP_FILE, errno); in main()
177 "file %s", TEMP_FILE); in main()
183 "file %s", TEMP_FILE); in main()
186 "lseek() on %s successful", TEMP_FILE); in main()
216 if ((fildes = open(TEMP_FILE, O_WRONLY | O_CREAT, FILE_MODE)) == -1) { in setup()
[all …]
Dlseek09.c83 #define TEMP_FILE "tmp_file" macro
116 TEMP_FILE, TEST_ERRNO, strerror(TEST_ERRNO)); in main()
137 TEMP_FILE, errno); in main()
146 "from file %s", TEMP_FILE); in main()
150 TEMP_FILE); in main()
187 if ((fildes = open(TEMP_FILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup()
190 TEMP_FILE, FILE_MODE, errno, strerror(errno)); in setup()
196 TEMP_FILE, errno, strerror(errno)); in setup()
202 TEMP_FILE, errno, strerror(errno)); in setup()
228 TEMP_FILE, errno, strerror(errno)); in cleanup()
Dlseek08.c81 #define TEMP_FILE "tmp_file" macro
113 "lseek of %s failed", TEMP_FILE); in main()
134 TEMP_FILE); in main()
137 "%s successful", TEMP_FILE); in main()
167 if ((fildes = open(TEMP_FILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup()
170 TEMP_FILE, FILE_MODE); in setup()
176 "writing to %s failed", TEMP_FILE); in setup()
182 "fstat of %s failed", TEMP_FILE); in setup()
200 TEMP_FILE, errno, strerror(errno)); in cleanup()
Dlseek06.c82 #define TEMP_FILE "tmp_file" macro
113 TEMP_FILE, TEST_ERRNO, strerror(TEST_ERRNO)); in main()
132 "on %s, error=%d", TEMP_FILE, errno); in main()
140 "from file %s", TEMP_FILE); in main()
144 "successful", TEMP_FILE); in main()
173 if ((fildes = open(TEMP_FILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup()
176 TEMP_FILE, FILE_MODE, errno, strerror(errno)); in setup()
182 TEMP_FILE, errno, strerror(errno)); in setup()
197 TEMP_FILE, errno, strerror(errno)); in cleanup()
/external/ltp/testcases/kernel/syscalls/sync/
Dsync02.c80 #define TEMP_FILE "temp_file" macro
117 TEMP_FILE, errno); in main()
127 TEMP_FILE); in main()
135 TEMP_FILE, errno); in main()
170 if ((fildes = open(TEMP_FILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup()
173 TEMP_FILE, FILE_MODE, errno, strerror(errno)); in setup()
181 TEMP_FILE); in setup()
199 TEMP_FILE, errno, strerror(errno)); in cleanup()
/external/ltp/testcases/kernel/syscalls/utime/
Dutime03.c94 #define TEMP_FILE "tmp_file" macro
166 TEST(utime(TEMP_FILE, NULL)); in main()
170 "utime(%s) failed", TEMP_FILE); in main()
190 SAFE_STAT(cleanup, TEMP_FILE, &stat_buf); in main()
201 "not set", TEMP_FILE); in main()
206 TEMP_FILE); in main()
257 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
266 SAFE_CHMOD(cleanup, TEMP_FILE, FILE_MODE); in setup()
279 SAFE_CHOWN(cleanup, TEMP_FILE, user_uid, group_gid); in setup()
Dutime04.c85 #define TEMP_FILE "tmp_file" macro
117 TEST(utime(TEMP_FILE, &times)); in main()
120 tst_resm(TFAIL|TTERRNO, "utime(%s) failed", TEMP_FILE); in main()
126 SAFE_STAT(cleanup, TEMP_FILE, &stat_buf); in main()
135 TEMP_FILE); in main()
139 TEMP_FILE); in main()
168 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
Dutime05.c88 #define TEMP_FILE "tmp_file" macro
123 TEST(utime(TEMP_FILE, &times)); in main()
126 tst_resm(TFAIL|TTERRNO, "utime(%s) failed", TEMP_FILE); in main()
132 SAFE_STAT(cleanup, TEMP_FILE, &stat_buf); in main()
141 TEMP_FILE); in main()
145 TEMP_FILE); in main()
178 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
Dutime01.c86 #define TEMP_FILE "tmp_file" macro
130 TEST(utime(TEMP_FILE, NULL)); in main()
133 tst_resm(TFAIL|TTERRNO, "utime(%s) failed", TEMP_FILE); in main()
152 SAFE_STAT(cleanup, TEMP_FILE, &stat_buf); in main()
163 TEMP_FILE); in main()
167 TEMP_FILE); in main()
196 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
Dutime02.c89 #define TEMP_FILE "tmp_file" macro
136 TEST(utime(TEMP_FILE, NULL)); in main()
139 tst_resm(TFAIL|TTERRNO, "utime(%s) failed", TEMP_FILE); in main()
158 SAFE_STAT(cleanup, TEMP_FILE, &stat_buf); in main()
169 TEMP_FILE); in main()
173 TEMP_FILE); in main()
211 fildes = SAFE_CREAT(cleanup, TEMP_FILE, FILE_MODE); in setup()
Dutime06.c55 #define TEMP_FILE "tmp_file" macro
73 {TEMP_FILE, EACCES, NULL, setup_nobody, cleanup_nobody},
75 {TEMP_FILE, EPERM, &times, setup_nobody, cleanup_nobody},
115 SAFE_TOUCH(cleanup, TEMP_FILE, 0644, NULL); in setup()
/external/ltp/testcases/kernel/syscalls/llseek/
Dllseek01.c88 #define TEMP_FILE "tmp_file" macro
121 TEMP_FILE, TEST_ERRNO, strerror(TEST_ERRNO)); in main()
166 "successful", TEMP_FILE); in main()
199 if ((fildes = open(TEMP_FILE, O_RDWR | O_CREAT, FILE_MODE)) == -1) { in setup()
202 TEMP_FILE, errno, strerror(errno)); in setup()
/external/ltp/testcases/kernel/syscalls/mount/
Dmount03.c57 #define TEMP_FILE "temp_file" macro
200 snprintf(file, PATH_MAX, "%s%s", path_name, TEMP_FILE); in test_rwflag()