This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 4/9] Tilera (and Linux asm-generic) support for glibc


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]