Truncates a file by descriptor, retrying on EINTR.
Synopsis
Declared in <folly/FileUtil.h>
int
ftruncateNoInt(
int fd,
off_t len);
Return Value
0 on success, or ‐1 on error.
Parameters
Name |
Description |
fd |
The file descriptor to truncate. |
len |
The new file length. |
Created with MrDocs