Export a type for POSIX SHM file descriptors via kern.proc.filedesc as

used by procstat, or SHM descriptors will show up as type unknown in
userspace.
This commit is contained in:
Robert Watson 2008-01-20 19:55:52 +00:00
parent ab569b9c05
commit 07dd4a31b5
2 changed files with 5 additions and 0 deletions

View File

@ -2514,6 +2514,10 @@ sysctl_kern_proc_filedesc(SYSCTL_HANDLER_ARGS)
kif->kf_type = KF_TYPE_MQUEUE;
break;
case DTYPE_SHM:
kif->kf_type = KF_TYPE_SHM;
break;
default:
kif->kf_type = KF_TYPE_UNKNOWN;
break;

View File

@ -245,6 +245,7 @@ struct user {
#define KF_TYPE_KQUEUE 5
#define KF_TYPE_CRYPTO 6
#define KF_TYPE_MQUEUE 7
#define KF_TYPE_SHM 8
#define KF_TYPE_UNKNOWN 255
#define KF_VTYPE_VNON 0