]> sourceware.org Git - newlib-cygwin.git/commitdiff
sys/stat.h: drop __INSIDE_CYGWIN__ guards
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 24 Jan 2024 16:15:53 +0000 (17:15 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 31 Jan 2024 19:11:58 +0000 (20:11 +0100)
These were only necessary until we dropped 32 bit Cygwin.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
newlib/libc/include/sys/stat.h
winsup/cygwin/dir.cc

index 98f5addb43db046b7ce7507ea08f9c5d11ef7dc1..b4e27f22edbe943a55b70ff8b447133c4628b450 100644 (file)
@@ -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
 
index c2cba839eb5ae9232bb6196953ce993ea3aebec2..be999414a7abb37b4a9dbfb1ab91358a63daf33d 100644 (file)
@@ -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)
 {
This page took 0.035298 seconds and 5 git commands to generate.