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
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/fcntl10.c')
-rw-r--r--winsup/testsuite/winsup.api/ltp/fcntl10.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/testsuite/winsup.api/ltp/fcntl10.c b/winsup/testsuite/winsup.api/ltp/fcntl10.c
index 661f69691..e2de44bef 100644
--- a/winsup/testsuite/winsup.api/ltp/fcntl10.c
+++ b/winsup/testsuite/winsup.api/ltp/fcntl10.c
@@ -161,7 +161,13 @@ main(int ac, char **av)
/* reset Tst_count in case we are looping. */
Tst_count=0;
+#if 0
+ /* Ouch! Either read *or* write lock, but not both!
+ This code depends on F_RDLCK being 0. */
flocks.l_type = F_RDLCK | F_WRLCK;
+#else
+ flocks.l_type = F_WRLCK;
+#endif
/*
* Call fcntl(2) with F_SETLKW flocks.l_type = F_UNLCK argument on fname
*/