MCPcopy Create free account
hub / github.com/coreutils/coreutils / iftruncate

Function iftruncate

src/dd.c:1335–1348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1333/* Restart on EINTR from ftruncate. */
1334
1335static int
1336iftruncate (int fd, off_t length)
1337{
1338 int ret;
1339
1340 do
1341 {
1342 process_signals ();
1343 ret = ftruncate (fd, length);
1344 }
1345 while (ret < 0 && errno == EINTR);
1346
1347 return ret;
1348}
1349
1350/* Return true if STR is of the form "PATTERN" or "PATTERNDELIM...". */
1351

Callers 2

dd_copyFunction · 0.85
mainFunction · 0.85

Calls 1

process_signalsFunction · 0.70

Tested by

no test coverage detected