History log of /external/ltp/testcases/kernel/syscalls/dup3/dup3_02.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
817d8095fbfe5ebe22b29f58b7483f3d8d5e3fcc 24-Jul-2017 Richard Palethorpe <rpalethorpe@suse.com> Rename linux_syscall_numbers.h to lapi/syscalls.h

Move testcases/kernel/include/linux_syscall_numbers.h to lapi/syscalls.h so
that it is easily accessible from the LTP library as well as the tests.

Signed-off-by: Richard Palethorpe <rpalethorpe@suse.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Acked-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/syscalls/dup3/dup3_02.c
d6d11d08678aac1ed2c370ea8e42e5f45aea07be 09-Mar-2015 Cyril Hrubis <chrubis@suse.cz> Introduce tst_parse_opts()

The pattern that was used in all testcases is:

const char *msg;

msg = parse_opts(...);
if (msg)
tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);

This change simplifies the steps to just calling:

tst_parse_opts(...);

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/dup3/dup3_02.c
aabb8340f63ed31afe995fd97795e542dc68b93c 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Include usctest.h in test.h

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/dup3/dup3_02.c
605fa3362fd7cef0baa2131be32cf44661783d3e 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Get rid of TEST_CLEANUP

Special thanks to Coccinelle for making this easy job.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/dup3/dup3_02.c
0b9589f3f9c0345b29cfcf7da5a1253c708303eb 27-May-2014 Cyril Hrubis <chrubis@suse.cz> testcases: Constify char *msg variable.

The parse_opts() now returns const char * instead of char * this commit
fixes all warnings caused by the change.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/dup3/dup3_02.c
98f8747aee484ed06f08bd7ba9683bfa8144d0c2 08-Jan-2014 Cyril Hrubis <chrubis@suse.cz> lapi: Add fcntl.h to define O_CLOEXEC, fix build

This moves the numerous O_CLOEXEC defintions into lapi/fcntl.h header
and also fixes the dup3_02.c build on older distributions (where
O_CLOEXEC is not defined) by including this header.

Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Jan Stancek <jstancek@redhat.com>
/external/ltp/testcases/kernel/syscalls/dup3/dup3_02.c
c4c6c3f96c02c2a09be169295d7d8bf25c3bd841 28-Nov-2013 Cyril Hrubis <chrubis@suse.cz> dup3_02: Fix build on uClibc.

Add #define _GNU_SOURCE in order to have O_CLOEXEC defined.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Reported-by: Markos Chandras <Markos.Chandras@imgtec.com>
/external/ltp/testcases/kernel/syscalls/dup3/dup3_02.c
fe4ae3461194197f3aef971b563a68b6a34c1b8f 21-Nov-2013 Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com> dup3(2): add EINVAL error number test

add EINVAL error number test

Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/dup3/dup3_02.c