freebsd-nq/sys/fs
Dag-Erling Smørgrav 3da3249106 Dissociate ptrace from procfs.
Until now, the ptrace syscall was implemented as a wrapper that called
various functions in procfs depending on which ptrace operation was
requested.  Most of these functions were themselves wrappers around
procfs_{read,write}_{,db,fp}regs(), with only some extra error checks,
which weren't necessary in the ptrace case anyway.

This commit moves procfs_rwmem() from procfs_mem.c into sys_process.c
(renaming it to proc_rwmem() in the process), and implements ptrace()
directly in terms of procfs_{read,write}_{,db,fp}regs() instead of
having it fake up a struct uio and then call procfs_do{,db,fp}regs().

It also moves the prototypes for procfs_{read,write}_{,db,fp}regs()
and proc_rwmem() from proc.h to ptrace.h, and marks all procfs files
except procfs_machdep.c as "optional procfs" instead of "standard".
2001-10-07 20:08:42 +00:00
..
cd9660 KSE Milestone 2 2001-09-12 08:38:13 +00:00
coda Use the passed in thread to selrecord() instead of curthread. 2001-09-21 22:26:51 +00:00
deadfs
devfs The behaviour of whiteout'ing symlinks were too confusing, instead 2001-09-30 08:43:33 +00:00
fdescfs KSE Milestone 2 2001-09-12 08:38:13 +00:00
fifofs KSE Milestone 2 2001-09-12 08:38:13 +00:00
hpfs Restore these files to being portable: 2001-09-12 23:39:36 +00:00
msdosfs KSE Milestone 2 2001-09-12 08:38:13 +00:00
ntfs Fix (typo? pasteo?): panic("ffs_mountroot..." -> panic("ntfs_mountroot...") 2001-09-26 00:36:33 +00:00
nullfs KSE Milestone 2 2001-09-12 08:38:13 +00:00
nwfs KSE Milestone 2 2001-09-12 08:38:13 +00:00
portalfs KSE Milestone 2 2001-09-12 08:38:13 +00:00
procfs Dissociate ptrace from procfs. 2001-10-07 20:08:42 +00:00
pseudofs Add a PFS_DISABLED flag; pfs_visible() automatically returns 0 if it is set 2001-10-02 22:22:42 +00:00
smbfs
specfs o Modify generic specfs device open access control checks to use 2001-09-26 20:18:26 +00:00
umapfs KSE Milestone 2 2001-09-12 08:38:13 +00:00
unionfs KSE Milestone 2 2001-09-12 08:38:13 +00:00