diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-07-29 18:39:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-07-29 18:48:41 +0200 |
commit | a8a3392d6b806f2c93121a9d861210c8d37d4d09 (patch) | |
tree | 6ddd57c4cc65b26bf00b6c8abf64ca65a31a2b05 | |
parent | 2cb86a3e16064517340b1e3a923d18b764bb00e2 (diff) | |
download | systemd-a8a3392d6b806f2c93121a9d861210c8d37d4d09.tar.gz |
format-table: add TABLE_PID cell type
-rw-r--r-- | src/shared/format-table.h | 4 |
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; |