diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-12-01 20:33:11 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-12-01 20:33:11 +0300 |
commit | bd16a3a8a8a1b0f2971e6bac6c896320f02208c2 (patch) | |
tree | 625aac86649771e11536ab33493b004be7fb7a21 /winsup/testsuite/winsup.api/ltp | |
parent | 18dcb167578ef69fa8965fba0c286198bdf3e6da (diff) |
* 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.
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp')
-rw-r--r-- | winsup/testsuite/winsup.api/ltp/fcntl09.c | 6 | ||||
-rw-r--r-- | winsup/testsuite/winsup.api/ltp/fcntl10.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/winsup/testsuite/winsup.api/ltp/fcntl09.c b/winsup/testsuite/winsup.api/ltp/fcntl09.c index 523bd094b..3a827e149 100644 --- a/winsup/testsuite/winsup.api/ltp/fcntl09.c +++ b/winsup/testsuite/winsup.api/ltp/fcntl09.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_SETLK argument on fname */ 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 */ |