summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2008-12-01 02:13:32 +0000
committerpeter <peter@FreeBSD.org>2008-12-01 02:13:32 +0000
commitcd7b78c33f9eb6fc2730afe6d09252f28cf9996e (patch)
treee963253100025189e4677453dce1ce6366c165c0 /sys/kern/kern_descrip.c
parent6c7a0d64c96e8f0c9db396ce39bc593787ff794f (diff)
downloadFreeBSD-src-cd7b78c33f9eb6fc2730afe6d09252f28cf9996e.zip
FreeBSD-src-cd7b78c33f9eb6fc2730afe6d09252f28cf9996e.tar.gz
Duplicate another few hundred lines of code in order to be compatible
with unreleased binaries.
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 11fa1c2..faac641 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -2806,6 +2806,7 @@ export_vnode_for_sysctl(struct vnode *vp, int type,
strlcpy(kif->kf_path, fullpath, sizeof(kif->kf_path));
if (freepath != NULL)
free(freepath, M_TEMP);
+ /* Pack record size down */
kif->kf_structsize = offsetof(struct kinfo_file, kf_path) +
strlen(kif->kf_path) + 1;
kif->kf_structsize = roundup(kif->kf_structsize, sizeof(uint64_t));
@@ -3003,6 +3004,7 @@ sysctl_kern_proc_filedesc(SYSCTL_HANDLER_ARGS)
strlcpy(kif->kf_path, tty_devname(tp),
sizeof(kif->kf_path));
}
+ /* Pack record size down */
kif->kf_structsize = offsetof(struct kinfo_file, kf_path) +
strlen(kif->kf_path) + 1;
kif->kf_structsize = roundup(kif->kf_structsize,
OpenPOWER on IntegriCloud