From owner-freebsd-commit Wed Jan 24 10:42:48 1996 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA11253 for freebsd-commit-outgoing; Wed, 24 Jan 1996 10:42:48 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA11236 for cvs-all-outgoing; Wed, 24 Jan 1996 10:42:20 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA11223 for cvs-sys-outgoing; Wed, 24 Jan 1996 10:42:09 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA11210 Wed, 24 Jan 1996 10:42:00 -0800 (PST) Date: Wed, 24 Jan 1996 10:42:00 -0800 (PST) From: Peter Wemm Message-Id: <199601241842.KAA11210@freefall.freebsd.org> To: CVS-committers, cvs-sys Subject: cvs commit: src/sys/miscfs/procfs procfs.h procfs_ctl.c procfs_fpregs.c procfs_mem.c procfs_regs.c procfs_vnops.c Sender: owner-commit@FreeBSD.ORG Precedence: bulk peter 96/01/24 10:41:55 Modified: sys/miscfs/procfs procfs.h procfs_ctl.c procfs_fpregs.c procfs_mem.c procfs_regs.c procfs_vnops.c Log: Major fixes for procfs.. Implement a "variable" directory structure. Files that do not make sense for the given process do not "appear" and cannot be opened. For example, "system" processes do not have "file", "regs" or "fpregs", because they do not have a user area. "attempt" to fill in the user area of a given process when it is being accessed via /proc/pid/mem (the user struct is just after VM_MAXUSER_ADDRESS in the process address space.) Dont do IO to the U area while it's swapped, hold it in place if possible. Lock off access to the "ctl" file if it's done a setuid like the other pseudo-files in there. Revision Changes Path 1.9 +6 -1 src/sys/miscfs/procfs/procfs.h 1.9 +8 -3 src/sys/miscfs/procfs/procfs_ctl.c 1.3 +13 -1 src/sys/miscfs/procfs/procfs_fpregs.c 1.16 +10 -1 src/sys/miscfs/procfs/procfs_mem.c 1.3 +13 -1 src/sys/miscfs/procfs/procfs_regs.c 1.20 +38 -15 src/sys/miscfs/procfs/procfs_vnops.c