summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-01-05 03:53:06 +0000
committerpeter <peter@FreeBSD.org>1999-01-05 03:53:06 +0000
commit1c3fe295c360349e2c0808a8cd47b73b7efea47f (patch)
tree02ab72410e1093a6b29c725147252d1ac89815d6 /sys/fs/procfs/procfs.h
parent4a468ee66d9a1d18b3fd1d262dedbc71ec64015e (diff)
downloadFreeBSD-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/fs/procfs/procfs.h')
-rw-r--r--sys/fs/procfs/procfs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/fs/procfs/procfs.h b/sys/fs/procfs/procfs.h
index b727e16..619e1b2 100644
--- a/sys/fs/procfs/procfs.h
+++ b/sys/fs/procfs/procfs.h
@@ -37,7 +37,7 @@
* @(#)procfs.h 8.9 (Berkeley) 5/14/95
*
* From:
- * $Id: procfs.h,v 1.19 1998/05/19 00:00:13 tegge Exp $
+ * $Id: procfs.h,v 1.20 1998/07/07 04:08:44 bde Exp $
*/
/*
@@ -56,7 +56,8 @@ typedef enum {
Pnote, /* process notifier */
Pnotepg, /* process group notifier */
Pmap, /* memory map */
- Ptype /* executable type */
+ Ptype, /* executable type */
+ Pcmdline /* command line */
} pfstype;
/*
@@ -154,6 +155,7 @@ int procfs_doctl __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct
int procfs_dostatus __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
int procfs_domap __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
int procfs_dotype __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
+int procfs_docmdline __P((struct proc *, struct proc *, struct pfsnode *pfsp, struct uio *uio));
/* Return 1 if process has special kernel digging privileges */
int procfs_kmemaccess __P((struct proc *));
OpenPOWER on IntegriCloud