]> git.sesse.net Git - plocate/blob - complete_pread.h
Move complete_pread() into a separate file, to avoid the io_uring false dependency.
[plocate] / complete_pread.h
1 #ifndef COMPLETE_PREAD_H
2 #define COMPLETE_PREAD_H 1
3
4 #include <unistd.h>
5
6 // A wrapper around pread() that returns an incomplete read.
7 // Always synchronous (no io_uring).
8 void complete_pread(int fd, void *ptr, size_t len, off_t offset);
9
10 #endif  // !defined(COMPLETE_PREAD_H)