Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-01-17 15:01:46 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-01-17 15:01:46 +0400
commit92a8ea56e590421dab6ad28cdcbc73720af4e905 (patch)
treefdde425308764ebbb9774423dbec61595d3476e3 /winsup
parentad1a102dd6746ffff6a4a4c1014a7b454e7a86dd (diff)
* include/sys/file.h (LOCK_SH): Drop definition in favor of new
definitions in newlib. (LOCK_EX): Ditto. (LOCK_NB): Ditto. (LOCK_UN): Ditto. (flock): Ditto. (F_OK): Drop. Already correctly defined in unistd.h. (X_OK): Ditto. (W_OK): Ditto. (R_OK): Ditto.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog13
-rw-r--r--winsup/cygwin/include/sys/file.h20
2 files changed, 13 insertions, 20 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index fa1e42851..ac2512585 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,18 @@
2014-01-17 Corinna Vinschen <corinna@vinschen.de>
+ * include/sys/file.h (LOCK_SH): Drop definition in favor of new
+ definitions in newlib.
+ (LOCK_EX): Ditto.
+ (LOCK_NB): Ditto.
+ (LOCK_UN): Ditto.
+ (flock): Ditto.
+ (F_OK): Drop. Already correctly defined in unistd.h.
+ (X_OK): Ditto.
+ (W_OK): Ditto.
+ (R_OK): Ditto.
+
+2014-01-17 Corinna Vinschen <corinna@vinschen.de>
+
* include/cygwin/config.h (_STDIO_BSD_SEMANTICS): Define as 1.
2014-01-16 Christopher Faylor <me.cygwin2014@cgf.cx>
diff --git a/winsup/cygwin/include/sys/file.h b/winsup/cygwin/include/sys/file.h
index af07df4cf..5730babbc 100644
--- a/winsup/cygwin/include/sys/file.h
+++ b/winsup/cygwin/include/sys/file.h
@@ -23,7 +23,6 @@
#ifndef _FILE_H_
#define _FILE_H_
-#include <sys/cdefs.h>
#include <fcntl.h>
/* Whence values for lseek(); renamed by POSIX 1003.1 */
@@ -32,23 +31,4 @@
#define L_INCR SEEK_CUR
#define L_XTND SEEK_END
-/* Operations for flock() function */
-#define LOCK_SH 1 /* Shared lock. */
-#define LOCK_EX 2 /* Exclusive lock. */
-#define LOCK_NB 4 /* Don't block when locking. */
-#define LOCK_UN 8 /* Unlock. */
-
-/* Operations for access function */
-#define F_OK 0 /* does file exist */
-#define X_OK 1 /* is it executable or searchable by caller */
-#define W_OK 2 /* is it writable by caller */
-#define R_OK 4 /* is it readable by caller */
-
-/* Apply or remove an advisory lock on the file fd refers to. */
-__BEGIN_DECLS
-
-int _EXFUN(flock, (int, int));
-
-__END_DECLS
-
#endif