| ... | @@ -1,1869 +0,0 @@ | ... | @@ -1,1869 +0,0 @@ |
| 1 | const std = @import("std"); | | |
| 2 | const errno = @import("errno"); | | |
| 3 | const sys = std.os.linux; | | |
| 4 | const syscall0 = sys.syscall0; | | |
| 5 | const syscall1 = sys.syscall1; | | |
| 6 | const syscall2 = sys.syscall2; | | |
| 7 | const syscall3 = sys.syscall3; | | |
| 8 | const syscall4 = sys.syscall4; | | |
| 9 | const syscall5 = sys.syscall5; | | |
| 10 | const syscall6 = sys.syscall6; | | |
| 11 | | | |
| 12 | pub const pid_t = sys.pid_t; | | |
| 13 | pub const uid_t = sys.uid_t; | | |
| 14 | pub const gid_t = sys.gid_t; | | |
| 15 | | | |
| 16 | fn _errno(rc: usize) enum(c_ushort) { ok, _ } { | | |
| 17 | const signed: isize = @bitCast(rc); | | |
| 18 | const int = if (signed > -4096 and signed < 0) -signed else 0; | | |
| 19 | return @enumFromInt(int); | | |
| 20 | } | | |
| 21 | | | |
| 22 | // read | | |
| 23 | // ssize_t read(int fd, void buf[.count], size_t count); | | |
| 24 | // asmlinkage long sys_read(unsigned int fd, char __user *buf, size_t count); | | |
| 25 | pub fn read(fd: c_int, buf: []u8) errno.Error!usize { | | |
| 26 | const r = syscall3(.read, @intCast(fd), @intFromPtr(buf.ptr), buf.len); | | |
| 27 | return switch (_errno(r)) { | | |
| 28 | .ok => @intCast(r), | | |
| 29 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 30 | }; | | |
| 31 | } | | |
| 32 | | | |
| 33 | // write | | |
| 34 | // ssize_t write(int fd, const void buf[.count], size_t count); | | |
| 35 | // asmlinkage long sys_write(unsigned int fd, const char __user *buf, size_t count); | | |
| 36 | pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { | | |
| 37 | const r = syscall3(.write, @intCast(fd), @intFromPtr(buf.ptr), buf.len); | | |
| 38 | return switch (_errno(r)) { | | |
| 39 | .ok => @intCast(r), | | |
| 40 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 41 | }; | | |
| 42 | } | | |
| 43 | | | |
| 44 | // open | | |
| 45 | // int open(const char *pathname, int flags, ... /* mode_t mode */ ); | | |
| 46 | // asmlinkage long sys_open(const char __user *filename, int flags, umode_t mode); | | |
| 47 | pub const open = @compileError("TODO: open"); | | |
| 48 | | | |
| 49 | // close | | |
| 50 | // int close(int fd); | | |
| 51 | // asmlinkage long sys_close(unsigned int fd); | | |
| 52 | pub const close = @compileError("TODO: close"); | | |
| 53 | | | |
| 54 | // stat | | |
| 55 | // int stat(const char *restrict pathname, struct stat *restrict statbuf); | | |
| 56 | // asmlinkage long sys_stat(const char __user *filename, struct __old_kernel_stat __user *statbuf); | | |
| 57 | pub const stat = @compileError("TODO: stat"); | | |
| 58 | | | |
| 59 | // fstat | | |
| 60 | // int fstat(int fd, struct stat *statbuf); | | |
| 61 | // asmlinkage long sys_fstat(unsigned int fd, struct __old_kernel_stat __user *statbuf); | | |
| 62 | pub const fstat = @compileError("TODO: fstat"); | | |
| 63 | | | |
| 64 | // lstat | | |
| 65 | // int lstat(const char *restrict pathname, struct stat *restrict statbuf); | | |
| 66 | // asmlinkage long sys_lstat(const char __user *filename, struct __old_kernel_stat __user *statbuf); | | |
| 67 | pub const lstat = @compileError("TODO: lstat"); | | |
| 68 | | | |
| 69 | // poll | | |
| 70 | // int poll(struct pollfd *fds, nfds_t nfds, int timeout); | | |
| 71 | // asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds, int timeout); | | |
| 72 | pub const poll = @compileError("TODO: poll"); | | |
| 73 | | | |
| 74 | // lseek | | |
| 75 | // off_t lseek(int fd, off_t offset, int whence); | | |
| 76 | // asmlinkage long sys_lseek(unsigned int fd, off_t offset, unsigned int whence); | | |
| 77 | pub const lseek = @compileError("TODO: lseek"); | | |
| 78 | | | |
| 79 | // mmap | | |
| 80 | // void *mmap(void addr[.length], size_t length, int prot, int flags, int fd, off_t offset); | | |
| 81 | // asmlinkage long sys_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long off); | | |
| 82 | pub const mmap = @compileError("TODO: mmap"); | | |
| 83 | | | |
| 84 | // mprotect | | |
| 85 | // int mprotect(void addr[.len], size_t len, int prot); | | |
| 86 | // asmlinkage long sys_mprotect(unsigned long start, size_t len, unsigned long prot); | | |
| 87 | pub const mprotect = @compileError("TODO: mprotect"); | | |
| 88 | | | |
| 89 | // munmap | | |
| 90 | // int munmap(void addr[.length], size_t length); | | |
| 91 | // asmlinkage long sys_munmap(unsigned long addr, size_t len); | | |
| 92 | pub const munmap = @compileError("TODO: munmap"); | | |
| 93 | | | |
| 94 | // brk | | |
| 95 | // int brk(void *addr); | | |
| 96 | // asmlinkage long sys_brk(unsigned long brk); | | |
| 97 | pub const brk = @compileError("TODO: brk"); | | |
| 98 | | | |
| 99 | // rt_sigaction | | |
| 100 | // int sigaction(int signum, const struct sigaction *_Nullable restrict act, struct sigaction *_Nullable restrict oldact); | | |
| 101 | // asmlinkage long sys_rt_sigaction(int, const struct sigaction __user *, struct sigaction __user *, size_t); | | |
| 102 | pub const rt_sigaction = @compileError("TODO: rt_sigaction"); | | |
| 103 | | | |
| 104 | // rt_sigprocmask | | |
| 105 | // int sigprocmask(int how, const sigset_t *_Nullable restrict set, sigset_t *_Nullable restrict oldset); | | |
| 106 | // asmlinkage long sys_rt_sigprocmask(int how, sigset_t __user *set, sigset_t __user *oset, size_t sigsetsize); | | |
| 107 | pub const rt_sigprocmask = @compileError("TODO: rt_sigprocmask"); | | |
| 108 | | | |
| 109 | // rt_sigreturn | | |
| 110 | // int sigreturn(...); | | |
| 111 | // asmlinkage long sys_rt_sigreturn(struct pt_regs *regs); | | |
| 112 | pub const rt_sigreturn = @compileError("TODO: rt_sigreturn"); | | |
| 113 | | | |
| 114 | // ioctl | | |
| 115 | // int ioctl(int fd, unsigned long op, ...); | | |
| 116 | // asmlinkage long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg); | | |
| 117 | pub const ioctl = @compileError("TODO: ioctl"); | | |
| 118 | | | |
| 119 | // pread64 | | |
| 120 | // ssize_t pread(int fd, void buf[.count], size_t count, off_t offset); | | |
| 121 | // asmlinkage long sys_pread64(unsigned int fd, char __user *buf, size_t count, loff_t pos); | | |
| 122 | pub const pread64 = @compileError("TODO: pread64"); | | |
| 123 | | | |
| 124 | // pwrite64 | | |
| 125 | // ssize_t pwrite(int fd, const void buf[.count], size_t count, off_t offset); | | |
| 126 | // asmlinkage long sys_pwrite64(unsigned int fd, const char __user *buf, size_t count, loff_t pos); | | |
| 127 | pub const pwrite64 = @compileError("TODO: pwrite64"); | | |
| 128 | | | |
| 129 | // readv | | |
| 130 | // ssize_t readv(int fd, const struct iovec *iov, int iovcnt); | | |
| 131 | // asmlinkage long sys_readv(unsigned long fd, const struct iovec __user *vec, unsigned long vlen); | | |
| 132 | pub const readv = @compileError("TODO: readv"); | | |
| 133 | | | |
| 134 | // writev | | |
| 135 | // ssize_t writev(int fd, const struct iovec *iov, int iovcnt); | | |
| 136 | // asmlinkage long sys_writev(unsigned long fd, const struct iovec __user *vec, unsigned long vlen); | | |
| 137 | pub const writev = @compileError("TODO: writev"); | | |
| 138 | | | |
| 139 | // access | | |
| 140 | // int access(const char *pathname, int mode); | | |
| 141 | // asmlinkage long sys_access(const char __user *filename, int mode); | | |
| 142 | pub const access = @compileError("TODO: access"); | | |
| 143 | | | |
| 144 | // pipe | | |
| 145 | // int pipe(int pipefd[2]); | | |
| 146 | // asmlinkage long sys_pipe(int __user *fildes); | | |
| 147 | pub const pipe = @compileError("TODO: pipe"); | | |
| 148 | | | |
| 149 | // select | | |
| 150 | // int select(int nfds, fd_set *_Nullable restrict readfds, fd_set *_Nullable restrict writefds, fd_set *_Nullable restrict exceptfds, struct timeval *_Nullable restrict timeout); | | |
| 151 | // asmlinkage long sys_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp, struct __kernel_old_timeval __user *tvp); | | |
| 152 | pub const select = @compileError("TODO: select"); | | |
| 153 | | | |
| 154 | // sched_yield | | |
| 155 | // int sched_yield(void); | | |
| 156 | // asmlinkage long sys_sched_yield(void); | | |
| 157 | pub fn sched_yield() errno.Error!c_int { | | |
| 158 | const r = syscall0(.sched_yield); | | |
| 159 | return switch (_errno(r)) { | | |
| 160 | .ok => @intCast(r), | | |
| 161 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 162 | }; | | |
| 163 | } | | |
| 164 | | | |
| 165 | // mremap | | |
| 166 | // void *mremap(void old_address[.old_size], size_t old_size, size_t new_size, int flags, ... /* void *new_address */); | | |
| 167 | // asmlinkage long sys_mremap(unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, unsigned long new_addr); | | |
| 168 | pub const mremap = @compileError("TODO: mremap"); | | |
| 169 | | | |
| 170 | // msync | | |
| 171 | // int msync(void addr[.length], size_t length, int flags); | | |
| 172 | // asmlinkage long sys_msync(unsigned long start, size_t len, int flags); | | |
| 173 | pub const msync = @compileError("TODO: msync"); | | |
| 174 | | | |
| 175 | // mincore | | |
| 176 | // int mincore(void addr[.length], size_t length, unsigned char *vec); | | |
| 177 | // asmlinkage long sys_mincore(unsigned long start, size_t len, unsigned char __user * vec); | | |
| 178 | pub const mincore = @compileError("TODO: mincore"); | | |
| 179 | | | |
| 180 | // madvise | | |
| 181 | // int madvise(void addr[.length], size_t length, int advice); | | |
| 182 | // asmlinkage long sys_madvise(unsigned long start, size_t len, int behavior); | | |
| 183 | pub const madvise = @compileError("TODO: madvise"); | | |
| 184 | | | |
| 185 | // shmget | | |
| 186 | // int shmget(key_t key, size_t size, int shmflg); | | |
| 187 | // asmlinkage long sys_shmget(key_t key, size_t size, int flag); | | |
| 188 | pub const shmget = @compileError("TODO: shmget"); | | |
| 189 | | | |
| 190 | // shmat | | |
| 191 | // void *shmat(int shmid, const void *_Nullable shmaddr, int shmflg); | | |
| 192 | // asmlinkage long sys_shmat(int shmid, char __user *shmaddr, int shmflg); | | |
| 193 | pub const shmat = @compileError("TODO: shmat"); | | |
| 194 | | | |
| 195 | // shmctl | | |
| 196 | // int shmctl(int shmid, int op, struct shmid_ds *buf); | | |
| 197 | // asmlinkage long sys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf); | | |
| 198 | pub const shmctl = @compileError("TODO: shmctl"); | | |
| 199 | | | |
| 200 | // dup | | |
| 201 | // int dup(int oldfd); | | |
| 202 | // asmlinkage long sys_dup(unsigned int fildes); | | |
| 203 | pub const dup = @compileError("TODO: dup"); | | |
| 204 | | | |
| 205 | // dup2 | | |
| 206 | // int dup2(int oldfd, int newfd); | | |
| 207 | // asmlinkage long sys_dup2(unsigned int oldfd, unsigned int newfd); | | |
| 208 | pub const dup2 = @compileError("TODO: dup2"); | | |
| 209 | | | |
| 210 | // pause | | |
| 211 | // int pause(void); | | |
| 212 | // asmlinkage long sys_pause(void); | | |
| 213 | pub fn pause() errno.Error!c_int { | | |
| 214 | const r = syscall0(.pause); | | |
| 215 | return switch (_errno(r)) { | | |
| 216 | .ok => @intCast(r), | | |
| 217 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 218 | }; | | |
| 219 | } | | |
| 220 | | | |
| 221 | // nanosleep | | |
| 222 | // int nanosleep(const struct timespec *duration, struct timespec *_Nullable rem); | | |
| 223 | // asmlinkage long sys_nanosleep(struct __kernel_timespec __user *rqtp, struct __kernel_timespec __user *rmtp); | | |
| 224 | pub const nanosleep = @compileError("TODO: nanosleep"); | | |
| 225 | | | |
| 226 | // getitimer | | |
| 227 | // int getitimer(int which, struct itimerval *curr_value); | | |
| 228 | // asmlinkage long sys_getitimer(int which, struct __kernel_old_itimerval __user *value); | | |
| 229 | pub const getitimer = @compileError("TODO: getitimer"); | | |
| 230 | | | |
| 231 | // alarm | | |
| 232 | // unsigned int alarm(unsigned int seconds); | | |
| 233 | // asmlinkage long sys_alarm(unsigned int seconds); | | |
| 234 | pub const alarm = @compileError("TODO: alarm"); | | |
| 235 | | | |
| 236 | // setitimer | | |
| 237 | // int setitimer(int which, const struct itimerval *restrict new_value, struct itimerval *_Nullable restrict old_value); | | |
| 238 | // asmlinkage long sys_setitimer(int which, struct __kernel_old_itimerval __user *value, struct __kernel_old_itimerval __user *ovalue); | | |
| 239 | pub const setitimer = @compileError("TODO: setitimer"); | | |
| 240 | | | |
| 241 | // getpid | | |
| 242 | // pid_t getpid(void); | | |
| 243 | // asmlinkage long sys_getpid(void); | | |
| 244 | pub fn getpid() pid_t { | | |
| 245 | return @intCast(syscall0(.getpid)); | | |
| 246 | } | | |
| 247 | | | |
| 248 | // sendfile | | |
| 249 | // ssize_t sendfile(int out_fd, int in_fd, off_t *_Nullable offset, size_t count); | | |
| 250 | // asmlinkage long sys_sendfile(int out_fd, int in_fd, off_t __user *offset, size_t count); | | |
| 251 | pub const sendfile = @compileError("TODO: sendfile"); | | |
| 252 | | | |
| 253 | // socket | | |
| 254 | // int socket(int domain, int type, int protocol); | | |
| 255 | // asmlinkage long sys_socket(int, int, int); | | |
| 256 | pub const socket = @compileError("TODO: socket"); | | |
| 257 | | | |
| 258 | // connect | | |
| 259 | // int connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen); | | |
| 260 | // asmlinkage long sys_connect(int, struct sockaddr __user *, int); | | |
| 261 | pub const connect = @compileError("TODO: connect"); | | |
| 262 | | | |
| 263 | // accept | | |
| 264 | // int accept(int sockfd, struct sockaddr *_Nullable restrict addr, socklen_t *_Nullable restrict addrlen); | | |
| 265 | // asmlinkage long sys_accept(int, struct sockaddr __user *, int __user *); | | |
| 266 | pub const accept = @compileError("TODO: accept"); | | |
| 267 | | | |
| 268 | // sendto | | |
| 269 | // ssize_t sendto(int sockfd, const void buf[.len], size_t len, int flags, const struct sockaddr *dest_addr, socklen_t addrlen); | | |
| 270 | // asmlinkage long sys_sendto(int, void __user *, size_t, unsigned, struct sockaddr __user *, int); | | |
| 271 | pub const sendto = @compileError("TODO: sendto"); | | |
| 272 | | | |
| 273 | // recvfrom | | |
| 274 | // ssize_t recvfrom(int sockfd, void buf[restrict .len], size_t len, int flags, struct sockaddr *_Nullable restrict src_addr, socklen_t *_Nullable restrict addrlen); | | |
| 275 | // asmlinkage long sys_recvfrom(int, void __user *, size_t, unsigned, struct sockaddr __user *, int __user *); | | |
| 276 | pub const recvfrom = @compileError("TODO: recvfrom"); | | |
| 277 | | | |
| 278 | // sendmsg | | |
| 279 | // ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags); | | |
| 280 | // asmlinkage long sys_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags); | | |
| 281 | pub const sendmsg = @compileError("TODO: sendmsg"); | | |
| 282 | | | |
| 283 | // recvmsg | | |
| 284 | // ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags); | | |
| 285 | // asmlinkage long sys_recvmsg(int fd, struct user_msghdr __user *msg, unsigned flags); | | |
| 286 | pub const recvmsg = @compileError("TODO: recvmsg"); | | |
| 287 | | | |
| 288 | // shutdown | | |
| 289 | // int shutdown(int sockfd, int how); | | |
| 290 | // asmlinkage long sys_shutdown(int, int); | | |
| 291 | pub const shutdown = @compileError("TODO: shutdown"); | | |
| 292 | | | |
| 293 | // bind | | |
| 294 | // int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen); | | |
| 295 | // asmlinkage long sys_bind(int, struct sockaddr __user *, int); | | |
| 296 | pub const bind = @compileError("TODO: bind"); | | |
| 297 | | | |
| 298 | // listen | | |
| 299 | // int listen(int sockfd, int backlog); | | |
| 300 | // asmlinkage long sys_listen(int, int); | | |
| 301 | pub const listen = @compileError("TODO: listen"); | | |
| 302 | | | |
| 303 | // getsockname | | |
| 304 | // int getsockname(int sockfd, struct sockaddr *restrict addr, socklen_t *restrict addrlen); | | |
| 305 | // asmlinkage long sys_getsockname(int, struct sockaddr __user *, int __user *); | | |
| 306 | pub const getsockname = @compileError("TODO: getsockname"); | | |
| 307 | | | |
| 308 | // getpeername | | |
| 309 | // int getpeername(int sockfd, struct sockaddr *restrict addr, socklen_t *restrict addrlen); | | |
| 310 | // asmlinkage long sys_getpeername(int, struct sockaddr __user *, int __user *); | | |
| 311 | pub const getpeername = @compileError("TODO: getpeername"); | | |
| 312 | | | |
| 313 | // socketpair | | |
| 314 | // int socketpair(int domain, int type, int protocol, int sv[2]); | | |
| 315 | // asmlinkage long sys_socketpair(int, int, int, int __user *); | | |
| 316 | pub const socketpair = @compileError("TODO: socketpair"); | | |
| 317 | | | |
| 318 | // setsockopt | | |
| 319 | // int setsockopt(int sockfd, int level, int optname, const void optval[.optlen], socklen_t optlen); | | |
| 320 | // asmlinkage long sys_setsockopt(int fd, int level, int optname, char __user *optval, int optlen); | | |
| 321 | pub const setsockopt = @compileError("TODO: setsockopt"); | | |
| 322 | | | |
| 323 | // getsockopt | | |
| 324 | // int getsockopt(int sockfd, int level, int optname, void optval[restrict *.optlen], socklen_t *restrict optlen); | | |
| 325 | // asmlinkage long sys_getsockopt(int fd, int level, int optname, char __user *optval, int __user *optlen); | | |
| 326 | pub const getsockopt = @compileError("TODO: getsockopt"); | | |
| 327 | | | |
| 328 | // clone | | |
| 329 | // int clone(int (*fn)(void *_Nullable), void *stack, int flags, void *_Nullable arg, ... /* pid_t *_Nullable parent_tid, void *_Nullable tls, pid_t *_Nullable child_tid */ ); | | |
| 330 | // asmlinkage long sys_clone(unsigned long, unsigned long, int __user *, int __user *, unsigned long); | | |
| 331 | pub const clone = @compileError("TODO: clone"); | | |
| 332 | | | |
| 333 | // fork | | |
| 334 | // pid_t fork(void); | | |
| 335 | // asmlinkage long sys_fork(void); | | |
| 336 | pub fn fork() errno.Error!pid_t { | | |
| 337 | const r = syscall0(.fork); | | |
| 338 | return switch (_errno(r)) { | | |
| 339 | .ok => @intCast(r), | | |
| 340 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 341 | }; | | |
| 342 | } | | |
| 343 | | | |
| 344 | // vfork | | |
| 345 | // pid_t vfork(void); | | |
| 346 | // asmlinkage long sys_vfork(void); | | |
| 347 | pub fn vfork() errno.Error!pid_t { | | |
| 348 | const r = syscall0(.vfork); | | |
| 349 | return switch (_errno(r)) { | | |
| 350 | .ok => @intCast(r), | | |
| 351 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 352 | }; | | |
| 353 | } | | |
| 354 | | | |
| 355 | // execve | | |
| 356 | // int execve(const char *pathname, char *const _Nullable argv[], char *const _Nullable envp[]); | | |
| 357 | // asmlinkage long sys_execve(const char __user *filename, const char __user *const __user *argv, const char __user *const __user *envp); | | |
| 358 | pub const execve = @compileError("TODO: execve"); | | |
| 359 | | | |
| 360 | // exit | | |
| 361 | // [[noreturn]] void _exit(int status); | | |
| 362 | // asmlinkage long sys_exit(int error_code); | | |
| 363 | pub const exit = @compileError("TODO: exit"); | | |
| 364 | | | |
| 365 | // wait4 | | |
| 366 | // pid_t wait4(pid_t pid, int *_Nullable wstatus, int options, struct rusage *_Nullable rusage); | | |
| 367 | // asmlinkage long sys_wait4(pid_t pid, int __user *stat_addr, int options, struct rusage __user *ru); | | |
| 368 | pub const wait4 = @compileError("TODO: wait4"); | | |
| 369 | | | |
| 370 | // kill | | |
| 371 | // int kill(pid_t pid, int sig); | | |
| 372 | // asmlinkage long sys_kill(pid_t pid, int sig); | | |
| 373 | pub const kill = @compileError("TODO: kill"); | | |
| 374 | | | |
| 375 | // uname | | |
| 376 | // int uname(struct utsname *buf); | | |
| 377 | // asmlinkage long sys_uname(struct old_utsname __user *); | | |
| 378 | pub const uname = @compileError("TODO: uname"); | | |
| 379 | | | |
| 380 | // semget | | |
| 381 | // int semget(key_t key, int nsems, int semflg); | | |
| 382 | // asmlinkage long sys_semget(key_t key, int nsems, int semflg); | | |
| 383 | pub const semget = @compileError("TODO: semget"); | | |
| 384 | | | |
| 385 | // semop | | |
| 386 | // int semop(int semid, struct sembuf *sops, size_t nsops); | | |
| 387 | // asmlinkage long sys_semop(int semid, struct sembuf __user *sops, unsigned nsops); | | |
| 388 | pub const semop = @compileError("TODO: semop"); | | |
| 389 | | | |
| 390 | // semctl | | |
| 391 | // int semctl(int semid, int semnum, int op, ...); | | |
| 392 | // asmlinkage long sys_semctl(int semid, int semnum, int cmd, unsigned long arg); | | |
| 393 | pub const semctl = @compileError("TODO: semctl"); | | |
| 394 | | | |
| 395 | // shmdt | | |
| 396 | // int shmdt(const void *shmaddr); | | |
| 397 | // asmlinkage long sys_shmdt(char __user *shmaddr); | | |
| 398 | pub const shmdt = @compileError("TODO: shmdt"); | | |
| 399 | | | |
| 400 | // msgget | | |
| 401 | // int msgget(key_t key, int msgflg); | | |
| 402 | // asmlinkage long sys_msgget(key_t key, int msgflg); | | |
| 403 | pub const msgget = @compileError("TODO: msgget"); | | |
| 404 | | | |
| 405 | // msgsnd | | |
| 406 | // int msgsnd(int msqid, const void msgp[.msgsz], size_t msgsz, int msgflg); | | |
| 407 | // asmlinkage long sys_msgsnd(int msqid, struct msgbuf __user *msgp, size_t msgsz, int msgflg); | | |
| 408 | pub const msgsnd = @compileError("TODO: msgsnd"); | | |
| 409 | | | |
| 410 | // msgrcv | | |
| 411 | // ssize_t msgrcv(int msqid, void msgp[.msgsz], size_t msgsz, long msgtyp, int msgflg); | | |
| 412 | // asmlinkage long sys_msgrcv(int msqid, struct msgbuf __user *msgp, size_t msgsz, long msgtyp, int msgflg); | | |
| 413 | pub const msgrcv = @compileError("TODO: msgrcv"); | | |
| 414 | | | |
| 415 | // msgctl | | |
| 416 | // int msgctl(int msqid, int op, struct msqid_ds *buf); | | |
| 417 | // asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf); | | |
| 418 | pub const msgctl = @compileError("TODO: msgctl"); | | |
| 419 | | | |
| 420 | // fcntl | | |
| 421 | // int fcntl(int fd, int op, ... /* arg */ ); | | |
| 422 | // asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg); | | |
| 423 | pub const fcntl = @compileError("TODO: fcntl"); | | |
| 424 | | | |
| 425 | // flock | | |
| 426 | // int flock(int fd, int op); | | |
| 427 | // asmlinkage long sys_flock(unsigned int fd, unsigned int cmd); | | |
| 428 | pub const flock = @compileError("TODO: flock"); | | |
| 429 | | | |
| 430 | // fsync | | |
| 431 | // int fsync(int fd); | | |
| 432 | // asmlinkage long sys_fsync(unsigned int fd); | | |
| 433 | pub const fsync = @compileError("TODO: fsync"); | | |
| 434 | | | |
| 435 | // fdatasync | | |
| 436 | // int fdatasync(int fd); | | |
| 437 | // asmlinkage long sys_fdatasync(unsigned int fd); | | |
| 438 | pub const fdatasync = @compileError("TODO: fdatasync"); | | |
| 439 | | | |
| 440 | // truncate | | |
| 441 | // int truncate(const char *path, off_t length); | | |
| 442 | // asmlinkage long sys_truncate(const char __user *path, long length); | | |
| 443 | pub const truncate = @compileError("TODO: truncate"); | | |
| 444 | | | |
| 445 | // ftruncate | | |
| 446 | // int ftruncate(int fd, off_t length); | | |
| 447 | // asmlinkage long sys_ftruncate(unsigned int fd, off_t length); | | |
| 448 | pub const ftruncate = @compileError("TODO: ftruncate"); | | |
| 449 | | | |
| 450 | // getdents | | |
| 451 | // long syscall(SYS_getdents, unsigned int fd, struct linux_dirent *dirp, unsigned int count); | | |
| 452 | // asmlinkage long sys_getdents(unsigned int fd, struct linux_dirent __user *dirent, unsigned int count); | | |
| 453 | pub const getdents = @compileError("TODO: getdents"); | | |
| 454 | | | |
| 455 | // getcwd | | |
| 456 | // char *getcwd(char buf[.size], size_t size); | | |
| 457 | // asmlinkage long sys_getcwd(char __user *buf, unsigned long size); | | |
| 458 | pub const getcwd = @compileError("TODO: getcwd"); | | |
| 459 | | | |
| 460 | // chdir | | |
| 461 | // int chdir(const char *path); | | |
| 462 | // asmlinkage long sys_chdir(const char __user *filename); | | |
| 463 | pub const chdir = @compileError("TODO: chdir"); | | |
| 464 | | | |
| 465 | // fchdir | | |
| 466 | // int fchdir(int fd); | | |
| 467 | // asmlinkage long sys_fchdir(unsigned int fd); | | |
| 468 | pub const fchdir = @compileError("TODO: fchdir"); | | |
| 469 | | | |
| 470 | // rename | | |
| 471 | // int rename(const char *oldpath, const char *newpath); | | |
| 472 | // asmlinkage long sys_rename(const char __user *oldname, const char __user *newname); | | |
| 473 | pub const rename = @compileError("TODO: rename"); | | |
| 474 | | | |
| 475 | // mkdir | | |
| 476 | // int mkdir(const char *pathname, mode_t mode); | | |
| 477 | // asmlinkage long sys_mkdir(const char __user *pathname, umode_t mode); | | |
| 478 | pub const mkdir = @compileError("TODO: mkdir"); | | |
| 479 | | | |
| 480 | // rmdir | | |
| 481 | // int rmdir(const char *pathname); | | |
| 482 | // asmlinkage long sys_rmdir(const char __user *pathname); | | |
| 483 | pub const rmdir = @compileError("TODO: rmdir"); | | |
| 484 | | | |
| 485 | // creat | | |
| 486 | // int creat(const char *pathname, mode_t mode); | | |
| 487 | // asmlinkage long sys_creat(const char __user *pathname, umode_t mode); | | |
| 488 | pub const creat = @compileError("TODO: creat"); | | |
| 489 | | | |
| 490 | // link | | |
| 491 | // int link(const char *oldpath, const char *newpath); | | |
| 492 | // asmlinkage long sys_link(const char __user *oldname, const char __user *newname); | | |
| 493 | pub const link = @compileError("TODO: link"); | | |
| 494 | | | |
| 495 | // unlink | | |
| 496 | // int unlink(const char *pathname); | | |
| 497 | // asmlinkage long sys_unlink(const char __user *pathname); | | |
| 498 | pub const unlink = @compileError("TODO: unlink"); | | |
| 499 | | | |
| 500 | // symlink | | |
| 501 | // int symlink(const char *target, const char *linkpath); | | |
| 502 | // asmlinkage long sys_symlink(const char __user *old, const char __user *new); | | |
| 503 | pub const symlink = @compileError("TODO: symlink"); | | |
| 504 | | | |
| 505 | // readlink | | |
| 506 | // ssize_t readlink(const char *restrict pathname, char *restrict buf, size_t bufsiz); | | |
| 507 | // asmlinkage long sys_readlink(const char __user *path, char __user *buf, int bufsiz); | | |
| 508 | pub const readlink = @compileError("TODO: readlink"); | | |
| 509 | | | |
| 510 | // chmod | | |
| 511 | // int chmod(const char *pathname, mode_t mode); | | |
| 512 | // asmlinkage long sys_chmod(const char __user *filename, umode_t mode); | | |
| 513 | pub const chmod = @compileError("TODO: chmod"); | | |
| 514 | | | |
| 515 | // fchmod | | |
| 516 | // int fchmod(int fd, mode_t mode); | | |
| 517 | // asmlinkage long sys_fchmod(unsigned int fd, umode_t mode); | | |
| 518 | pub const fchmod = @compileError("TODO: fchmod"); | | |
| 519 | | | |
| 520 | // chown | | |
| 521 | // int chown(const char *pathname, uid_t owner, gid_t group); | | |
| 522 | // asmlinkage long sys_chown(const char __user *filename, uid_t user, gid_t group); | | |
| 523 | pub const chown = @compileError("TODO: chown"); | | |
| 524 | | | |
| 525 | // fchown | | |
| 526 | // int fchown(int fd, uid_t owner, gid_t group); | | |
| 527 | // asmlinkage long sys_fchown(unsigned int fd, uid_t user, gid_t group); | | |
| 528 | pub const fchown = @compileError("TODO: fchown"); | | |
| 529 | | | |
| 530 | // lchown | | |
| 531 | // int lchown(const char *pathname, uid_t owner, gid_t group); | | |
| 532 | // asmlinkage long sys_lchown(const char __user *filename, uid_t user, gid_t group); | | |
| 533 | pub const lchown = @compileError("TODO: lchown"); | | |
| 534 | | | |
| 535 | // umask | | |
| 536 | // mode_t umask(mode_t mask); | | |
| 537 | // asmlinkage long sys_umask(int mask); | | |
| 538 | pub const umask = @compileError("TODO: umask"); | | |
| 539 | | | |
| 540 | // gettimeofday | | |
| 541 | // int gettimeofday(struct timeval *restrict tv, struct timezone *_Nullable restrict tz); | | |
| 542 | // asmlinkage long sys_gettimeofday(struct __kernel_old_timeval __user *tv, struct timezone __user *tz); | | |
| 543 | pub const gettimeofday = @compileError("TODO: gettimeofday"); | | |
| 544 | | | |
| 545 | // getrlimit | | |
| 546 | // int getrlimit(int resource, struct rlimit *rlim); | | |
| 547 | // asmlinkage long sys_getrlimit(unsigned int resource, struct rlimit __user *rlim); | | |
| 548 | pub const getrlimit = @compileError("TODO: getrlimit"); | | |
| 549 | | | |
| 550 | // getrusage | | |
| 551 | // int getrusage(int who, struct rusage *usage); | | |
| 552 | // asmlinkage long sys_getrusage(int who, struct rusage __user *ru); | | |
| 553 | pub const getrusage = @compileError("TODO: getrusage"); | | |
| 554 | | | |
| 555 | // sysinfo | | |
| 556 | // int sysinfo(struct sysinfo *info); | | |
| 557 | // asmlinkage long sys_sysinfo(struct sysinfo __user *info); | | |
| 558 | pub const sysinfo = @compileError("TODO: sysinfo"); | | |
| 559 | | | |
| 560 | // times | | |
| 561 | // clock_t times(struct tms *buf); | | |
| 562 | // asmlinkage long sys_times(struct tms __user *tbuf); | | |
| 563 | pub const times = @compileError("TODO: times"); | | |
| 564 | | | |
| 565 | // ptrace | | |
| 566 | // long ptrace(enum __ptrace_request op, pid_t pid, void *addr, void *data); | | |
| 567 | // asmlinkage long sys_ptrace(long request, long pid, unsigned long addr, unsigned long data); | | |
| 568 | pub const ptrace = @compileError("TODO: ptrace"); | | |
| 569 | | | |
| 570 | // getuid | | |
| 571 | // uid_t getuid(void); | | |
| 572 | // asmlinkage long sys_getuid(void); | | |
| 573 | pub fn getuid() errno.Error!uid_t { | | |
| 574 | const r = syscall0(.getuid); | | |
| 575 | return switch (_errno(r)) { | | |
| 576 | .ok => @intCast(r), | | |
| 577 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 578 | }; | | |
| 579 | } | | |
| 580 | | | |
| 581 | // syslog | | |
| 582 | // int syscall(SYS_syslog, int type, char *bufp, int len); | | |
| 583 | // asmlinkage long sys_syslog(int type, char __user *buf, int len); | | |
| 584 | pub const syslog = @compileError("TODO: syslog"); | | |
| 585 | | | |
| 586 | // getgid | | |
| 587 | // gid_t getgid(void); | | |
| 588 | // asmlinkage long sys_getgid(void); | | |
| 589 | pub fn getgid() errno.Error!gid_t { | | |
| 590 | const r = syscall0(.getgid); | | |
| 591 | return switch (_errno(r)) { | | |
| 592 | .ok => @intCast(r), | | |
| 593 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 594 | }; | | |
| 595 | } | | |
| 596 | | | |
| 597 | // setuid | | |
| 598 | // int setuid(uid_t uid); | | |
| 599 | // asmlinkage long sys_setuid(uid_t uid); | | |
| 600 | pub const setuid = @compileError("TODO: setuid"); | | |
| 601 | | | |
| 602 | // setgid | | |
| 603 | // int setgid(gid_t gid); | | |
| 604 | // asmlinkage long sys_setgid(gid_t gid); | | |
| 605 | pub const setgid = @compileError("TODO: setgid"); | | |
| 606 | | | |
| 607 | // geteuid | | |
| 608 | // uid_t geteuid(void); | | |
| 609 | // asmlinkage long sys_geteuid(void); | | |
| 610 | pub fn geteuid() errno.Error!uid_t { | | |
| 611 | const r = syscall0(.geteuid); | | |
| 612 | return switch (_errno(r)) { | | |
| 613 | .ok => @intCast(r), | | |
| 614 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 615 | }; | | |
| 616 | } | | |
| 617 | | | |
| 618 | // getegid | | |
| 619 | // gid_t getegid(void); | | |
| 620 | // asmlinkage long sys_getegid(void); | | |
| 621 | pub fn getegid() errno.Error!gid_t { | | |
| 622 | const r = syscall0(.getegid); | | |
| 623 | return switch (_errno(r)) { | | |
| 624 | .ok => @intCast(r), | | |
| 625 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 626 | }; | | |
| 627 | } | | |
| 628 | | | |
| 629 | // setpgid | | |
| 630 | // int setpgid(pid_t pid, pid_t pgid); | | |
| 631 | // asmlinkage long sys_setpgid(pid_t pid, pid_t pgid); | | |
| 632 | pub const setpgid = @compileError("TODO: setpgid"); | | |
| 633 | | | |
| 634 | // getppid | | |
| 635 | // pid_t getppid(void); | | |
| 636 | // asmlinkage long sys_getppid(void); | | |
| 637 | pub fn getppid() errno.Error!pid_t { | | |
| 638 | const r = syscall0(.getppid); | | |
| 639 | return switch (_errno(r)) { | | |
| 640 | .ok => @intCast(r), | | |
| 641 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 642 | }; | | |
| 643 | } | | |
| 644 | | | |
| 645 | // getpgrp | | |
| 646 | // pid_t getpgrp(void); | | |
| 647 | // asmlinkage long sys_getpgrp(void); | | |
| 648 | pub fn getpgrp() errno.Error!pid_t { | | |
| 649 | const r = syscall0(.getpgrp); | | |
| 650 | return switch (_errno(r)) { | | |
| 651 | .ok => @intCast(r), | | |
| 652 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 653 | }; | | |
| 654 | } | | |
| 655 | | | |
| 656 | // setsid | | |
| 657 | // pid_t setsid(void); | | |
| 658 | // asmlinkage long sys_setsid(void); | | |
| 659 | pub fn setsid() errno.Error!pid_t { | | |
| 660 | const r = syscall0(.setsid); | | |
| 661 | return switch (_errno(r)) { | | |
| 662 | .ok => @intCast(r), | | |
| 663 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 664 | }; | | |
| 665 | } | | |
| 666 | | | |
| 667 | // setreuid | | |
| 668 | // int setreuid(uid_t ruid, uid_t euid); | | |
| 669 | // asmlinkage long sys_setreuid(uid_t ruid, uid_t euid); | | |
| 670 | pub const setreuid = @compileError("TODO: setreuid"); | | |
| 671 | | | |
| 672 | // setregid | | |
| 673 | // int setregid(gid_t rgid, gid_t egid); | | |
| 674 | // asmlinkage long sys_setregid(gid_t rgid, gid_t egid); | | |
| 675 | pub const setregid = @compileError("TODO: setregid"); | | |
| 676 | | | |
| 677 | // getgroups | | |
| 678 | // int getgroups(int size, gid_t list[]); | | |
| 679 | // asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist); | | |
| 680 | pub const getgroups = @compileError("TODO: getgroups"); | | |
| 681 | | | |
| 682 | // setgroups | | |
| 683 | // int setgroups(size_t size, const gid_t *_Nullable list); | | |
| 684 | // asmlinkage long sys_setgroups(int gidsetsize, gid_t __user *grouplist); | | |
| 685 | pub const setgroups = @compileError("TODO: setgroups"); | | |
| 686 | | | |
| 687 | // setresuid | | |
| 688 | // int setresuid(uid_t ruid, uid_t euid, uid_t suid); | | |
| 689 | // asmlinkage long sys_setresuid(uid_t ruid, uid_t euid, uid_t suid); | | |
| 690 | pub const setresuid = @compileError("TODO: setresuid"); | | |
| 691 | | | |
| 692 | // getresuid | | |
| 693 | // int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); | | |
| 694 | // asmlinkage long sys_getresuid(uid_t __user *ruid, uid_t __user *euid, uid_t __user *suid); | | |
| 695 | pub const getresuid = @compileError("TODO: getresuid"); | | |
| 696 | | | |
| 697 | // setresgid | | |
| 698 | // int setresgid(gid_t rgid, gid_t egid, gid_t sgid); | | |
| 699 | // asmlinkage long sys_setresgid(gid_t rgid, gid_t egid, gid_t sgid); | | |
| 700 | pub const setresgid = @compileError("TODO: setresgid"); | | |
| 701 | | | |
| 702 | // getresgid | | |
| 703 | // int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); | | |
| 704 | // asmlinkage long sys_getresgid(gid_t __user *rgid, gid_t __user *egid, gid_t __user *sgid); | | |
| 705 | pub const getresgid = @compileError("TODO: getresgid"); | | |
| 706 | | | |
| 707 | // getpgid | | |
| 708 | // pid_t getpgid(pid_t pid); | | |
| 709 | // asmlinkage long sys_getpgid(pid_t pid); | | |
| 710 | pub const getpgid = @compileError("TODO: getpgid"); | | |
| 711 | | | |
| 712 | // setfsuid | | |
| 713 | // [[deprecated]] int setfsuid(uid_t fsuid); | | |
| 714 | // asmlinkage long sys_setfsuid(uid_t uid); | | |
| 715 | pub const setfsuid = @compileError("TODO: setfsuid"); | | |
| 716 | | | |
| 717 | // setfsgid | | |
| 718 | // [[deprecated]] int setfsgid(gid_t fsgid); | | |
| 719 | // asmlinkage long sys_setfsgid(gid_t gid); | | |
| 720 | pub const setfsgid = @compileError("TODO: setfsgid"); | | |
| 721 | | | |
| 722 | // getsid | | |
| 723 | // pid_t getsid(pid_t pid); | | |
| 724 | // asmlinkage long sys_getsid(pid_t pid); | | |
| 725 | pub const getsid = @compileError("TODO: getsid"); | | |
| 726 | | | |
| 727 | // capget | | |
| 728 | // int syscall(SYS_capget, cap_user_header_t hdrp, cap_user_data_t datap); | | |
| 729 | // asmlinkage long sys_capget(cap_user_header_t header, cap_user_data_t dataptr); | | |
| 730 | pub const capget = @compileError("TODO: capget"); | | |
| 731 | | | |
| 732 | // capset | | |
| 733 | // int syscall(SYS_capset, cap_user_header_t hdrp, const cap_user_data_t datap); | | |
| 734 | // asmlinkage long sys_capset(cap_user_header_t header, const cap_user_data_t data); | | |
| 735 | pub const capset = @compileError("TODO: capset"); | | |
| 736 | | | |
| 737 | // rt_sigpending | | |
| 738 | // int sigpending(sigset_t *set); | | |
| 739 | // asmlinkage long sys_rt_sigpending(sigset_t __user *set, size_t sigsetsize); | | |
| 740 | pub const rt_sigpending = @compileError("TODO: rt_sigpending"); | | |
| 741 | | | |
| 742 | // rt_sigtimedwait | | |
| 743 | // int sigtimedwait(const sigset_t *restrict set, siginfo_t *_Nullable restrict info, const struct timespec *restrict timeout); | | |
| 744 | // asmlinkage long sys_rt_sigtimedwait(const sigset_t __user *uthese, siginfo_t __user *uinfo, const struct __kernel_timespec __user *uts, size_t sigsetsize); | | |
| 745 | pub const rt_sigtimedwait = @compileError("TODO: rt_sigtimedwait"); | | |
| 746 | | | |
| 747 | // rt_sigqueueinfo | | |
| 748 | // int syscall(SYS_rt_sigqueueinfo, pid_t tgid, int sig, siginfo_t *info); | | |
| 749 | // asmlinkage long sys_rt_sigqueueinfo(pid_t pid, int sig, siginfo_t __user *uinfo); | | |
| 750 | pub const rt_sigqueueinfo = @compileError("TODO: rt_sigqueueinfo"); | | |
| 751 | | | |
| 752 | // rt_sigsuspend | | |
| 753 | // int sigsuspend(const sigset_t *mask); | | |
| 754 | // asmlinkage long sys_rt_sigsuspend(sigset_t __user *unewset, size_t sigsetsize); | | |
| 755 | pub const rt_sigsuspend = @compileError("TODO: rt_sigsuspend"); | | |
| 756 | | | |
| 757 | // sigaltstack | | |
| 758 | // int sigaltstack(const stack_t *_Nullable restrict ss, stack_t *_Nullable restrict old_ss); | | |
| 759 | // asmlinkage long sys_sigaltstack(const struct sigaltstack __user *uss, struct sigaltstack __user *uoss); | | |
| 760 | pub const sigaltstack = @compileError("TODO: sigaltstack"); | | |
| 761 | | | |
| 762 | // utime | | |
| 763 | // int utime(const char *filename, const struct utimbuf *_Nullable times); | | |
| 764 | // asmlinkage long sys_utime(char __user *filename, struct utimbuf __user *times); | | |
| 765 | pub const utime = @compileError("TODO: utime"); | | |
| 766 | | | |
| 767 | // mknod | | |
| 768 | // int mknod(const char *pathname, mode_t mode, dev_t dev); | | |
| 769 | // asmlinkage long sys_mknod(const char __user *filename, umode_t mode, unsigned dev); | | |
| 770 | pub const mknod = @compileError("TODO: mknod"); | | |
| 771 | | | |
| 772 | // uselib | | |
| 773 | // [[deprecated]] int uselib(const char *library); | | |
| 774 | // asmlinkage long sys_uselib(const char __user *library); | | |
| 775 | pub const uselib = @compileError("TODO: uselib"); | | |
| 776 | | | |
| 777 | // personality | | |
| 778 | // int personality(unsigned long persona); | | |
| 779 | // asmlinkage long sys_personality(unsigned int personality); | | |
| 780 | pub const personality = @compileError("TODO: personality"); | | |
| 781 | | | |
| 782 | // ustat | | |
| 783 | // [[deprecated]] int ustat(dev_t dev, struct ustat *ubuf); | | |
| 784 | // asmlinkage long sys_ustat(unsigned dev, struct ustat __user *ubuf); | | |
| 785 | pub const ustat = @compileError("TODO: ustat"); | | |
| 786 | | | |
| 787 | // statfs | | |
| 788 | // int statfs(const char *path, struct statfs *buf); | | |
| 789 | // asmlinkage long sys_statfs(const char __user * path, struct statfs __user *buf); | | |
| 790 | pub const statfs = @compileError("TODO: statfs"); | | |
| 791 | | | |
| 792 | // fstatfs | | |
| 793 | // int fstatfs(int fd, struct statfs *buf); | | |
| 794 | // asmlinkage long sys_fstatfs(unsigned int fd, struct statfs __user *buf); | | |
| 795 | pub const fstatfs = @compileError("TODO: fstatfs"); | | |
| 796 | | | |
| 797 | // sysfs | | |
| 798 | // | | |
| 799 | // asmlinkage long sys_sysfs(int option, unsigned long arg1, unsigned long arg2); | | |
| 800 | pub const sysfs = @compileError("TODO: sysfs"); | | |
| 801 | | | |
| 802 | // getpriority | | |
| 803 | // int getpriority(int which, id_t who); | | |
| 804 | // asmlinkage long sys_getpriority(int which, int who); | | |
| 805 | pub const getpriority = @compileError("TODO: getpriority"); | | |
| 806 | | | |
| 807 | // setpriority | | |
| 808 | // int setpriority(int which, id_t who, int prio); | | |
| 809 | // asmlinkage long sys_setpriority(int which, int who, int niceval); | | |
| 810 | pub const setpriority = @compileError("TODO: setpriority"); | | |
| 811 | | | |
| 812 | // sched_setparam | | |
| 813 | // int sched_setparam(pid_t pid, const struct sched_param *param); | | |
| 814 | // asmlinkage long sys_sched_setparam(pid_t pid, struct sched_param __user *param); | | |
| 815 | pub const sched_setparam = @compileError("TODO: sched_setparam"); | | |
| 816 | | | |
| 817 | // sched_getparam | | |
| 818 | // int sched_getparam(pid_t pid, struct sched_param *param); | | |
| 819 | // asmlinkage long sys_sched_getparam(pid_t pid, struct sched_param __user *param); | | |
| 820 | pub const sched_getparam = @compileError("TODO: sched_getparam"); | | |
| 821 | | | |
| 822 | // sched_setscheduler | | |
| 823 | // int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param); | | |
| 824 | // asmlinkage long sys_sched_setscheduler(pid_t pid, int policy, struct sched_param __user *param); | | |
| 825 | pub const sched_setscheduler = @compileError("TODO: sched_setscheduler"); | | |
| 826 | | | |
| 827 | // sched_getscheduler | | |
| 828 | // int sched_getscheduler(pid_t pid); | | |
| 829 | // asmlinkage long sys_sched_getscheduler(pid_t pid); | | |
| 830 | pub const sched_getscheduler = @compileError("TODO: sched_getscheduler"); | | |
| 831 | | | |
| 832 | // sched_get_priority_max | | |
| 833 | // int sched_get_priority_max(int policy); | | |
| 834 | // asmlinkage long sys_sched_get_priority_max(int policy); | | |
| 835 | pub const sched_get_priority_max = @compileError("TODO: sched_get_priority_max"); | | |
| 836 | | | |
| 837 | // sched_get_priority_min | | |
| 838 | // int sched_get_priority_min(int policy); | | |
| 839 | // asmlinkage long sys_sched_get_priority_min(int policy); | | |
| 840 | pub const sched_get_priority_min = @compileError("TODO: sched_get_priority_min"); | | |
| 841 | | | |
| 842 | // sched_rr_get_interval | | |
| 843 | // int sched_rr_get_interval(pid_t pid, struct timespec *tp); | | |
| 844 | // asmlinkage long sys_sched_rr_get_interval(pid_t pid, struct __kernel_timespec __user *interval); | | |
| 845 | pub const sched_rr_get_interval = @compileError("TODO: sched_rr_get_interval"); | | |
| 846 | | | |
| 847 | // mlock | | |
| 848 | // int mlock(const void addr[.len], size_t len); | | |
| 849 | // asmlinkage long sys_mlock(unsigned long start, size_t len); | | |
| 850 | pub const mlock = @compileError("TODO: mlock"); | | |
| 851 | | | |
| 852 | // munlock | | |
| 853 | // int munlock(const void addr[.len], size_t len); | | |
| 854 | // asmlinkage long sys_munlock(unsigned long start, size_t len); | | |
| 855 | pub const munlock = @compileError("TODO: munlock"); | | |
| 856 | | | |
| 857 | // mlockall | | |
| 858 | // int mlockall(int flags); | | |
| 859 | // asmlinkage long sys_mlockall(int flags); | | |
| 860 | pub const mlockall = @compileError("TODO: mlockall"); | | |
| 861 | | | |
| 862 | // munlockall | | |
| 863 | // int munlockall(void); | | |
| 864 | // asmlinkage long sys_munlockall(void); | | |
| 865 | pub fn munlockall() errno.Error!c_int { | | |
| 866 | const r = syscall0(.munlockall); | | |
| 867 | return switch (_errno(r)) { | | |
| 868 | .ok => @intCast(r), | | |
| 869 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 870 | }; | | |
| 871 | } | | |
| 872 | | | |
| 873 | // vhangup | | |
| 874 | // int vhangup(void); | | |
| 875 | // asmlinkage long sys_vhangup(void); | | |
| 876 | pub fn vhangup() errno.Error!c_int { | | |
| 877 | const r = syscall0(.vhangup); | | |
| 878 | return switch (_errno(r)) { | | |
| 879 | .ok => @intCast(r), | | |
| 880 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 881 | }; | | |
| 882 | } | | |
| 883 | | | |
| 884 | // pivot_root | | |
| 885 | // int syscall(SYS_pivot_root, const char *new_root, const char *put_old); | | |
| 886 | // asmlinkage long sys_pivot_root(const char __user *new_root, const char __user *put_old); | | |
| 887 | pub const pivot_root = @compileError("TODO: pivot_root"); | | |
| 888 | | | |
| 889 | // prctl | | |
| 890 | // int prctl(int op, ... /* unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5 */ ); | | |
| 891 | // asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5); | | |
| 892 | pub const prctl = @compileError("TODO: prctl"); | | |
| 893 | | | |
| 894 | // arch_prctl | | |
| 895 | // | | |
| 896 | // asmlinkage long sys_arch_prctl(int option, unsigned long arg2) | | |
| 897 | pub const arch_prctl = @compileError("TODO: arch_prctl"); | | |
| 898 | | | |
| 899 | // adjtimex | | |
| 900 | // int adjtimex(struct timex *buf); | | |
| 901 | // asmlinkage long sys_adjtimex(struct __kernel_timex __user *txc_p); | | |
| 902 | pub const adjtimex = @compileError("TODO: adjtimex"); | | |
| 903 | | | |
| 904 | // setrlimit | | |
| 905 | // int setrlimit(int resource, const struct rlimit *rlim); | | |
| 906 | // asmlinkage long sys_setrlimit(unsigned int resource, struct rlimit __user *rlim); | | |
| 907 | pub const setrlimit = @compileError("TODO: setrlimit"); | | |
| 908 | | | |
| 909 | // chroot | | |
| 910 | // int chroot(const char *path); | | |
| 911 | // asmlinkage long sys_chroot(const char __user *filename); | | |
| 912 | pub const chroot = @compileError("TODO: chroot"); | | |
| 913 | | | |
| 914 | // sync | | |
| 915 | // void sync(void); | | |
| 916 | // asmlinkage long sys_sync(void); | | |
| 917 | pub fn sync() errno.Error!void { | | |
| 918 | const r = syscall0(.sync); | | |
| 919 | return switch (_errno(r)) { | | |
| 920 | .ok => {}, | | |
| 921 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 922 | }; | | |
| 923 | } | | |
| 924 | | | |
| 925 | // acct | | |
| 926 | // int acct(const char *_Nullable filename); | | |
| 927 | // asmlinkage long sys_acct(const char __user *name); | | |
| 928 | pub const acct = @compileError("TODO: acct"); | | |
| 929 | | | |
| 930 | // settimeofday | | |
| 931 | // int settimeofday(const struct timeval *tv, const struct timezone *_Nullable tz); | | |
| 932 | // asmlinkage long sys_settimeofday(struct __kernel_old_timeval __user *tv, struct timezone __user *tz); | | |
| 933 | pub const settimeofday = @compileError("TODO: settimeofday"); | | |
| 934 | | | |
| 935 | // mount | | |
| 936 | // int mount(const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *_Nullable data); | | |
| 937 | // asmlinkage long sys_mount(char __user *dev_name, char __user *dir_name, char __user *type, unsigned long flags, void __user *data); | | |
| 938 | pub const mount = @compileError("TODO: mount"); | | |
| 939 | | | |
| 940 | // umount2 | | |
| 941 | // int umount2(const char *target, int flags); | | |
| 942 | // asmlinkage long sys_umount(char __user *name, int flags); | | |
| 943 | pub const umount = @compileError("TODO: umount"); | | |
| 944 | | | |
| 945 | // swapon | | |
| 946 | // int swapon(const char *path, int swapflags); | | |
| 947 | // asmlinkage long sys_swapon(const char __user *specialfile, int swap_flags); | | |
| 948 | pub const swapon = @compileError("TODO: swapon"); | | |
| 949 | | | |
| 950 | // swapoff | | |
| 951 | // int swapoff(const char *path); | | |
| 952 | // asmlinkage long sys_swapoff(const char __user *specialfile); | | |
| 953 | pub const swapoff = @compileError("TODO: swapoff"); | | |
| 954 | | | |
| 955 | // reboot | | |
| 956 | // int reboot(int op); | | |
| 957 | // asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user *arg); | | |
| 958 | pub const reboot = @compileError("TODO: reboot"); | | |
| 959 | | | |
| 960 | // sethostname | | |
| 961 | // int sethostname(const char *name, size_t len); | | |
| 962 | // asmlinkage long sys_sethostname(char __user *name, int len); | | |
| 963 | pub const sethostname = @compileError("TODO: sethostname"); | | |
| 964 | | | |
| 965 | // setdomainname | | |
| 966 | // int setdomainname(const char *name, size_t len); | | |
| 967 | // asmlinkage long sys_setdomainname(char __user *name, int len); | | |
| 968 | pub const setdomainname = @compileError("TODO: setdomainname"); | | |
| 969 | | | |
| 970 | // ioperm | | |
| 971 | // int ioperm(unsigned long from, unsigned long num, int turn_on); | | |
| 972 | // asmlinkage long sys_ioperm(unsigned long from, unsigned long num, int on); | | |
| 973 | pub const ioperm = @compileError("TODO: ioperm"); | | |
| 974 | | | |
| 975 | // init_module | | |
| 976 | // int syscall(SYS_init_module, void module_image[.len], unsigned long len, const char *param_values); | | |
| 977 | // asmlinkage long sys_init_module(void __user *umod, unsigned long len, const char __user *uargs); | | |
| 978 | pub const init_module = @compileError("TODO: init_module"); | | |
| 979 | | | |
| 980 | // delete_module | | |
| 981 | // int syscall(SYS_delete_module, const char *name, unsigned int flags); | | |
| 982 | // asmlinkage long sys_delete_module(const char __user *name_user, unsigned int flags); | | |
| 983 | pub const delete_module = @compileError("TODO: delete_module"); | | |
| 984 | | | |
| 985 | // quotactl | | |
| 986 | // int quotactl(int op, const char *_Nullable special, int id, caddr_t addr); | | |
| 987 | // asmlinkage long sys_quotactl(unsigned int cmd, const char __user *special, qid_t id, void __user *addr); | | |
| 988 | pub const quotactl = @compileError("TODO: quotactl"); | | |
| 989 | | | |
| 990 | // gettid | | |
| 991 | // pid_t gettid(void); | | |
| 992 | // asmlinkage long sys_gettid(void); | | |
| 993 | pub fn gettid() pid_t { | | |
| 994 | return @intCast(syscall0(.gettid)); | | |
| 995 | } | | |
| 996 | | | |
| 997 | // readahead | | |
| 998 | // ssize_t readahead(int fd, off_t offset, size_t count); | | |
| 999 | // asmlinkage long sys_readahead(int fd, loff_t offset, size_t count); | | |
| 1000 | pub const readahead = @compileError("TODO: readahead"); | | |
| 1001 | | | |
| 1002 | // setxattr | | |
| 1003 | // int setxattr(const char *path, const char *name, const void value[.size], size_t size, int flags); | | |
| 1004 | // asmlinkage long sys_setxattr(const char __user *path, const char __user *name, const void __user *value, size_t size, int flags); | | |
| 1005 | pub const setxattr = @compileError("TODO: setxattr"); | | |
| 1006 | | | |
| 1007 | // lsetxattr | | |
| 1008 | // int lsetxattr(const char *path, const char *name, const void value[.size], size_t size, int flags); | | |
| 1009 | // asmlinkage long sys_lsetxattr(const char __user *path, const char __user *name, const void __user *value, size_t size, int flags); | | |
| 1010 | pub const lsetxattr = @compileError("TODO: lsetxattr"); | | |
| 1011 | | | |
| 1012 | // fsetxattr | | |
| 1013 | // int fsetxattr(int fd, const char *name, const void value[.size], size_t size, int flags); | | |
| 1014 | // asmlinkage long sys_fsetxattr(int fd, const char __user *name, const void __user *value, size_t size, int flags); | | |
| 1015 | pub const fsetxattr = @compileError("TODO: fsetxattr"); | | |
| 1016 | | | |
| 1017 | // getxattr | | |
| 1018 | // ssize_t getxattr(const char *path, const char *name, void value[.size], size_t size); | | |
| 1019 | // asmlinkage long sys_getxattr(const char __user *path, const char __user *name, void __user *value, size_t size); | | |
| 1020 | pub const getxattr = @compileError("TODO: getxattr"); | | |
| 1021 | | | |
| 1022 | // lgetxattr | | |
| 1023 | // ssize_t lgetxattr(const char *path, const char *name, void value[.size], size_t size); | | |
| 1024 | // asmlinkage long sys_lgetxattr(const char __user *path, const char __user *name, void __user *value, size_t size); | | |
| 1025 | pub const lgetxattr = @compileError("TODO: lgetxattr"); | | |
| 1026 | | | |
| 1027 | // fgetxattr | | |
| 1028 | // ssize_t fgetxattr(int fd, const char *name, void value[.size], size_t size); | | |
| 1029 | // asmlinkage long sys_fgetxattr(int fd, const char __user *name, void __user *value, size_t size); | | |
| 1030 | pub const fgetxattr = @compileError("TODO: fgetxattr"); | | |
| 1031 | | | |
| 1032 | // listxattr | | |
| 1033 | // ssize_t listxattr(const char *path, char *_Nullable list, size_t size); | | |
| 1034 | // asmlinkage long sys_listxattr(const char __user *path, char __user *list, size_t size); | | |
| 1035 | pub const listxattr = @compileError("TODO: listxattr"); | | |
| 1036 | | | |
| 1037 | // llistxattr | | |
| 1038 | // ssize_t llistxattr(const char *path, char *_Nullable list, size_t size); | | |
| 1039 | // asmlinkage long sys_llistxattr(const char __user *path, char __user *list, size_t size); | | |
| 1040 | pub const llistxattr = @compileError("TODO: llistxattr"); | | |
| 1041 | | | |
| 1042 | // flistxattr | | |
| 1043 | // ssize_t flistxattr(int fd, char *_Nullable list, size_t size); | | |
| 1044 | // asmlinkage long sys_flistxattr(int fd, char __user *list, size_t size); | | |
| 1045 | pub const flistxattr = @compileError("TODO: flistxattr"); | | |
| 1046 | | | |
| 1047 | // removexattr | | |
| 1048 | // int removexattr(const char *path, const char *name); | | |
| 1049 | // asmlinkage long sys_removexattr(const char __user *path, const char __user *name); | | |
| 1050 | pub const removexattr = @compileError("TODO: removexattr"); | | |
| 1051 | | | |
| 1052 | // lremovexattr | | |
| 1053 | // int lremovexattr(const char *path, const char *name); | | |
| 1054 | // asmlinkage long sys_lremovexattr(const char __user *path, const char __user *name); | | |
| 1055 | pub const lremovexattr = @compileError("TODO: lremovexattr"); | | |
| 1056 | | | |
| 1057 | // fremovexattr | | |
| 1058 | // int fremovexattr(int fd, const char *name); | | |
| 1059 | // asmlinkage long sys_fremovexattr(int fd, const char __user *name); | | |
| 1060 | pub const fremovexattr = @compileError("TODO: fremovexattr"); | | |
| 1061 | | | |
| 1062 | // tkill | | |
| 1063 | // [[deprecated]] int syscall(SYS_tkill, pid_t tid, int sig); | | |
| 1064 | // asmlinkage long sys_tkill(pid_t pid, int sig); | | |
| 1065 | pub const tkill = @compileError("TODO: tkill"); | | |
| 1066 | | | |
| 1067 | // time | | |
| 1068 | // time_t time(time_t *_Nullable tloc); | | |
| 1069 | // asmlinkage long sys_time(__kernel_old_time_t __user *tloc); | | |
| 1070 | pub const time = @compileError("TODO: time"); | | |
| 1071 | | | |
| 1072 | // futex | | |
| 1073 | // long syscall(SYS_futex, uint32_t *uaddr, int futex_op, uint32_t val, const struct timespec *timeout, /* or: uint32_t val2 */ uint32_t *uaddr2, uint32_t val3); | | |
| 1074 | // asmlinkage long sys_futex(u32 __user *uaddr, int op, u32 val, const struct __kernel_timespec __user *utime, u32 __user *uaddr2, u32 val3); | | |
| 1075 | pub const futex = @compileError("TODO: futex"); | | |
| 1076 | | | |
| 1077 | // sched_setaffinity | | |
| 1078 | // int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *mask); | | |
| 1079 | // asmlinkage long sys_sched_setaffinity(pid_t pid, unsigned int len, unsigned long __user *user_mask_ptr); | | |
| 1080 | pub const sched_setaffinity = @compileError("TODO: sched_setaffinity"); | | |
| 1081 | | | |
| 1082 | // sched_getaffinity | | |
| 1083 | // int sched_getaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *mask); | | |
| 1084 | // asmlinkage long sys_sched_getaffinity(pid_t pid, unsigned int len, unsigned long __user *user_mask_ptr); | | |
| 1085 | pub const sched_getaffinity = @compileError("TODO: sched_getaffinity"); | | |
| 1086 | | | |
| 1087 | // io_setup | | |
| 1088 | // long io_setup(unsigned int nr_events, aio_context_t *ctx_idp); | | |
| 1089 | // asmlinkage long sys_io_setup(unsigned nr_reqs, aio_context_t __user *ctx); | | |
| 1090 | pub const io_setup = @compileError("TODO: io_setup"); | | |
| 1091 | | | |
| 1092 | // io_destroy | | |
| 1093 | // int syscall(SYS_io_destroy, aio_context_t ctx_id); | | |
| 1094 | // asmlinkage long sys_io_destroy(aio_context_t ctx); | | |
| 1095 | pub const io_destroy = @compileError("TODO: io_destroy"); | | |
| 1096 | | | |
| 1097 | // io_getevents | | |
| 1098 | // int syscall(SYS_io_getevents, aio_context_t ctx_id, long min_nr, long nr, struct io_event *events, struct timespec *timeout); | | |
| 1099 | // asmlinkage long sys_io_getevents(aio_context_t ctx_id, long min_nr, long nr, struct io_event __user *events, struct __kernel_timespec __user *timeout); | | |
| 1100 | pub const io_getevents = @compileError("TODO: io_getevents"); | | |
| 1101 | | | |
| 1102 | // io_submit | | |
| 1103 | // int io_submit(aio_context_t ctx_id, long nr, struct iocb **iocbpp); | | |
| 1104 | // asmlinkage long sys_io_submit(aio_context_t, long, struct iocb __user * __user *); | | |
| 1105 | pub const io_submit = @compileError("TODO: io_submit"); | | |
| 1106 | | | |
| 1107 | // io_cancel | | |
| 1108 | // int syscall(SYS_io_cancel, aio_context_t ctx_id, struct iocb *iocb, struct io_event *result); | | |
| 1109 | // asmlinkage long sys_io_cancel(aio_context_t ctx_id, struct iocb __user *iocb, struct io_event __user *result); | | |
| 1110 | pub const io_cancel = @compileError("TODO: io_cancel"); | | |
| 1111 | | | |
| 1112 | // epoll_create | | |
| 1113 | // int epoll_create(int size); | | |
| 1114 | // asmlinkage long sys_epoll_create(int size); | | |
| 1115 | pub const epoll_create = @compileError("TODO: epoll_create"); | | |
| 1116 | | | |
| 1117 | // remap_file_pages | | |
| 1118 | // [[deprecated]] int remap_file_pages(void addr[.size], size_t size, int prot, size_t pgoff, int flags); | | |
| 1119 | // asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long flags); | | |
| 1120 | pub const remap_file_pages = @compileError("TODO: remap_file_pages"); | | |
| 1121 | | | |
| 1122 | // getdents64 | | |
| 1123 | // ssize_t getdents64(int fd, void dirp[.count], size_t count); | | |
| 1124 | // asmlinkage long sys_getdents64(unsigned int fd, struct linux_dirent64 __user *dirent, unsigned int count); | | |
| 1125 | pub const getdents64 = @compileError("TODO: getdents64"); | | |
| 1126 | | | |
| 1127 | // set_tid_address | | |
| 1128 | // pid_t syscall(SYS_set_tid_address, int *tidptr); | | |
| 1129 | // asmlinkage long sys_set_tid_address(int __user *tidptr); | | |
| 1130 | pub const set_tid_address = @compileError("TODO: set_tid_address"); | | |
| 1131 | | | |
| 1132 | // semtimedop | | |
| 1133 | // int semtimedop(int semid, struct sembuf *sops, size_t nsops, const struct timespec *_Nullable timeout); | | |
| 1134 | // asmlinkage long sys_semtimedop(int semid, struct sembuf __user *sops, unsigned nsops, const struct __kernel_timespec __user *timeout); | | |
| 1135 | pub const semtimedop = @compileError("TODO: semtimedop"); | | |
| 1136 | | | |
| 1137 | // fadvise64 | | |
| 1138 | // int posix_fadvise(int fd, off_t offset, off_t size, int advice); | | |
| 1139 | // asmlinkage long sys_fadvise64(int fd, loff_t offset, size_t len, int advice); | | |
| 1140 | pub const fadvise64 = @compileError("TODO: fadvise64"); | | |
| 1141 | | | |
| 1142 | // timer_create | | |
| 1143 | // int timer_create(clockid_t clockid, struct sigevent *_Nullable restrict sevp, timer_t *restrict timerid); | | |
| 1144 | // asmlinkage long sys_timer_create(clockid_t which_clock, struct sigevent __user *timer_event_spec, timer_t __user * created_timer_id); | | |
| 1145 | pub const timer_create = @compileError("TODO: timer_create"); | | |
| 1146 | | | |
| 1147 | // timer_settime | | |
| 1148 | // int timer_settime(timer_t timerid, int flags, const struct itimerspec *restrict new_value, struct itimerspec *_Nullable restrict old_value); | | |
| 1149 | // asmlinkage long sys_timer_settime(timer_t timer_id, int flags, const struct __kernel_itimerspec __user *new_setting, struct __kernel_itimerspec __user *old_setting); | | |
| 1150 | pub const timer_settime = @compileError("TODO: timer_settime"); | | |
| 1151 | | | |
| 1152 | // timer_gettime | | |
| 1153 | // int timer_gettime(timer_t timerid, struct itimerspec *curr_value); | | |
| 1154 | // asmlinkage long sys_timer_gettime(timer_t timer_id, struct __kernel_itimerspec __user *setting); | | |
| 1155 | pub const timer_gettime = @compileError("TODO: timer_gettime"); | | |
| 1156 | | | |
| 1157 | // timer_getoverrun | | |
| 1158 | // int timer_getoverrun(timer_t timerid); | | |
| 1159 | // asmlinkage long sys_timer_getoverrun(timer_t timer_id); | | |
| 1160 | pub const timer_getoverrun = @compileError("TODO: timer_getoverrun"); | | |
| 1161 | | | |
| 1162 | // timer_delete | | |
| 1163 | // int timer_delete(timer_t timerid); | | |
| 1164 | // asmlinkage long sys_timer_delete(timer_t timer_id); | | |
| 1165 | pub const timer_delete = @compileError("TODO: timer_delete"); | | |
| 1166 | | | |
| 1167 | // clock_settime | | |
| 1168 | // int clock_settime(clockid_t clockid, const struct timespec *tp); | | |
| 1169 | // asmlinkage long sys_clock_settime(clockid_t which_clock, const struct __kernel_timespec __user *tp); | | |
| 1170 | pub const clock_settime = @compileError("TODO: clock_settime"); | | |
| 1171 | | | |
| 1172 | // clock_gettime | | |
| 1173 | // int clock_gettime(clockid_t clockid, struct timespec *tp); | | |
| 1174 | // asmlinkage long sys_clock_gettime(clockid_t which_clock, struct __kernel_timespec __user *tp); | | |
| 1175 | pub const clock_gettime = @compileError("TODO: clock_gettime"); | | |
| 1176 | | | |
| 1177 | // clock_getres | | |
| 1178 | // int clock_getres(clockid_t clockid, struct timespec *_Nullable res); | | |
| 1179 | // asmlinkage long sys_clock_getres(clockid_t which_clock, struct __kernel_timespec __user *tp); | | |
| 1180 | pub const clock_getres = @compileError("TODO: clock_getres"); | | |
| 1181 | | | |
| 1182 | // clock_nanosleep | | |
| 1183 | // int clock_nanosleep(clockid_t clockid, int flags, const struct timespec *t, struct timespec *_Nullable remain); | | |
| 1184 | // asmlinkage long sys_clock_nanosleep(clockid_t which_clock, int flags, const struct __kernel_timespec __user *rqtp, struct __kernel_timespec __user *rmtp); | | |
| 1185 | pub const clock_nanosleep = @compileError("TODO: clock_nanosleep"); | | |
| 1186 | | | |
| 1187 | // exit_group | | |
| 1188 | // [[noreturn]] void syscall(SYS_exit_group, int status); | | |
| 1189 | // asmlinkage long sys_exit_group(int error_code); | | |
| 1190 | pub const exit_group = @compileError("TODO: exit_group"); | | |
| 1191 | | | |
| 1192 | // epoll_wait | | |
| 1193 | // int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout); | | |
| 1194 | // asmlinkage long sys_epoll_wait(int epfd, struct epoll_event __user *events, int maxevents, int timeout); | | |
| 1195 | pub const epoll_wait = @compileError("TODO: epoll_wait"); | | |
| 1196 | | | |
| 1197 | // epoll_ctl | | |
| 1198 | // int epoll_ctl(int epfd, int op, int fd, struct epoll_event *_Nullable event); | | |
| 1199 | // asmlinkage long sys_epoll_ctl(int epfd, int op, int fd, struct epoll_event __user *event); | | |
| 1200 | pub const epoll_ctl = @compileError("TODO: epoll_ctl"); | | |
| 1201 | | | |
| 1202 | // tgkill | | |
| 1203 | // int tgkill(pid_t tgid, pid_t tid, int sig); | | |
| 1204 | // asmlinkage long sys_tgkill(pid_t tgid, pid_t pid, int sig); | | |
| 1205 | pub const tgkill = @compileError("TODO: tgkill"); | | |
| 1206 | | | |
| 1207 | // utimes | | |
| 1208 | // int utimes(const char *filename, const struct timeval times[_Nullable 2]); | | |
| 1209 | // asmlinkage long sys_utimes(char __user *filename, struct __kernel_old_timeval __user *utimes); | | |
| 1210 | pub const utimes = @compileError("TODO: utimes"); | | |
| 1211 | | | |
| 1212 | // mbind | | |
| 1213 | // long mbind(void addr[.len], unsigned long len, int mode, const unsigned long nodemask[(.maxnode + ULONG_WIDTH - 1) / ULONG_WIDTH], unsigned long maxnode, unsigned int flags); | | |
| 1214 | // asmlinkage long sys_mbind(unsigned long start, unsigned long len, unsigned long mode, const unsigned long __user *nmask, unsigned long maxnode, unsigned flags); | | |
| 1215 | pub const mbind = @compileError("TODO: mbind"); | | |
| 1216 | | | |
| 1217 | // set_mempolicy | | |
| 1218 | // long set_mempolicy(int mode, const unsigned long *nodemask, unsigned long maxnode); | | |
| 1219 | // asmlinkage long sys_set_mempolicy(int mode, const unsigned long __user *nmask, unsigned long maxnode); | | |
| 1220 | pub const set_mempolicy = @compileError("TODO: set_mempolicy"); | | |
| 1221 | | | |
| 1222 | // get_mempolicy | | |
| 1223 | // long get_mempolicy(int *mode, unsigned long nodemask[(.maxnode + ULONG_WIDTH - 1) / ULONG_WIDTH], unsigned long maxnode, void *addr, unsigned long flags); | | |
| 1224 | // asmlinkage long sys_get_mempolicy(int __user *policy, unsigned long __user *nmask, unsigned long maxnode, unsigned long addr, unsigned long flags); | | |
| 1225 | pub const get_mempolicy = @compileError("TODO: get_mempolicy"); | | |
| 1226 | | | |
| 1227 | // mq_open | | |
| 1228 | // mqd_t mq_open(const char *name, int oflag, mode_t mode, struct mq_attr *attr); | | |
| 1229 | // asmlinkage long sys_mq_open(const char __user *name, int oflag, umode_t mode, struct mq_attr __user *attr); | | |
| 1230 | pub const mq_open = @compileError("TODO: mq_open"); | | |
| 1231 | | | |
| 1232 | // mq_unlink | | |
| 1233 | // int mq_unlink(const char *name); | | |
| 1234 | // asmlinkage long sys_mq_unlink(const char __user *name); | | |
| 1235 | pub const mq_unlink = @compileError("TODO: mq_unlink"); | | |
| 1236 | | | |
| 1237 | // mq_timedsend | | |
| 1238 | // int mq_timedsend(mqd_t mqdes, const char msg_ptr[.msg_len], size_t msg_len, unsigned int msg_prio, const struct timespec *abs_timeout); | | |
| 1239 | // asmlinkage long sys_mq_timedsend(mqd_t mqdes, const char __user *msg_ptr, size_t msg_len, unsigned int msg_prio, const struct __kernel_timespec __user *abs_timeout); | | |
| 1240 | pub const mq_timedsend = @compileError("TODO: mq_timedsend"); | | |
| 1241 | | | |
| 1242 | // mq_timedreceive | | |
| 1243 | // ssize_t mq_timedreceive(mqd_t mqdes, char *restrict msg_ptr[.msg_len], size_t msg_len, unsigned int *restrict msg_prio, const struct timespec *restrict abs_timeout); | | |
| 1244 | // asmlinkage long sys_mq_timedreceive(mqd_t mqdes, char __user *msg_ptr, size_t msg_len, unsigned int __user *msg_prio, const struct __kernel_timespec __user *abs_timeout); | | |
| 1245 | pub const mq_timedreceive = @compileError("TODO: mq_timedreceive"); | | |
| 1246 | | | |
| 1247 | // mq_notify | | |
| 1248 | // int mq_notify(mqd_t mqdes, const struct sigevent *sevp); | | |
| 1249 | // asmlinkage long sys_mq_notify(mqd_t mqdes, const struct sigevent __user *notification); | | |
| 1250 | pub const mq_notify = @compileError("TODO: mq_notify"); | | |
| 1251 | | | |
| 1252 | // mq_getsetattr | | |
| 1253 | // int syscall(SYS_mq_getsetattr, mqd_t mqdes, const struct mq_attr *newattr, struct mq_attr *oldattr); | | |
| 1254 | // asmlinkage long sys_mq_getsetattr(mqd_t mqdes, const struct mq_attr __user *mqstat, struct mq_attr __user *omqstat); | | |
| 1255 | pub const mq_getsetattr = @compileError("TODO: mq_getsetattr"); | | |
| 1256 | | | |
| 1257 | // kexec_load | | |
| 1258 | // long syscall(SYS_kexec_load, unsigned long entry, unsigned long nr_segments, struct kexec_segment *segments, unsigned long flags); | | |
| 1259 | // asmlinkage long sys_kexec_load(unsigned long entry, unsigned long nr_segments, struct kexec_segment __user *segments, unsigned long flags); | | |
| 1260 | pub const kexec_load = @compileError("TODO: kexec_load"); | | |
| 1261 | | | |
| 1262 | // waitid | | |
| 1263 | // int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); | | |
| 1264 | // asmlinkage long sys_waitid(int which, pid_t pid, struct siginfo __user *infop, int options, struct rusage __user *ru); | | |
| 1265 | pub const waitid = @compileError("TODO: waitid"); | | |
| 1266 | | | |
| 1267 | // add_key | | |
| 1268 | // key_serial_t add_key(const char *type, const char *description, const void payload[.plen], size_t plen, key_serial_t keyring); | | |
| 1269 | // asmlinkage long sys_add_key(const char __user *_type, const char __user *_description, const void __user *_payload, size_t plen, key_serial_t destringid); | | |
| 1270 | pub const add_key = @compileError("TODO: add_key"); | | |
| 1271 | | | |
| 1272 | // request_key | | |
| 1273 | // key_serial_t request_key(const char *type, const char *description, const char *_Nullable callout_info, key_serial_t dest_keyring); | | |
| 1274 | // asmlinkage long sys_request_key(const char __user *_type, const char __user *_description, const char __user *_callout_info, key_serial_t destringid); | | |
| 1275 | pub const request_key = @compileError("TODO: request_key"); | | |
| 1276 | | | |
| 1277 | // keyctl | | |
| 1278 | // long syscall(SYS_keyctl, int operation, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5); | | |
| 1279 | // asmlinkage long sys_keyctl(int cmd, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5); | | |
| 1280 | pub const keyctl = @compileError("TODO: keyctl"); | | |
| 1281 | | | |
| 1282 | // ioprio_set | | |
| 1283 | // int syscall(SYS_ioprio_set, int which, int who, int ioprio); | | |
| 1284 | // asmlinkage long sys_ioprio_set(int which, int who, int ioprio); | | |
| 1285 | pub const ioprio_set = @compileError("TODO: ioprio_set"); | | |
| 1286 | | | |
| 1287 | // ioprio_get | | |
| 1288 | // int syscall(SYS_ioprio_set, int which, int who, int ioprio); | | |
| 1289 | // asmlinkage long sys_ioprio_get(int which, int who); | | |
| 1290 | pub const ioprio_get = @compileError("TODO: ioprio_get"); | | |
| 1291 | | | |
| 1292 | // inotify_init | | |
| 1293 | // int inotify_init(void); | | |
| 1294 | // asmlinkage long sys_inotify_init(void); | | |
| 1295 | pub fn inotify_init() errno.Error!c_int { | | |
| 1296 | const r = syscall0(.inotify_init); | | |
| 1297 | return switch (_errno(r)) { | | |
| 1298 | .ok => @intCast(r), | | |
| 1299 | _ => |c| errno.errorFromInt(@intFromEnum(c)), | | |
| 1300 | }; | | |
| 1301 | } | | |
| 1302 | | | |
| 1303 | // inotify_add_watch | | |
| 1304 | // int inotify_add_watch(int fd, const char *pathname, uint32_t mask); | | |
| 1305 | // asmlinkage long sys_inotify_add_watch(int fd, const char __user *path, u32 mask); | | |
| 1306 | pub const inotify_add_watch = @compileError("TODO: inotify_add_watch"); | | |
| 1307 | | | |
| 1308 | // inotify_rm_watch | | |
| 1309 | // int inotify_rm_watch(int fd, int wd); | | |
| 1310 | // asmlinkage long sys_inotify_rm_watch(int fd, __s32 wd); | | |
| 1311 | pub const inotify_rm_watch = @compileError("TODO: inotify_rm_watch"); | | |
| 1312 | | | |
| 1313 | // migrate_pages | | |
| 1314 | // long migrate_pages(int pid, unsigned long maxnode, const unsigned long *old_nodes, const unsigned long *new_nodes); | | |
| 1315 | // asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode, const unsigned long __user *from, const unsigned long __user *to); | | |
| 1316 | pub const migrate_pages = @compileError("TODO: migrate_pages"); | | |
| 1317 | | | |
| 1318 | // openat | | |
| 1319 | // int openat(int dirfd, const char *pathname, int flags, ... /* mode_t mode */ ); | | |
| 1320 | // asmlinkage long sys_openat(int dfd, const char __user *filename, int flags, umode_t mode); | | |
| 1321 | pub const openat = @compileError("TODO: openat"); | | |
| 1322 | | | |
| 1323 | // mkdirat | | |
| 1324 | // int mkdirat(int dirfd, const char *pathname, mode_t mode); | | |
| 1325 | // asmlinkage long sys_mkdirat(int dfd, const char __user * pathname, umode_t mode); | | |
| 1326 | pub const mkdirat = @compileError("TODO: mkdirat"); | | |
| 1327 | | | |
| 1328 | // mknodat | | |
| 1329 | // int mknodat(int dirfd, const char *pathname, mode_t mode, dev_t dev); | | |
| 1330 | // asmlinkage long sys_mknodat(int dfd, const char __user * filename, umode_t mode, unsigned dev); | | |
| 1331 | pub const mknodat = @compileError("TODO: mknodat"); | | |
| 1332 | | | |
| 1333 | // fchownat | | |
| 1334 | // int fchownat(int dirfd, const char *pathname, uid_t owner, gid_t group, int flags); | | |
| 1335 | // asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, int flag); | | |
| 1336 | pub const fchownat = @compileError("TODO: fchownat"); | | |
| 1337 | | | |
| 1338 | // futimesat | | |
| 1339 | // [[deprecated]] int futimesat(int dirfd, const char *pathname, const struct timeval times[2]); | | |
| 1340 | // asmlinkage long sys_futimesat(int dfd, const char __user *filename, struct __kernel_old_timeval __user *utimes); | | |
| 1341 | pub const futimesat = @compileError("TODO: futimesat"); | | |
| 1342 | | | |
| 1343 | // fstatat64 | | |
| 1344 | // int fstatat(int dirfd, const char *restrict pathname, struct stat *restrict statbuf, int flags); | | |
| 1345 | // asmlinkage long sys_fstatat64(int dfd, const char __user *filename, struct stat64 __user *statbuf, int flag); | | |
| 1346 | pub const fstatat64 = @compileError("TODO: fstatat64"); | | |
| 1347 | | | |
| 1348 | // unlinkat | | |
| 1349 | // int unlinkat(int dirfd, const char *pathname, int flags); | | |
| 1350 | // asmlinkage long sys_unlinkat(int dfd, const char __user * pathname, int flag); | | |
| 1351 | pub const unlinkat = @compileError("TODO: unlinkat"); | | |
| 1352 | | | |
| 1353 | // renameat | | |
| 1354 | // int renameat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath); | | |
| 1355 | // asmlinkage long sys_renameat(int olddfd, const char __user * oldname, int newdfd, const char __user * newname); | | |
| 1356 | pub const renameat = @compileError("TODO: renameat"); | | |
| 1357 | | | |
| 1358 | // linkat | | |
| 1359 | // int linkat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, int flags); | | |
| 1360 | // asmlinkage long sys_linkat(int olddfd, const char __user *oldname, int newdfd, const char __user *newname, int flags); | | |
| 1361 | pub const linkat = @compileError("TODO: linkat"); | | |
| 1362 | | | |
| 1363 | // symlinkat | | |
| 1364 | // int symlinkat(const char *target, int newdirfd, const char *linkpath); | | |
| 1365 | // asmlinkage long sys_symlinkat(const char __user * oldname, int newdfd, const char __user * newname); | | |
| 1366 | pub const symlinkat = @compileError("TODO: symlinkat"); | | |
| 1367 | | | |
| 1368 | // readlinkat | | |
| 1369 | // ssize_t readlinkat(int dirfd, const char *restrict pathname, char *restrict buf, size_t bufsiz); | | |
| 1370 | // asmlinkage long sys_readlinkat(int dfd, const char __user *path, char __user *buf, int bufsiz); | | |
| 1371 | pub const readlinkat = @compileError("TODO: readlinkat"); | | |
| 1372 | | | |
| 1373 | // fchmodat | | |
| 1374 | // int fchmodat(int dirfd, const char *pathname, mode_t mode, int flags); | | |
| 1375 | // asmlinkage long sys_fchmodat(int dfd, const char __user *filename, umode_t mode); | | |
| 1376 | pub const fchmodat = @compileError("TODO: fchmodat"); | | |
| 1377 | | | |
| 1378 | // faccessat | | |
| 1379 | // int faccessat(int dirfd, const char *pathname, int mode, int flags); | | |
| 1380 | // asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode); | | |
| 1381 | pub const faccessat = @compileError("TODO: faccessat"); | | |
| 1382 | | | |
| 1383 | // pselect6 | | |
| 1384 | // int pselect(int nfds, fd_set *_Nullable restrict readfds, fd_set *_Nullable restrict writefds, fd_set *_Nullable restrict exceptfds, const struct timespec *_Nullable restrict timeout, const sigset_t *_Nullable restrict sigmask); | | |
| 1385 | // asmlinkage long sys_pselect6(int, fd_set __user *, fd_set __user *, fd_set __user *, struct __kernel_timespec __user *, void __user *); | | |
| 1386 | pub const pselect6 = @compileError("TODO: pselect6"); | | |
| 1387 | | | |
| 1388 | // ppoll | | |
| 1389 | // int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *_Nullable tmo_p, const sigset_t *_Nullable sigmask); | | |
| 1390 | // asmlinkage long sys_ppoll(struct pollfd __user *, unsigned int, struct __kernel_timespec __user *, const sigset_t __user *, size_t); | | |
| 1391 | pub const ppoll = @compileError("TODO: ppoll"); | | |
| 1392 | | | |
| 1393 | // unshare | | |
| 1394 | // int unshare(int flags); | | |
| 1395 | // asmlinkage long sys_unshare(unsigned long unshare_flags); | | |
| 1396 | pub const unshare = @compileError("TODO: unshare"); | | |
| 1397 | | | |
| 1398 | // set_robust_list | | |
| 1399 | // long syscall(SYS_set_robust_list, struct robust_list_head *head, size_t len); | | |
| 1400 | // asmlinkage long sys_set_robust_list(struct robust_list_head __user *head, size_t len); | | |
| 1401 | pub const set_robust_list = @compileError("TODO: set_robust_list"); | | |
| 1402 | | | |
| 1403 | // get_robust_list | | |
| 1404 | // long syscall(SYS_get_robust_list, int pid, struct robust_list_head **head_ptr, size_t *len_ptr); | | |
| 1405 | // asmlinkage long sys_get_robust_list(int pid, struct robust_list_head __user * __user *head_ptr, size_t __user *len_ptr); | | |
| 1406 | pub const get_robust_list = @compileError("TODO: get_robust_list"); | | |
| 1407 | | | |
| 1408 | // splice | | |
| 1409 | // ssize_t splice(int fd_in, off_t *_Nullable off_in, int fd_out, off_t *_Nullable off_out, size_t len, unsigned int flags); | | |
| 1410 | // asmlinkage long sys_splice(int fd_in, loff_t __user *off_in, int fd_out, loff_t __user *off_out, size_t len, unsigned int flags); | | |
| 1411 | pub const splice = @compileError("TODO: splice"); | | |
| 1412 | | | |
| 1413 | // tee | | |
| 1414 | // ssize_t tee(int fd_in, int fd_out, size_t len, unsigned int flags); | | |
| 1415 | // asmlinkage long sys_tee(int fdin, int fdout, size_t len, unsigned int flags); | | |
| 1416 | pub const tee = @compileError("TODO: tee"); | | |
| 1417 | | | |
| 1418 | // sync_file_range | | |
| 1419 | // int sync_file_range(int fd, off_t offset, off_t nbytes, unsigned int flags); | | |
| 1420 | // asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes, unsigned int flags); | | |
| 1421 | pub const sync_file_range = @compileError("TODO: sync_file_range"); | | |
| 1422 | | | |
| 1423 | // vmsplice | | |
| 1424 | // ssize_t vmsplice(int fd, const struct iovec *iov, size_t nr_segs, unsigned int flags); | | |
| 1425 | // asmlinkage long sys_vmsplice(int fd, const struct iovec __user *iov, unsigned long nr_segs, unsigned int flags); | | |
| 1426 | pub const vmsplice = @compileError("TODO: vmsplice"); | | |
| 1427 | | | |
| 1428 | // move_pages | | |
| 1429 | // long move_pages(int pid, unsigned long count, void *pages[.count], const int nodes[.count], int status[.count], int flags); | | |
| 1430 | // asmlinkage long sys_move_pages(pid_t pid, unsigned long nr_pages, const void __user * __user *pages, const int __user *nodes, int __user *status, int flags); | | |
| 1431 | pub const move_pages = @compileError("TODO: move_pages"); | | |
| 1432 | | | |
| 1433 | // utimensat | | |
| 1434 | // int utimensat(int dirfd, const char *pathname, const struct timespec times[_Nullable 2], int flags); | | |
| 1435 | // asmlinkage long sys_utimensat(int dfd, const char __user *filename, struct __kernel_timespec __user *utimes, int flags); | | |
| 1436 | pub const utimensat = @compileError("TODO: utimensat"); | | |
| 1437 | | | |
| 1438 | // epoll_pwait | | |
| 1439 | // int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *_Nullable sigmask); | | |
| 1440 | // asmlinkage long sys_epoll_pwait(int epfd, struct epoll_event __user *events, int maxevents, int timeout, const sigset_t __user *sigmask, size_t sigsetsize); | | |
| 1441 | pub const epoll_pwait = @compileError("TODO: epoll_pwait"); | | |
| 1442 | | | |
| 1443 | // signalfd | | |
| 1444 | // int signalfd(int fd, const sigset_t *mask, int flags); | | |
| 1445 | // asmlinkage long sys_signalfd(int ufd, sigset_t __user *user_mask, size_t sizemask); | | |
| 1446 | pub const signalfd = @compileError("TODO: signalfd"); | | |
| 1447 | | | |
| 1448 | // timerfd_create | | |
| 1449 | // int timerfd_create(int clockid, int flags); | | |
| 1450 | // asmlinkage long sys_timerfd_create(int clockid, int flags); | | |
| 1451 | pub const timerfd_create = @compileError("TODO: timerfd_create"); | | |
| 1452 | | | |
| 1453 | // eventfd | | |
| 1454 | // int eventfd(unsigned int initval, int flags); | | |
| 1455 | // asmlinkage long sys_eventfd(unsigned int count); | | |
| 1456 | pub const eventfd = @compileError("TODO: eventfd"); | | |
| 1457 | | | |
| 1458 | // fallocate | | |
| 1459 | // int fallocate(int fd, int mode, off_t offset, off_t len); | | |
| 1460 | // asmlinkage long sys_fallocate(int fd, int mode, loff_t offset, loff_t len); | | |
| 1461 | pub const fallocate = @compileError("TODO: fallocate"); | | |
| 1462 | | | |
| 1463 | // timerfd_settime | | |
| 1464 | // int timerfd_settime(int fd, int flags, const struct itimerspec *new_value, struct itimerspec *_Nullable old_value); | | |
| 1465 | // asmlinkage long sys_timerfd_settime(int ufd, int flags, const struct __kernel_itimerspec __user *utmr, struct __kernel_itimerspec __user *otmr); | | |
| 1466 | pub const timerfd_settime = @compileError("TODO: timerfd_settime"); | | |
| 1467 | | | |
| 1468 | // timerfd_gettime | | |
| 1469 | // int timerfd_gettime(int fd, struct itimerspec *curr_value); | | |
| 1470 | // asmlinkage long sys_timerfd_gettime(int ufd, struct __kernel_itimerspec __user *otmr); | | |
| 1471 | pub const timerfd_gettime = @compileError("TODO: timerfd_gettime"); | | |
| 1472 | | | |
| 1473 | // accept4 | | |
| 1474 | // int accept4(int sockfd, struct sockaddr *_Nullable restrict addr, socklen_t *_Nullable restrict addrlen, int flags); | | |
| 1475 | // asmlinkage long sys_accept4(int, struct sockaddr __user *, int __user *, int); | | |
| 1476 | pub const accept4 = @compileError("TODO: accept4"); | | |
| 1477 | | | |
| 1478 | // signalfd4 | | |
| 1479 | // int signalfd(int fd, const sigset_t *mask, int flags); | | |
| 1480 | // asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask, size_t sizemask, int flags); | | |
| 1481 | pub const signalfd4 = @compileError("TODO: signalfd4"); | | |
| 1482 | | | |
| 1483 | // eventfd2 | | |
| 1484 | // int eventfd(unsigned int initval, int flags); | | |
| 1485 | // asmlinkage long sys_eventfd2(unsigned int count, int flags); | | |
| 1486 | pub const eventfd2 = @compileError("TODO: eventfd2"); | | |
| 1487 | | | |
| 1488 | // epoll_create1 | | |
| 1489 | // int epoll_create1(int flags); | | |
| 1490 | // asmlinkage long sys_epoll_create1(int flags); | | |
| 1491 | pub const epoll_create1 = @compileError("TODO: epoll_create1"); | | |
| 1492 | | | |
| 1493 | // dup3 | | |
| 1494 | // int dup3(int oldfd, int newfd, int flags); | | |
| 1495 | // asmlinkage long sys_dup3(unsigned int oldfd, unsigned int newfd, int flags); | | |
| 1496 | pub const dup3 = @compileError("TODO: dup3"); | | |
| 1497 | | | |
| 1498 | // pipe2 | | |
| 1499 | // int pipe2(int pipefd[2], int flags); | | |
| 1500 | // asmlinkage long sys_pipe2(int __user *fildes, int flags); | | |
| 1501 | pub const pipe2 = @compileError("TODO: pipe2"); | | |
| 1502 | | | |
| 1503 | // inotify_init1 | | |
| 1504 | // int inotify_init1(int flags); | | |
| 1505 | // asmlinkage long sys_inotify_init1(int flags); | | |
| 1506 | pub const inotify_init1 = @compileError("TODO: inotify_init1"); | | |
| 1507 | | | |
| 1508 | // preadv | | |
| 1509 | // ssize_t preadv(int fd, const struct iovec *iov, int iovcnt, off_t offset); | | |
| 1510 | // asmlinkage long sys_preadv(unsigned long fd, const struct iovec __user *vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h); | | |
| 1511 | pub const preadv = @compileError("TODO: preadv"); | | |
| 1512 | | | |
| 1513 | // pwritev | | |
| 1514 | // ssize_t pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset); | | |
| 1515 | // asmlinkage long sys_pwritev(unsigned long fd, const struct iovec __user *vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h); | | |
| 1516 | pub const pwritev = @compileError("TODO: pwritev"); | | |
| 1517 | | | |
| 1518 | // rt_tgsigqueueinfo | | |
| 1519 | // int syscall(SYS_rt_tgsigqueueinfo, pid_t tgid, pid_t tid, int sig, siginfo_t *info); | | |
| 1520 | // asmlinkage long sys_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, siginfo_t __user *uinfo); | | |
| 1521 | pub const rt_tgsigqueueinfo = @compileError("TODO: rt_tgsigqueueinfo"); | | |
| 1522 | | | |
| 1523 | // perf_event_open | | |
| 1524 | // int syscall(SYS_perf_event_open, struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags); | | |
| 1525 | // asmlinkage long sys_perf_event_open( struct perf_event_attr __user *attr_uptr, pid_t pid, int cpu, int group_fd, unsigned long flags); | | |
| 1526 | pub const perf_event_open = @compileError("TODO: perf_event_open"); | | |
| 1527 | | | |
| 1528 | // recvmmsg | | |
| 1529 | // int recvmmsg(int sockfd, struct mmsghdr *msgvec, unsigned int vlen, int flags, struct timespec *timeout); | | |
| 1530 | // asmlinkage long sys_recvmmsg(int fd, struct mmsghdr __user *msg, unsigned int vlen, unsigned flags, struct __kernel_timespec __user *timeout); | | |
| 1531 | pub const recvmmsg = @compileError("TODO: recvmmsg"); | | |
| 1532 | | | |
| 1533 | // fanotify_init | | |
| 1534 | // int fanotify_init(unsigned int flags, unsigned int event_f_flags); | | |
| 1535 | // asmlinkage long sys_fanotify_init(unsigned int flags, unsigned int event_f_flags); | | |
| 1536 | pub const fanotify_init = @compileError("TODO: fanotify_init"); | | |
| 1537 | | | |
| 1538 | // fanotify_mark | | |
| 1539 | // int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t mask, int dirfd, const char *_Nullable pathname); | | |
| 1540 | // asmlinkage long sys_fanotify_mark(int fanotify_fd, unsigned int flags, u64 mask, int fd, const char __user *pathname); | | |
| 1541 | pub const fanotify_mark = @compileError("TODO: fanotify_mark"); | | |
| 1542 | | | |
| 1543 | // prlimit64 | | |
| 1544 | // int prlimit(pid_t pid, int resource, const struct rlimit *_Nullable new_limit, struct rlimit *_Nullable old_limit); | | |
| 1545 | // asmlinkage long sys_prlimit64(pid_t pid, unsigned int resource, const struct rlimit64 __user *new_rlim, struct rlimit64 __user *old_rlim); | | |
| 1546 | pub const prlimit64 = @compileError("TODO: prlimit64"); | | |
| 1547 | | | |
| 1548 | // name_to_handle_at | | |
| 1549 | // int name_to_handle_at(int dirfd, const char *pathname, struct file_handle *handle, int *mount_id, int flags); | | |
| 1550 | // asmlinkage long sys_name_to_handle_at(int dfd, const char __user *name, struct file_handle __user *handle, void __user *mnt_id, int flag); | | |
| 1551 | pub const name_to_handle_at = @compileError("TODO: name_to_handle_at"); | | |
| 1552 | | | |
| 1553 | // open_by_handle_at | | |
| 1554 | // int open_by_handle_at(int mount_fd, struct file_handle *handle, int flags); | | |
| 1555 | // asmlinkage long sys_open_by_handle_at(int mountdirfd, struct file_handle __user *handle, int flags); | | |
| 1556 | pub const open_by_handle_at = @compileError("TODO: open_by_handle_at"); | | |
| 1557 | | | |
| 1558 | // clock_adjtime | | |
| 1559 | // int clock_adjtime(clockid_t clk_id, struct timex *buf); | | |
| 1560 | // asmlinkage long sys_clock_adjtime(clockid_t which_clock, struct __kernel_timex __user *tx); | | |
| 1561 | pub const clock_adjtime = @compileError("TODO: clock_adjtime"); | | |
| 1562 | | | |
| 1563 | // syncfs | | |
| 1564 | // int syncfs(int fd); | | |
| 1565 | // asmlinkage long sys_syncfs(int fd); | | |
| 1566 | pub const syncfs = @compileError("TODO: syncfs"); | | |
| 1567 | | | |
| 1568 | // sendmmsg | | |
| 1569 | // int sendmmsg(int sockfd, struct mmsghdr *msgvec, unsigned int vlen, int flags); | | |
| 1570 | // asmlinkage long sys_sendmmsg(int fd, struct mmsghdr __user *msg, unsigned int vlen, unsigned flags); | | |
| 1571 | pub const sendmmsg = @compileError("TODO: sendmmsg"); | | |
| 1572 | | | |
| 1573 | // setns | | |
| 1574 | // int setns(int fd, int nstype); | | |
| 1575 | // asmlinkage long sys_setns(int fd, int nstype); | | |
| 1576 | pub const setns = @compileError("TODO: setns"); | | |
| 1577 | | | |
| 1578 | // getcpu | | |
| 1579 | // int getcpu(unsigned int *_Nullable cpu, unsigned int *_Nullable node); | | |
| 1580 | // asmlinkage long sys_getcpu(unsigned __user *cpu, unsigned __user *node, struct getcpu_cache __user *cache); | | |
| 1581 | pub const getcpu = @compileError("TODO: getcpu"); | | |
| 1582 | | | |
| 1583 | // process_vm_readv | | |
| 1584 | // ssize_t process_vm_readv(pid_t pid, const struct iovec *local_iov, unsigned long liovcnt, const struct iovec *remote_iov, unsigned long riovcnt, unsigned long flags); | | |
| 1585 | // asmlinkage long sys_process_vm_readv(pid_t pid, const struct iovec __user *lvec, unsigned long liovcnt, const struct iovec __user *rvec, unsigned long riovcnt, unsigned long flags); | | |
| 1586 | pub const process_vm_readv = @compileError("TODO: process_vm_readv"); | | |
| 1587 | | | |
| 1588 | // process_vm_writev | | |
| 1589 | // ssize_t process_vm_writev(pid_t pid, const struct iovec *local_iov, unsigned long liovcnt, const struct iovec *remote_iov, unsigned long riovcnt, unsigned long flags); | | |
| 1590 | // asmlinkage long sys_process_vm_writev(pid_t pid, const struct iovec __user *lvec, unsigned long liovcnt, const struct iovec __user *rvec, unsigned long riovcnt, unsigned long flags); | | |
| 1591 | pub const process_vm_writev = @compileError("TODO: process_vm_writev"); | | |
| 1592 | | | |
| 1593 | // kcmp | | |
| 1594 | // int syscall(SYS_kcmp, pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2); | | |
| 1595 | // asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2); | | |
| 1596 | pub const kcmp = @compileError("TODO: kcmp"); | | |
| 1597 | | | |
| 1598 | // finit_module | | |
| 1599 | // int syscall(SYS_finit_module, int fd, const char *param_values, int flags); | | |
| 1600 | // asmlinkage long sys_finit_module(int fd, const char __user *uargs, int flags); | | |
| 1601 | pub const finit_module = @compileError("TODO: finit_module"); | | |
| 1602 | | | |
| 1603 | // sched_setattr | | |
| 1604 | // int syscall(SYS_sched_setattr, pid_t pid, struct sched_attr *attr, unsigned int flags); | | |
| 1605 | // asmlinkage long sys_sched_setattr(pid_t pid, struct sched_attr __user *attr, unsigned int flags); | | |
| 1606 | pub const sched_setattr = @compileError("TODO: sched_setattr"); | | |
| 1607 | | | |
| 1608 | // sched_getattr | | |
| 1609 | // int syscall(SYS_sched_getattr, pid_t pid, struct sched_attr *attr, unsigned int size, unsigned int flags); | | |
| 1610 | // asmlinkage long sys_sched_getattr(pid_t pid, struct sched_attr __user *attr, unsigned int size, unsigned int flags); | | |
| 1611 | pub const sched_getattr = @compileError("TODO: sched_getattr"); | | |
| 1612 | | | |
| 1613 | // renameat2 | | |
| 1614 | // int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags); | | |
| 1615 | // asmlinkage long sys_renameat2(int olddfd, const char __user *oldname, int newdfd, const char __user *newname, unsigned int flags); | | |
| 1616 | pub const renameat2 = @compileError("TODO: renameat2"); | | |
| 1617 | | | |
| 1618 | // seccomp | | |
| 1619 | // int syscall(SYS_seccomp, unsigned int operation, unsigned int flags, void *args); | | |
| 1620 | // asmlinkage long sys_seccomp(unsigned int op, unsigned int flags, void __user *uargs); | | |
| 1621 | pub const seccomp = @compileError("TODO: seccomp"); | | |
| 1622 | | | |
| 1623 | // getrandom | | |
| 1624 | // ssize_t getrandom(void buf[.buflen], size_t buflen, unsigned int flags); | | |
| 1625 | // asmlinkage long sys_getrandom(char __user *buf, size_t count, unsigned int flags); | | |
| 1626 | pub const getrandom = @compileError("TODO: getrandom"); | | |
| 1627 | | | |
| 1628 | // memfd_create | | |
| 1629 | // int memfd_create(const char *name, unsigned int flags); | | |
| 1630 | // asmlinkage long sys_memfd_create(const char __user *uname_ptr, unsigned int flags); | | |
| 1631 | pub const memfd_create = @compileError("TODO: memfd_create"); | | |
| 1632 | | | |
| 1633 | // kexec_file_load | | |
| 1634 | // long syscall(SYS_kexec_file_load, int kernel_fd, int initrd_fd, unsigned long cmdline_len, const char *cmdline, unsigned long flags); | | |
| 1635 | // asmlinkage long sys_kexec_file_load(int kernel_fd, int initrd_fd, unsigned long cmdline_len, const char __user *cmdline_ptr, unsigned long flags); | | |
| 1636 | pub const kexec_file_load = @compileError("TODO: kexec_file_load"); | | |
| 1637 | | | |
| 1638 | // bpf | | |
| 1639 | // int bpf(int cmd, union bpf_attr *attr, unsigned int size); | | |
| 1640 | // asmlinkage long sys_bpf(int cmd, union bpf_attr __user *attr, unsigned int size); | | |
| 1641 | pub const bpf = @compileError("TODO: bpf"); | | |
| 1642 | | | |
| 1643 | // execveat | | |
| 1644 | // int execveat(int dirfd, const char *pathname, char *const _Nullable argv[], char *const _Nullable envp[], int flags); | | |
| 1645 | // asmlinkage long sys_execveat(int dfd, const char __user *filename, const char __user *const __user *argv, const char __user *const __user *envp, int flags); | | |
| 1646 | pub const execveat = @compileError("TODO: execveat"); | | |
| 1647 | | | |
| 1648 | // userfaultfd | | |
| 1649 | // int syscall(SYS_userfaultfd, int flags); | | |
| 1650 | // asmlinkage long sys_userfaultfd(int flags); | | |
| 1651 | pub const userfaultfd = @compileError("TODO: userfaultfd"); | | |
| 1652 | | | |
| 1653 | // membarrier | | |
| 1654 | // int syscall(SYS_membarrier, int cmd, unsigned int flags, int cpu_id); | | |
| 1655 | // asmlinkage long sys_membarrier(int cmd, unsigned int flags, int cpu_id); | | |
| 1656 | pub const membarrier = @compileError("TODO: membarrier"); | | |
| 1657 | | | |
| 1658 | // mlock2 | | |
| 1659 | // int mlock2(const void addr[.len], size_t len, unsigned int flags); | | |
| 1660 | // asmlinkage long sys_mlock2(unsigned long start, size_t len, int flags); | | |
| 1661 | pub const mlock2 = @compileError("TODO: mlock2"); | | |
| 1662 | | | |
| 1663 | // copy_file_range | | |
| 1664 | // ssize_t copy_file_range(int fd_in, off_t *_Nullable off_in, int fd_out, off_t *_Nullable off_out, size_t len, unsigned int flags); | | |
| 1665 | // asmlinkage long sys_copy_file_range(int fd_in, loff_t __user *off_in, int fd_out, loff_t __user *off_out, size_t len, unsigned int flags); | | |
| 1666 | pub const copy_file_range = @compileError("TODO: copy_file_range"); | | |
| 1667 | | | |
| 1668 | // preadv2 | | |
| 1669 | // ssize_t preadv2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags); | | |
| 1670 | // asmlinkage long sys_preadv2(unsigned long fd, const struct iovec __user *vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h, rwf_t flags); | | |
| 1671 | pub const preadv2 = @compileError("TODO: preadv2"); | | |
| 1672 | | | |
| 1673 | // pwritev2 | | |
| 1674 | // ssize_t pwritev2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags); | | |
| 1675 | // asmlinkage long sys_pwritev2(unsigned long fd, const struct iovec __user *vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h, rwf_t flags); | | |
| 1676 | pub const pwritev2 = @compileError("TODO: pwritev2"); | | |
| 1677 | | | |
| 1678 | // pkey_mprotect | | |
| 1679 | // int pkey_mprotect(void addr[.len], size_t len, int prot, int pkey); | | |
| 1680 | // asmlinkage long sys_pkey_mprotect(unsigned long start, size_t len, unsigned long prot, int pkey); | | |
| 1681 | pub const pkey_mprotect = @compileError("TODO: pkey_mprotect"); | | |
| 1682 | | | |
| 1683 | // pkey_alloc | | |
| 1684 | // int pkey_alloc(unsigned int flags, unsigned int access_rights); | | |
| 1685 | // asmlinkage long sys_pkey_alloc(unsigned long flags, unsigned long init_val); | | |
| 1686 | pub const pkey_alloc = @compileError("TODO: pkey_alloc"); | | |
| 1687 | | | |
| 1688 | // pkey_free | | |
| 1689 | // int pkey_free(int pkey); | | |
| 1690 | // asmlinkage long sys_pkey_free(int pkey); | | |
| 1691 | pub const pkey_free = @compileError("TODO: pkey_free"); | | |
| 1692 | | | |
| 1693 | // statx | | |
| 1694 | // int statx(int dirfd, const char *restrict pathname, int flags, unsigned int mask, struct statx *restrict statxbuf); | | |
| 1695 | // asmlinkage long sys_statx(int dfd, const char __user *path, unsigned flags, unsigned mask, struct statx __user *buffer); | | |
| 1696 | pub const statx = @compileError("TODO: statx"); | | |
| 1697 | | | |
| 1698 | // io_pgetevents | | |
| 1699 | // | | |
| 1700 | // asmlinkage long sys_io_pgetevents(aio_context_t ctx_id, long min_nr, long nr, struct io_event __user *events, struct __kernel_timespec __user *timeout, const struct __aio_sigset __user *sig); | | |
| 1701 | pub const io_pgetevents = @compileError("TODO: io_pgetevents"); | | |
| 1702 | | | |
| 1703 | // rseq | | |
| 1704 | // | | |
| 1705 | // asmlinkage long sys_rseq(struct rseq __user *rseq, uint32_t rseq_len, int flags, uint32_t sig); | | |
| 1706 | pub const rseq = @compileError("TODO: rseq"); | | |
| 1707 | | | |
| 1708 | // pidfd_send_signal | | |
| 1709 | // int syscall(SYS_pidfd_send_signal, int pidfd, int sig, siginfo_t *_Nullable info, unsigned int flags); | | |
| 1710 | | | |
| 1711 | // io_uring_setup | | |
| 1712 | // int io_uring_setup(u32 entries, struct io_uring_params *p); | | |
| 1713 | // asmlinkage long sys_io_uring_setup(u32 entries, struct io_uring_params __user *p); | | |
| 1714 | pub const io_uring_setup = @compileError("TODO: io_uring_setup"); | | |
| 1715 | | | |
| 1716 | // io_uring_enter | | |
| 1717 | // int io_uring_enter(unsigned int fd, unsigned int to_submit, unsigned int min_complete, unsigned int flags, sigset_t *sig); | | |
| 1718 | // asmlinkage long sys_io_uring_enter(unsigned int fd, u32 to_submit, u32 min_complete, u32 flags, const void __user *argp, size_t argsz); | | |
| 1719 | pub const io_uring_enter = @compileError("TODO: io_uring_enter"); | | |
| 1720 | | | |
| 1721 | // io_uring_register | | |
| 1722 | // int io_uring_register(unsigned int fd, unsigned int opcode, void *arg, unsigned int nr_args); | | |
| 1723 | // asmlinkage long sys_io_uring_register(unsigned int fd, unsigned int op, void __user *arg, unsigned int nr_args); | | |
| 1724 | pub const io_uring_register = @compileError("TODO: io_uring_register"); | | |
| 1725 | | | |
| 1726 | // open_tree | | |
| 1727 | // | | |
| 1728 | // asmlinkage long sys_open_tree(int dfd, const char __user *path, unsigned flags); | | |
| 1729 | pub const open_tree = @compileError("TODO: open_tree"); | | |
| 1730 | | | |
| 1731 | // move_mount | | |
| 1732 | // | | |
| 1733 | // asmlinkage long sys_move_mount(int from_dfd, const char __user *from_path, int to_dfd, const char __user *to_path, unsigned int ms_flags); | | |
| 1734 | pub const move_mount = @compileError("TODO: move_mount"); | | |
| 1735 | | | |
| 1736 | // fsopen | | |
| 1737 | // | | |
| 1738 | // asmlinkage long sys_fsopen(const char __user *fs_name, unsigned int flags); | | |
| 1739 | pub const fsopen = @compileError("TODO: fsopen"); | | |
| 1740 | | | |
| 1741 | // fsconfig | | |
| 1742 | // | | |
| 1743 | // asmlinkage long sys_fsconfig(int fs_fd, unsigned int cmd, const char __user *key, const void __user *value, int aux); | | |
| 1744 | pub const fsconfig = @compileError("TODO: fsconfig"); | | |
| 1745 | | | |
| 1746 | // fsmount | | |
| 1747 | // | | |
| 1748 | // asmlinkage long sys_fsmount(int fs_fd, unsigned int flags, unsigned int ms_flags); | | |
| 1749 | pub const fsmount = @compileError("TODO: fsmount"); | | |
| 1750 | | | |
| 1751 | // fspick | | |
| 1752 | // | | |
| 1753 | // asmlinkage long sys_fspick(int dfd, const char __user *path, unsigned int flags); | | |
| 1754 | pub const fspick = @compileError("TODO: fspick"); | | |
| 1755 | | | |
| 1756 | // pidfd_open | | |
| 1757 | // int syscall(SYS_pidfd_open, pid_t pid, unsigned int flags); | | |
| 1758 | // asmlinkage long sys_pidfd_open(pid_t pid, unsigned int flags); | | |
| 1759 | pub const pidfd_open = @compileError("TODO: pidfd_open"); | | |
| 1760 | | | |
| 1761 | // clone3 | | |
| 1762 | // long syscall(SYS_clone3, struct clone_args *cl_args, size_t size); | | |
| 1763 | // asmlinkage long sys_clone3(struct clone_args __user *uargs, size_t size); | | |
| 1764 | pub const clone3 = @compileError("TODO: clone3"); | | |
| 1765 | | | |
| 1766 | // close_range | | |
| 1767 | // int close_range(unsigned int first, unsigned int last, int flags); | | |
| 1768 | // asmlinkage long sys_close_range(unsigned int fd, unsigned int max_fd, unsigned int flags); | | |
| 1769 | pub const close_range = @compileError("TODO: close_range"); | | |
| 1770 | | | |
| 1771 | // openat2 | | |
| 1772 | // int openat2(int dirfd, const char *pathname, const struct open_how *how, size_t size); | | |
| 1773 | // asmlinkage long sys_openat2(int dfd, const char __user *filename, struct open_how __user *how, size_t size); | | |
| 1774 | pub const openat2 = @compileError("TODO: openat2"); | | |
| 1775 | | | |
| 1776 | // pidfd_getfd | | |
| 1777 | // int syscall(SYS_pidfd_getfd, int pidfd, int targetfd, unsigned int flags); | | |
| 1778 | // asmlinkage long sys_pidfd_getfd(int pidfd, int fd, unsigned int flags); | | |
| 1779 | pub const pidfd_getfd = @compileError("TODO: pidfd_getfd"); | | |
| 1780 | | | |
| 1781 | // faccessat2 | | |
| 1782 | // int syscall(SYS_faccessat2, int dirfd, const char *pathname, int mode, int flags); | | |
| 1783 | // asmlinkage long sys_faccessat2(int dfd, const char __user *filename, int mode, int flags); | | |
| 1784 | pub const faccessat2 = @compileError("TODO: faccessat2"); | | |
| 1785 | | | |
| 1786 | // process_madvise | | |
| 1787 | // ssize_t process_madvise(int pidfd, const struct iovec iovec[.n], size_t n, int advice, unsigned int flags); | | |
| 1788 | // asmlinkage long sys_process_madvise(int pidfd, const struct iovec __user *vec, size_t vlen, int behavior, unsigned int flags); | | |
| 1789 | pub const process_madvise = @compileError("TODO: process_madvise"); | | |
| 1790 | | | |
| 1791 | // epoll_pwait2 | | |
| 1792 | // int epoll_pwait2(int epfd, struct epoll_event *events, int maxevents, const struct timespec *_Nullable timeout, const sigset_t *_Nullable sigmask); | | |
| 1793 | // asmlinkage long sys_epoll_pwait2(int epfd, struct epoll_event __user *events, int maxevents, const struct __kernel_timespec __user *timeout, const sigset_t __user *sigmask, size_t sigsetsize); | | |
| 1794 | pub const epoll_pwait2 = @compileError("TODO: epoll_pwait2"); | | |
| 1795 | | | |
| 1796 | // mount_setattr | | |
| 1797 | // int syscall(SYS_mount_setattr, int dirfd, const char *pathname, unsigned int flags, struct mount_attr *attr, size_t size); | | |
| 1798 | // asmlinkage long sys_mount_setattr(int dfd, const char __user *path, unsigned int flags, struct mount_attr __user *uattr, size_t usize); | | |
| 1799 | pub const mount_setattr = @compileError("TODO: mount_setattr"); | | |
| 1800 | | | |
| 1801 | // quotactl_fd | | |
| 1802 | // int quotactl(int op, const char *_Nullable special, int id, caddr_t addr); | | |
| 1803 | // asmlinkage long sys_quotactl_fd(unsigned int fd, unsigned int cmd, qid_t id, void __user *addr); | | |
| 1804 | pub const quotactl_fd = @compileError("TODO: quotactl_fd"); | | |
| 1805 | | | |
| 1806 | // landlock_create_ruleset | | |
| 1807 | // int syscall(SYS_landlock_create_ruleset, const struct landlock_ruleset_attr *attr, size_t size , uint32_t flags); | | |
| 1808 | // asmlinkage long sys_landlock_create_ruleset(const struct landlock_ruleset_attr __user *attr, size_t size, __u32 flags); | | |
| 1809 | pub const landlock_create_ruleset = @compileError("TODO: landlock_create_ruleset"); | | |
| 1810 | | | |
| 1811 | // landlock_add_rule | | |
| 1812 | // int syscall(SYS_landlock_add_rule, int ruleset_fd, enum landlock_rule_type rule_type, const void *rule_attr, uint32_t flags); | | |
| 1813 | // asmlinkage long sys_landlock_add_rule(int ruleset_fd, enum landlock_rule_type rule_type, const void __user *rule_attr, __u32 flags); | | |
| 1814 | pub const landlock_add_rule = @compileError("TODO: landlock_add_rule"); | | |
| 1815 | | | |
| 1816 | // landlock_restrict_self | | |
| 1817 | // int syscall(SYS_landlock_restrict_self, int ruleset_fd, uint32_t flags); | | |
| 1818 | // asmlinkage long sys_landlock_restrict_self(int ruleset_fd, __u32 flags); | | |
| 1819 | pub const landlock_restrict_self = @compileError("TODO: landlock_restrict_self"); | | |
| 1820 | | | |
| 1821 | // memfd_secret | | |
| 1822 | // int syscall(SYS_memfd_secret, unsigned int flags); | | |
| 1823 | // asmlinkage long sys_memfd_secret(unsigned int flags); | | |
| 1824 | pub const memfd_secret = @compileError("TODO: memfd_secret"); | | |
| 1825 | | | |
| 1826 | // process_mrelease | | |
| 1827 | // | | |
| 1828 | // asmlinkage long sys_process_mrelease(int pidfd, unsigned int flags); | | |
| 1829 | pub const process_mrelease = @compileError("TODO: process_mrelease"); | | |
| 1830 | | | |
| 1831 | // futex_waitv | | |
| 1832 | // | | |
| 1833 | // asmlinkage long sys_futex_waitv(struct futex_waitv __user *waiters, unsigned int nr_futexes, unsigned int flags, struct __kernel_timespec __user *timeout, clockid_t clockid); | | |
| 1834 | pub const futex_waitv = @compileError("TODO: futex_waitv"); | | |
| 1835 | | | |
| 1836 | // set_mempolicy_home_node | | |
| 1837 | // | | |
| 1838 | // asmlinkage long sys_set_mempolicy_home_node(unsigned long start, unsigned long len, unsigned long home_node, unsigned long flags); | | |
| 1839 | pub const set_mempolicy_home_node = @compileError("TODO: set_mempolicy_home_node"); | | |
| 1840 | | | |
| 1841 | // cachestat | | |
| 1842 | // | | |
| 1843 | // asmlinkage long sys_cachestat(unsigned int fd, struct cachestat_range __user *cstat_range, struct cachestat __user *cstat, unsigned int flags); | | |
| 1844 | pub const cachestat = @compileError("TODO: cachestat"); | | |
| 1845 | | | |
| 1846 | // fchmodat2 | | |
| 1847 | // | | |
| 1848 | // asmlinkage long sys_fchmodat2(int dfd, const char __user *filename, umode_t mode, unsigned int flags); | | |
| 1849 | pub const fchmodat2 = @compileError("TODO: fchmodat2"); | | |
| 1850 | | | |
| 1851 | // map_shadow_stack | | |
| 1852 | // | | |
| 1853 | // asmlinkage long sys_map_shadow_stack(unsigned long addr, unsigned long size, unsigned int flags); | | |
| 1854 | pub const map_shadow_stack = @compileError("TODO: map_shadow_stack"); | | |
| 1855 | | | |
| 1856 | // futex_wake | | |
| 1857 | // | | |
| 1858 | // asmlinkage long sys_futex_wake(void __user *uaddr, unsigned long mask, int nr, unsigned int flags); | | |
| 1859 | pub const futex_wake = @compileError("TODO: futex_wake"); | | |
| 1860 | | | |
| 1861 | // futex_wait | | |
| 1862 | // | | |
| 1863 | // asmlinkage long sys_futex_wait(void __user *uaddr, unsigned long val, unsigned long mask, unsigned int flags, struct __kernel_timespec __user *timespec, clockid_t clockid); | | |
| 1864 | pub const futex_wait = @compileError("TODO: futex_wait"); | | |
| 1865 | | | |
| 1866 | // futex_requeue | | |
| 1867 | // | | |
| 1868 | // asmlinkage long sys_futex_requeue(struct futex_waitv __user *waiters, unsigned int flags, int nr_wake, int nr_requeue); | | |
| 1869 | pub const futex_requeue = @compileError("TODO: futex_requeue"); | | |