summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ptools/pfiles/pfiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ptools/pfiles/pfiles.c')
-rw-r--r--usr/src/cmd/ptools/pfiles/pfiles.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr/src/cmd/ptools/pfiles/pfiles.c b/usr/src/cmd/ptools/pfiles/pfiles.c
index dd5ce4af11..1128286794 100644
--- a/usr/src/cmd/ptools/pfiles/pfiles.c
+++ b/usr/src/cmd/ptools/pfiles/pfiles.c
@@ -25,7 +25,7 @@
*/
/*
* Copyright (c) 2017 Joyent, Inc. All Rights reserved.
- * Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
+ * Copyright 2021 OmniOS Community Edition (OmniOSce) Association.
*/
#include <stdio.h>
@@ -44,6 +44,7 @@
#include <sys/mkdev.h>
#include <sys/stropts.h>
#include <sys/timod.h>
+#include <sys/file.h>
#include <sys/un.h>
#include <libproc.h>
#include <netinet/in.h>
@@ -364,12 +365,13 @@ dofcntl(struct ps_prochandle *Pr, const prfdinfo_t *info, int mandatory,
#define ALL_O_FLAGS O_ACCMODE | O_NDELAY | O_NONBLOCK | O_APPEND | \
O_SYNC | O_DSYNC | O_RSYNC | O_XATTR | \
- O_CREAT | O_TRUNC | O_EXCL | O_NOCTTY | O_LARGEFILE
+ O_CREAT | O_TRUNC | O_EXCL | O_NOCTTY | O_LARGEFILE | \
+ __FLXPATH
static void
show_fileflags(int flags)
{
- char buffer[136];
+ char buffer[147];
char *str = buffer;
switch (flags & O_ACCMODE) {
@@ -417,6 +419,8 @@ show_fileflags(int flags)
(void) strcat(str, "|O_LARGEFILE");
if (flags & O_XATTR)
(void) strcat(str, "|O_XATTR");
+ if (flags & __FLXPATH)
+ (void) strcat(str, "|__FLXPATH");
if (flags & ~(ALL_O_FLAGS))
(void) sprintf(str + strlen(str), "|0x%x",
flags & ~(ALL_O_FLAGS));
@@ -511,6 +515,7 @@ show_sockaddr(const char *str, const struct sockaddr *sa, socklen_t len)
case AF_KEY: p = "AF_KEY"; break;
case AF_POLICY: p = "AF_POLICY"; break;
case AF_LINK: p = "AF_LINK"; break;
+ case AF_LX_NETLINK: p = "AF_LX_NETLINK"; break;
}
(void) printf("\t%s: %s\n", str, p);