Truncates a file by path, retrying on EINTR.

Synopsis

Declared in <folly/FileUtil.h>

int
truncateNoInt(
    char const* path,
    off_t len);

Return Value

0 on success, or ‐1 on error.

Parameters

Name

Description

path

Path of the file to truncate.

len

The new file length.

Created with MrDocs