diff options
author | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-08-25 16:52:13 +0200 |
---|---|---|
committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-08-25 16:52:13 +0200 |
commit | e8121aed97cb6bd33e54f37148c40b16687d0918 (patch) | |
tree | 15c4dafbf311bf73a468c1a538c401b439d18cba | |
parent | 03b31db9982aba7fbe6bb2ca3f5df2de74c44bcf (diff) | |
download | abrt-e8121aed97cb6bd33e54f37148c40b16687d0918.tar.gz abrt-e8121aed97cb6bd33e54f37148c40b16687d0918.tar.xz abrt-e8121aed97cb6bd33e54f37148c40b16687d0918.zip |
daemon.cpp -> daemon.c
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
-rw-r--r-- | inc/abrtlib.h | 22 | ||||
-rw-r--r-- | lib/utils/Makefile.am | 2 | ||||
-rw-r--r-- | lib/utils/daemon.c (renamed from lib/utils/daemon.cpp) | 0 |
3 files changed, 13 insertions, 11 deletions
diff --git a/inc/abrtlib.h b/inc/abrtlib.h index 70e0a8bd..220bdfab 100644 --- a/inc/abrtlib.h +++ b/inc/abrtlib.h @@ -84,8 +84,20 @@ off_t copyfd_eof(int src_fd, int dst_fd, int flags); off_t copyfd_size(int src_fd, int dst_fd, off_t size, int flags); void copyfd_exact_size(int src_fd, int dst_fd, off_t size); off_t copy_file(const char *src_name, const char *dst_name, int mode); + /* Returns malloc'ed block */ char *encode_base64(const void *src, int length); + +/* Returns command line of running program. + * Caller is responsible to free() the returned value. + * If the pid is not valid or command line can not be obtained, + * empty string is returned. + */ +char* get_cmdline(pid_t pid); + +/* Returns 1 if abrtd daemon is running, 0 otherwise. */ +int daemon_is_ok(); + #ifdef __cplusplus } #endif @@ -171,16 +183,6 @@ char* xmalloc_sockaddr2dotted_noport(const struct sockaddr *sa); /* Random utility functions */ -/* Returns command line of running program. - * Caller is responsible to free() the returned value. - * If the pid is not valid or command line can not be obtained, - * empty string is returned. - */ -char* get_cmdline(pid_t pid); - -/* Returns 1 if abrtd daemon is running, 0 otherwise. */ -int daemon_is_ok(); - /* C++ style stuff */ #ifdef __cplusplus double get_dirsize(const char *pPath); diff --git a/lib/utils/Makefile.am b/lib/utils/Makefile.am index 0fe651db..0a4accda 100644 --- a/lib/utils/Makefile.am +++ b/lib/utils/Makefile.am @@ -17,7 +17,7 @@ libABRTUtils_la_SOURCES = \ read_write.c read_write.h \ logging.c logging.h \ copyfd.c \ - daemon.cpp \ + daemon.c \ skip_whitespace.c \ xatonum.cpp numtoa.cpp \ spawn.cpp \ diff --git a/lib/utils/daemon.cpp b/lib/utils/daemon.c index 944aef0c..944aef0c 100644 --- a/lib/utils/daemon.cpp +++ b/lib/utils/daemon.c |