Module Name: src
Committed By: christos
Date: Sat Aug 19 17:49:50 UTC 2023
Modified Files:
src/sys/compat/linux/arch/aarch64: syscalls.master
src/sys/compat/linux/arch/alpha: syscalls.master
src/sys/compat/linux/arch/amd64: syscalls.master
src/sys/compat/linux/arch/arm: syscalls.master
src/sys/compat/linux/arch/i386: syscalls.master
src/sys/compat/linux/arch/m68k: syscalls.master
src/sys/compat/linux/arch/mips: syscalls.master
src/sys/compat/linux/arch/powerpc: syscalls.master
Log Message:
Add inotify* syscalls GSoC 2023 (Theodore Preduta)
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/compat/linux/arch/aarch64/syscalls.master
cvs rdiff -u -r1.105 -r1.106 src/sys/compat/linux/arch/alpha/syscalls.master
cvs rdiff -u -r1.71 -r1.72 src/sys/compat/linux/arch/amd64/syscalls.master
cvs rdiff -u -r1.78 -r1.79 src/sys/compat/linux/arch/arm/syscalls.master
cvs rdiff -u -r1.133 -r1.134 src/sys/compat/linux/arch/i386/syscalls.master
cvs rdiff -u -r1.103 -r1.104 src/sys/compat/linux/arch/m68k/syscalls.master
cvs rdiff -u -r1.78 -r1.79 src/sys/compat/linux/arch/mips/syscalls.master
cvs rdiff -u -r1.83 -r1.84 src/sys/compat/linux/arch/powerpc/syscalls.master
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/linux/arch/aarch64/syscalls.master
diff -u src/sys/compat/linux/arch/aarch64/syscalls.master:1.10 src/sys/compat/linux/arch/aarch64/syscalls.master:1.11
--- src/sys/compat/linux/arch/aarch64/syscalls.master:1.10 Fri Aug 18 15:41:19 2023
+++ src/sys/compat/linux/arch/aarch64/syscalls.master Sat Aug 19 13:49:49 2023
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.10 2023/08/18 19:41:19 christos Exp $
+ $NetBSD: syscalls.master,v 1.11 2023/08/19 17:49:49 christos Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -106,9 +106,10 @@
23 NOARGS { int|sys||dup(int fd); }
24 STD { int|linux_sys||dup3(int from, int to, int flags); }
25 STD { int|linux_sys||fcntl(int fd, int cmd, void *arg); }
-26 UNIMPL inotify_init1
-27 UNIMPL inotify_add_watch
-28 UNIMPL inotify_rm_watch
+26 STD { int|linux_sys||inotify_init1(int flags); }
+27 STD { int|linux_sys||inotify_add_watch(int fd, \
+ const char *pathname, uint32_t mask); }
+28 STD { int|linux_sys||inotify_rm_watch(int fd, int wd); }
29 STD { int|linux_sys||ioctl(int fd, u_long com, \
void *data); }
30 UNIMPL ioprio_set
@@ -216,7 +217,7 @@
92 STD { int|linux_sys||personality(unsigned long per); }
93 STD { int|linux_sys||exit(int rval); }
94 STD { int|linux_sys||exit_group(int error_code); }
-95 STD { int|linux_sys||waitid(int idtype, id_t id, \
+95 STD { int|linux_sys||waitid(int idtype, id_t id, \
linux_siginfo_t *infop, int options, \
struct rusage50 *rusage); }
96 STD { int|linux_sys||set_tid_address(int *tid); }
Index: src/sys/compat/linux/arch/alpha/syscalls.master
diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.105 src/sys/compat/linux/arch/alpha/syscalls.master:1.106
--- src/sys/compat/linux/arch/alpha/syscalls.master:1.105 Fri Aug 18 15:41:19 2023
+++ src/sys/compat/linux/arch/alpha/syscalls.master Sat Aug 19 13:49:49 2023
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.105 2023/08/18 19:41:19 christos Exp $
+ $NetBSD: syscalls.master,v 1.106 2023/08/19 17:49:49 christos Exp $
;
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -703,7 +703,7 @@
435 UNIMPL mq_timedreceive
436 UNIMPL mq_notify
437 UNIMPL mq_getsetattr
-438 STD { int|linux_sys||waitid(int idtype, id_t id, \
+438 STD { int|linux_sys||waitid(int idtype, id_t id, \
linux_siginfo_t *infop, int options, \
struct rusage50 *rusage); }
439 UNIMPL add_key
@@ -711,9 +711,10 @@
441 UNIMPL keyctl
442 UNIMPL ioprio_set
443 UNIMPL ioprio_get
-444 UNIMPL inotify_init
-445 UNIMPL inotify_add_watch
-446 UNIMPL inotify_rm_watch
+444 STD { int|linux_sys||inotify_init(void); }
+445 STD { int|linux_sys||inotify_add_watch(int fd, \
+ const char *pathname, uint32_t mask); }
+446 STD { int|linux_sys||inotify_rm_watch(int fd, int wd); }
447 UNIMPL fdatasync
448 UNIMPL kexec_load
449 UNIMPL migrate_pages
@@ -791,7 +792,7 @@
486 STD { int|linux_sys||epoll_create1(int flags); }
487 STD { int|linux_sys||dup3(int from, int to, int flags); }
488 STD { int|linux_sys||pipe2(int *pfds, int flags); }
-489 UNIMPL inotify_init1
+489 STD { int|linux_sys||inotify_init1(int flags); }
490 STD { int|linux_sys||preadv(int fd, \
const struct iovec *iovp, int iovcnt, \
unsigned long off_lo, unsigned long off_hi); }
@@ -833,7 +834,7 @@
519 UNIMPL
520 UNIMPL
521 UNIMPL
-522 STD { int|linux_sys||statx(int fd, const char *path, \
+522 STD { int|linux_sys||statx(int fd, const char *path, \
int flag, unsigned int mask, \
struct linux_statx *sp); }
523 UNIMPL
Index: src/sys/compat/linux/arch/amd64/syscalls.master
diff -u src/sys/compat/linux/arch/amd64/syscalls.master:1.71 src/sys/compat/linux/arch/amd64/syscalls.master:1.72
--- src/sys/compat/linux/arch/amd64/syscalls.master:1.71 Fri Aug 18 15:41:19 2023
+++ src/sys/compat/linux/arch/amd64/syscalls.master Sat Aug 19 13:49:49 2023
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.71 2023/08/18 19:41:19 christos Exp $
+ $NetBSD: syscalls.master,v 1.72 2023/08/19 17:49:49 christos Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -471,9 +471,10 @@
250 UNIMPL keyctl
251 UNIMPL ioprio_set
252 UNIMPL ioprio_get
-253 UNIMPL inotify_init
-254 UNIMPL inotify_add_watch
-255 UNIMPL inotify_rm_watch
+253 STD { int|linux_sys||inotify_init(void); }
+254 STD { int|linux_sys||inotify_add_watch(int fd, \
+ const char *pathname, uint32_t mask); }
+255 STD { int|linux_sys||inotify_rm_watch(int fd, int wd); }
256 UNIMPL migrate_pages
257 STD { int|linux_sys||openat(int fd, const char *path, \
int flags, ... linux_umode_t mode); }
@@ -547,7 +548,7 @@
291 STD { int|linux_sys||epoll_create1(int flags); }
292 STD { int|linux_sys||dup3(int from, int to, int flags); }
293 STD { int|linux_sys||pipe2(int *pfds, int flags); }
-294 UNIMPL inotify_init1
+294 STD { int|linux_sys||inotify_init1(int flags); }
295 STD { int|linux_sys||preadv(int fd, \
const struct iovec *iovp, int iovcnt, \
unsigned long off_lo, unsigned long off_hi); }
@@ -596,7 +597,7 @@
329 UNIMPL pkey_mprotect
330 UNIMPL pkey_alloc
331 UNIMPL pkey_free
-332 STD { int|linux_sys||statx(int fd, const char *path, \
+332 STD { int|linux_sys||statx(int fd, const char *path, \
int flag, unsigned int mask, \
struct linux_statx *sp); }
333 UNIMPL io_pgetevents
Index: src/sys/compat/linux/arch/arm/syscalls.master
diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.78 src/sys/compat/linux/arch/arm/syscalls.master:1.79
--- src/sys/compat/linux/arch/arm/syscalls.master:1.78 Fri Aug 18 15:41:19 2023
+++ src/sys/compat/linux/arch/arm/syscalls.master Sat Aug 19 13:49:49 2023
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.78 2023/08/18 19:41:19 christos Exp $
+ $NetBSD: syscalls.master,v 1.79 2023/08/19 17:49:49 christos Exp $
; Derived from sys/compat/linux/arch/*/syscalls.master
; and from Linux 2.4.12 arch/arm/kernel/calls.S
@@ -124,7 +124,7 @@
56 OBSOL mpx
57 NOARGS { int|sys||setpgid(int pid, int pgid); }
58 OBSOL ulimit
-59 STD { int|linux_sys||oldolduname( \
+59 STD { int|linux_sys||oldolduname( \
struct linux_oldold_utsname *up); }
60 NOARGS { int|sys||umask(int newmask); }
61 NOARGS { int|sys||chroot(char *path); }
@@ -471,7 +471,7 @@
277 UNIMPL mq_timedreceive
278 UNIMPL mq_notify
279 UNIMPL mq_getsetattr
-280 STD { int|linux_sys||waitid(int idtype, id_t id, \
+280 STD { int|linux_sys||waitid(int idtype, id_t id, \
linux_siginfo_t *infop, int options, \
struct rusage50 *rusage); }
281 UNIMPL socket
@@ -509,9 +509,10 @@
313 UNIMPL vserver
314 UNIMPL ioptio_set
315 UNIMPL ioptio_get
-316 UNIMPL inotify_init
-317 UNIMPL inotify_add_watch
-318 UNIMPL inotify_rm_watch
+316 STD { int|linux_sys||inotify_init(void); }
+317 STD { int|linux_sys||inotify_add_watch(int fd, \
+ const char *pathname, uint32_t mask); }
+318 STD { int|linux_sys||inotify_rm_watch(int fd, int wd); }
319 UNIMPL mbind
320 UNIMPL get_mempolicy
321 UNIMPL set_mempolicy
@@ -586,7 +587,7 @@
357 STD { int|linux_sys||epoll_create1(int flags); }
358 STD { int|linux_sys||dup3(int from, int to, int flags); }
359 STD { int|linux_sys||pipe2(int *pfds, int flags); }
-360 UNIMPL inotify_init1
+360 STD { int|linux_sys||inotify_init1(int flags); }
361 STD { int|linux_sys||preadv(int fd, \
const struct iovec *iovp, int iovcnt, \
unsigned long off_lo, unsigned long off_hi); }
@@ -647,7 +648,7 @@
394 UNIMPL
395 UNIMPL
396 UNIMPL
-397 STD { int|linux_sys||statx(int fd, const char *path, \
+397 STD { int|linux_sys||statx(int fd, const char *path, \
int flag, unsigned int mask, \
struct linux_statx *sp); }
398 UNIMPL
Index: src/sys/compat/linux/arch/i386/syscalls.master
diff -u src/sys/compat/linux/arch/i386/syscalls.master:1.133 src/sys/compat/linux/arch/i386/syscalls.master:1.134
--- src/sys/compat/linux/arch/i386/syscalls.master:1.133 Fri Aug 18 15:41:19 2023
+++ src/sys/compat/linux/arch/i386/syscalls.master Sat Aug 19 13:49:49 2023
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.133 2023/08/18 19:41:19 christos Exp $
+ $NetBSD: syscalls.master,v 1.134 2023/08/19 17:49:49 christos Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -475,7 +475,7 @@
281 UNIMPL mq_notify
282 UNIMPL mq_getsetattr
283 UNIMPL sys_kexec_load
-284 STD { int|linux_sys||waitid(int idtype, id_t id, \
+284 STD { int|linux_sys||waitid(int idtype, id_t id, \
linux_siginfo_t *infop, int options, \
struct rusage50 *rusage); }
285 UNIMPL /* unused */
@@ -484,9 +484,10 @@
288 UNIMPL keyctl
289 UNIMPL ioprio_set
290 UNIMPL ioprio_get
-291 UNIMPL inotify_init
-292 UNIMPL inotify_add_watch
-293 UNIMPL inotify_rm_watch
+291 STD { int|linux_sys||inotify_init(void); }
+292 STD { int|linux_sys||inotify_add_watch(int fd, \
+ const char *pathname, uint32_t mask); }
+293 STD { int|linux_sys||inotify_rm_watch(int fd, int wd); }
294 UNIMPL migrate_pages
295 STD { int|linux_sys||openat(int fd, const char *path, \
int flags, ... linux_umode_t mode); }
@@ -551,9 +552,9 @@
328 STD { int|linux_sys||eventfd2(unsigned int initval, \
int flags); }
329 STD { int|linux_sys||epoll_create1(int flags); }
-330 STD { int|linux_sys||dup3(int from, int to, int flags); }
-331 STD { int|linux_sys||pipe2( int *pfds, int flags); }
-332 UNIMPL inotify_init1
+330 STD { int|linux_sys||dup3(int from, int to, int flags); }
+331 STD { int|linux_sys||pipe2( int *pfds, int flags); }
+332 STD { int|linux_sys||inotify_init1(int flags); }
333 STD { int|linux_sys||preadv(int fd, \
const struct iovec *iovp, int iovcnt, \
unsigned long off_lo, unsigned long off_hi); }
@@ -625,7 +626,7 @@
394 UNIMPL semctl
395 UNIMPL shmget
396 UNIMPL shmctl
-397 STD { int|linux_sys||statx(int fd, const char *path, \
+397 STD { int|linux_sys||statx(int fd, const char *path, \
int flag, unsigned int mask, \
struct linux_statx *sp); }
398 UNIMPL shmdt
Index: src/sys/compat/linux/arch/m68k/syscalls.master
diff -u src/sys/compat/linux/arch/m68k/syscalls.master:1.103 src/sys/compat/linux/arch/m68k/syscalls.master:1.104
--- src/sys/compat/linux/arch/m68k/syscalls.master:1.103 Sat Jul 29 11:04:29 2023
+++ src/sys/compat/linux/arch/m68k/syscalls.master Sat Aug 19 13:49:49 2023
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.103 2023/07/29 15:04:29 christos Exp $
+ $NetBSD: syscalls.master,v 1.104 2023/08/19 17:49:49 christos Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -490,9 +490,10 @@
281 UNIMPL keyctl
282 UNIMPL ioprio_set
283 UNIMPL ioprio_get
-284 UNIMPL inotify_init
-285 UNIMPL inotify_add_watch
-286 UNIMPL inotify_rm_watch
+284 STD { int|linux_sys||inotify_init(void); }
+285 STD { int|linux_sys||inotify_add_watch(int fd, \
+ const char *pathname, uint32_t mask); }
+286 STD { int|linux_sys||inotify_rm_watch(int fd, int wd); }
287 UNIMPL migrate_pages
288 STD { int|linux_sys||openat(int fd, const char *path, \
int flags, ... linux_umode_t mode); }
@@ -569,7 +570,7 @@
325 STD { int|linux_sys||epoll_create1(int flags); }
326 STD { int|linux_sys||dup3(int from, int to, int flags); }
327 STD { int|linux_sys||pipe2(int *pfds, int flags); }
-328 UNIMPL inotify_init1
+328 STD { int|linux_sys||inotify_init1(int flags); }
329 STD { int|linux_sys||preadv(int fd, \
const struct iovec *iovp, int iovcnt, \
unsigned long off_lo, unsigned long off_hi); }
@@ -632,7 +633,7 @@
376 UNIMPL copy_file_range
377 UNIMPL preadv2
378 UNIMPL pwritev2
-379 STD { int|linux_sys||statx(int fd, const char *path, \
+379 STD { int|linux_sys||statx(int fd, const char *path, \
int flag, unsigned int mask, \
struct linux_statx *sp); }
380 UNIMPL
Index: src/sys/compat/linux/arch/mips/syscalls.master
diff -u src/sys/compat/linux/arch/mips/syscalls.master:1.78 src/sys/compat/linux/arch/mips/syscalls.master:1.79
--- src/sys/compat/linux/arch/mips/syscalls.master:1.78 Fri Aug 18 15:41:19 2023
+++ src/sys/compat/linux/arch/mips/syscalls.master Sat Aug 19 13:49:49 2023
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.78 2023/08/18 19:41:19 christos Exp $
+ $NetBSD: syscalls.master,v 1.79 2023/08/19 17:49:49 christos Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -127,7 +127,7 @@
56 OBSOL mpx
57 NOARGS { int|sys||setpgid(int pid, int pgid); }
58 UNIMPL
-59 STD { int|linux_sys||olduname(struct linux_old_utsname \
+59 STD { int|linux_sys||olduname(struct linux_old_utsname \
*up); }
60 NOARGS { int|sys||umask(int newmask); }
61 NOARGS { int|sys||chroot(char *path); }
@@ -180,7 +180,7 @@
long length); }
93 NOARGS { int|compat_43_sys||ftruncate(int fd, long length); }
94 NOARGS { int|sys||fchmod(int fd, linux_umode_t mode); }
-95 NOARGS { int|sys||__posix_fchown(int fd, uid_t uid, \
+95 NOARGS { int|sys||__posix_fchown(int fd, uid_t uid, \
gid_t gid); }
96 STD { int|linux_sys||getpriority(int which, int who); }
97 NOARGS { int|sys||setpriority(int which, int who, int prio); }
@@ -474,7 +474,7 @@
275 UNIMPL mq_notify
276 UNIMPL mq_getsetattr
277 UNIMPL vserve
-278 STD { int|linux_sys||waitid(int idtype, id_t id, \
+278 STD { int|linux_sys||waitid(int idtype, id_t id, \
linux_siginfo_t *infop, int options, \
struct rusage50 *rusage); }
279 UNIMPL setaltroot
@@ -482,9 +482,10 @@
281 UNIMPL request_key
282 UNIMPL keyctl
283 STD { int|linux_sys||set_thread_area(void *tls); }
-284 UNIMPL inotify_init
-285 UNIMPL inotify_add_watch
-286 UNIMPL inotify_rm_watch
+284 STD { int|linux_sys||inotify_init(void); }
+285 STD { int|linux_sys||inotify_add_watch(int fd, \
+ const char *pathname, uint32_t mask); }
+286 STD { int|linux_sys||inotify_rm_watch(int fd, int wd); }
287 UNIMPL migrate_pages
288 STD { int|linux_sys||openat(int fd, const char *path, \
int flags, ... linux_umode_t mode); }
@@ -560,7 +561,7 @@
326 STD { int|linux_sys||epoll_create1(int flags); }
327 STD { int|linux_sys||dup3(int from, int to, int flags); }
328 STD { int|linux_sys||pipe2(int *pfds, int flags); }
-329 UNIMPL inotify_init1
+329 STD { int|linux_sys||inotify_init1(int flags); }
330 STD { int|linux_sys||preadv(int fd, \
const struct iovec *iovp, int iovcnt, \
unsigned long off_lo, unsigned long off_hi); }
@@ -610,7 +611,7 @@
363 UNIMPL pkey_mprotect
364 UNIMPL pkey_alloc
365 UNIMPL pkey_free
-366 STD { int|linux_sys||statx(int fd, const char *path, \
+366 STD { int|linux_sys||statx(int fd, const char *path, \
int flag, unsigned int mask, \
struct linux_statx *sp); }
367 UNIMPL
Index: src/sys/compat/linux/arch/powerpc/syscalls.master
diff -u src/sys/compat/linux/arch/powerpc/syscalls.master:1.83 src/sys/compat/linux/arch/powerpc/syscalls.master:1.84
--- src/sys/compat/linux/arch/powerpc/syscalls.master:1.83 Fri Aug 18 15:41:19 2023
+++ src/sys/compat/linux/arch/powerpc/syscalls.master Sat Aug 19 13:49:50 2023
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.83 2023/08/18 19:41:19 christos Exp $
+ $NetBSD: syscalls.master,v 1.84 2023/08/19 17:49:50 christos Exp $
; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
@@ -150,7 +150,7 @@
56 OBSOL mpx
57 NOARGS { int|sys||setpgid(int pid, int pgid); }
58 OBSOL ulimit
-59 STD { int|linux_sys||olduname(struct linux_old_utsname \
+59 STD { int|linux_sys||olduname(struct linux_old_utsname \
*up); }
60 NOARGS { int|sys||umask(int newmask); }
61 NOARGS { int|sys||chroot(char *path); }
@@ -478,14 +478,15 @@
269 UNIMPL add_key
270 UNIMPL request_key
271 UNIMPL keyctl
-272 STD { int|linux_sys||waitid(int idtype, id_t id, \
+272 STD { int|linux_sys||waitid(int idtype, id_t id, \
linux_siginfo_t *infop, int options, \
struct rusage50 *rusage); }
273 UNIMPL ioprio_set
274 UNIMPL ioprio_get
-275 UNIMPL inotify_init
-276 UNIMPL inotify_add_watch
-277 UNIMPL inotify_rm_watch
+275 STD { int|linux_sys||inotify_init(void); }
+276 STD { int|linux_sys||inotify_add_watch(int fd, \
+ const char *pathname, uint32_t mask); }
+277 STD { int|linux_sys||inotify_rm_watch(int fd, int wd); }
278 UNIMPL spu_run
279 UNIMPL spu_create
280 STD { int|linux_sys||pselect6(int nfds, fd_set *readfds, \
@@ -559,7 +560,7 @@
315 STD { int|linux_sys||epoll_create1(int flags); }
316 STD { int|linux_sys||dup3(int from, int to, int flags); }
317 STD { int|linux_sys||pipe2(int *pfds, int flags); }
-318 UNIMPL inotify_init1
+318 STD { int|linux_sys||inotify_init1(int flags); }
319 UNIMPL perf_event_open
320 STD { int|linux_sys||preadv(int fd, \
const struct iovec *iovp, int iovcnt, \
@@ -636,7 +637,7 @@
380 UNIMPL preadv2
381 UNIMPL pwritev2
382 UNIMPL kexec_file_load
-383 STD { int|linux_sys||statx(int fd, const char *path, \
+383 STD { int|linux_sys||statx(int fd, const char *path, \
int flag, unsigned int mask, \
struct linux_statx *sp); }
384 UNIMPL