linux-user/syscall.c: assume splice is always present
splice() &Co are defined since linux 2.6.17 (glibc 2.5). Assume it is always present. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Michael Tokarev committed
Jan 9, 2026 at 23:27 UTC
bf6ec283c5c45e144a4cb5e9358d026e05b2d340
1 file changed
+3
-12
linux-user/syscall.c
+3
-12
@@ -13624,15 +13624,9 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1,
13624
return ret;
13625
#endif
13626
13627
-#ifdef CONFIG_SPLICE
13628
-#ifdef TARGET_NR_tee
13627
case TARGET_NR_tee:
13630
- {
13631
- ret = get_errno(tee(arg1,arg2,arg3,arg4));
13632
- }
13628
+ ret = get_errno(tee(arg1, arg2, arg3, arg4));
13629
return ret;
13634
-#endif
13635
-#ifdef TARGET_NR_splice
13630
case TARGET_NR_splice:
13631
{
13632
loff_t loff_in, loff_out;
@@ -13662,9 +13656,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1,
13656
}
13657
}
13658
return ret;
13665
-#endif
13666
-#ifdef TARGET_NR_vmsplice
13667
- case TARGET_NR_vmsplice:
13659
+ case TARGET_NR_vmsplice:
13660
{
13661
struct iovec *vec = lock_iovec(VERIFY_READ, arg2, arg3, 1);
13662
if (vec != NULL) {
@@ -13675,8 +13667,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1,
13667
}
13668
}
13669
return ret;
13678
-#endif
13679
-#endif /* CONFIG_SPLICE */
13670
+
13671
#ifdef CONFIG_EVENTFD
13672
#if defined(TARGET_NR_eventfd)
13673
case TARGET_NR_eventfd: