From e11676dd1c81cb5a6ca39455874050a4d3fe0245 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 21 Jan 2004 06:23:26 +0000 Subject: Update. * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT. * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise. Patch by Davide Libenzi. --- ChangeLog | 4 ++++ sysdeps/unix/sysv/linux/sys/epoll.h | 4 +++- sysdeps/unix/sysv/linux/x86_64/sys/epoll.h | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 34871bfe7a..2ec0799af3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-01-20 Ulrich Drepper + * sysdeps/unix/sysv/linux/sys/epoll.h: Add EPOLLONESHOT. + * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise. + Patch by Davide Libenzi. + * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_NO_CLONE_DETACHED for 2.6.2+ kernels. diff --git a/sysdeps/unix/sysv/linux/sys/epoll.h b/sysdeps/unix/sysv/linux/sys/epoll.h index c6acc1efc3..6c310bcff5 100644 --- a/sysdeps/unix/sysv/linux/sys/epoll.h +++ b/sysdeps/unix/sysv/linux/sys/epoll.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2003, 2004 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 @@ -45,6 +45,8 @@ enum EPOLL_EVENTS #define EPOLLERR EPOLLERR EPOLLHUP = 0x010, #define EPOLLHUP EPOLLHUP + EPOLLONESHOT = (1 << 30), +#define EPOLLONESHOT EPOLLONESHOT EPOLLET = (1 << 31) #define EPOLLET EPOLLET }; diff --git a/sysdeps/unix/sysv/linux/x86_64/sys/epoll.h b/sysdeps/unix/sysv/linux/x86_64/sys/epoll.h index e05a61c7e0..cffddb58b3 100644 --- a/sysdeps/unix/sysv/linux/x86_64/sys/epoll.h +++ b/sysdeps/unix/sysv/linux/x86_64/sys/epoll.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2003, 2004 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 @@ -45,6 +45,8 @@ enum EPOLL_EVENTS #define EPOLLERR EPOLLERR EPOLLHUP = 0x010, #define EPOLLHUP EPOLLHUP + EPOLLONESHOT = (1 << 30), +#define EPOLLONESHOT EPOLLONESHOT EPOLLET = (1 << 31) #define EPOLLET EPOLLET }; -- cgit v1.2.3