Added prototype for `unmap_and_close_s()` for non-inlining?

Fortune for shuffle3's current commit: Small curse − 小凶
progress
Avril 2 years ago
parent ecf72a7526
commit 454378acfe
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -37,6 +37,7 @@ int map_advise_rand(mmap_t* restrict ptr, int need);
typedef void* (*map_cb)(mmap_t map, void* user); typedef void* (*map_cb)(mmap_t map, void* user);
void* map_and_then(const char* file, map_cb callback, void* user); void* map_and_then(const char* file, map_cb callback, void* user);
void* map_fd_and_then(int fd, map_cb callback, void* user); void* map_fd_and_then(int fd, map_cb callback, void* user);
int unmap_and_close_s(mmap_t map, int flags);
#ifdef __cplusplus #ifdef __cplusplus
} }

@ -113,6 +113,7 @@ int open_and_alloc(const char* file, mmap_t* restrict ptr, size_t sz)
return 1; return 1;
} }
inline inline
int unmap_and_close_s(mmap_t map, int flags) int unmap_and_close_s(mmap_t map, int flags)
{ {

Loading…
Cancel
Save