diff options
author | phk <phk@FreeBSD.org> | 1999-06-13 20:53:16 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-06-13 20:53:16 +0000 |
commit | b4c0c39b6e51cd4882757285e80ffdc32bf53e00 (patch) | |
tree | 0024e1db745961acdc896d6d54bcf969ff8a4eac /sys/fs/procfs/procfs.h | |
parent | ad6621b237627767b1be38fa484f011b95c9a5cd (diff) | |
download | FreeBSD-src-b4c0c39b6e51cd4882757285e80ffdc32bf53e00.zip FreeBSD-src-b4c0c39b6e51cd4882757285e80ffdc32bf53e00.tar.gz |
Eliminate the bogus procfs private almost struct dirent structure.
Spotted by: Lars Hamren
Reviewed by: bde
Diffstat (limited to 'sys/fs/procfs/procfs.h')
-rw-r--r-- | sys/fs/procfs/procfs.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/fs/procfs/procfs.h b/sys/fs/procfs/procfs.h index b758d06..b38ed87 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.24 1999/04/30 13:04:20 phk Exp $ + * $Id: procfs.h,v 1.25 1999/05/04 08:00:10 phk Exp $ */ /* @@ -77,6 +77,7 @@ struct pfsnode { #define PROCFS_NOTELEN 64 /* max length of a note (/proc/$pid/note) */ #define PROCFS_CTLLEN 8 /* max length of a ctl msg (/proc/$pid/ctl */ +#define PROCFS_NAMELEN 8 /* max length of a filename component */ /* * Kernel stuff follows @@ -100,19 +101,6 @@ struct pfsnode { ((p2)->p_flag & P_SUGID) == 0) || \ (suser_xxx(0, (p1), PRISON_ROOT) == 0))) -/* - * Format of a directory entry in /proc, ... - * This must map onto struct dirent (see <dirent.h>) - */ -#define PROCFS_NAMELEN 8 -struct pfsdent { - u_int32_t d_fileno; - u_int16_t d_reclen; - u_int8_t d_type; - u_int8_t d_namlen; - char d_name[PROCFS_NAMELEN]; -}; -#define UIO_MX sizeof(struct pfsdent) #define PROCFS_FILENO(pid, type) \ (((type) < Pproc) ? \ ((type) + 2) : \ |