]> 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 c9c975392fc2ae0057d06c612b3381057167553d..1859dc746ffdd888ef3c1597946af5582cdcde3e 100644 (file)
@@ -92,6 +92,7 @@ enum {
        COL_PIDFD_PID,
        COL_PING_ID,
        COL_POS,
+       COL_PTMX_TTY_INDEX,
        COL_RAW_PROTOCOL,
        COL_RDEV,
        COL_SIGNALFD_MASK,
@@ -274,44 +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);
-}
-
-static inline
-__attribute__((__format__(printf, 2, 0)))
-int xstrvfappend(char **a, const char *format, va_list ap)
-{
-       int ret = strvfappend(a, format, ap);
-
-       if (ret < 0)
-               err(XALLOC_EXIT_CODE, "cannot allocate string");
-       return ret;
-
-}
-
-static inline
-__attribute__ ((__format__ (__printf__, 2, 3)))
-int xstrfappend(char **a, const char *format, ...)
-{
-       va_list ap;
-       int ret;
-
-       va_start(ap, format);
-       ret = xstrvfappend(a, format, ap);
-       va_end(ap);
-
-       return ret;
-}
-
 /*
  * Net namespace
  */