sync with OpenBSD -current

This commit is contained in:
purplerain 2024-04-06 01:12:35 +00:00
parent d875ef6d7b
commit 467ab94ea3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
25 changed files with 213 additions and 388 deletions

View file

@ -1,10 +1,10 @@
/* $OpenBSD: init_sysent.c,v 1.276 2024/03/28 02:23:31 deraadt Exp $ */
/* $OpenBSD: init_sysent.c,v 1.277 2024/04/05 14:15:37 deraadt Exp $ */
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from; OpenBSD: syscalls.master,v 1.259 2024/03/28 02:19:57 deraadt Exp
* created from; OpenBSD: syscalls.master,v 1.260 2024/04/05 14:15:13 deraadt Exp
*/
#include <sys/param.h>
@ -96,8 +96,8 @@ const struct sysent sysent[] = {
sys_fchflags }, /* 35 = fchflags */
{ 0, 0, 0,
sys_sync }, /* 36 = sync */
{ 2, s(struct sys_msyscall_args), 0,
sys_msyscall }, /* 37 = msyscall */
{ 0, 0, 0,
sys_nosys }, /* 37 = obsolete msyscall */
{ 2, s(struct sys_stat_args), 0,
sys_stat }, /* 38 = stat */
{ 0, 0, SY_NOLOCK | 0,

View file

@ -1,4 +1,4 @@
/* $OpenBSD: kern_pledge.c,v 1.312 2024/03/28 02:19:57 deraadt Exp $ */
/* $OpenBSD: kern_pledge.c,v 1.313 2024/04/05 13:55:26 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@ -105,7 +105,6 @@ const uint64_t pledge_syscalls[SYS_MAXSYSCALL] = {
*/
[SYS_exit] = PLEDGE_ALWAYS,
[SYS_kbind] = PLEDGE_ALWAYS,
[SYS_msyscall] = PLEDGE_ALWAYS,
[SYS___get_tcb] = PLEDGE_ALWAYS,
[SYS___set_tcb] = PLEDGE_ALWAYS,
[SYS_pledge] = PLEDGE_ALWAYS,

View file

@ -1,10 +1,10 @@
/* $OpenBSD: syscalls.c,v 1.274 2024/03/28 02:23:31 deraadt Exp $ */
/* $OpenBSD: syscalls.c,v 1.275 2024/04/05 14:15:37 deraadt Exp $ */
/*
* System call names.
*
* DO NOT EDIT-- this file is automatically generated.
* created from; OpenBSD: syscalls.master,v 1.259 2024/03/28 02:19:57 deraadt Exp
* created from; OpenBSD: syscalls.master,v 1.260 2024/04/05 14:15:13 deraadt Exp
*/
const char *const syscallnames[] = {
@ -49,7 +49,7 @@ const char *const syscallnames[] = {
"chflags", /* 34 = chflags */
"fchflags", /* 35 = fchflags */
"sync", /* 36 = sync */
"msyscall", /* 37 = msyscall */
"#37 (obsolete msyscall)", /* 37 = obsolete msyscall */
"stat", /* 38 = stat */
"getppid", /* 39 = getppid */
"lstat", /* 40 = lstat */

View file

@ -1,4 +1,4 @@
; $OpenBSD: syscalls.master,v 1.259 2024/03/28 02:19:57 deraadt Exp $
; $OpenBSD: syscalls.master,v 1.260 2024/04/05 14:15:13 deraadt Exp $
; $NetBSD: syscalls.master,v 1.32 1996/04/23 10:24:21 mycroft Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@ -103,7 +103,7 @@
34 STD { int sys_chflags(const char *path, u_int flags); }
35 STD { int sys_fchflags(int fd, u_int flags); }
36 STD { void sys_sync(void); }
37 STD { int sys_msyscall(void *addr, size_t len); }
37 OBSOL msyscall
38 STD { int sys_stat(const char *path, struct stat *ub); }
39 STD NOLOCK { pid_t sys_getppid(void); }
40 STD { int sys_lstat(const char *path, struct stat *ub); }