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

Function is_CLONENOTSUP

src/copy-file-data.c:90–97  ·  view source on GitHub ↗

Does ERR mean the copying operation is not supported or allowed for this file or process, even though the operation was invoked correctly? */

Source from the content-addressed store, hash-verified

88/* Does ERR mean the copying operation is not supported or allowed for
89 this file or process, even though the operation was invoked correctly? */
90static bool
91is_CLONENOTSUP (int err)
92{
93 return err == ENOSYS || err == ENOTTY || is_ENOTSUP (err)
94 || err == EINVAL || err == EBADF
95 || err == EXDEV || err == ETXTBSY
96 || err == EPERM || err == EACCES;
97}
98
99/* Copy SRC_FD to DEST_FD, using the buffer *ABUF of size BUF_SIZE
100 for temporary storage, allocating the buffer lazily if *ABUF is null.

Callers 1

sparse_copyFunction · 0.85

Calls 1

is_ENOTSUPFunction · 0.85

Tested by

no test coverage detected