4 This file is part of systemd.
6 Copyright 2015 Ronny Chevalier
8 systemd is free software; you can redistribute it and/or modify it
9 under the terms of the GNU Lesser General Public License as published by
10 the Free Software Foundation; either version 2.1 of the License, or
11 (at your option) any later version.
13 systemd is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public License
19 along with systemd; If not, see <http://www.gnu.org/licenses/>.
25 # define PID_PRI PRIi32
26 #elif SIZEOF_PID_T == 2
27 # define PID_PRI PRIi16
29 # error Unknown pid_t size
31 #define PID_FMT "%" PID_PRI
34 # define UID_FMT "%" PRIu32
35 #elif SIZEOF_UID_T == 2
36 # define UID_FMT "%" PRIu16
38 # error Unknown uid_t size
42 # define GID_FMT "%" PRIu32
43 #elif SIZEOF_GID_T == 2
44 # define GID_FMT "%" PRIu16
46 # error Unknown gid_t size
49 #if SIZEOF_TIME_T == 8
50 # define PRI_TIME PRIi64
51 #elif SIZEOF_TIME_T == 4
52 # define PRI_TIME PRIu32
54 # error Unknown time_t size
57 #if SIZEOF_RLIM_T == 8
58 # define RLIM_FMT "%" PRIu64
59 #elif SIZEOF_RLIM_T == 4
60 # define RLIM_FMT "%" PRIu32
62 # error Unknown rlim_t size