From 1c3fe295c360349e2c0808a8cd47b73b7efea47f Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 5 Jan 1999 03:53:06 +0000 Subject: A partial implementation of the procfs cmdline pseudo-file. This is enough to satisfy things like StarOffice. This is a hack, but doing it properly would be a LOT of work, and would require extensive grovelling around in the user address space to find the argv[]. Obtained from: Mostly from Andrzej Bialecki . --- sys/miscfs/procfs/procfs_subr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/miscfs/procfs/procfs_subr.c') diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c index 2156b12..813232c 100644 --- a/sys/miscfs/procfs/procfs_subr.c +++ b/sys/miscfs/procfs/procfs_subr.c @@ -36,7 +36,7 @@ * * @(#)procfs_subr.c 8.6 (Berkeley) 5/14/95 * - * $Id: procfs_subr.c,v 1.20 1997/12/09 05:03:41 sef Exp $ + * $Id: procfs_subr.c,v 1.21 1997/12/12 03:33:43 sef Exp $ */ #include @@ -181,6 +181,7 @@ loop: case Ptype: case Pmap: case Pstatus: + case Pcmdline: pfs->pfs_mode = (VREAD) | (VREAD >> 3) | (VREAD >> 6); @@ -282,6 +283,10 @@ procfs_rw(ap) rtval = procfs_dotype(curp, p, pfs, uio); break; + case Pcmdline: + rtval = procfs_docmdline(curp, p, pfs, uio); + break; + default: rtval = EOPNOTSUPP; break; -- cgit v1.1