fix signedness of pgoff argument to remap_file_pages
both the kernel and glibc agree that this argument is unsigned; the incorrect type ssize_t came from erroneous man pages.
This commit is contained in:
+1
-1
@@ -33,7 +33,7 @@ int munlockall (void);
|
||||
|
||||
#ifdef _GNU_SOURCE
|
||||
void *mremap (void *, size_t, size_t, int, ...);
|
||||
int remap_file_pages (void *, size_t, int, ssize_t, int);
|
||||
int remap_file_pages (void *, size_t, int, size_t, int);
|
||||
#endif
|
||||
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
|
||||
Reference in New Issue
Block a user