From patchwork Sat Oct 31 18:34:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 538682 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 3462F14138C for ; Sun, 1 Nov 2015 05:36:10 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=c/y+BvhQ; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C892832A8C; Sat, 31 Oct 2015 18:36:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t8BqCAq5zBun; Sat, 31 Oct 2015 18:36:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 7E060315C0; Sat, 31 Oct 2015 18:35:56 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 8FD5F1C11FD for ; Sat, 31 Oct 2015 18:35:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8C2222E5E5 for ; Sat, 31 Oct 2015 18:35:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UwDRGZQaf5JJ for ; Sat, 31 Oct 2015 18:35:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by silver.osuosl.org (Postfix) with ESMTPS id 1366425CA6 for ; Sat, 31 Oct 2015 18:35:51 +0000 (UTC) Received: by qkbl190 with SMTP id l190so43471379qkb.2 for ; Sat, 31 Oct 2015 11:35:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KUIcXUv5QvLIVguJT+CpmhHfE+ZWsvZRwjww7iJuov4=; b=c/y+BvhQf68u78BU+9hfY4TclYOIVVWZ13f/JHKrjE1Yqcp76zL7qP/+E9EQ6urc2S SyBI5pBMd352QerQRcsy7Hcq5USmN/o2lS04a4iZDXrlQv3kIZ09uUejS2lZYQsVsWQ3 2rXdSltuilD6yV4iioy5ghi+9UXWo+KtsyFV7E0XMlHkADXnVSTHu5aysh5l3HtLNqAb fc0SjbQMSXoEy0pnmNR03/+eHyWpe8YCXyRbwTQtXEXdGwibA2WUtDkNvuS9EDo+YCMo 2o3ZiXqv9sUYyq5Kb2vNMuvg4ao7qDLO541FtEG3cvM+EsvEvB7Lci/JBdofrWev3UVH xfzQ== X-Received: by 10.55.74.7 with SMTP id x7mr18810362qka.71.1446316550341; Sat, 31 Oct 2015 11:35:50 -0700 (PDT) Received: from khem-dvm-001.sys.comcast.net (a-96-119-177-31.sys.comcast.net. [96.119.177.31]) by smtp.gmail.com with ESMTPSA id f7sm4832730qka.41.2015.10.31.11.35.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 31 Oct 2015 11:35:49 -0700 (PDT) From: Khem Raj To: uclibc@uclibc.org Subject: [PATCH 8/9] fcntl: Add AT_EMPTY_PATH for all and O_PATH for arm Date: Sat, 31 Oct 2015 18:34:49 +0000 Message-Id: <1446316540-10027-3-git-send-email-raj.khem@gmail.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1446316540-10027-1-git-send-email-raj.khem@gmail.com> References: <1446316540-10027-1-git-send-email-raj.khem@gmail.com> X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: "uClibc" Signed-off-by: Khem Raj --- include/fcntl.h | 3 +++ libc/sysdeps/linux/arm/bits/fcntl.h | 1 + 2 files changed, 4 insertions(+) diff --git a/include/fcntl.h b/include/fcntl.h index 11000dd..8a7ad9b 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -65,6 +65,9 @@ __BEGIN_DECLS # define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */ # define AT_EACCESS 0x200 /* Test access permitted for effective IDs, not real IDs. */ +# ifdef __USE_GNU +# define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname. */ +# endif #endif /* Do the file control operation described by CMD on FD. diff --git a/libc/sysdeps/linux/arm/bits/fcntl.h b/libc/sysdeps/linux/arm/bits/fcntl.h index aedc154..c6ba958 100644 --- a/libc/sysdeps/linux/arm/bits/fcntl.h +++ b/libc/sysdeps/linux/arm/bits/fcntl.h @@ -50,6 +50,7 @@ # define O_DIRECT 0200000 /* Direct disk access. */ # define O_NOATIME 01000000 /* Do not set atime. */ # define O_CLOEXEC 02000000 /* Set close_on_exec. */ +# define O_PATH 010000000 /* Resolve pathname but do not open file. */ #endif /* For now Linux has synchronisity options for data and read operations.