Page MenuHomeFreeBSD

D61349.1794337160.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61349.1794337160.diff

diff --git a/lib/libprocstat/libprocstat.c b/lib/libprocstat/libprocstat.c
--- a/lib/libprocstat/libprocstat.c
+++ b/lib/libprocstat/libprocstat.c
@@ -250,6 +250,9 @@
return (procstat);
}
+static_assert(sizeof(struct kinfo_proc) == KINFO_PROC_SIZE,
+ "kinfo_proc size mismatch");
+
struct kinfo_proc *
procstat_getprocs(struct procstat *procstat, int what, int arg,
unsigned int *count)
@@ -793,6 +796,9 @@
return (0);
}
+static_assert(sizeof(struct kinfo_file) == KINFO_FILE_SIZE,
+ "kinfo_file size mismatch");
+
static struct kinfo_file *
kinfo_getfile_core(struct procstat_core *core, int *cntp)
{
@@ -1375,6 +1381,9 @@
return (kfvtypes2fst[i].fst_vtype);
}
+static_assert(sizeof(struct kinfo_vmentry) == KINFO_VMENTRY_SIZE,
+ "kinfo_vmentry size mismatch");
+
static int
procstat_get_vnode_info_sysctl(struct filestat *fst, struct vnstat *vn,
char *errbuf)
@@ -2570,6 +2579,9 @@
free(pl);
}
+static_assert(sizeof(struct kinfo_kstack) == KINFO_KSTACK_SIZE,
+ "kinfo_kstack size mismatch");
+
static struct kinfo_kstack *
procstat_getkstack_sysctl(pid_t pid, int *cntp)
{

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 10, 6:59 PM (11 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41645048
Default Alt Text
D61349.1794337160.diff (1 KB)

Event Timeline