assert(fd_to >= 0);
assert(to);
+ /* Does not reposition file offset */
+
r = get_file_version(fd_from, &a);
if (r == -ESRCH)
return log_notice_errno(r, "Source file \"%s\" does not carry version information!", from);
assert(fd >= 0);
assert(ret);
+ /* Does not reposition file offset (as it uses mmap()) */
+
if (fstat(fd, &st) < 0)
return log_error_errno(errno, "Failed to stat EFI binary: %m");
#include "string-table.h"
#include "string-util.h"
+/* Note: none of these function change the file position of the provided fd, as they use pread() */
+
bool pe_header_is_64bit(const PeHeader *h) {
assert(h);