From 5059653882dbd86e3bbf48389f9f81b0fac8cd0a Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 17 Mar 2019 19:47:52 +0100 Subject: do not duplicate CONFIG_PID_FILE_PATH and ".pid" strings text data bss dec hex filename 981737 485 7296 989518 f194e busybox_old 981704 485 7296 989485 f192d busybox_unstripped Signed-off-by: Denys Vlasenko --- include/libbb.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 7a1e13875..e0d5521e4 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1298,9 +1298,13 @@ llist_t *llist_find_str(llist_t *first, const char *str) FAST_FUNC; /* True only if we created pidfile which is *file*, not /dev/null etc */ extern smallint wrote_pidfile; void write_pidfile(const char *path) FAST_FUNC; +void write_pidfile_std_path_and_ext(const char *path) FAST_FUNC; +void remove_pidfile_std_path_and_ext(const char *path) FAST_FUNC; #define remove_pidfile(path) do { if (wrote_pidfile) unlink(path); } while (0) #else enum { wrote_pidfile = 0 }; +#define write_pidfile_std_path_and_ext(path) ((void)0) +#define remove_pidfile_std_path_and_ext(path) ((void)0) #define write_pidfile(path) ((void)0) #define remove_pidfile(path) ((void)0) #endif -- cgit v1.2.3