diff options
author | JinWang An <jinwang.an@samsung.com> | 2021-12-28 10:01:55 +0900 |
---|---|---|
committer | JinWang An <jinwang.an@samsung.com> | 2021-12-28 10:01:55 +0900 |
commit | 251aa3b4092071250ad7d50333b8846f5e34a997 (patch) | |
tree | d4f14f2c27eb25c245e786d856aaac0ff5749b0b /lib | |
parent | 87a741891d5e52c324ed5d956c04eab8d2714ad8 (diff) | |
download | lsof-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.c | 2 | ||||
-rw-r--r-- | lib/prfp.c | 27 |
2 files changed, 26 insertions, 3 deletions
@@ -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" @@ -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); |