File: sendfile.c

package info (click to toggle)
trinity 1.9%2Bgit20230109.87f1530-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,116 kB
  • sloc: ansic: 33,463; sh: 536; makefile: 163
file content (36 lines) | stat: -rw-r--r-- 828 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * SYSCALL_DEFINE4(sendfile, int, out_fd, int, in_fd, off_t __user *, offset, size_t, count)
 */
#include "sanitise.h"

struct syscallentry syscall_sendfile = {
	.name = "sendfile",
	.num_args = 4,
	.arg1name = "out_fd",
	.arg1type = ARG_FD,
	.arg2name = "in_fd",
	.arg2type = ARG_FD,
	.arg3name = "offset",
	.arg3type = ARG_ADDRESS,
	.arg4name = "count",
	.arg4type = ARG_LEN,
	.flags = NEED_ALARM | IGNORE_ENOSYS,
};

/*
 * SYSCALL_DEFINE4(sendfile64, int, out_fd, int, in_fd, loff_t __user *, offset, size_t, count)
 */

struct syscallentry syscall_sendfile64 = {
	.name = "sendfile",
	.num_args = 4,
	.arg1name = "out_fd",
	.arg1type = ARG_FD,
	.arg2name = "in_fd",
	.arg2type = ARG_FD,
	.arg3name = "offset",
	.arg3type = ARG_ADDRESS,
	.arg4name = "count",
	.arg4type = ARG_LEN,
	.flags = NEED_ALARM | IGNORE_ENOSYS,
};