From patchwork Thu Oct 25 15:52:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 989193 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-96740-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="BDIFSgvl"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42gs922qQJz9sDX for ; Fri, 26 Oct 2018 02:53:10 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=OPfNI7/Q1Q+9iCRblwO8nYl+KDT3s mGSGouLgkGps9Vgw+RWR5D20Rb34KtPc5HFXy3bQaImJldfe65Dkdxl4gBxsEVSq iirg3Y4Ml4CK9f2I7rmi4+fvwYRYhbtJps7xHlk3UjDbUS2pru1ssSaghImZdbn/ TdjtT5w0rA8cR4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=P0ZGk9yhdW+yjGx2WIHhxwPJdCQ=; b=BDI FSgvlyfvWn2RQVeEoXoD3h6t3/OZv1vf+FjU/7nHWN1CmV9ULraWgn/9Eam2+Mte ZXlblP5SYWdV/6VoKW/jXgkkuHtlvwycf1SX09UeLWS+c+jZIDKF7pRuIX81BnXU d7+mmRCDfBQBW+r0XdF9LMJv7tON/v2WTEq45m1E= Received: (qmail 89198 invoked by alias); 25 Oct 2018 15:53:04 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 89178 invoked by uid 89); 25 Oct 2018 15:53:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Date: Thu, 25 Oct 2018 15:52:56 +0000 From: Joseph Myers To: Subject: Add IN_MASK_CREATE from Linux 4.19 to sys/inotify.h Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 This patch adds the IN_MASK_CREATE macro from Linux 4.19 to sys/inotify.h. Tested for x86_64. 2018-10-25 Joseph Myers * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New macro. Reviewed-by: Dmitry V. Levin diff --git a/sysdeps/unix/sysv/linux/sys/inotify.h b/sysdeps/unix/sysv/linux/sys/inotify.h index 49cc374851..8f766baf3d 100644 --- a/sysdeps/unix/sysv/linux/sys/inotify.h +++ b/sysdeps/unix/sysv/linux/sys/inotify.h @@ -66,6 +66,7 @@ struct inotify_event #define IN_DONT_FOLLOW 0x02000000 /* Do not follow a sym link. */ #define IN_EXCL_UNLINK 0x04000000 /* Exclude events on unlinked objects. */ +#define IN_MASK_CREATE 0x10000000 /* Only create watches. */ #define IN_MASK_ADD 0x20000000 /* Add to the mask of an already existing watch. */ #define IN_ISDIR 0x40000000 /* Event occurred against dir. */