diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-01-30 23:25:12 +0900 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-02-02 17:13:08 +0100 |
commit | 60d0a5098b2b58c105d86e4eacad691a3bef8ffd (patch) | |
tree | 5fccea5838a583934de1cfdfce20c5e29aa9f7ec /src/basic/process-util.h | |
parent | c757517d98ade27b9938635afb52e5621da9f1cb (diff) | |
download | systemd-60d0a5098b2b58c105d86e4eacad691a3bef8ffd.tar.gz |
util: uid_t, gid_t, and pid_t must be 32bit
We already have assert_cc(sizeof(uid_t) == sizeof(uint32_t)) or friends
at various places.
Diffstat (limited to 'src/basic/process-util.h')
-rw-r--r-- | src/basic/process-util.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/basic/process-util.h b/src/basic/process-util.h index a238b25796..4160af45ba 100644 --- a/src/basic/process-util.h +++ b/src/basic/process-util.h @@ -172,7 +172,6 @@ int fork_agent(const char *name, const int except[], size_t n_except, pid_t *pid int set_oom_score_adjust(int value); -#if SIZEOF_PID_T == 4 /* The highest possibly (theoretic) pid_t value on this architecture. */ #define PID_T_MAX ((pid_t) INT32_MAX) /* The maximum number of concurrent processes Linux allows on this architecture, as well as the highest valid PID value @@ -182,12 +181,6 @@ int set_oom_score_adjust(int value); * these values are documented in proc(5) we feel quite confident that they are stable enough for the near future at * least to define them here too. */ #define TASKS_MAX 4194303U -#elif SIZEOF_PID_T == 2 -#define PID_T_MAX ((pid_t) INT16_MAX) -#define TASKS_MAX 32767U -#else -#error "Unknown pid_t size" -#endif assert_cc(TASKS_MAX <= (unsigned long) PID_T_MAX); |