From: Mike Frysinger Date: Sat, 15 Aug 2015 02:13:37 +0000 (-0400) Subject: hppa: eventfd.h: move to common sys/eventfd.h X-Git-Tag: glibc-2.23~648 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4454e161cb3ba9236259b377eb5b59f171a5432d;p=thirdparty%2Fglibc.git hppa: eventfd.h: move to common sys/eventfd.h Use the common sys/eventfd.h to avoid duplication and move the arch-specific settings into bits/eventfd.h. --- diff --git a/ChangeLog b/ChangeLog index 813c5a7c21d..a48ee0e7e0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-08-18 Mike Frysinger + + * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file. + * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete. + 2015-08-18 Mike Frysinger * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file. diff --git a/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h b/sysdeps/unix/sysv/linux/hppa/bits/eventfd.h similarity index 62% rename from sysdeps/unix/sysv/linux/hppa/sys/eventfd.h rename to sysdeps/unix/sysv/linux/hppa/bits/eventfd.h index c748b4fa8f3..95dc362f745 100644 --- a/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h +++ b/sysdeps/unix/sysv/linux/hppa/bits/eventfd.h @@ -12,19 +12,14 @@ Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library. If not, see + License along with the GNU C Library; if not, see . */ #ifndef _SYS_EVENTFD_H -#define _SYS_EVENTFD_H 1 +# error "Never use directly; include instead." +#endif -#include - - -/* Type for event counter. */ -typedef uint64_t eventfd_t; - -/* Flags for signalfd. */ +/* Flags for eventfd. */ enum { EFD_SEMAPHORE = 1, @@ -34,20 +29,3 @@ enum EFD_NONBLOCK = 00200004 /* HPUX has separate NDELAY & NONBLOCK */ #define EFD_NONBLOCK EFD_NONBLOCK }; - - -__BEGIN_DECLS - -/* Return file descriptor for generic event channel. Set initial - value to COUNT. */ -extern int eventfd (unsigned int __count, int __flags) __THROW; - -/* Read event counter and possibly wait for events. */ -extern int eventfd_read (int __fd, eventfd_t *__value); - -/* Increment event counter. */ -extern int eventfd_write (int __fd, eventfd_t __value); - -__END_DECLS - -#endif /* sys/eventfd.h */