summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-12 06:43:28 +0000
committerbde <bde@FreeBSD.org>1995-11-12 06:43:28 +0000
commitaa9a60640e2c942769c3a8f506c8cb6317bb1eaf (patch)
tree2f26975a8fd164c9658b820d74c731c86cbb9e18 /sys/kern/kern_exec.c
parent7a9faab8f26e7692e572f4cdd89f30d1be471ebd (diff)
downloadFreeBSD-src-aa9a60640e2c942769c3a8f506c8cb6317bb1eaf.zip
FreeBSD-src-aa9a60640e2c942769c3a8f506c8cb6317bb1eaf.tar.gz
Included <sys/sysproto.h> to get central declarations for syscall args
structs and prototypes for syscalls. Ifdefed duplicated decentralized declarations of args structs. It's convenient to have this visible but they are hard to maintain. Some are already different from the central declarations. 4.4lite2 puts them in comments in the function headers but I wanted to avoid the large changes for that.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index e827ac9..ad17da0 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -28,11 +28,12 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: kern_exec.c,v 1.24 1995/10/21 08:38:11 davidg Exp $
+ * $Id: kern_exec.c,v 1.25 1995/11/06 12:52:32 davidg Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/sysproto.h>
#include <sys/signalvar.h>
#include <sys/kernel.h>
#include <sys/mount.h>
@@ -62,11 +63,13 @@ static int exec_check_permissions(struct image_params *);
*/
const struct execsw **execsw = (const struct execsw **)&execsw_set.ls_items[0];
+#ifndef _SYS_SYSPROTO_H_
struct execve_args {
char *fname;
char **argv;
char **envv;
};
+#endif
/*
* execve() system call.
OpenPOWER on IntegriCloud