openposix/.../sigaction/templates/{18,19,28}

The sig_atomic_t does not imply volatile.

This fixes the testcases when compiled with -O2.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
openposix/.../sigaction/{18,19,28}: Regenerate.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
prot_hsymlinks.c: Define _GNU_SOURCE which is required for O_DIRECTORY

O_DIRECTORY is only available if _GNU_SOURCE is defined
in uClibc toolchains.

This is similar to 0d0c695c8c6657710d1a8ecb4f1264dcd405276b
"open11.c: Define _GNU_SOURCE which is required for O_DIRECTORY"

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
gitignore: add ksm06

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
shmat/shmat01.c: cleanup

1. Remove useless comments

2. Revise code to follow ltp-code-style

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
shmat/shmat01.c: Test for specifying NULL to shmaddr

Test for statement:
"If shmaddr is NULL, the system chooses a suitable (unused) address
at which to attach the segment."

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
mem.c: check whether MADV_MERGEABLE is available

Before using MADV_MERGEABLE, check whether it's available by macro
HAVE_MADV_MERGEABLE.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
mount/mount03.c: Add mode argument to open call.

This patch fixes this build error on Ubuntu introduced with commit
24324ad5dae71172125060b82580486b0f3d37da.

In file included from /usr/include/fcntl.h:252:0,
                 from mount03.c:73:
In function ‘open’,
    inlined from ‘setup’ at mount03.c:447:5:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:51:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments

Signed-off-by: Vinson Lee <vlee@twitter.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
prot_hsymlinks.c: remove the unnecessary calling of cleanup

Should not call cleanup here since nothing was setted by setup.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>