2 * This file is part of tee strace test.
4 * Copyright (c) 2016 Dmitry V. Levin <ldv@altlinux.org>
7 * SPDX-License-Identifier: GPL-2.0-or-later
11 #include <asm/unistd.h>
21 const long int fd_in = (long int) 0xdeadbeefffffffffULL;
22 const long int fd_out = (long int) 0xdeadbeeffffffffeULL;
23 const size_t len = (size_t) 0xdeadbef3facefed3ULL;
24 const unsigned int flags = 15;
26 long rc = syscall(__NR_tee, fd_in, fd_out, len, flags);
27 printf("tee(%d, %d, %zu, %s) = %ld %s (%m)\n",
28 (int) fd_in, (int) fd_out, len,
29 "SPLICE_F_MOVE|SPLICE_F_NONBLOCK|SPLICE_F_MORE|SPLICE_F_GIFT",
32 puts("+++ exited with 0 +++");
38 SKIP_MAIN_UNDEFINED("__NR_tee")