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

Function target_dirfd_valid

gl/lib/targetdir.h:37–41  ·  view source on GitHub ↗

Return true if FD represents success for target_directory_operand. */

Source from the content-addressed store, hash-verified

35
36/* Return true if FD represents success for target_directory_operand. */
37TARGETDIR_INLINE _GL_ATTRIBUTE_PURE bool
38target_dirfd_valid (int fd)
39{
40 return fd != -1 - (AT_FDCWD == -1);
41}
42
43_GL_INLINE_HEADER_END

Callers 4

mainFunction · 0.85
install_file_in_dirFunction · 0.85
mainFunction · 0.85
do_copyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected