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 = 0; /* total no. of bytes read from testfile */
121 "ftruncate(%s) to size %d failed", TESTFILE,
126 * Get the testfile information using
132 TESTFILE, errno);
138 * Set the file pointer of testfile to the
144 TESTFILE, errno);
147 /* Read the testfile from the beginning. */
155 * testfile to a size TRUNC_LEN2.
160 * Get the testfile information using
166 TESTFILE, errno);
172 * Set the file pointer of testfile to the
173 * offset TRUNC_LEN1 of testfile.
178 TESTFILE, errno);
181 /* Read the testfile contents till EOF */
192 * Check for expected size of testfile after
207 "on %s Failed", TESTFILE);
211 "on %s successful", TESTFILE);
220 "on %s Failed", TESTFILE);
224 "on %s successful", TESTFILE);
243 int wbytes; /* bytes written to testfile */
244 int write_len = 0; /* total no. of bytes written to testfile */
257 fd = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE);
262 tst_brkm(TBROK, cleanup, "write(%s) failed", TESTFILE);
273 * Close the testfile.
274 * Remove the test directory and testfile created in the setup.
279 /* Close the testfile after writing data into it */
281 tst_brkm(TFAIL | TERRNO, NULL, "close(%s) failed", TESTFILE);