[newlib-cygwin] Cygwin: Drop export aliases and masking macros for stdio64 functions
Corinna Vinschen
corinna@sourceware.org
Thu Aug 4 15:37:33 GMT 2022
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9f6057d203d1a8da57f332c63db778680d9b4315
commit 9f6057d203d1a8da57f332c63db778680d9b4315
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Thu Aug 4 17:30:48 2022 +0200
Cygwin: Drop export aliases and masking macros for stdio64 functions
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/syscalls.cc | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index e6d68cc07..2c2bc4142 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -14,9 +14,6 @@ details. */
#define _open __FOO_open__
#define _read __FOO_read__
#define _write __FOO_write__
-#define _open64 __FOO_open64__
-#define _lseek64 __FOO_lseek64__
-#define _fstat64 __FOO_fstat64__
#define pread __FOO_pread
#define pwrite __FOO_pwrite
@@ -70,9 +67,6 @@ details. */
#undef _open
#undef _read
#undef _write
-#undef _open64
-#undef _lseek64
-#undef _fstat64
static int mknod_worker (path_conv &, mode_t, _major_t, _minor_t);
@@ -1596,7 +1590,6 @@ open (const char *unix_path, int flags, ...)
}
EXPORT_ALIAS (open, _open )
-EXPORT_ALIAS (open, _open64 )
extern "C" off_t
lseek (int fd, off_t pos, int dir)
@@ -1624,7 +1617,6 @@ lseek (int fd, off_t pos, int dir)
return res;
}
-EXPORT_ALIAS (lseek, _lseek64)
EXPORT_ALIAS (lseek, _lseek)
extern "C" int
@@ -1904,8 +1896,6 @@ _fstat_r (struct _reent *ptr, int fd, struct stat *buf)
return ret;
}
-EXPORT_ALIAS (_fstat_r, _fstat64_r)
-
/* fsync: P96 6.6.1.1 */
extern "C" int
fsync (int fd)
@@ -2055,8 +2045,6 @@ _stat_r (struct _reent *__restrict ptr, const char *__restrict name,
return ret;
}
-EXPORT_ALIAS (_stat_r, _stat64_r)
-
/* lstat: Provided by SVR4 and 4.3+BSD, POSIX? */
extern "C" int
lstat (const char *__restrict name, struct stat *__restrict buf)
More information about the Cygwin-cvs
mailing list