public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org, newlib-cvs@sourceware.org Subject: [newlib-cygwin/main] sys/stat.h: drop __INSIDE_CYGWIN__ guards Date: Thu, 1 Feb 2024 11:39:34 +0000 (GMT) [thread overview] Message-ID: <20240201113934.E974C3858029@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3600654b78cc5e1482330d6d03ca87d5aeab04de commit 3600654b78cc5e1482330d6d03ca87d5aeab04de Author: Corinna Vinschen <corinna@vinschen.de> AuthorDate: Wed Jan 24 17:15:53 2024 +0100 Commit: Corinna Vinschen <corinna@vinschen.de> CommitDate: Wed Jan 31 20:11:58 2024 +0100 sys/stat.h: drop __INSIDE_CYGWIN__ guards These were only necessary until we dropped 32 bit Cygwin. Signed-off-by: Corinna Vinschen <corinna@vinschen.de> 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 -#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 >= 200809 && !defined(__INSIDE_CYGWIN__) +#if __POSIX_VISIBLE >= 200809 int futimens (int, const struct timespec [2]); #endif 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; } -/* 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) {
reply other threads:[~2024-02-01 11:39 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240201113934.E974C3858029@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).