Generate the new ps_strings format.
This commit is contained in:
parent
59c1e76057
commit
bfd22ffde8
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec.c,v 1.4 1995/04/22 19:48:34 christos Exp $ */
|
||||
/* $NetBSD: linux_exec.c,v 1.5 1995/05/16 14:19:07 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -116,7 +116,7 @@ linux_copyargs(pack, arginfo, stack, argp)
|
||||
sp = argp;
|
||||
|
||||
/* XXX don't copy them out, remap them! */
|
||||
arginfo->ps_argvstr = dp; /* remember location of argv for later */
|
||||
arginfo->ps_argvstr = cpp; /* remember location of argv for later */
|
||||
|
||||
for (; --argc >= 0; sp += len, dp += len)
|
||||
if (copyout(&dp, cpp++, sizeof(dp)) ||
|
||||
@ -129,7 +129,7 @@ linux_copyargs(pack, arginfo, stack, argp)
|
||||
if (copyout(&cpp, &stk[2], sizeof (cpp)))
|
||||
return NULL;
|
||||
|
||||
arginfo->ps_envstr = dp; /* remember location of envp for later */
|
||||
arginfo->ps_envstr = cpp; /* remember location of envp for later */
|
||||
|
||||
for (; --envc >= 0; sp += len, dp += len)
|
||||
if (copyout(&dp, cpp++, sizeof(dp)) ||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec_aout.c,v 1.4 1995/04/22 19:48:34 christos Exp $ */
|
||||
/* $NetBSD: linux_exec_aout.c,v 1.5 1995/05/16 14:19:07 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -116,7 +116,7 @@ linux_copyargs(pack, arginfo, stack, argp)
|
||||
sp = argp;
|
||||
|
||||
/* XXX don't copy them out, remap them! */
|
||||
arginfo->ps_argvstr = dp; /* remember location of argv for later */
|
||||
arginfo->ps_argvstr = cpp; /* remember location of argv for later */
|
||||
|
||||
for (; --argc >= 0; sp += len, dp += len)
|
||||
if (copyout(&dp, cpp++, sizeof(dp)) ||
|
||||
@ -129,7 +129,7 @@ linux_copyargs(pack, arginfo, stack, argp)
|
||||
if (copyout(&cpp, &stk[2], sizeof (cpp)))
|
||||
return NULL;
|
||||
|
||||
arginfo->ps_envstr = dp; /* remember location of envp for later */
|
||||
arginfo->ps_envstr = cpp; /* remember location of envp for later */
|
||||
|
||||
for (; --envc >= 0; sp += len, dp += len)
|
||||
if (copyout(&dp, cpp++, sizeof(dp)) ||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec_elf32.c,v 1.4 1995/04/22 19:48:34 christos Exp $ */
|
||||
/* $NetBSD: linux_exec_elf32.c,v 1.5 1995/05/16 14:19:07 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -116,7 +116,7 @@ linux_copyargs(pack, arginfo, stack, argp)
|
||||
sp = argp;
|
||||
|
||||
/* XXX don't copy them out, remap them! */
|
||||
arginfo->ps_argvstr = dp; /* remember location of argv for later */
|
||||
arginfo->ps_argvstr = cpp; /* remember location of argv for later */
|
||||
|
||||
for (; --argc >= 0; sp += len, dp += len)
|
||||
if (copyout(&dp, cpp++, sizeof(dp)) ||
|
||||
@ -129,7 +129,7 @@ linux_copyargs(pack, arginfo, stack, argp)
|
||||
if (copyout(&cpp, &stk[2], sizeof (cpp)))
|
||||
return NULL;
|
||||
|
||||
arginfo->ps_envstr = dp; /* remember location of envp for later */
|
||||
arginfo->ps_envstr = cpp; /* remember location of envp for later */
|
||||
|
||||
for (; --envc >= 0; sp += len, dp += len)
|
||||
if (copyout(&dp, cpp++, sizeof(dp)) ||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec.c,v 1.4 1995/04/22 19:48:34 christos Exp $ */
|
||||
/* $NetBSD: linux_exec.c,v 1.5 1995/05/16 14:19:07 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -116,7 +116,7 @@ linux_copyargs(pack, arginfo, stack, argp)
|
||||
sp = argp;
|
||||
|
||||
/* XXX don't copy them out, remap them! */
|
||||
arginfo->ps_argvstr = dp; /* remember location of argv for later */
|
||||
arginfo->ps_argvstr = cpp; /* remember location of argv for later */
|
||||
|
||||
for (; --argc >= 0; sp += len, dp += len)
|
||||
if (copyout(&dp, cpp++, sizeof(dp)) ||
|
||||
@ -129,7 +129,7 @@ linux_copyargs(pack, arginfo, stack, argp)
|
||||
if (copyout(&cpp, &stk[2], sizeof (cpp)))
|
||||
return NULL;
|
||||
|
||||
arginfo->ps_envstr = dp; /* remember location of envp for later */
|
||||
arginfo->ps_envstr = cpp; /* remember location of envp for later */
|
||||
|
||||
for (; --envc >= 0; sp += len, dp += len)
|
||||
if (copyout(&dp, cpp++, sizeof(dp)) ||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: svr4_exec.c,v 1.10 1995/04/22 19:48:56 christos Exp $ */
|
||||
/* $NetBSD: svr4_exec.c,v 1.11 1995/05/16 14:19:08 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christos Zoulas
|
||||
@ -177,7 +177,7 @@ svr4_copyargs(pack, arginfo, stack, argp)
|
||||
sp = argp;
|
||||
|
||||
/* XXX don't copy them out, remap them! */
|
||||
arginfo->ps_argvstr = dp; /* remember location of argv for later */
|
||||
arginfo->ps_argvstr = cpp; /* remember location of argv for later */
|
||||
|
||||
for (; --argc >= 0; sp += len, dp += len)
|
||||
if (copyout(&dp, cpp++, sizeof(dp)) ||
|
||||
@ -187,7 +187,7 @@ svr4_copyargs(pack, arginfo, stack, argp)
|
||||
if (copyout(&nullp, cpp++, sizeof(nullp)))
|
||||
return NULL;
|
||||
|
||||
arginfo->ps_envstr = dp; /* remember location of envp for later */
|
||||
arginfo->ps_envstr = cpp; /* remember location of envp for later */
|
||||
|
||||
for (; --envc >= 0; sp += len, dp += len)
|
||||
if (copyout(&dp, cpp++, sizeof(dp)) ||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: kern_exec.c,v 1.68 1995/05/01 22:36:45 cgd Exp $ */
|
||||
/* $NetBSD: kern_exec.c,v 1.69 1995/05/16 14:19:03 mycroft Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1993, 1994 Christopher G. Demetriou
|
||||
@ -536,7 +536,7 @@ copyargs(pack, arginfo, stack, argp)
|
||||
sp = argp;
|
||||
|
||||
/* XXX don't copy them out, remap them! */
|
||||
arginfo->ps_argvstr = dp; /* remember location of argv for later */
|
||||
arginfo->ps_argvstr = cpp; /* remember location of argv for later */
|
||||
|
||||
for (; --argc >= 0; sp += len, dp += len)
|
||||
if (copyout(&dp, cpp++, sizeof(dp)) ||
|
||||
@ -546,7 +546,7 @@ copyargs(pack, arginfo, stack, argp)
|
||||
if (copyout(&nullp, cpp++, sizeof(nullp)))
|
||||
return NULL;
|
||||
|
||||
arginfo->ps_envstr = dp; /* remember location of envp for later */
|
||||
arginfo->ps_envstr = cpp; /* remember location of envp for later */
|
||||
|
||||
for (; --envc >= 0; sp += len, dp += len)
|
||||
if (copyout(&dp, cpp++, sizeof(dp)) ||
|
||||
|
Loading…
Reference in New Issue
Block a user