diff options
author | peter <peter@FreeBSD.org> | 1999-01-05 03:53:06 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-01-05 03:53:06 +0000 |
commit | 1c3fe295c360349e2c0808a8cd47b73b7efea47f (patch) | |
tree | 02ab72410e1093a6b29c725147252d1ac89815d6 /sys/miscfs/procfs/procfs_subr.c | |
parent | 4a468ee66d9a1d18b3fd1d262dedbc71ec64015e (diff) | |
download | FreeBSD-src-1c3fe295c360349e2c0808a8cd47b73b7efea47f.zip FreeBSD-src-1c3fe295c360349e2c0808a8cd47b73b7efea47f.tar.gz |
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 <abial@nask.pl>.
Diffstat (limited to 'sys/miscfs/procfs/procfs_subr.c')
-rw-r--r-- | sys/miscfs/procfs/procfs_subr.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <sys/param.h> @@ -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; |