control an elf file descriptor
ELF Access Library (libelf, -lelf)
() controls the ELF
library's subsequent use of the file descriptor used to create ELF descriptor
informs the library of the action
to be taken:
- This value instructs the ELF library not to perform any further I/O on the
file descriptor associated with argument
elf. For ELF descriptors opened with mode
elf_update() operations on the
descriptor will fail.
- This value instructs the ELF library to read in all necessary data
associated with ELF descriptor elf into
memory so that the underlying file descriptor can be safely closed with
must be an ELF descriptor
associated with a file system object (e.g., an
archive, an ELF file, or other data file).
Due to use of
internally, this function is a no-op for ELF objects opened in
() returns 0 on success, or
-1 if an error was detected.
- Argument elf is a descriptor for an
- Argument elf was NULL.
- Argument cmd was not recognized.
ELF_C_FDREAD operation was requested
on an ELF descriptor opened for writing.