Update the generated syscall files for copy_file_range(2) added by

r350315.
This commit is contained in:
Rick Macklem 2019-07-25 05:55:55 +00:00
parent bbbbeca3e9
commit bf499e87f5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350316
5 changed files with 56 additions and 1 deletions

View File

@ -618,4 +618,5 @@ struct sysent sysent[] = {
{ AS(fhlinkat_args), (sy_call_t *)sys_fhlinkat, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 566 = fhlinkat */
{ AS(fhreadlink_args), (sy_call_t *)sys_fhreadlink, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 567 = fhreadlink */
{ AS(funlinkat_args), (sy_call_t *)sys_funlinkat, AUE_UNLINKAT, NULL, 0, 0, SYF_CAPENABLED, SY_THR_STATIC }, /* 568 = funlinkat */
{ AS(copy_file_range_args), (sy_call_t *)sys_copy_file_range, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 569 = copy_file_range */
};

View File

@ -575,4 +575,5 @@ const char *syscallnames[] = {
"fhlinkat", /* 566 = fhlinkat */
"fhreadlink", /* 567 = fhreadlink */
"funlinkat", /* 568 = funlinkat */
"copy_file_range", /* 569 = copy_file_range */
};

View File

@ -3312,6 +3312,18 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
*n_args = 4;
break;
}
/* copy_file_range */
case 569: {
struct copy_file_range_args *p = params;
iarg[0] = p->infd; /* int */
uarg[1] = (intptr_t) p->inoffp; /* off_t * */
iarg[2] = p->outfd; /* int */
uarg[3] = (intptr_t) p->outoffp; /* off_t * */
uarg[4] = p->len; /* size_t */
uarg[5] = p->flags; /* unsigned int */
*n_args = 6;
break;
}
default:
*n_args = 0;
break;
@ -8839,6 +8851,31 @@ systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
break;
};
break;
/* copy_file_range */
case 569:
switch(ndx) {
case 0:
p = "int";
break;
case 1:
p = "userland off_t *";
break;
case 2:
p = "int";
break;
case 3:
p = "userland off_t *";
break;
case 4:
p = "size_t";
break;
case 5:
p = "unsigned int";
break;
default:
break;
};
break;
default:
break;
};
@ -10740,6 +10777,11 @@ systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
if (ndx == 0 || ndx == 1)
p = "int";
break;
/* copy_file_range */
case 569:
if (ndx == 0 || ndx == 1)
p = "ssize_t";
break;
default:
break;
};

View File

@ -504,4 +504,5 @@
#define SYS_fhlinkat 566
#define SYS_fhreadlink 567
#define SYS_funlinkat 568
#define SYS_MAXSYSCALL 569
#define SYS_copy_file_range 569
#define SYS_MAXSYSCALL 570

View File

@ -1796,6 +1796,14 @@ struct funlinkat_args {
char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
};
struct copy_file_range_args {
char infd_l_[PADL_(int)]; int infd; char infd_r_[PADR_(int)];
char inoffp_l_[PADL_(off_t *)]; off_t * inoffp; char inoffp_r_[PADR_(off_t *)];
char outfd_l_[PADL_(int)]; int outfd; char outfd_r_[PADR_(int)];
char outoffp_l_[PADL_(off_t *)]; off_t * outoffp; char outoffp_r_[PADR_(off_t *)];
char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
char flags_l_[PADL_(unsigned int)]; unsigned int flags; char flags_r_[PADR_(unsigned 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 *);
@ -2181,6 +2189,7 @@ int sys_fhlink(struct thread *, struct fhlink_args *);
int sys_fhlinkat(struct thread *, struct fhlinkat_args *);
int sys_fhreadlink(struct thread *, struct fhreadlink_args *);
int sys_funlinkat(struct thread *, struct funlinkat_args *);
int sys_copy_file_range(struct thread *, struct copy_file_range_args *);
#ifdef COMPAT_43
@ -3088,6 +3097,7 @@ int freebsd11_mknodat(struct thread *, struct freebsd11_mknodat_args *);
#define SYS_AUE_fhlinkat AUE_NULL
#define SYS_AUE_fhreadlink AUE_NULL
#define SYS_AUE_funlinkat AUE_UNLINKAT
#define SYS_AUE_copy_file_range AUE_NULL
#undef PAD_
#undef PADL_