sysent: regen for _exit(2) normalization
This commit is contained in:
@@ -65,7 +65,7 @@ struct uuid;
|
||||
union semun;
|
||||
|
||||
__BEGIN_DECLS
|
||||
typedef void (__sys_exit_t)(int);
|
||||
typedef void (__sys__exit_t)(int);
|
||||
typedef int (__sys_fork_t)(void);
|
||||
typedef ssize_t (__sys_read_t)(int, void *, size_t);
|
||||
typedef ssize_t (__sys_write_t)(int, const void *, size_t);
|
||||
@@ -469,7 +469,7 @@ typedef int (__sys_exterrctl_t)(u_int, u_int, void *);
|
||||
typedef int (__sys_inotify_add_watch_at_t)(int, int, const char *, uint32_t);
|
||||
typedef int (__sys_inotify_rm_watch_t)(int, int);
|
||||
|
||||
void __sys_exit(int rval);
|
||||
void __sys__exit(int rval);
|
||||
int __sys_fork(void);
|
||||
ssize_t __sys_read(int fd, void * buf, size_t nbyte);
|
||||
ssize_t __sys_write(int fd, const void * buf, size_t nbyte);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
FBSDprivate_1.0 {
|
||||
_syscall;
|
||||
__sys_syscall;
|
||||
__sys_exit;
|
||||
__sys__exit;
|
||||
_fork;
|
||||
__sys_fork;
|
||||
_read;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
#define FREEBSD32_SYS_syscall 0
|
||||
#define FREEBSD32_SYS_exit 1
|
||||
#define FREEBSD32_SYS__exit 1
|
||||
#define FREEBSD32_SYS_fork 2
|
||||
#define FREEBSD32_SYS_read 3
|
||||
#define FREEBSD32_SYS_write 4
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
const char *freebsd32_syscallnames[] = {
|
||||
"syscall", /* 0 = syscall */
|
||||
"exit", /* 1 = exit */
|
||||
"_exit", /* 1 = _exit */
|
||||
"fork", /* 2 = fork */
|
||||
"read", /* 3 = read */
|
||||
"write", /* 4 = write */
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
/* The casts are bogus but will do for now. */
|
||||
struct sysent freebsd32_sysent[] = {
|
||||
{ .sy_narg = 0, .sy_call = (sy_call_t *)nosys, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 0 = syscall */
|
||||
{ .sy_narg = AS(exit_args), .sy_call = (sy_call_t *)sys_exit, .sy_auevent = AUE_EXIT, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 1 = exit */
|
||||
{ .sy_narg = AS(_exit_args), .sy_call = (sy_call_t *)sys__exit, .sy_auevent = AUE_EXIT, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 1 = _exit */
|
||||
{ .sy_narg = 0, .sy_call = (sy_call_t *)sys_fork, .sy_auevent = AUE_FORK, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 2 = fork */
|
||||
{ .sy_narg = AS(read_args), .sy_call = (sy_call_t *)sys_read, .sy_auevent = AUE_READ, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 3 = read */
|
||||
{ .sy_narg = AS(write_args), .sy_call = (sy_call_t *)sys_write, .sy_auevent = AUE_WRITE, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 4 = write */
|
||||
|
||||
@@ -20,9 +20,9 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
|
||||
*n_args = 0;
|
||||
break;
|
||||
}
|
||||
/* exit */
|
||||
/* _exit */
|
||||
case 1: {
|
||||
struct exit_args *p = params;
|
||||
struct _exit_args *p = params;
|
||||
iarg[a++] = p->rval; /* int */
|
||||
*n_args = 1;
|
||||
break;
|
||||
@@ -3426,7 +3426,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
|
||||
/* syscall */
|
||||
case 0:
|
||||
break;
|
||||
/* exit */
|
||||
/* _exit */
|
||||
case 1:
|
||||
switch (ndx) {
|
||||
case 0:
|
||||
@@ -9235,7 +9235,7 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
|
||||
switch (sysnum) {
|
||||
/* syscall */
|
||||
case 0:
|
||||
/* exit */
|
||||
/* _exit */
|
||||
case 1:
|
||||
if (ndx == 0 || ndx == 1)
|
||||
p = "void";
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
/* The casts are bogus but will do for now. */
|
||||
struct sysent sysent[] = {
|
||||
{ .sy_narg = 0, .sy_call = (sy_call_t *)nosys, .sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC }, /* 0 = syscall */
|
||||
{ .sy_narg = AS(exit_args), .sy_call = (sy_call_t *)sys_exit, .sy_auevent = AUE_EXIT, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 1 = exit */
|
||||
{ .sy_narg = AS(_exit_args), .sy_call = (sy_call_t *)sys__exit, .sy_auevent = AUE_EXIT, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 1 = _exit */
|
||||
{ .sy_narg = 0, .sy_call = (sy_call_t *)sys_fork, .sy_auevent = AUE_FORK, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 2 = fork */
|
||||
{ .sy_narg = AS(read_args), .sy_call = (sy_call_t *)sys_read, .sy_auevent = AUE_READ, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 3 = read */
|
||||
{ .sy_narg = AS(write_args), .sy_call = (sy_call_t *)sys_write, .sy_auevent = AUE_WRITE, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 4 = write */
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
|
||||
const char *syscallnames[] = {
|
||||
"syscall", /* 0 = syscall */
|
||||
"exit", /* 1 = exit */
|
||||
"_exit", /* 1 = _exit */
|
||||
"fork", /* 2 = fork */
|
||||
"read", /* 3 = read */
|
||||
"write", /* 4 = write */
|
||||
|
||||
@@ -17,9 +17,9 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
|
||||
*n_args = 0;
|
||||
break;
|
||||
}
|
||||
/* exit */
|
||||
/* _exit */
|
||||
case 1: {
|
||||
struct exit_args *p = params;
|
||||
struct _exit_args *p = params;
|
||||
iarg[a++] = p->rval; /* int */
|
||||
*n_args = 1;
|
||||
break;
|
||||
@@ -3513,7 +3513,7 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
|
||||
/* syscall */
|
||||
case 0:
|
||||
break;
|
||||
/* exit */
|
||||
/* _exit */
|
||||
case 1:
|
||||
switch (ndx) {
|
||||
case 0:
|
||||
@@ -9380,7 +9380,7 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
|
||||
switch (sysnum) {
|
||||
/* syscall */
|
||||
case 0:
|
||||
/* exit */
|
||||
/* _exit */
|
||||
case 1:
|
||||
if (ndx == 0 || ndx == 1)
|
||||
p = "void";
|
||||
|
||||
+3
-1
@@ -4,8 +4,10 @@
|
||||
* DO NOT EDIT-- this file is automatically @generated.
|
||||
*/
|
||||
|
||||
#define SYS_exit SYS__exit
|
||||
|
||||
#define SYS_syscall 0
|
||||
#define SYS_exit 1
|
||||
#define SYS__exit 1
|
||||
#define SYS_fork 2
|
||||
#define SYS_read 3
|
||||
#define SYS_write 4
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
|
||||
MIASM = \
|
||||
syscall.o \
|
||||
exit.o \
|
||||
_exit.o \
|
||||
fork.o \
|
||||
read.o \
|
||||
write.o \
|
||||
|
||||
+3
-3
@@ -33,7 +33,7 @@ struct thread;
|
||||
#define PADR_(t) 0
|
||||
#endif
|
||||
|
||||
struct exit_args {
|
||||
struct _exit_args {
|
||||
char rval_l_[PADL_(int)]; int rval; char rval_r_[PADR_(int)];
|
||||
};
|
||||
struct fork_args {
|
||||
@@ -1901,7 +1901,7 @@ struct inotify_rm_watch_args {
|
||||
char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
|
||||
char wd_l_[PADL_(int)]; int wd; char wd_r_[PADR_(int)];
|
||||
};
|
||||
int sys_exit(struct thread *, struct exit_args *);
|
||||
int sys__exit(struct thread *, struct _exit_args *);
|
||||
int sys_fork(struct thread *, struct fork_args *);
|
||||
int sys_read(struct thread *, struct read_args *);
|
||||
int sys_write(struct thread *, struct write_args *);
|
||||
@@ -2802,7 +2802,7 @@ int freebsd13_swapoff(struct thread *, struct freebsd13_swapoff_args *);
|
||||
|
||||
#endif /* COMPAT_FREEBSD14 */
|
||||
|
||||
#define SYS_AUE_exit AUE_EXIT
|
||||
#define SYS_AUE__exit AUE_EXIT
|
||||
#define SYS_AUE_fork AUE_FORK
|
||||
#define SYS_AUE_read AUE_READ
|
||||
#define SYS_AUE_write AUE_WRITE
|
||||
|
||||
Reference in New Issue
Block a user