Date: Thu, 26 Sep 2019 15:41:11 +0000 (UTC) From: David Bright <dab@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r352751 - in head/sys: compat/freebsd32 kern sys Message-ID: <201909261541.x8QFfBLY053303@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dab Date: Thu Sep 26 15:41:10 2019 New Revision: 352751 URL: https://svnweb.freebsd.org/changeset/base/352751 Log: sysent: regenerate after r352747. Sponsored by: Dell EMC Isilon Modified: head/sys/compat/freebsd32/freebsd32_syscall.h head/sys/compat/freebsd32/freebsd32_syscalls.c head/sys/compat/freebsd32/freebsd32_sysent.c head/sys/compat/freebsd32/freebsd32_systrace_args.c head/sys/kern/init_sysent.c head/sys/kern/syscalls.c head/sys/kern/systrace_args.c head/sys/sys/syscall.h head/sys/sys/syscall.mk head/sys/sys/sysproto.h Modified: head/sys/compat/freebsd32/freebsd32_syscall.h ============================================================================== --- head/sys/compat/freebsd32/freebsd32_syscall.h Thu Sep 26 15:38:06 2019 (r352750) +++ head/sys/compat/freebsd32/freebsd32_syscall.h Thu Sep 26 15:41:10 2019 (r352751) @@ -498,4 +498,5 @@ #define FREEBSD32_SYS_copy_file_range 569 #define FREEBSD32_SYS_freebsd32___sysctlbyname 570 #define FREEBSD32_SYS_shm_open2 571 -#define FREEBSD32_SYS_MAXSYSCALL 572 +#define FREEBSD32_SYS_shm_rename 572 +#define FREEBSD32_SYS_MAXSYSCALL 573 Modified: head/sys/compat/freebsd32/freebsd32_syscalls.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_syscalls.c Thu Sep 26 15:38:06 2019 (r352750) +++ head/sys/compat/freebsd32/freebsd32_syscalls.c Thu Sep 26 15:41:10 2019 (r352751) @@ -608,4 +608,5 @@ const char *freebsd32_syscallnames[] = { "copy_file_range", /* 569 = copy_file_range */ "freebsd32___sysctlbyname", /* 570 = freebsd32___sysctlbyname */ "shm_open2", /* 571 = shm_open2 */ + "shm_rename", /* 572 = shm_rename */ }; Modified: head/sys/compat/freebsd32/freebsd32_sysent.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_sysent.c Thu Sep 26 15:38:06 2019 (r352750) +++ head/sys/compat/freebsd32/freebsd32_sysent.c Thu Sep 26 15:41:10 2019 (r352751) @@ -661,4 +661,5 @@ struct sysent freebsd32_sysent[] = { { AS(copy_file_range_args), (sy_call_t *)sys_copy_file_range, AUE_NULL, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 569 = copy_file_range */ { AS(freebsd32___sysctlbyname_args), (sy_call_t *)freebsd32___sysctlbyname, AUE_SYSCTL, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 570 = freebsd32___sysctlbyname */ { AS(shm_open2_args), (sy_call_t *)sys_shm_open2, AUE_SHMOPEN, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 571 = shm_open2 */ + { AS(shm_rename_args), (sy_call_t *)sys_shm_rename, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 572 = shm_rename */ }; Modified: head/sys/compat/freebsd32/freebsd32_systrace_args.c ============================================================================== --- head/sys/compat/freebsd32/freebsd32_systrace_args.c Thu Sep 26 15:38:06 2019 (r352750) +++ head/sys/compat/freebsd32/freebsd32_systrace_args.c Thu Sep 26 15:41:10 2019 (r352751) @@ -3346,6 +3346,15 @@ systrace_args(int sysnum, void *params, uint64_t *uarg *n_args = 5; break; } + /* shm_rename */ + case 572: { + struct shm_rename_args *p = params; + uarg[0] = (intptr_t) p->path_from; /* const char * */ + uarg[1] = (intptr_t) p->path_to; /* const char * */ + iarg[2] = p->flags; /* int */ + *n_args = 3; + break; + } default: *n_args = 0; break; @@ -9016,6 +9025,22 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *d break; }; break; + /* shm_rename */ + case 572: + switch(ndx) { + case 0: + p = "userland const char *"; + break; + case 1: + p = "userland const char *"; + break; + case 2: + p = "int"; + break; + default: + break; + }; + break; default: break; }; @@ -10897,6 +10922,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char * break; /* shm_open2 */ case 571: + if (ndx == 0 || ndx == 1) + p = "int"; + break; + /* shm_rename */ + case 572: if (ndx == 0 || ndx == 1) p = "int"; break; Modified: head/sys/kern/init_sysent.c ============================================================================== --- head/sys/kern/init_sysent.c Thu Sep 26 15:38:06 2019 (r352750) +++ head/sys/kern/init_sysent.c Thu Sep 26 15:41:10 2019 (r352751) @@ -627,4 +627,5 @@ struct sysent sysent[] = { { AS(copy_file_range_args), (sy_call_t *)sys_copy_file_range, AUE_NULL, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 569 = copy_file_range */ { AS(__sysctlbyname_args), (sy_call_t *)sys___sysctlbyname, AUE_SYSCTL, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 570 = __sysctlbyname */ { AS(shm_open2_args), (sy_call_t *)sys_shm_open2, AUE_SHMOPEN, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 571 = shm_open2 */ + { AS(shm_rename_args), (sy_call_t *)sys_shm_rename, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 572 = shm_rename */ }; Modified: head/sys/kern/syscalls.c ============================================================================== --- head/sys/kern/syscalls.c Thu Sep 26 15:38:06 2019 (r352750) +++ head/sys/kern/syscalls.c Thu Sep 26 15:41:10 2019 (r352751) @@ -578,4 +578,5 @@ const char *syscallnames[] = { "copy_file_range", /* 569 = copy_file_range */ "__sysctlbyname", /* 570 = __sysctlbyname */ "shm_open2", /* 571 = shm_open2 */ + "shm_rename", /* 572 = shm_rename */ }; Modified: head/sys/kern/systrace_args.c ============================================================================== --- head/sys/kern/systrace_args.c Thu Sep 26 15:38:06 2019 (r352750) +++ head/sys/kern/systrace_args.c Thu Sep 26 15:41:10 2019 (r352751) @@ -3338,6 +3338,15 @@ systrace_args(int sysnum, void *params, uint64_t *uarg *n_args = 5; break; } + /* shm_rename */ + case 572: { + struct shm_rename_args *p = params; + uarg[0] = (intptr_t) p->path_from; /* const char * */ + uarg[1] = (intptr_t) p->path_to; /* const char * */ + iarg[2] = p->flags; /* int */ + *n_args = 3; + break; + } default: *n_args = 0; break; @@ -8921,6 +8930,22 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *d break; }; break; + /* shm_rename */ + case 572: + switch(ndx) { + case 0: + p = "userland const char *"; + break; + case 1: + p = "userland const char *"; + break; + case 2: + p = "int"; + break; + default: + break; + }; + break; default: break; }; @@ -10829,6 +10854,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char * break; /* shm_open2 */ case 571: + if (ndx == 0 || ndx == 1) + p = "int"; + break; + /* shm_rename */ + case 572: if (ndx == 0 || ndx == 1) p = "int"; break; Modified: head/sys/sys/syscall.h ============================================================================== --- head/sys/sys/syscall.h Thu Sep 26 15:38:06 2019 (r352750) +++ head/sys/sys/syscall.h Thu Sep 26 15:41:10 2019 (r352751) @@ -507,4 +507,5 @@ #define SYS_copy_file_range 569 #define SYS___sysctlbyname 570 #define SYS_shm_open2 571 -#define SYS_MAXSYSCALL 572 +#define SYS_shm_rename 572 +#define SYS_MAXSYSCALL 573 Modified: head/sys/sys/syscall.mk ============================================================================== --- head/sys/sys/syscall.mk Thu Sep 26 15:38:06 2019 (r352750) +++ head/sys/sys/syscall.mk Thu Sep 26 15:41:10 2019 (r352751) @@ -412,4 +412,5 @@ MIASM = \ funlinkat.o \ copy_file_range.o \ __sysctlbyname.o \ - shm_open2.o + shm_open2.o \ + shm_rename.o Modified: head/sys/sys/sysproto.h ============================================================================== --- head/sys/sys/sysproto.h Thu Sep 26 15:38:06 2019 (r352750) +++ head/sys/sys/sysproto.h Thu Sep 26 15:41:10 2019 (r352751) @@ -1814,6 +1814,11 @@ struct shm_open2_args { char shmflags_l_[PADL_(int)]; int shmflags; char shmflags_r_[PADR_(int)]; char name_l_[PADL_(const char *)]; const char * name; char name_r_[PADR_(const char *)]; }; +struct shm_rename_args { + char path_from_l_[PADL_(const char *)]; const char * path_from; char path_from_r_[PADR_(const char *)]; + char path_to_l_[PADL_(const char *)]; const char * path_to; char path_to_r_[PADR_(const char *)]; + char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; +}; int nosys(struct thread *, struct nosys_args *); void sys_sys_exit(struct thread *, struct sys_exit_args *); int sys_fork(struct thread *, struct fork_args *); @@ -2201,6 +2206,7 @@ int sys_funlinkat(struct thread *, struct funlinkat_ar int sys_copy_file_range(struct thread *, struct copy_file_range_args *); int sys___sysctlbyname(struct thread *, struct __sysctlbyname_args *); int sys_shm_open2(struct thread *, struct shm_open2_args *); +int sys_shm_rename(struct thread *, struct shm_rename_args *); #ifdef COMPAT_43 @@ -3123,6 +3129,7 @@ int freebsd12_shm_open(struct thread *, struct freebsd #define SYS_AUE_copy_file_range AUE_NULL #define SYS_AUE___sysctlbyname AUE_SYSCTL #define SYS_AUE_shm_open2 AUE_SHMOPEN +#define SYS_AUE_shm_rename AUE_NULL #undef PAD_ #undef PADL_
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909261541.x8QFfBLY053303>