History log of /external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cc46fc19057356dadbba2c9b93378a6fb1df3eb6 23-Feb-2017 Cyril Hrubis <chrubis@suse.cz> syscalls/accept4_01: Make use of tst_parse_opts()

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.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/accept4/accept4_01.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/accept4/accept4_01.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/accept4/accept4_01.c
25f426417111b852555d2a0a61d94df2971a5726 30-Apr-2013 Cyril Hrubis <chrubis@suse.cz> syscalls/accept4: Fix test when accept4 returns ENOSYS

* Make the test actually exit with TCONF when accept4 returned ENOSYS

* Remove ifdefs around the main as due tu linux_syscall_numbers.h
both __NR_accept4 and __NR_socketcall are always defined.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
db02e96d6424303e36b1fba58f35f636e7f7830b 24-Apr-2013 Wanlong Gao <gaowanlong@cn.fujitsu.com> syscalls/accept4_01: code cleanups

Cleanup the code.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
fdce7d5e2a219d201a2b0e3bab6b61b01ec1d716 04-Apr-2013 Cyril Hrubis <chrubis@suse.cz> Another semiautomated cleanup.

Remove comments such as:

- /* Test program identifier. */

- /* Total number of test cases. */

- /* Extern Global Variables */

- /* Harness Specific Include Files. */

- /* Standard Include Files */

- /* Parse standard options given to run the test. */

- etc.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
359980f68b19c77c698b121b57a071dfe6e3ca31 15-Feb-2013 Jan Stancek <jstancek@redhat.com> rename syscall() macro to ltp_syscall()

This patch renames syscall() macro defined in linux_syscall_numbers.h
to reduce confusion with syscall(2). It also updates all places
where it was previously in use.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
354ebb48db8e66a853a58379a4808d5dcd1ceac3 07-Dec-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> cleanup code indent

Cleanup the code indent using:

find . -name *.c -exec Lindent {} \;

It's really a big change, but can fix almost all of
the indent problem in C code, although we can't
ensure all of the changes are right, but the error
changes are really few.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
4548c6cf9bcdd96d8303caa4130ab638b61f8a30 19-Oct-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> Update FSF address

find . -type f -exec sed -i 's/675 Mass Ave, Cambridge, MA 02139, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;
find . -type f -exec sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
e683a86812fc9e4e224a25c3ff9b4688ee1bb672 20-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Remove all unwanted references to TESTDIR.

Apparently my prior commits didn't get them all.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
1569799abe4296fc5ca50ede305c1eb2ac482422 18-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix some tests. Remove all externs to Tst_count.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
2c28215423293e443469a07ae7011135d058b671 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Style and conformance changes.

1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
f4194f0151641e372794be6b2eeebc87f1c99a9a 12-May-2009 subrata_modak <subrata_modak> The accept4() system call is available starting with Linux 2.6.28; support in glibc is available starting with version 2.10. In v2.9, the function was to be declared. So i did some changes like following. Signed-off-by: Gui Xiaohua <guixh@cn.fujitsu.com>. Acked-By: CAI Qian <caiqian@cclom.cn>.
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
56207cec7732e09c216c751c0b5f88a242bacae6 23-Mar-2009 subrata_modak <subrata_modak> Coding Syle Cleanups. Signed-Off-By: <michal.simek@petalogix.com>.
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
4bb656a129f7507823e9e6d6b98b1a02fd80ef89 26-Feb-2009 subrata_modak <subrata_modak> Clear Trailing Whitespace. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
d303c6e42b8b47f4bc36adf1681fb9c6865f8854 23-Dec-2008 subrata_modak <subrata_modak> =========================================================
Manas K. Nayak <maknayak@in.ibm.com> reported:
=========================================================
accept4_01 test cases are broken because the function accept04() is not implemented in testcase. Used ltp version: ltp-full-20081130.tgz. Manually executed the test as below:
[accept4]# ./accept4_01
accept04_01 1 BROK : accept4() Error: Function not implemented
=========================================================
Subrata Modak <subrata@linux.vnet.ibm.com> replied:
=========================================================
Fix on x86_64 as well, as it behaves properly on other Architectures.
Supriya/Manas, accept4_01.c is a new test case for the new system call accept4() recently introduced in kernel-2.6.26 only for the x86_64 architecture. The test has the code to handle if it is not supported in some architecture. Interestingly it executes the expected way on x86 machines:
# uname -a
Linux 2.6.25-gcov-nomodconfig-smp #1 SMP Thu Jun 12 06:29:27 EDT 2008 i686 i686 i386 GNU/Linux
# ./ltp-intermediate-20081216/testcases/bin/accept4_01
accept04_01 1 CONF : syscall __NR_accept4 not supported on your arch
But on x86_64, it behaves differently:
# uname -a
Linux 2.6.18-125.el5 #1 SMP Mon Dec 1 17:38:25 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
# ./accept4_01
accept04_01 1 BROK : accept4() Error: Function not implemented
It means though the interface calls for:
syscall(__NR_socketcall, SYS_ACCEPT4, args)
&
syscall(__NR_accept4, fd, sockaddr, addrlen, flags)
will execute as __NR_socketcall & __NR_accept4 are defined inside the system, the exact implementation of the interface is yet to come as the kernel < 2.6.26. So, i changed the code accordingly. Please verify the patch. Signed-Off-By: Subrata Modak <subrata@linux.vnet.ibm.com>.
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c
cb1d6cedf4dc89afddd5eac51c6f4a4e87517e78 19-Nov-2008 subrata_modak <subrata_modak> Initial Porting of accept4() syscall test to LTP by Subrata Modak <subrata@linux.vnet.ibm.com>. Originally written by Michael Kerrisk <mtk.manpages@gmail.com>. Later modified to suite compilation on different systems by Jiri Palecek <jpalecek@web.de>, who wrote the following:
I have some nitpicks, in decreasing severity:
First, the syscall, I believe, is not targeted at i386 and x86-64 only. Therefore, it is not wise to have these explicitly mentioned in the code. Also, it would be better not to "#error" if the arch isn't one of those fortunate, because ltp should build on others too. This should be fixed by patch 1. Disclaimer: This patch should make it compile (and fail at runtime with TCONF) on all kernels that don't have the syscall, and actually run the test on all kernels that do, depending on kernel headers version. However, I didn't test this (especially the selection of the syscall), so it needs to be checked. Second, if any of the syscalls vital for the test fails, it's preferable to output the error message too, and call tst_brk() for cleanup (patch 2). Third, there it would probably be better to use TFAIL/TPASS for recording success and failure instead of manual boolean flags (patch 3). Last, I think a successful test should print as little as possible and multiline messages like "calling syscall..." are really not that useful. Patch 4 disables them.
/external/ltp/testcases/kernel/syscalls/accept4/accept4_01.c