include/unistd.h: merged
Also removing lseek64, pread64, pwrite64. Those functions have lost their "raison d'être", when off_t switched to 64bits. Change-Id: I5aea35f01d6d10e3d6578a70323da7be5eca315a
This commit is contained in:
@@ -36,7 +36,4 @@ void _loadname(const char *_name, message *_msgptr);
|
||||
int _len(const char *_s);
|
||||
void _begsig(int _dummy);
|
||||
|
||||
ssize_t pread64(int fd, void *buf, size_t count, u64_t where);
|
||||
ssize_t pwrite64(int fd, const void *buf, size_t count, u64_t where);
|
||||
|
||||
#endif /* _LIB_H */
|
||||
|
||||
@@ -88,7 +88,7 @@ __dead void _exit(int);
|
||||
int access(const char *, int);
|
||||
unsigned int alarm(unsigned int);
|
||||
int chdir(const char *);
|
||||
#if !defined(__minix) && (defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE))
|
||||
#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE)
|
||||
int chown(const char *, uid_t, gid_t) __RENAME(__posix_chown);
|
||||
#else
|
||||
int chown(const char *, uid_t, gid_t);
|
||||
@@ -194,7 +194,7 @@ int ftruncate(int, off_t);
|
||||
*/
|
||||
#if (_POSIX_C_SOURCE - 0) >= 199309L || (_XOPEN_SOURCE - 0) >= 500 || \
|
||||
defined(_NETBSD_SOURCE)
|
||||
#ifndef __minix
|
||||
#ifndef __minix
|
||||
int fdatasync(int);
|
||||
#endif /* !__minix */
|
||||
int fsync(int);
|
||||
@@ -247,7 +247,7 @@ typedef __intptr_t intptr_t;
|
||||
|
||||
int brk(void *);
|
||||
int fchdir(int);
|
||||
#if !defined(__minix) && defined(_XOPEN_SOURCE)
|
||||
#if defined(_XOPEN_SOURCE)
|
||||
int fchown(int, uid_t, gid_t) __RENAME(__posix_fchown);
|
||||
#else
|
||||
int fchown(int, uid_t, gid_t);
|
||||
@@ -321,14 +321,6 @@ int unlinkat(int, const char *, int);
|
||||
/*
|
||||
* Implementation-defined extensions
|
||||
*/
|
||||
#ifdef __minix
|
||||
|
||||
int lseek64(int fd, u64_t _offset, int _whence, u64_t *_newpos);
|
||||
#if defined(_NETBSD_SOURCE)
|
||||
#include <minix/type.h>
|
||||
#endif /* defined(_NETBSD_SOURCE) */
|
||||
#endif /* __minix */
|
||||
|
||||
#if defined(_NETBSD_SOURCE)
|
||||
#ifndef __minix
|
||||
int acct(const char *);
|
||||
|
||||
Reference in New Issue
Block a user