Lines Matching refs:truncate
3416 /* Invokes truncate(2) and returns its errno or 0. */
3419 if (truncate(path, 10) < 0)
3478 * Checks read right: truncate and open with O_TRUNC work, unless the
3487 * Checks write right: truncate and open with O_TRUNC work, unless the
3496 * Checks "no rights" case: truncate works but all open attempts fail,
3505 TEST_F_FORK(layout1, truncate)
3560 /* Checks read, write and truncate rights: truncation works. */
3565 /* Checks read and write rights: no truncate variant works. */
3571 * Checks read and truncate rights: truncation works.
3579 /* Checks truncate right: truncate works, but can't open file. */
3590 * Checks truncate right on directory: truncate works on contained
3598 * Checks creat in dir_w: This requires the truncate right when
3623 * something else but truncate restricted: ftruncate works
3624 * truncate restricted and permitted: ftruncate works
3625 * truncate restricted and not permitted: ftruncate fails
3938 * - both ioctl and truncate still yield EBADF (not EACCES).