File: fsopen.c

package info (click to toggle)
trinity 1.9%2Bgit20250902.294c465-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,104 kB
  • sloc: ansic: 33,473; sh: 574; makefile: 164
file content (20 lines) | stat: -rw-r--r-- 433 bytes parent folder | download | duplicates (4)
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),
};