From a90a3f288212baae1c6a8a95fd9a3be13d1fe89d Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 21 Sep 2001 21:34:06 +0000 Subject: [PATCH] o Part two of eaccess(2) commit, rebuilt system call code. Obtained from: TrustedBSD Project --- sys/kern/init_sysent.c | 3 ++- sys/kern/syscalls.c | 3 ++- sys/sys/syscall-hide.h | 3 ++- sys/sys/syscall.h | 5 +++-- sys/sys/syscall.mk | 5 +++-- sys/sys/sysproto.h | 7 ++++++- 6 files changed, 18 insertions(+), 8 deletions(-) diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c index 032c7d4f645..6592df4d5a4 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: src/sys/kern/syscalls.master,v 1.97 2001/09/18 23:31:36 peter Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.98 2001/09/21 21:33:22 rwatson Exp */ #include "opt_compat.h" @@ -398,4 +398,5 @@ struct sysent sysent[] = { { AS(extattr_delete_fd_args), (sy_call_t *)extattr_delete_fd }, /* 373 = extattr_delete_fd */ { SYF_MPSAFE | AS(__setugid_args), (sy_call_t *)__setugid }, /* 374 = __setugid */ { AS(nfsclnt_args), (sy_call_t *)nosys }, /* 375 = nfsclnt */ + { AS(eaccess_args), (sy_call_t *)eaccess }, /* 376 = eaccess */ }; diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c index b9d2e48f5f6..80623619ca9 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: src/sys/kern/syscalls.master,v 1.97 2001/09/18 23:31:36 peter Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.98 2001/09/21 21:33:22 rwatson Exp */ char *syscallnames[] = { @@ -383,4 +383,5 @@ char *syscallnames[] = { "extattr_delete_fd", /* 373 = extattr_delete_fd */ "__setugid", /* 374 = __setugid */ "nfsclnt", /* 375 = nfsclnt */ + "eaccess", /* 376 = eaccess */ }; diff --git a/sys/sys/syscall-hide.h b/sys/sys/syscall-hide.h index fa4ba6d9ae9..82e95b74887 100644 --- a/sys/sys/syscall-hide.h +++ b/sys/sys/syscall-hide.h @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: src/sys/kern/syscalls.master,v 1.97 2001/09/18 23:31:36 peter Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.98 2001/09/21 21:33:22 rwatson Exp */ HIDE_POSIX(fork) @@ -289,3 +289,4 @@ HIDE_BSD(extattr_get_fd) HIDE_BSD(extattr_delete_fd) HIDE_BSD(__setugid) HIDE_BSD(nfsclnt) +HIDE_BSD(eaccess) diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h index 0ac01cd6c15..fc5a2fe3ad2 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: src/sys/kern/syscalls.master,v 1.97 2001/09/18 23:31:36 peter Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.98 2001/09/21 21:33:22 rwatson Exp */ #define SYS_syscall 0 @@ -296,4 +296,5 @@ #define SYS_extattr_delete_fd 373 #define SYS___setugid 374 #define SYS_nfsclnt 375 -#define SYS_MAXSYSCALL 376 +#define SYS_eaccess 376 +#define SYS_MAXSYSCALL 377 diff --git a/sys/sys/syscall.mk b/sys/sys/syscall.mk index 3ebd9953fe6..eac6e88a651 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: src/sys/kern/syscalls.master,v 1.97 2001/09/18 23:31:36 peter Exp +# created from FreeBSD: src/sys/kern/syscalls.master,v 1.98 2001/09/21 21:33:22 rwatson Exp MIASM = \ syscall.o \ exit.o \ @@ -244,4 +244,5 @@ MIASM = \ extattr_get_fd.o \ extattr_delete_fd.o \ __setugid.o \ - nfsclnt.o + nfsclnt.o \ + eaccess.o diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h index bd5080444dd..cf88312163b 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: src/sys/kern/syscalls.master,v 1.97 2001/09/18 23:31:36 peter Exp + * created from FreeBSD: src/sys/kern/syscalls.master,v 1.98 2001/09/21 21:33:22 rwatson Exp */ #ifndef _SYS_SYSPROTO_H_ @@ -1077,6 +1077,10 @@ struct nfsclnt_args { char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)]; char argp_l_[PADL_(caddr_t)]; caddr_t argp; char argp_r_[PADR_(caddr_t)]; }; +struct eaccess_args { + char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)]; + char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)]; +}; int nosys __P((struct thread *, struct nosys_args *)); void sys_exit __P((struct thread *, struct sys_exit_args *)); int fork __P((struct thread *, struct fork_args *)); @@ -1318,6 +1322,7 @@ int extattr_get_fd __P((struct thread *, struct extattr_get_fd_args *)); int extattr_delete_fd __P((struct thread *, struct extattr_delete_fd_args *)); int __setugid __P((struct thread *, struct __setugid_args *)); int nfsclnt __P((struct thread *, struct nfsclnt_args *)); +int eaccess __P((struct thread *, struct eaccess_args *)); #ifdef COMPAT_43 -- 2.45.2