From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id C7DD33857027; Wed, 26 Jul 2023 13:18:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C7DD33857027 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690377526; bh=EXM9r05AcMGuw6oFjCsS3UFHK3cbJQK7AUaJfyUMVQ4=; h=From:To:Subject:Date:From; b=sNjB/bf2VkoimNzNG5FyP6KmV8qKmHMZ9MOQeoDlARVzy1sHaMnRY+gdJTTlI+InN z97VHLO/5pgcFrnQItEBwiqsxiAeJ7g7Lym52DN25ckgMQPC6vLJy/b/PhX2h5kori PNccyjtQx9VfFW/i9SPOpQshsLxSV6uHrmJLZhgc= 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/main] Define _AT_NULL_PATHNAME_ALLOWED X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: ae03aa7303bff5d6814bc6c9e681128aee42eb6a X-Git-Newrev: a891dc7605b565282a1274198c9e4a033cafc348 Message-Id: <20230726131846.C7DD33857027@sourceware.org> Date: Wed, 26 Jul 2023 13:18:46 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Da891dc7605b= 565282a1274198c9e4a033cafc348 commit a891dc7605b565282a1274198c9e4a033cafc348 Author: Corinna Vinschen AuthorDate: Wed Jul 12 13:27:04 2023 +0200 Commit: Corinna Vinschen CommitDate: Wed Jul 26 15:14:22 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