-/* $OpenBSD: init_sysent.c,v 1.255 2022/12/17 13:45:00 kn Exp $ */
+/* $OpenBSD: init_sysent.c,v 1.256 2023/01/07 05:25:39 guenther Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.238 2022/12/17 13:42:59 kn Exp
+ * created from; OpenBSD: syscalls.master,v 1.239 2023/01/07 05:24:58 guenther Exp
*/
#include <sys/param.h>
sys_adjtime }, /* 140 = adjtime */
{ 2, s(struct sys_getlogin_r_args), 0,
sys_getlogin_r }, /* 141 = getlogin_r */
- { 0, 0, 0,
- sys_nosys }, /* 142 = obsolete ogethostid */
- { 0, 0, 0,
- sys_nosys }, /* 143 = obsolete osethostid */
+ { 3, s(struct sys_getthrname_args), 0,
+ sys_getthrname }, /* 142 = getthrname */
+ { 2, s(struct sys_setthrname_args), 0,
+ sys_setthrname }, /* 143 = setthrname */
{ 0, 0, 0,
sys_nosys }, /* 144 = obsolete ogetrlimit */
{ 0, 0, 0,
-/* $OpenBSD: syscalls.c,v 1.253 2022/12/17 13:45:00 kn Exp $ */
+/* $OpenBSD: syscalls.c,v 1.254 2023/01/07 05:25:39 guenther Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.238 2022/12/17 13:42:59 kn Exp
+ * created from; OpenBSD: syscalls.master,v 1.239 2023/01/07 05:24:58 guenther Exp
*/
const char *const syscallnames[] = {
"#139 (obsolete 4.2 sigreturn)", /* 139 = obsolete 4.2 sigreturn */
"adjtime", /* 140 = adjtime */
"getlogin_r", /* 141 = getlogin_r */
- "#142 (obsolete ogethostid)", /* 142 = obsolete ogethostid */
- "#143 (obsolete osethostid)", /* 143 = obsolete osethostid */
+ "getthrname", /* 142 = getthrname */
+ "setthrname", /* 143 = setthrname */
"#144 (obsolete ogetrlimit)", /* 144 = obsolete ogetrlimit */
"#145 (obsolete osetrlimit)", /* 145 = obsolete osetrlimit */
"#146 (obsolete okillpg)", /* 146 = obsolete okillpg */
-/* $OpenBSD: syscall.h,v 1.252 2022/12/17 13:45:00 kn Exp $ */
+/* $OpenBSD: syscall.h,v 1.253 2023/01/07 05:25:39 guenther Exp $ */
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.238 2022/12/17 13:42:59 kn Exp
+ * created from; OpenBSD: syscalls.master,v 1.239 2023/01/07 05:24:58 guenther Exp
*/
/* syscall: "syscall" ret: "int" args: "int" "..." */
/* syscall: "getlogin_r" ret: "int" args: "char *" "u_int" */
#define SYS_getlogin_r 141
- /* 142 is obsolete ogethostid */
- /* 143 is obsolete osethostid */
+/* syscall: "getthrname" ret: "int" args: "pid_t" "char *" "size_t" */
+#define SYS_getthrname 142
+
+/* syscall: "setthrname" ret: "int" args: "pid_t" "const char *" */
+#define SYS_setthrname 143
+
/* 144 is obsolete ogetrlimit */
/* 145 is obsolete osetrlimit */
/* 146 is obsolete okillpg */
-/* $OpenBSD: syscallargs.h,v 1.255 2022/12/17 13:45:00 kn Exp $ */
+/* $OpenBSD: syscallargs.h,v 1.256 2023/01/07 05:25:39 guenther Exp $ */
/*
* System call argument lists.
*
* DO NOT EDIT-- this file is automatically generated.
- * created from; OpenBSD: syscalls.master,v 1.238 2022/12/17 13:42:59 kn Exp
+ * created from; OpenBSD: syscalls.master,v 1.239 2023/01/07 05:24:58 guenther Exp
*/
#ifdef syscallarg
syscallarg(u_int) namelen;
};
+struct sys_getthrname_args {
+ syscallarg(pid_t) tid;
+ syscallarg(char *) name;
+ syscallarg(size_t) len;
+};
+
+struct sys_setthrname_args {
+ syscallarg(pid_t) tid;
+ syscallarg(const char *) name;
+};
+
struct sys_quotactl_args {
syscallarg(const char *) path;
syscallarg(int) cmd;
int sys_rmdir(struct proc *, void *, register_t *);
int sys_adjtime(struct proc *, void *, register_t *);
int sys_getlogin_r(struct proc *, void *, register_t *);
+int sys_getthrname(struct proc *, void *, register_t *);
+int sys_setthrname(struct proc *, void *, register_t *);
int sys_setsid(struct proc *, void *, register_t *);
int sys_quotactl(struct proc *, void *, register_t *);
int sys_ypconnect(struct proc *, void *, register_t *);