From: Lennart Poettering Date: Wed, 7 Aug 2019 10:50:42 +0000 (+0200) Subject: format-table: add UID/GID output support to format-table.h X-Git-Tag: v244-rc1~23^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b26c0b68a4fb98f1f18a3d918bf2d48d37bc1dc8;p=thirdparty%2Fsystemd.git format-table: add UID/GID output support to format-table.h --- diff --git a/src/shared/format-table.h b/src/shared/format-table.h index aacf9789788..80f319d054a 100644 --- a/src/shared/format-table.h +++ b/src/shared/format-table.h @@ -53,6 +53,12 @@ typedef enum TableDataType { #define TABLE_PID TABLE_INT32 assert_cc(sizeof(pid_t) == sizeof(int32_t)); +/* UIDs/GIDs are just 32bit unsigned integers on Linux */ +#define TABLE_UID TABLE_UINT32 +#define TABLE_GID TABLE_UINT32 +assert_cc(sizeof(uid_t) == sizeof(uint32_t)); +assert_cc(sizeof(gid_t) == sizeof(uint32_t)); + typedef struct Table Table; typedef struct TableCell TableCell;