diff options
author | frueauf <frueauf@pkgsrc.org> | 1998-04-02 09:35:38 +0000 |
---|---|---|
committer | frueauf <frueauf@pkgsrc.org> | 1998-04-02 09:35:38 +0000 |
commit | e6ce6c878e8f899a6826bad21090b76005e657d2 (patch) | |
tree | 92a8a9100c98e3dce2598700a0679c5e649005b1 /sysutils/lsof/patches | |
parent | 17bb7bd438ec087f049da177bc2d860a342ec36c (diff) | |
download | pkgsrc-e6ce6c878e8f899a6826bad21090b76005e657d2.tar.gz |
Add support for UVM.
Diffstat (limited to 'sysutils/lsof/patches')
-rw-r--r-- | sysutils/lsof/patches/patch-aa | 14 | ||||
-rw-r--r-- | sysutils/lsof/patches/patch-ab | 29 |
2 files changed, 43 insertions, 0 deletions
diff --git a/sysutils/lsof/patches/patch-aa b/sysutils/lsof/patches/patch-aa new file mode 100644 index 00000000000..7990d307610 --- /dev/null +++ b/sysutils/lsof/patches/patch-aa @@ -0,0 +1,14 @@ +--- dialects/n+obsd/Makefile.orig Tue Feb 17 01:51:59 1998 ++++ dialects/n+obsd/Makefile Thu Apr 2 11:20:07 1998 +@@ -12,7 +12,11 @@ + L=/usr/include/local + P= + ++.if ${UVM} != "" ++DEBUG= -O -DUVM ++.else + DEBUG= -O ++.endif + + CDEF= + CDEFS= ${CDEF} ${CFGF} diff --git a/sysutils/lsof/patches/patch-ab b/sysutils/lsof/patches/patch-ab new file mode 100644 index 00000000000..3e23befb9cd --- /dev/null +++ b/sysutils/lsof/patches/patch-ab @@ -0,0 +1,29 @@ +--- dialects/n+obsd/dproc.c.orig Fri Mar 6 14:24:46 1998 ++++ dialects/n+obsd/dproc.c Thu Apr 2 10:25:22 1998 +@@ -37,6 +37,11 @@ + + #include "lsof.h" + ++#if defined(UVM) /* this is an ugly hack, but <uvm/uvm.h> is not supposed */ ++ /* to get included by userland programms */ ++#define UVM_ET_MAP 0x02 /* it is a vm_map */ ++#define UVM_ET_SUBMAP 0x04 /* it is a submap (MAP must be 1 too) */ ++#endif + + _PROTOTYPE(static void enter_vn_text,(KA_T va, int *n)); + _PROTOTYPE(static void get_kernel_access,(void)); +@@ -365,8 +370,14 @@ + if (kread(ka, (char *)e, sizeof(vmme))) + return; + } ++#if defined(UVM) /* part 2 of the ugly UVM hack */ ++ if ((e->etype & UVM_ET_MAP) != 0) ++ continue; ++#else + if (e->is_a_map || e->is_sub_map) + continue; ++#endif ++ + /* + * Read the map entry's object and the object's shadow. + * Look for a PG_VNODE pager handle. |