Received: by 10.223.176.5 with SMTP id f5csp3447192wra; Mon, 29 Jan 2018 13:19:10 -0800 (PST) X-Google-Smtp-Source: AH8x227JnSMaHuzDSQx0zWn7qFyvPFuVdE+U3sJlm1Fnpgp9Z6HMPnV8wnLSYYyx3KPW/Wo959ZO X-Received: by 10.98.213.130 with SMTP id d124mr28075112pfg.112.1517260750688; Mon, 29 Jan 2018 13:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517260750; cv=none; d=google.com; s=arc-20160816; b=ealguGmhd0JO4c5XWQlXmoJB92Z1tYkymD8k9PhDT8bSQM1cbTQDdi43vAL/VaAYU9 5c+Qpq4Lg2UbyMKLZgs67kMrcQpofTX6pylqklnBVwlWvdPYtCuFju9QjxPg6KM3cTRW mob9eZT6cljYn+Xl0kXBRnxMutrg8tqqASOgmLG5KrJlsNMRDr6j1oq+dyAgSTxzk+Ey HS2i2G21ycnh4W0k0nvO/o6FRFwutjQ6V6eSdh/qzm0HNZ2B71OF7x9Af4SdePTeqcfs zNcnQDWUgmv7qBKyqT+8q+i8BmDsbqnUJkhbIL0BD16n0dieKW51itrYS4m7ukLYpoUa F7Ag== 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=GuS1mOe+OCCyLcHJ+rgSLNi7aCAEQYGNHrdl4H9xp2M=; b=YeP7o59btq4fzdgk8CxLg2sVxsDMynpf502jmpbuM6o3MI0D5NYDH8n8E7u8fTzdSB 85okI4PHU729Nz65JX9EYPSfCGNhgd1Kzmm0l6maVmI8ROAJFoX26NXdUhdZLbMndc4m j7ZlD0INZGppcwFtUZKpJfOBFcnMm7sdzSUaraMP1SQPSStwUaxd+CgRl9mS5jbP+zTw xYjX+CO+uDxArIP8WLpBtDfqG4bfl/RnOdO0KCpWnmAYhENTtlhQYPHkYYslmhVZERFS VjiT1zRuM23YJ2rGKAd3JsPx4B0WtNMcEEON6q7aiRKMQeuXjzuyX5R+js2iiaPDLsmh lzGQ== 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 d13si1599661pgu.579.2018.01.29.13.18.56; Mon, 29 Jan 2018 13:19:10 -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 S1752373AbeA2VSb (ORCPT + 99 others); Mon, 29 Jan 2018 16:18:31 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42574 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752212AbeA2UEX (ORCPT ); Mon, 29 Jan 2018 15:04:23 -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 0DB532F4E; Mon, 29 Jan 2018 13:03:58 +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.4 55/74] eventpoll.h: add missing epoll event masks Date: Mon, 29 Jan 2018 13:57:00 +0100 Message-Id: <20180129123850.059211945@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180129123847.507563674@linuxfoundation.org> References: <20180129123847.507563674@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.4-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 + /* * Request the handling of system wakeup events so as to prevent system suspends * from happening while those events are being processed.