about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sys
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-02-21 00:32:30 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-02-21 00:32:30 +0000
commit599af3ca61ab0841bd968c8965e2efb2c1df2dd3 (patch)
treed2c59d34aff722eb0dd0284568c09e18195b6c0f /sysdeps/unix/sysv/linux/sys
parent0e4997508d271a0e4b6e2a68efae8f1943aa21e5 (diff)
downloadglibc-599af3ca61ab0841bd968c8965e2efb2c1df2dd3.tar.gz
glibc-599af3ca61ab0841bd968c8965e2efb2c1df2dd3.tar.xz
glibc-599af3ca61ab0841bd968c8965e2efb2c1df2dd3.zip
Split architecture-specific parts of sys/epoll.h into bits/epoll.h.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sys')
-rw-r--r--sysdeps/unix/sysv/linux/sys/epoll.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/epoll.h b/sysdeps/unix/sysv/linux/sys/epoll.h
index 859a447634..a55ebad622 100644
--- a/sysdeps/unix/sysv/linux/sys/epoll.h
+++ b/sysdeps/unix/sysv/linux/sys/epoll.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002-2009, 2011 Free Software Foundation, Inc.
+/* Copyright (C) 2002-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
@@ -29,15 +29,12 @@
 typedef __sigset_t sigset_t;
 #endif
 
+/* Get the platform-dependent flags.  */
+#include <bits/epoll.h>
 
-/* Flags to be passed to epoll_create1.  */
-enum
-  {
-    EPOLL_CLOEXEC = 02000000,
-#define EPOLL_CLOEXEC EPOLL_CLOEXEC
-    EPOLL_NONBLOCK = 04000
-#define EPOLL_NONBLOCK EPOLL_NONBLOCK
-  };
+#ifndef __EPOLL_PACKED
+# define __EPOLL_PACKED
+#endif
 
 
 enum EPOLL_EVENTS
@@ -89,7 +86,7 @@ struct epoll_event
 {
   uint32_t events;	/* Epoll events */
   epoll_data_t data;	/* User data variable */
-};
+} __EPOLL_PACKED;
 
 
 __BEGIN_DECLS