From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 71F2D385AFAF; Wed, 26 Jul 2023 13:20:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71F2D385AFAF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690377618; bh=Vl+89LUDuUU8qTsL50watz84nX8n0gYO+e897Zn52pI=; h=From:To:Subject:Date:From; b=w4LCueYWCeMisEw+GVIZskh6mt8aIIFKhILUOKngzHihXaiswVjlYViQNuwgjBOjl p4i6bM4SaN11S8cPznFxv2WaHOy5D7MBhhrGvBukso8ZE6d9brhoYKK8rNK5cS+WQj EFFtPSTe0XS5H4hPzZn8iJzqe+qRftQCfjjLEnLc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/cygwin-3_4-branch] Define _AT_NULL_PATHNAME_ALLOWED X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/cygwin-3_4-branch X-Git-Oldrev: 26775886a3b4d3c858f40f6f42b61f866d9c1c2a X-Git-Newrev: 38b8c322d4798cec04c56f79112b84a465a15d27 Message-Id: <20230726132018.71F2D385AFAF@sourceware.org> Date: Wed, 26 Jul 2023 13:20:18 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D38b8c322d47= 98cec04c56f79112b84a465a15d27 commit 38b8c322d4798cec04c56f79112b84a465a15d27 Author: Corinna Vinschen AuthorDate: Wed Jul 12 13:27:04 2023 +0200 Commit: Corinna Vinschen CommitDate: Wed Jul 26 15:19:59 2023 +0200 Define _AT_NULL_PATHNAME_ALLOWED =20 Cygwin needs an internal flag to allow specifying an empty pathname in utimesat (GLIBC extension). We define it in _default_fcntl.h to make sure we never introduce a value collision accidentally. While at it, define the values as 16 bit hex values. =20 Reviewed-by: Johannes Schindelin Signed-off-by: Corinna Vinschen Diff: --- newlib/libc/include/sys/_default_fcntl.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/newlib/libc/include/sys/_default_fcntl.h b/newlib/libc/include= /sys/_default_fcntl.h index 48914c92eab4..ce721fa23c02 100644 --- a/newlib/libc/include/sys/_default_fcntl.h +++ b/newlib/libc/include/sys/_default_fcntl.h @@ -162,12 +162,13 @@ extern "C" { #define AT_FDCWD -2 =20 /* Flag values for faccessat2) et al. */ -#define AT_EACCESS 1 -#define AT_SYMLINK_NOFOLLOW 2 -#define AT_SYMLINK_FOLLOW 4 -#define AT_REMOVEDIR 8 +#define AT_EACCESS 0x0001 +#define AT_SYMLINK_NOFOLLOW 0x0002 +#define AT_SYMLINK_FOLLOW 0x0004 +#define AT_REMOVEDIR 0x0008 #if __GNU_VISIBLE -#define AT_EMPTY_PATH 16 +#define AT_EMPTY_PATH 0x0010 +#define _AT_NULL_PATHNAME_ALLOWED 0x4000 /* Internal flag used by futimes= at */ #endif #endif