diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/sched.h | 6 | ||||
-rw-r--r-- | posix/unistd.h | 12 |
2 files changed, 10 insertions, 8 deletions
diff --git a/posix/sched.h b/posix/sched.h index ae0f634fa4..b5c44996d4 100644 --- a/posix/sched.h +++ b/posix/sched.h @@ -1,5 +1,5 @@ /* Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface. - Copyright (C) 1996 Free Software Foundation, Inc. + Copyright (C) 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -24,7 +24,9 @@ /* Get type definitions. */ #include <bits/types.h> -#include <sys/time.h> /* for struct timespec */ + +#define __need_timespec +#include <time.h> /* Get system specific constant and data structure definitions. */ #include <bits/sched.h> diff --git a/posix/unistd.h b/posix/unistd.h index 0147594f53..9e1cc8e8e0 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -273,7 +273,7 @@ extern __off_t __lseek __P ((int __fd, __off_t __offset, int __whence)); #ifndef __USE_FILE_OFFSET64 extern __off_t lseek __P ((int __fd, __off_t __offset, int __whence)); #else -extern __off_t lseek __P ((int __fd, __off_t __offset, int __whence)) +extern __off_t lseek __P ((int __fd, __off64_t __offset, int __whence)) __asm__ ("lseek64"); #endif #ifdef __USE_LARGEFILE64 @@ -304,7 +304,7 @@ extern ssize_t pread __P ((int __fd, __ptr_t __buf, size_t __nbytes, __off_t __offset)); # else extern ssize_t pread __P ((int __fd, __ptr_t __buf, size_t __nbytes, - __off_t __offset)) __asm__ ("pread64"); + __off64_t __offset)) __asm__ ("pread64"); # endif extern ssize_t __pread64 __P ((int __fd, __ptr_t __buf, size_t __nbytes, __off64_t __offset)); @@ -322,7 +322,7 @@ extern ssize_t pwrite __P ((int __fd, __const __ptr_t __buf, size_t __n, __off_t __offset)); # else extern ssize_t pwrite __P ((int __fd, __const __ptr_t __buf, size_t __n, - __off_t __offset)) __asm__ ("pwrite64"); + __off64_t __offset)) __asm__ ("pwrite64"); # endif extern ssize_t __pwrite64 __P ((int __fd, __const __ptr_t __buf, size_t __n, __off64_t __offset)); @@ -878,7 +878,7 @@ extern int getpagesize __P ((void)); #ifndef __USE_FILE_OFFSET64 extern int truncate __P ((__const char *__file, __off_t __length)); #else -extern int truncate __P ((__const char *__file, __off_t __length)) +extern int truncate __P ((__const char *__file, __off64_t __length)) __asm__ ("truncate64"); #endif #ifdef __USE_LARGEFILE64 @@ -889,7 +889,7 @@ extern int truncate64 __P ((__const char *__file, __off64_t __length)); #ifndef __USE_FILE_OFFSET64 extern int ftruncate __P ((int __fd, __off_t __length)); #else -extern int ftruncate __P ((int __fd, __off_t __length)) +extern int ftruncate __P ((int __fd, __off64_t __length)) __asm__ ("ftruncate64"); #endif #ifdef __USE_LARGEFILE64 @@ -957,7 +957,7 @@ extern long int syscall __P ((long int __sysno, ...)); # ifndef __USE_FILE_OFFSET64 extern int lockf __P ((int __fd, int __cmd, __off_t __len)); # else -extern int lockf __P ((int __fd, int __cmd, __off_t __len)) +extern int lockf __P ((int __fd, int __cmd, __off64_t __len)) __asm__ ("lockf64"); # endif # ifdef __USE_LARGEFILE64 |