summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 7ebe98dd1..e3a8f2df3 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -907,6 +907,8 @@ read (int fd, void *ptr, size_t len)
return readv (fd, &iov, 1);
}
+EXPORT_ALIAS (read, _read)
+
extern "C" ssize_t
pread (int fd, void *ptr, size_t len, _off64_t off)
{
@@ -937,8 +939,6 @@ pwrite (int fd, void *ptr, size_t len, _off64_t off)
return res;
}
-EXPORT_ALIAS (read, _read)
-
extern "C" ssize_t
write (int fd, const void *ptr, size_t len)
{
@@ -3501,6 +3501,7 @@ utmpname (const char *file)
utmp_file = strdup (file);
debug_printf ("New UTMP file: %s", utmp_file);
}
+
EXPORT_ALIAS (utmpname, utmpxname)
/* Note: do not make NO_COPY */