File: fsopen.c

package info (click to toggle)
trinity 1.9%2Bgit20200331.4d2343bd18c7b-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,080 kB
  • sloc: ansic: 32,746; sh: 536; makefile: 164
file content (20 lines) | stat: -rw-r--r-- 433 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 *  SYSCALL_DEFINE2(fsopen, const char __user *, _fs_name, unsigned int, flags)
 */
#include "sanitise.h"

// TODO: construct arg1 from /proc/filesystems

#define FSOPEN_CLOEXEC 0x00000001
static unsigned long fsopen_flags[] = {
	FSOPEN_CLOEXEC
};

struct syscallentry syscall_fsopen = {
	.name = "fsopen",
	.num_args = 2,
	.arg1name = "_fs_name",
	.arg2name = "flags",
	.arg2type = ARG_OP,
	.arg2list = ARGLIST(fsopen_flags),
};