Received: by 10.223.176.5 with SMTP id f5csp3440388wra; Mon, 29 Jan 2018 13:12:42 -0800 (PST) X-Google-Smtp-Source: AH8x224D+UeLglfHj4C144Lz8qKdUfxWW86E8MotZjsbRVWTdjLZDnJVZehj9TvdEVe3TroVa8Qz X-Received: by 2002:a17:902:48c8:: with SMTP id u8-v6mr22431954plh.272.1517260362197; Mon, 29 Jan 2018 13:12:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517260362; cv=none; d=google.com; s=arc-20160816; b=tKBbHC3xP2F8wZWt1FEf6aJY3ejvXnrvBeZ9E4qn+FqAXcx/kVa7iPRfTiv+8xA1S1 x00/XDoEfbO/anToS8Ff+M5MT7iZjlLz0fhiTaj7w1pZA6IecnHsIXYNI+lF+7WUDlGK uKeqqnQdICIB3GNhul2v+SfgWGHOcJ/RQNEzi3XI7jVEkfesgxwlJSstO5fcYFg6oUWI N+rCvwF2l0NagHrwbnnYFpV3qHZhw4rpTx2dKVHNnaMYcbnVGu3Bi7jjw22Ce4FJiwGc L73N6Z1vzw5oqeup9SEbhcZhjumjJRXkVWKHt8lW5gKt3eIKST/llOBR1moMQ155pcaM ZHoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=W5/KjxplKP2KGRg4acCheWWMmpsR6RUff7w2FiQV1wY=; b=j/RZKcqId0M45ijJzCr2twMsVs0oHemhocjS0okj0Fie6SZNj6Lq5VqqMS0KJTdGq6 tjZjMKZwgqTk1TXqB5uZg9iFV8GH3CeUj7CPw0wq9riEcoUMD0rVvyPo0OkoQKOOAhOQ 2eVjORSLMuqlC2OO5mnYqLqjA76nEFkj6J+a3kIn/ORLZ3JldxNfxIx0NW1c1iEgpvJn AU+U9TIrx3F9xopatPa+hbsrg5ZzWqg4RgZGt8fNUMpLfEZsS/FLV+mah9McP7c2U8Sd IQAEtIfQ84mwMbnZl54RAjLnefO3LWQxC8EqdKOcln7zOjW9VXbh6xbDL+Y+Xfkp60vc K46Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i17si12643968pfk.151.2018.01.29.13.12.27; Mon, 29 Jan 2018 13:12:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752578AbeA2UFh (ORCPT + 99 others); Mon, 29 Jan 2018 15:05:37 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:46086 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752111AbeA2UFf (ORCPT ); Mon, 29 Jan 2018 15:05:35 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2EE912F8B; Mon, 29 Jan 2018 13:05:33 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Elliott Hughes , Greg Hackmann Subject: [PATCH 4.9 32/66] eventpoll.h: add missing epoll event masks Date: Mon, 29 Jan 2018 13:56:56 +0100 Message-Id: <20180129123841.529271642@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180129123839.842860149@linuxfoundation.org> References: <20180129123839.842860149@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Greg KH commit 7e040726850a106587485c21bdacc0bfc8a0cbed upstream. [resend due to me forgetting to cc: linux-api the first time around I posted these back on Feb 23] From: Greg Kroah-Hartman For some reason these values are not in the uapi header file, so any libc has to define it themselves. To prevent them from needing to do this, just have the kernel provide the correct values. Reported-by: Elliott Hughes Signed-off-by: Greg Hackmann Signed-off-by: Greg Kroah-Hartman --- include/uapi/linux/eventpoll.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) --- a/include/uapi/linux/eventpoll.h +++ b/include/uapi/linux/eventpoll.h @@ -26,6 +26,19 @@ #define EPOLL_CTL_DEL 2 #define EPOLL_CTL_MOD 3 +/* Epoll event masks */ +#define EPOLLIN 0x00000001 +#define EPOLLPRI 0x00000002 +#define EPOLLOUT 0x00000004 +#define EPOLLERR 0x00000008 +#define EPOLLHUP 0x00000010 +#define EPOLLRDNORM 0x00000040 +#define EPOLLRDBAND 0x00000080 +#define EPOLLWRNORM 0x00000100 +#define EPOLLWRBAND 0x00000200 +#define EPOLLMSG 0x00000400 +#define EPOLLRDHUP 0x00002000 + /* Set exclusive wakeup mode for the target file descriptor */ #define EPOLLEXCLUSIVE (1 << 28)