aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/times.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-09-10 08:30:51 +0000
committerCorinna Vinschen <corinna@vinschen.de>2004-09-10 08:30:51 +0000
commit4875a4b66eabdfee2d9186a694ea3599f19a51ed (patch)
treef68131ab196d3e317afa66c7dd0319a05eae1ad4 /winsup/cygwin/times.cc
parent04d55823da83da01d25876c8f0e14cea948e2eeb (diff)
downloadnewlib-4875a4b66eabdfee2d9186a694ea3599f19a51ed.zip
newlib-4875a4b66eabdfee2d9186a694ea3599f19a51ed.tar.gz
newlib-4875a4b66eabdfee2d9186a694ea3599f19a51ed.tar.bz2
* Makefile.in: Create libutil.a from bsdlib.o exports.
* bsdlib.cc (logwtmp): Move from syscalls.cc to here. (login): Ditto. (logout): Ditto. * winsup.h (EXPORT_ALIAS): New macro. * exec.cc: Define alias symbols using EXPORT_ALIAS macro. * syscalls.cc: Ditto. * times.cc: Ditto.
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r--winsup/cygwin/times.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index 9dd579a..12eb821 100644
--- a/winsup/cygwin/times.cc
+++ b/winsup/cygwin/times.cc
@@ -90,7 +90,7 @@ times (struct tms *buf)
return tc;
}
-extern "C" clock_t _times (struct tms *) __attribute__((alias ("times")));
+EXPORT_ALIAS (times, _times)
/* settimeofday: BSD */
extern "C" int
@@ -172,8 +172,7 @@ gettimeofday (struct timeval *tv, struct timezone *tz)
return 0;
}
-extern "C" int _gettimeofday (struct timeval *, struct timezone *)
- __attribute__((alias ("gettimeofday")));
+EXPORT_ALIAS (gettimeofday, _gettimeofday)
/* Cygwin internal */
void