1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 10:25:37 +03:00

format-table: add UID/GID output support to format-table.h

This commit is contained in:
Lennart Poettering 2019-08-07 12:50:42 +02:00
parent 88b860034e
commit b26c0b68a4

View File

@ -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;