summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-07-29 18:39:32 +0200
committerLennart Poettering <lennart@poettering.net>2019-07-29 18:48:41 +0200
commita8a3392d6b806f2c93121a9d861210c8d37d4d09 (patch)
tree6ddd57c4cc65b26bf00b6c8abf64ca65a31a2b05
parent2cb86a3e16064517340b1e3a923d18b764bb00e2 (diff)
downloadsystemd-a8a3392d6b806f2c93121a9d861210c8d37d4d09.tar.gz
format-table: add TABLE_PID cell type
-rw-r--r--src/shared/format-table.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/format-table.h b/src/shared/format-table.h
index 0942fd7248..e18ca307d1 100644
--- a/src/shared/format-table.h
+++ b/src/shared/format-table.h
@@ -43,6 +43,10 @@ typedef enum TableDataType {
_TABLE_DATA_TYPE_INVALID = -1,
} TableDataType;
+/* PIDs are just 32bit signed integers on Linux */
+#define TABLE_PID TABLE_INT32
+assert_cc(sizeof(pid_t) == sizeof(int32_t));
+
typedef struct Table Table;
typedef struct TableCell TableCell;