summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2015-04-12 18:08:17 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-04-12 18:08:17 -0400
commit461300d949a1a50a665d69ba68c03160e65e6bf4 (patch)
treec45372ce8b812dd68ada7ab853cdcac8c1d2ba51 /src/shared/util.h
parent453b353653156a2a542381dd0c4e7f8ab1ad45a7 (diff)
shared: add formats-util.h
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h42
1 files changed, 1 insertions, 41 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index fc4f9f2e22..4808f04efe 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -37,49 +37,9 @@
#include "missing.h"
#include "config.h"
-#if SIZEOF_PID_T == 4
-# define PID_PRI PRIi32
-#elif SIZEOF_PID_T == 2
-# define PID_PRI PRIi16
-#else
-# error Unknown pid_t size
-#endif
-#define PID_FMT "%" PID_PRI
-
-#if SIZEOF_UID_T == 4
-# define UID_FMT "%" PRIu32
-#elif SIZEOF_UID_T == 2
-# define UID_FMT "%" PRIu16
-#else
-# error Unknown uid_t size
-#endif
-
-#if SIZEOF_GID_T == 4
-# define GID_FMT "%" PRIu32
-#elif SIZEOF_GID_T == 2
-# define GID_FMT "%" PRIu16
-#else
-# error Unknown gid_t size
-#endif
-
-#if SIZEOF_TIME_T == 8
-# define PRI_TIME PRIi64
-#elif SIZEOF_TIME_T == 4
-# define PRI_TIME PRIu32
-#else
-# error Unknown time_t size
-#endif
-
-#if SIZEOF_RLIM_T == 8
-# define RLIM_FMT "%" PRIu64
-#elif SIZEOF_RLIM_T == 4
-# define RLIM_FMT "%" PRIu32
-#else
-# error Unknown rlim_t size
-#endif
-
#include "macro.h"
#include "missing.h"
+#include "formats-util.h"
/* What is interpreted as whitespace? */
#define WHITESPACE " \t\n\r"