summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2021-12-28 10:01:55 +0900
committerJinWang An <jinwang.an@samsung.com>2021-12-28 10:01:55 +0900
commit251aa3b4092071250ad7d50333b8846f5e34a997 (patch)
treed4f14f2c27eb25c245e786d856aaac0ff5749b0b /lib
parent87a741891d5e52c324ed5d956c04eab8d2714ad8 (diff)
downloadlsof-upstream/4.90.tar.gz
lsof-upstream/4.90.tar.bz2
lsof-upstream/4.90.zip
Imported Upstream version 4.90upstream/4.90
Diffstat (limited to 'lib')
-rw-r--r--lib/ckkv.c2
-rw-r--r--lib/prfp.c27
2 files changed, 26 insertions, 3 deletions
diff --git a/lib/ckkv.c b/lib/ckkv.c
index 876758a..fe36c92 100644
--- a/lib/ckkv.c
+++ b/lib/ckkv.c
@@ -37,7 +37,7 @@
# if !defined(lint)
static char copyright[] =
"@(#) Copyright 1998 Purdue Research Foundation.\nAll rights reserved.\n";
-static char *rcsid = "$Id: ckkv.c,v 1.3 2008/10/21 16:12:36 abe Exp $";
+static char *rcsid = "$Id: ckkv.c,v 1.3 2008/10/21 16:12:36 abe Exp abe $";
# endif /* !defined(lint) */
#include "../lsof.h"
diff --git a/lib/prfp.c b/lib/prfp.c
index 2f8d841..fe4812c 100644
--- a/lib/prfp.c
+++ b/lib/prfp.c
@@ -37,7 +37,7 @@
# if !defined(lint)
static char copyright[] =
"@(#) Copyright 1997 Purdue Research Foundation.\nAll rights reserved.\n";
-static char *rcsid = "$Id: prfp.c,v 1.14 2008/10/21 16:12:36 abe Exp $";
+static char *rcsid = "$Id: prfp.c,v 1.15 2018/02/14 14:21:08 abe Exp $";
# endif /* !defined(lint) */
#include "../lsof.h"
@@ -143,6 +143,18 @@ process_file(fp)
return;
#endif /* defined(DTYPE_PIPE) */
+#if defined(DTYPE_PTS)
+ case DTYPE_PTS:
+# if defined(HASPTSFN)
+ HASPTSFN((KA_T)f.f_data);
+# endif /* defined(HASPTSFN) */
+ return;
+#endif /* defined(DTYPE_PIPE) */
+
+#if defined(DTYPE_FIFO)
+ case DTYPE_FIFO:
+#endif /* defined(DTYPE_FIFO) */
+
#if defined(DTYPE_GNODE)
case DTYPE_GNODE:
#endif /* defined(DTYPE_GNODE) */
@@ -195,9 +207,20 @@ process_file(fp)
#endif /* defined(HASPRIVFILETYPE) */
default:
+
+#if defined(X_BADFILEOPS)
+ if (X_bfopsa && f.f_ops && (X_bfopsa == (KA_T)f.f_ops)) {
+ (void) snpf(Namech, Namechl,
+ "no more information; ty=%d file may be closing",
+ (int)f.f_type);
+ enter_nm(Namech);
+ return;
+ }
+#endif /* defined(X_BADFILEOPS) */
+
if (f.f_type || f.f_ops) {
(void) snpf(Namech, Namechl,
- "%s file struct, ty=%#x, op=%s",
+ "%s file struct, ty=%d, op=%s",
print_kptr(fp, tbuf, sizeof(tbuf)), (int)f.f_type,
print_kptr((KA_T)f.f_ops, (char *)NULL, 0));
enter_nm(Namech);