Skip to content

Commit

Permalink
syscalls/fcntl34: Use flock64 instead of flock
Browse files Browse the repository at this point in the history
This test uses OFD locks which are supported only by 64-bit ABI.
Thus OFD locks must be used with flock64 structure for sure in this
test. It is necessary because on some 32-bit targets (e.g. 32-bit
uClibc) flock is not mapped to flock64 when _FILE_OFFSET_BITS is not
set to 64.

Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
  • Loading branch information
kolerov authored and metan-ucw committed Aug 16, 2016
1 parent a41e994 commit ae09800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/fcntl/fcntl34.c
Expand Up @@ -67,7 +67,7 @@ void *thread_fn_01(void *arg)

memset(buf, (intptr_t)arg, write_size);

struct flock lck = {
struct flock64 lck = {
.l_whence = SEEK_SET,
.l_start = 0,
.l_len = 1,
Expand Down

0 comments on commit ae09800

Please sign in to comment.