[LTP] [PATCH 1/3] accept4: Use tst_variant

Cyril Hrubis chrubis@suse.cz
Wed Mar 25 00:35:51 CET 2020


Hi!
> -#if !(__GLIBC_PREREQ(2, 10))
>  static int
>  accept4_01(int fd, struct sockaddr *sockaddr, socklen_t *addrlen, int flags)
>  {
> -#if USE_SOCKETCALL
>  	long args[6];
>  
>  	args[0] = fd;
> @@ -51,11 +51,7 @@ accept4_01(int fd, struct sockaddr *sockaddr, socklen_t *addrlen, int flags)
>  	args[3] = flags;
>  
>  	return tst_syscall(__NR_socketcall, SYS_ACCEPT4, args);
> -#else
> -	return tst_syscall(__NR_accept4, fd, sockaddr, addrlen, flags);
> -#endif
>  }
> -#endif

This is very minor, however the function should be renamed to something
as socketcall_accept4().

Acked otherwise.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list