diff options
author | trasz <trasz@FreeBSD.org> | 2009-07-08 15:25:27 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2009-07-08 15:25:27 +0000 |
commit | 1161d4e10fbef39d4ef38c4b752af75858c22453 (patch) | |
tree | fa0242b0964ecce0f03caa92932cfa0f100bfad7 | |
parent | 09784497a28d12cd83a37f13a040e4ad325ef692 (diff) | |
download | FreeBSD-src-1161d4e10fbef39d4ef38c4b752af75858c22453.zip FreeBSD-src-1161d4e10fbef39d4ef38c4b752af75858c22453.tar.gz |
Regenerate after lpathconf(2) addition.
Approved by: re (kib)
-rw-r--r-- | sys/kern/init_sysent.c | 3 | ||||
-rw-r--r-- | sys/kern/syscalls.c | 3 | ||||
-rw-r--r-- | sys/kern/systrace_args.c | 21 | ||||
-rw-r--r-- | sys/sys/syscall.h | 5 | ||||
-rw-r--r-- | sys/sys/syscall.mk | 5 | ||||
-rw-r--r-- | sys/sys/sysproto.h | 8 |
6 files changed, 38 insertions, 7 deletions
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index 93fd0b7..bad34c1 100644 --- a/sys/kern/init_sysent.c +++ b/sys/kern/init_sysent.c @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: head/sys/kern/syscalls.master 194910 2009-06-24 21:10:52Z jhb + * created from FreeBSD: head/sys/kern/syscalls.master 195458 2009-07-08 15:23:18Z trasz */ #include "opt_compat.h" @@ -547,4 +547,5 @@ struct sysent sysent[] = { { AS(__semctl_args), (sy_call_t *)lkmressys, AUE_NULL, NULL, 0, 0, 0 }, /* 510 = __semctl */ { AS(msgctl_args), (sy_call_t *)lkmressys, AUE_NULL, NULL, 0, 0, 0 }, /* 511 = msgctl */ { AS(shmctl_args), (sy_call_t *)lkmressys, AUE_NULL, NULL, 0, 0, 0 }, /* 512 = shmctl */ + { AS(lpathconf_args), (sy_call_t *)lpathconf, AUE_LPATHCONF, NULL, 0, 0, 0 }, /* 513 = lpathconf */ }; diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index 26d7d27..dbe9e79 100644 --- a/sys/kern/syscalls.c +++ b/sys/kern/syscalls.c @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: head/sys/kern/syscalls.master 194910 2009-06-24 21:10:52Z jhb + * created from FreeBSD: head/sys/kern/syscalls.master 195458 2009-07-08 15:23:18Z trasz */ const char *syscallnames[] = { @@ -520,4 +520,5 @@ const char *syscallnames[] = { "__semctl", /* 510 = __semctl */ "msgctl", /* 511 = msgctl */ "shmctl", /* 512 = shmctl */ + "lpathconf", /* 513 = lpathconf */ }; diff --git a/sys/kern/systrace_args.c b/sys/kern/systrace_args.c index 985b7a5..e8d6bc3 100644 --- a/sys/kern/systrace_args.c +++ b/sys/kern/systrace_args.c @@ -3064,6 +3064,14 @@ systrace_args(int sysnum, void *params, u_int64_t *uarg, int *n_args) *n_args = 3; break; } + /* lpathconf */ + case 513: { + struct lpathconf_args *p = params; + uarg[0] = (intptr_t) p->path; /* char * */ + iarg[1] = p->name; /* int */ + *n_args = 2; + break; + } default: *n_args = 0; break; @@ -8133,6 +8141,19 @@ systrace_setargdesc(int sysnum, int ndx, char *desc, size_t descsz) break; }; break; + /* lpathconf */ + case 513: + switch(ndx) { + case 0: + p = "char *"; + break; + case 1: + p = "int"; + break; + default: + break; + }; + break; default: break; }; diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index edfccc4..8e67fdb 100644 --- a/sys/sys/syscall.h +++ b/sys/sys/syscall.h @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: head/sys/kern/syscalls.master 194910 2009-06-24 21:10:52Z jhb + * created from FreeBSD: head/sys/kern/syscalls.master 195458 2009-07-08 15:23:18Z trasz */ #define SYS_syscall 0 @@ -427,4 +427,5 @@ #define SYS___semctl 510 #define SYS_msgctl 511 #define SYS_shmctl 512 -#define SYS_MAXSYSCALL 513 +#define SYS_lpathconf 513 +#define SYS_MAXSYSCALL 514 diff --git a/sys/sys/syscall.mk b/sys/sys/syscall.mk index 908bc73..dc6ea5e 100644 --- a/sys/sys/syscall.mk +++ b/sys/sys/syscall.mk @@ -1,7 +1,7 @@ # FreeBSD system call names. # DO NOT EDIT-- this file is automatically generated. # $FreeBSD$ -# created from FreeBSD: head/sys/kern/syscalls.master 194910 2009-06-24 21:10:52Z jhb +# created from FreeBSD: head/sys/kern/syscalls.master 195458 2009-07-08 15:23:18Z trasz MIASM = \ syscall.o \ exit.o \ @@ -375,4 +375,5 @@ MIASM = \ closefrom.o \ __semctl.o \ msgctl.o \ - shmctl.o + shmctl.o \ + lpathconf.o diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h index f6da011..7c654bf 100644 --- a/sys/sys/sysproto.h +++ b/sys/sys/sysproto.h @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: head/sys/kern/syscalls.master 194910 2009-06-24 21:10:52Z jhb + * created from FreeBSD: head/sys/kern/syscalls.master 195458 2009-07-08 15:23:18Z trasz */ #ifndef _SYS_SYSPROTO_H_ @@ -1637,6 +1637,10 @@ struct shmctl_args { char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)]; char buf_l_[PADL_(struct shmid_ds *)]; struct shmid_ds * buf; char buf_r_[PADR_(struct shmid_ds *)]; }; +struct lpathconf_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)]; +}; int nosys(struct thread *, struct nosys_args *); void sys_exit(struct thread *, struct sys_exit_args *); int fork(struct thread *, struct fork_args *); @@ -1994,6 +1998,7 @@ int closefrom(struct thread *, struct closefrom_args *); int __semctl(struct thread *, struct __semctl_args *); int msgctl(struct thread *, struct msgctl_args *); int shmctl(struct thread *, struct shmctl_args *); +int lpathconf(struct thread *, struct lpathconf_args *); #ifdef COMPAT_43 @@ -2665,6 +2670,7 @@ int freebsd7_shmctl(struct thread *, struct freebsd7_shmctl_args *); #define SYS_AUE___semctl AUE_SEMCTL #define SYS_AUE_msgctl AUE_MSGCTL #define SYS_AUE_shmctl AUE_SHMCTL +#define SYS_AUE_lpathconf AUE_LPATHCONF #undef PAD_ #undef PADL_ |