Page MenuHomeFreeBSD

D12426.id.diff
No OneTemporary

D12426.id.diff

Index: head/lib/libprocstat/libprocstat.h
===================================================================
--- head/lib/libprocstat/libprocstat.h
+++ head/lib/libprocstat/libprocstat.h
@@ -68,6 +68,7 @@
#define PS_FST_TYPE_SEM 10
#define PS_FST_TYPE_UNKNOWN 11
#define PS_FST_TYPE_NONE 12
+#define PS_FST_TYPE_PROCDESC 13
/*
* Special descriptor numbers.
Index: head/lib/libprocstat/libprocstat.c
===================================================================
--- head/lib/libprocstat/libprocstat.c
+++ head/lib/libprocstat/libprocstat.c
@@ -582,6 +582,10 @@
type = PS_FST_TYPE_SHM;
data = file.f_data;
break;
+ case DTYPE_PROCDESC:
+ type = PS_FST_TYPE_PROCDESC;
+ data = file.f_data;
+ break;
default:
continue;
}
@@ -665,6 +669,7 @@
int kf_type;
int fst_type;
} kftypes2fst[] = {
+ { KF_TYPE_PROCDESC, PS_FST_TYPE_PROCDESC },
{ KF_TYPE_CRYPTO, PS_FST_TYPE_CRYPTO },
{ KF_TYPE_FIFO, PS_FST_TYPE_FIFO },
{ KF_TYPE_KQUEUE, PS_FST_TYPE_KQUEUE },
Index: head/usr.bin/procstat/procstat.1
===================================================================
--- head/usr.bin/procstat/procstat.1
+++ head/usr.bin/procstat/procstat.1
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 26, 2017
+.Dd October 3, 2017
.Dt PROCSTAT 1
.Os
.Sh NAME
@@ -212,6 +212,8 @@
kqueue
.It m
message queue
+.It P
+process descriptor
.It p
pipe
.It s
Index: head/usr.bin/procstat/procstat_files.c
===================================================================
--- head/usr.bin/procstat/procstat_files.c
+++ head/usr.bin/procstat/procstat_files.c
@@ -400,6 +400,11 @@
xo_emit("{eq:fd_type/sem}");
break;
+ case PS_FST_TYPE_PROCDESC:
+ str = "P";
+ xo_emit("{eq:fd_type/procdesc}");
+ break;
+
case PS_FST_TYPE_NONE:
str = "?";
xo_emit("{eq:fd_type/none}");

File Metadata

Mime Type
text/plain
Expires
Sun, Jan 12, 12:06 AM (20 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15759136
Default Alt Text
D12426.id.diff (1 KB)

Event Timeline