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_vnops.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_vnops.c')
-rw-r--r-- | sys/miscfs/procfs/procfs_vnops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c index 6879b08..daab08f 100644 --- a/sys/miscfs/procfs/procfs_vnops.c +++ b/sys/miscfs/procfs/procfs_vnops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vnops.c 8.18 (Berkeley) 5/21/95 * - * $Id: procfs_vnops.c,v 1.61 1998/07/11 07:45:46 bde Exp $ + * $Id: procfs_vnops.c,v 1.62 1998/12/04 22:54:51 archie Exp $ */ /* @@ -101,6 +101,7 @@ static struct proc_target { { DT_REG, N("notepg"), Pnotepg, NULL }, { DT_REG, N("map"), Pmap, procfs_validmap }, { DT_REG, N("etype"), Ptype, procfs_validtype }, + { DT_REG, N("cmdline"), Pcmdline, NULL }, #undef N }; static const int nproc_targets = sizeof(proc_targets) / sizeof(proc_targets[0]); @@ -573,6 +574,7 @@ procfs_getattr(ap) case Pstatus: case Pnote: case Pnotepg: + case Pcmdline: vap->va_nlink = 1; vap->va_uid = procp->p_ucred->cr_uid; vap->va_gid = procp->p_ucred->cr_gid; |