diff options
Diffstat (limited to 'system/include')
-rw-r--r-- | system/include/bsd/sys/mman.h | 2 | ||||
-rw-r--r-- | system/include/libc/math.h | 8 | ||||
-rw-r--r-- | system/include/sys/sendfile.h | 16 |
3 files changed, 25 insertions, 1 deletions
diff --git a/system/include/bsd/sys/mman.h b/system/include/bsd/sys/mman.h index 3c92c289..3713cacd 100644 --- a/system/include/bsd/sys/mman.h +++ b/system/include/bsd/sys/mman.h @@ -155,7 +155,7 @@ int munlock __P((const void *, size_t)); int munmap __P((void *, size_t)); #ifndef _POSIX_SOURCE int madvise __P((void *, size_t, int)); -int mincore __P((const void *, size_t, char *)); +int mincore __P((const void *, size_t, unsigned char *)); int minherit __P((void *, size_t, int)); #endif diff --git a/system/include/libc/math.h b/system/include/libc/math.h index 3bd0621c..e9af660f 100644 --- a/system/include/libc/math.h +++ b/system/include/libc/math.h @@ -202,10 +202,18 @@ extern int __signbitd (double x); #define isinf(y) (fpclassify(y) == FP_INFINITE) #endif +#ifndef isinff + #define isinff isinf +#endif + #ifndef isnan #define isnan(y) (fpclassify(y) == FP_NAN) #endif +#ifndef isnanf + #define isnanf isnan +#endif + #define isnormal(y) (fpclassify(y) == FP_NORMAL) #define signbit(__x) \ ((sizeof(__x) == sizeof(float)) ? __signbitf(__x) : \ diff --git a/system/include/sys/sendfile.h b/system/include/sys/sendfile.h new file mode 100644 index 00000000..1f58f0dd --- /dev/null +++ b/system/include/sys/sendfile.h @@ -0,0 +1,16 @@ +#ifndef _SYS_SENDFILE_H +#define _SYS_SENDFILE_H + +#include <sys/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count); + +#ifdef __cplusplus +} +#endif + +#endif |