add clock_adjtime, remap_file_pages, and syncfs syscall wrappers
patch by Justin Cormack, with slight modification
This commit is contained in:
parent
bd261bf25e
commit
662da62eb7
6 changed files with 36 additions and 0 deletions
|
|
@ -10,6 +10,10 @@ extern "C" {
|
|||
#define __NEED_size_t
|
||||
#define __NEED_off_t
|
||||
|
||||
#if defined(_GNU_SOURCE)
|
||||
#define __NEED_ssize_t
|
||||
#endif
|
||||
|
||||
#include <bits/alltypes.h>
|
||||
|
||||
#include <bits/mman.h>
|
||||
|
|
@ -29,6 +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);
|
||||
#endif
|
||||
|
||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||
|
|
|
|||
|
|
@ -5,6 +5,10 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define __NEED_clockid_t
|
||||
|
||||
#include <bits/alltypes.h>
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
struct ntptimeval {
|
||||
|
|
@ -83,6 +87,7 @@ struct timex {
|
|||
#define MAXTC 6
|
||||
|
||||
int adjtimex(struct timex *);
|
||||
int clock_adjtime(clockid_t, struct timex *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue