diff options
author | han_mao@c-sky.com <han_mao@c-sky.com> | 2018-12-13 09:37:12 +0800 |
---|---|---|
committer | Waldemar Brodkorb <wbrodkorb@conet.de> | 2018-12-14 10:50:50 +0100 |
commit | 7b1c4fa9bd8df64c8002ea4e613c8952bdfefbdd (patch) | |
tree | f3d1dd498d6555feb89b970c9b0f5940505416e3 /libc/sysdeps/linux/common/__syscall_fcntl64.c | |
parent | 358b7807d7278eaf9cd0cc6e7168d533fbd0b707 (diff) |
several patches for uclibc ng
I've got several patches to fix ltp/openmp/uclibc-ng-test testcase fail on
c-sky.
- fix a ltp testcase.
- fix the problem that pthread creat will fail when libomp is linked before
libc, the variable pagesize is not init.
- fix tst-cancel4 and tst-cancel16. tst-cancelx4 and tst-cancelx16 still fail
with this patch applied, cleanup handler is not called for open/creat/fcntl,
seems some thing wrong with unwind, I haven't check the rootcause yet.
Diffstat (limited to 'libc/sysdeps/linux/common/__syscall_fcntl64.c')
-rw-r--r-- | libc/sysdeps/linux/common/__syscall_fcntl64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/__syscall_fcntl64.c b/libc/sysdeps/linux/common/__syscall_fcntl64.c index 0c13d152f..696b1ff41 100644 --- a/libc/sysdeps/linux/common/__syscall_fcntl64.c +++ b/libc/sysdeps/linux/common/__syscall_fcntl64.c @@ -30,7 +30,7 @@ int fcntl64(int fd, int cmd, ...) arg = va_arg(list, long); va_end(list); - if (SINGLE_THREAD_P || (cmd != F_SETLKW64)) + if (SINGLE_THREAD_P || (cmd != F_SETLKW && cmd != F_SETLKW64)) return __NC(fcntl64)(fd, cmd, arg); # ifdef __NEW_THREADS oldtype = LIBC_CANCEL_ASYNC(); |