aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-04-20 16:36:17 +0000
committerChristopher Faylor <me@cgf.cx>2001-04-20 16:36:17 +0000
commitcbd886871310aa5418dea0435b7762779b42d294 (patch)
tree66073ebf70758bf6fdd5de08d667d400a0bab640
parentcdcfe4e8e9d71c9b0d18029baac6f2fb167afc21 (diff)
downloadnewlib-cbd886871310aa5418dea0435b7762779b42d294.zip
newlib-cbd886871310aa5418dea0435b7762779b42d294.tar.gz
newlib-cbd886871310aa5418dea0435b7762779b42d294.tar.bz2
* include/sys/file.h: More cleanup for X_OK.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/include/sys/file.h6
2 files changed, 6 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 816190f..a002252 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+Fri Apr 20 12:27:49 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * include/sys/file.h: More cleanup for X_OK.
+
Fri Apr 20 11:48:45 2001 Christopher Faylor <cgf@cygnus.com>
* include/sys/file.h: Move X_OK protection earlier.
diff --git a/winsup/cygwin/include/sys/file.h b/winsup/cygwin/include/sys/file.h
index 85f9f4c..463682a 100644
--- a/winsup/cygwin/include/sys/file.h
+++ b/winsup/cygwin/include/sys/file.h
@@ -22,12 +22,10 @@
#define L_INCR 1
#define L_XTND 2
-
#define F_OK 0 /* does file exist */
-#define _X_OK 1 /* is it executable by caller */
#undef X_OK
-#if defined (__CYGWIN__) || defined (__INSIDE_CYGWIN__)
-# define X_OK _X_OK /* Check for execute permission. */
+#if defined (__INSIDE_CYGWIN__)
+# define X_OK 1 /* is it executable by caller */
#else
extern const unsigned _cygwin_X_OK;
# define X_OK _cygwin_X_OK