From 599af3ca61ab0841bd968c8965e2efb2c1df2dd3 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 21 Feb 2012 00:32:30 +0000 Subject: Split architecture-specific parts of sys/epoll.h into bits/epoll.h. --- sysdeps/unix/sysv/linux/sys/epoll.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'sysdeps/unix/sysv/linux/sys') 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 -/* 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 -- cgit v1.2.3-70-g09d2