Skip to content

Commit

Permalink
sys/stat.h: drop __INSIDE_CYGWIN__ guards
Browse files Browse the repository at this point in the history
These were only necessary until we dropped 32 bit Cygwin.

Signed-off-by: Corinna Vinschen <[email protected]>
  • Loading branch information
github-cygwin committed Jan 24, 2024
1 parent 6ab574a commit bc4fb21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions newlib/libc/include/sys/stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ 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);
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

Expand Down
4 changes: 0 additions & 4 deletions winsup/cygwin/dir.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit bc4fb21

Please sign in to comment.