Received: by 10.223.176.5 with SMTP id f5csp3435421wra; Mon, 29 Jan 2018 13:08:24 -0800 (PST) X-Google-Smtp-Source: AH8x224v3Ms6XZMoUG1J2+FvyBIpTL582Uwk2/QdkVnI1ACiUu7V3kmr0AHmZysb8dC10AtjuXWJ X-Received: by 2002:a17:902:6716:: with SMTP id f22-v6mr23537315plk.180.1517260104633; Mon, 29 Jan 2018 13:08:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517260104; cv=none; d=google.com; s=arc-20160816; b=h0B3IthrAKovpc/jJZSRibeti53E2aQn1Bjg0jfHh0TmeNxosg5nDY7aA10/KO3FHn 3gsMF/cvzdBvMi7GTHxm3mTynR0PogWHOcgsohfqBtB+ogJMM3usnFJRS69vl/SUUIDB Pdt2KxhL2sE6JGs2pL5TLRhK3xphZVA8/NJBJbadCQCIiK4DSd4YQCg5V6x56OnwoQ52 xiMq7Y2gG6WToBwcJLvrrGdBtGiLdsqhdZoXRG0wJo120Pv+gJYEALWBJMXAjauSOxnd 9IKveuvTsVaN2MLi2XCSi3Ettrs9b/l0QBr40AYGQbjm45y4lBtwnAkQPdSmtsrgoAp5 o6+g== 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=J5GkSXq8TECybbURZSzf3tm5JS8JqpOvDOB9kp099pg=; b=UPLax2gVojMG8ZWpBIod0z0f2xLPB5FHlXUSePh4LYpJTft1SDCIRdlUH7SiEBtb1h l6MA2o9Nd4KdQa1CCUmNVfvOlj5Qe1fPHcZGyKwU1eGOqFKhJWpQUS0KUrMbqFrecz7X zPoCRNuh1dJnfK3d+YkESjkWGUXkXx06LUARkXHmHOTszmy+O+GnFJehp1T8eUO1/3rE TDymr0dCIJ1wn4nNGB68mR3ZC4mpJOjoxX7xe1x9ZZwsep+wVVovKccoqlBEZad9dVOe UR+aSebuIOvlNmODZLRlrhtex+cbvX7uA4OUcfHQYv4djslmFNMwa/QyG35Mvkan4pHb 0PBw== 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 e64si340100pfg.409.2018.01.29.13.08.10; Mon, 29 Jan 2018 13:08:24 -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 S1751779AbeA2VHl (ORCPT + 99 others); Mon, 29 Jan 2018 16:07:41 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:48468 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752720AbeA2UGa (ORCPT ); Mon, 29 Jan 2018 15:06:30 -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 A58302EAD; Mon, 29 Jan 2018 12:59:24 +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 3.18 37/52] eventpoll.h: add missing epoll event masks Date: Mon, 29 Jan 2018 13:56:55 +0100 Message-Id: <20180129123629.814709665@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180129123628.168904217@linuxfoundation.org> References: <20180129123628.168904217@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 3.18-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.