about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sparc
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-02-13 20:27:59 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-02-13 20:27:59 +0000
commit2a418ac326831b112d32fb1b29c4a351f07fac98 (patch)
tree2fbb2d3c0d298b4e83994342a706e3045aceec00 /sysdeps/unix/sysv/linux/sparc
parente19e83c5d2ead7a5ab5fa7afa6fed1a427dc2465 (diff)
downloadglibc-2a418ac326831b112d32fb1b29c4a351f07fac98.tar.gz
glibc-2a418ac326831b112d32fb1b29c4a351f07fac98.tar.xz
glibc-2a418ac326831b112d32fb1b29c4a351f07fac98.zip
Split architecture-specific parts of sys/eventfd.h into bits/eventfd.h.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sparc')
-rw-r--r--sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (renamed from sysdeps/unix/sysv/linux/sparc/sys/eventfd.h)32
1 files changed, 5 insertions, 27 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/sys/eventfd.h b/sysdeps/unix/sysv/linux/sparc/bits/eventfd.h
index 7ea0270ef7..d76ac5f713 100644
--- a/sysdeps/unix/sysv/linux/sparc/sys/eventfd.h
+++ b/sysdeps/unix/sysv/linux/sparc/bits/eventfd.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 2007-2012 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
@@ -16,36 +16,14 @@
    <http://www.gnu.org/licenses/>.  */
 
 #ifndef	_SYS_EVENTFD_H
-#define	_SYS_EVENTFD_H	1
+# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
+#endif
 
-#include <stdint.h>
-
-
-/* Type for event counter.  */
-typedef uint64_t eventfd_t;
-
-/* Flags for signalfd.  */
+/* Flags for eventfd.  */
 enum
   {
     EFD_CLOEXEC = 0x400000,
 #define EFD_CLOEXEC EFD_CLOEXEC
-    EFD_NONBLOCK = 0x4000
+    EFD_NONBLOCK = 0x004000
 #define EFD_NONBLOCK EFD_NONBLOCK
   };
-
-
-__BEGIN_DECLS
-
-/* Return file descriptor for generic event channel.  Set initial
-   value to COUNT.  */
-extern int eventfd (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 */