Home | History | Annotate | Download | only in ftruncate

Lines Matching refs:TESTFILE

80 #define TESTFILE	"testfile"	/* file under test */
89 int fd; /* file descriptor of testfile */
90 char tst_buff[BUF_SIZE]; /* buffer to hold testfile contents */
101 int rbytes, i; /* bytes read from testfile */
102 int read_len; /* total no. of bytes read from testfile */
122 "ftruncate(%s) to size %d failed", TESTFILE,
127 * Get the testfile information using
133 TESTFILE, errno);
139 * Set the file pointer of testfile to the
145 TESTFILE, errno);
148 /* Read the testfile from the beginning. */
156 * testfile to a size TRUNC_LEN2.
161 * Get the testfile information using
167 TESTFILE, errno);
173 * Set the file pointer of testfile to the
174 * offset TRUNC_LEN1 of testfile.
179 TESTFILE, errno);
182 /* Read the testfile contents till EOF */
193 * Check for expected size of testfile after
208 "on %s Failed", TESTFILE);
212 "on %s successful", TESTFILE);
221 "on %s Failed", TESTFILE);
225 "on %s successful", TESTFILE);
244 int wbytes; /* bytes written to testfile */
245 int write_len = 0; /* total no. of bytes written to testfile */
258 fd = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE);
263 tst_brkm(TBROK, cleanup, "write(%s) failed", TESTFILE);
274 * Close the testfile.
275 * Remove the test directory and testfile created in the setup.
280 /* Close the testfile after writing data into it */
282 tst_brkm(TFAIL | TERRNO, NULL, "close(%s) failed", TESTFILE);