Lines Matching refs:ftruncate
24 * ftruncate should be allowed to increase, decrease, or zero the
28 * Use ftruncate to shrink the file while it is mapped
29 * Use ftruncate to grow the file while it is mapped
30 * Use ftruncate to zero the size of the file while it is mapped
55 {mapsize - 8192, "ftruncate mmaped file to a smaller size"},
56 {mapsize + 1024, "ftruncate mmaped file to a larger size"},
57 {0, "ftruncate mmaped file to 0 size"},
75 TEST(ftruncate(fd, TC[i].newsize));
101 /* ftruncate the file to 16k */
102 if (ftruncate(fd, mapsize) < 0)
103 tst_brkm(TFAIL | TERRNO, cleanup, "ftruncate file failed");