From: Lennart Poettering Date: Mon, 29 Jul 2019 16:39:32 +0000 (+0200) Subject: format-table: add TABLE_PID cell type X-Git-Tag: v243-rc1~9^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8a3392d6b806f2c93121a9d861210c8d37d4d09;p=thirdparty%2Fsystemd.git format-table: add TABLE_PID cell type --- diff --git a/src/shared/format-table.h b/src/shared/format-table.h index 0942fd72482..e18ca307d17 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;