From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id E974C3858029; Thu, 1 Feb 2024 11:39:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E974C3858029 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706787574; bh=pHrKMREAAaqq2xtqSGujWN9ewLNrxKo6qXY2lb1CNZ4=; h=From:To:Subject:Date:From; b=Mk2Oruxh7dGhArFFSRvxwSjbzHiPMhIjbzv4T/qqAXz83zMdXQzRCfUpDz/pclIFv MPpNQVsY70uaoWc8hepjdl33jPLArHx5bY/Z/+Xh+uBjYFyIROaAadqkVWvAuyJ7BW yLSClOG7ALya7lPOsJQVkSQnerQeNTtHaEkt7d4M= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org, newlib-cvs@sourceware.org Subject: [newlib-cygwin/main] sys/stat.h: drop __INSIDE_CYGWIN__ guards X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: 62ca95721a14f43c680f3c4d77a872a607b553a6 X-Git-Newrev: 3600654b78cc5e1482330d6d03ca87d5aeab04de Message-Id: <20240201113934.E974C3858029@sourceware.org> Date: Thu, 1 Feb 2024 11:39:34 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D3600654b78c= c5e1482330d6d03ca87d5aeab04de commit 3600654b78cc5e1482330d6d03ca87d5aeab04de Author: Corinna Vinschen AuthorDate: Wed Jan 24 17:15:53 2024 +0100 Commit: Corinna Vinschen CommitDate: Wed Jan 31 20:11:58 2024 +0100 sys/stat.h: drop __INSIDE_CYGWIN__ guards =20 These were only necessary until we dropped 32 bit Cygwin. =20 Signed-off-by: Corinna Vinschen Diff: --- newlib/libc/include/sys/stat.h | 4 ++-- winsup/cygwin/dir.cc | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h index 98f5addb43db..b4e27f22edbe 100644 --- a/newlib/libc/include/sys/stat.h +++ b/newlib/libc/include/sys/stat.h @@ -147,7 +147,7 @@ int lstat (const char *__restrict __path, struct stat *= __restrict __buf ); int mknod (const char *__path, mode_t __mode, dev_t __dev ); #endif =20 -#if __ATFILE_VISIBLE && !defined(__INSIDE_CYGWIN__) +#if __ATFILE_VISIBLE int fchmodat (int, const char *, mode_t, int); int fstatat (int, const char *__restrict , struct stat *__restrict, int); int mkdirat (int, const char *, mode_t); @@ -155,7 +155,7 @@ int mkfifoat (int, const char *, mode_t); int mknodat (int, const char *, mode_t, dev_t); int utimensat (int, const char *, const struct timespec [2], int); #endif -#if __POSIX_VISIBLE >=3D 200809 && !defined(__INSIDE_CYGWIN__) +#if __POSIX_VISIBLE >=3D 200809 int futimens (int, const struct timespec [2]); #endif =20 diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index c2cba839eb5a..be999414a7ab 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -202,10 +202,6 @@ readdir_r (DIR *__restrict dir, dirent *__restrict de,= dirent **__restrict ode) return res; } =20 -/* Not exposed through sys/stat.h when building Cygwin */ -extern "C" int fstatat (int, const char *__restrict , - struct stat *__restrict, int); - extern "C" ssize_t posix_getdents(int fd, void *buf, size_t nbytes, int flags) {