]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - misc-utils/lsfd.h
autotools: add missing dist_noinst_DATA
[thirdparty/util-linux.git] / misc-utils / lsfd.h
index be4cc55d80872dd9faf6c6e16d831e92270ec27e..1859dc746ffdd888ef3c1597946af5582cdcde3e 100644 (file)
 #include <dirent.h>
 #include <inttypes.h>
 
+#include "libsmartcols.h"
 #include "list.h"
+#include "nls.h"
 #include "path.h"
 #include "strutils.h"
+#include "xalloc.h"
 
 /*
  * column IDs
@@ -40,6 +43,13 @@ enum {
        COL_AINODECLASS,
        COL_ASSOC,
        COL_BLKDRV,
+       COL_BPF_MAP_ID,
+       COL_BPF_MAP_TYPE,
+       COL_BPF_MAP_TYPE_RAW,
+       COL_BPF_NAME,
+       COL_BPF_PROG_ID,
+       COL_BPF_PROG_TYPE,
+       COL_BPF_PROG_TYPE_RAW,
        COL_CHRDRV,
        COL_COMMAND,
        COL_DELETED,
@@ -82,6 +92,7 @@ enum {
        COL_PIDFD_PID,
        COL_PING_ID,
        COL_POS,
+       COL_PTMX_TTY_INDEX,
        COL_RAW_PROTOCOL,
        COL_RDEV,
        COL_SIGNALFD_MASK,
@@ -89,6 +100,7 @@ enum {
        COL_SOCK_LISTENING,
        COL_SOCK_NETNS,
        COL_SOCK_PROTONAME,
+       COL_SOCK_SHUTDOWN,
        COL_SOCK_STATE,
        COL_SOCK_TYPE,
        COL_SOURCE,
@@ -263,18 +275,6 @@ const char *get_miscdev(unsigned long minor);
 const char *get_nodev_filesystem(unsigned long minor);
 void add_nodev(unsigned long minor, const char *filesystem);
 
-static inline void xstrappend(char **a, const char *b)
-{
-       if (strappend(a, b) < 0)
-               err(XALLOC_EXIT_CODE, _("failed to allocate memory for string"));
-}
-
-static inline void xstrputc(char **a, char c)
-{
-       char b[] = {c, '\0'};
-       xstrappend(a, b);
-}
-
 /*
  * Net namespace
  */