[PATCH v2 4/10] Tilera (and Linux asm-generic) support for glibc
Chris Metcalf
cmetcalf@tilera.com
Thu Nov 10 01:15:00 GMT 2011
(Unchanged since v1 of patch)
2011-11-03 Chris Metcalf <cmetcalf@tilera.com>
* sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Provide an
internal __epoll_pwait() name to avoid the PLT for the epoll_wait()
implementation in the generic Linux ABI port.
diff --git a/sysdeps/unix/sysv/linux/epoll_pwait.c b/sysdeps/unix/sysv/linux/epoll_pwait.c
index e689073..4749597 100644
--- a/sysdeps/unix/sysv/linux/epoll_pwait.c
+++ b/sysdeps/unix/sysv/linux/epoll_pwait.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007 Free Software Foundation, Inc.
+/* Copyright (C) 2007, 2011 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
@@ -36,9 +36,9 @@
The thread's signal mask is temporarily and atomically replaced with
the one provided as parameter. */
-int epoll_pwait (int epfd, struct epoll_event *events,
- int maxevents, int timeout,
- const sigset_t *set)
+int __epoll_pwait (int epfd, struct epoll_event *events,
+ int maxevents, int timeout,
+ const sigset_t *set)
{
if (SINGLE_THREAD_P)
return INLINE_SYSCALL (epoll_pwait, 6, epfd, events, maxevents, timeout,
@@ -56,9 +56,9 @@ int epoll_pwait (int epfd, struct epoll_event *events,
#else
-int epoll_pwait (int epfd, struct epoll_event *events,
- int maxevents, int timeout,
- const sigset_t *set)
+int __epoll_pwait (int epfd, struct epoll_event *events,
+ int maxevents, int timeout,
+ const sigset_t *set)
{
__set_errno (ENOSYS);
return -1;
@@ -67,3 +67,5 @@ stub_warning (epoll_pwait)
# include <stub-tag.h>
#endif
+
+strong_alias (__epoll_pwait, epoll_pwait)
More information about the Libc-alpha
mailing list