diff options
author | bde <bde@FreeBSD.org> | 1998-12-16 16:06:29 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-12-16 16:06:29 +0000 |
commit | 6e5fef184259ee17f628443ebdbac4fc70755766 (patch) | |
tree | d67850355a28c4be25e8ac0828d3335e243a2294 /sys/kern/kern_exec.c | |
parent | f1482d2fafc6c90f96026575e5fab39533bb4974 (diff) | |
download | FreeBSD-src-6e5fef184259ee17f628443ebdbac4fc70755766.zip FreeBSD-src-6e5fef184259ee17f628443ebdbac4fc70755766.tar.gz |
Removed all traces of SYSCTL_INTPTR(). Pointers can't really be passed
across the kernel -> application interface, and for the one sysctl where
they were passed and actually used (kern.ps_strings), the applications
want addresses represented as u_longs anyway (the other sysctl that
passed them, kern.usrstack, has never been used).
Agreed to by: dfr, phk
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 4200adf..84d4d46 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: kern_exec.c,v 1.87 1998/10/16 03:55:00 peter Exp $ + * $Id: kern_exec.c,v 1.88 1998/10/28 13:36:58 dg Exp $ */ #include <sys/param.h> @@ -66,11 +66,10 @@ static long *exec_copyout_strings __P((struct image_params *)); -static struct ps_strings *ps_strings = PS_STRINGS; -SYSCTL_INTPTR(_kern, KERN_PS_STRINGS, ps_strings, 0, &ps_strings, 0, ""); +SYSCTL_LONG(_kern, KERN_PS_STRINGS, ps_strings, CTLFLAG_RD, 0, + (u_long)PS_STRINGS, ""); +SYSCTL_LONG(_kern, KERN_USRSTACK, usrstack, CTLFLAG_RD, 0, USRSTACK, ""); -static caddr_t usrstack = (caddr_t)USRSTACK; -SYSCTL_INTPTR(_kern, KERN_USRSTACK, usrstack, 0, &usrstack, 0, ""); /* * Each of the items is a pointer to a `const struct execsw', hence the * double pointer here. |