]> sourceware.org Git - newlib-cygwin.git/commitdiff
* winsup.api/known_bugs.tcl: Remove fcntl09 and fcntl10. These
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 1 Dec 2003 17:33:11 +0000 (17:33 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 1 Dec 2003 17:33:11 +0000 (17:33 +0000)
tests had a compatibility bug.
* winsup.api/ltp/fcntl09.c: Don't use F_RDLCK | F_WRLCK but only
F_WRLCK to set a write lock.
* winsup.api/ltp/fcntl10.c: Ditto.

winsup/testsuite/ChangeLog
winsup/testsuite/winsup.api/known_bugs.tcl
winsup/testsuite/winsup.api/ltp/fcntl09.c
winsup/testsuite/winsup.api/ltp/fcntl10.c

index 2a320194c3a5d92b4532e8d8f3774abee15afc17..353bfb00e286ed7ab223583b6df86350dc156083 100644 (file)
@@ -1,3 +1,11 @@
+2003-12-01  Corinna Vinschen  <corinna@vinschen.de>
+
+       * winsup.api/known_bugs.tcl: Remove fcntl09 and fcntl10.  These
+       tests had a compatibility bug.
+       * winsup.api/ltp/fcntl09.c: Don't use F_RDLCK | F_WRLCK but only
+       F_WRLCK to set a write lock.
+       * winsup.api/ltp/fcntl10.c: Ditto.
+
 2003-11-25  Christopher Faylor  <cgf@redhat.com>
 
        * winsup.api/known_bugs.tcl: Remove lseek10 since mknod now works.
index b7416fdb4c41efb514567c1f25ed68883ef2f3b5..f3fc01527e7bdd24ebc82d92ebbf9de37b167f85 100644 (file)
@@ -1,5 +1,5 @@
 set xfail_list [list dup03 dup05 \
-    fcntl05 fcntl07B fcntl09 fcntl10 \
+    fcntl05 fcntl07B \
     lseek04 mknod01 select03 \
     setgroups01 setuid02 \
     ulimit01 unlink06 unlink08 \
index 523bd094b2da7ff4d7667a591b26bd3545bc97b6..3a827e149410425214d805dfd36401823eb5699f 100644 (file)
@@ -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_SETLK argument on fname
         */
index 661f6969160e82f71f71df6b1e0c0933578abbf6..e2de44bef55c65d59eebed5d1ab0051e059729f7 100644 (file)
@@ -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
         */
This page took 0.034351 seconds and 5 git commands to generate.