projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88b8600
)
format-table: add UID/GID output support to format-table.h
author
Lennart Poettering
<lennart@poettering.net>
Wed, 7 Aug 2019 10:50:42 +0000
(12:50 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 19 Nov 2019 11:10:44 +0000
(12:10 +0100)
src/shared/format-table.h
patch
|
blob
|
history
diff --git
a/src/shared/format-table.h
b/src/shared/format-table.h
index
aacf978
..
80f319d
100644
(file)
--- 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;