This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 4/9] Tilera (and Linux asm-generic) support for glibc
- From: Chris Metcalf <cmetcalf at tilera dot com>
- To: libc-alpha at sourceware dot org
- Cc: Arnd Bergmann <arnd at arndb dot de>, Linas Vepstas <linas at codeaurora dot org>, Guan Xuetao <gxt at mprc dot pku dot edu dot cn>, Jonas Bonn <jonas at southpole dot se>, Chen Liqin <liqin dot chen at gmail dot com>
- Date: Thu, 3 Nov 2011 16:01:52 -0400
- Subject: [PATCH 4/9] Tilera (and Linux asm-generic) support for glibc
- References: <201111031955.pA3Jt3sC024069@farm-0002.internal.tilera.com>
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)