aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 67fd2af21..d734abed6 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -408,10 +408,11 @@ extern FILE *fopen_or_warn(const char *filename, const char *mode);
408extern FILE *fopen_or_warn_stdin(const char *filename); 408extern FILE *fopen_or_warn_stdin(const char *filename);
409 409
410 410
411extern void utoa_to_buf(unsigned n, char *buf, unsigned buflen);
412extern char *utoa(unsigned n); 411extern char *utoa(unsigned n);
413extern void itoa_to_buf(int n, char *buf, unsigned buflen);
414extern char *itoa(int n); 412extern char *itoa(int n);
413/* Returns a pointer past the formatted number, does NOT null-terminate */
414extern char *utoa_to_buf(unsigned n, char *buf, unsigned buflen);
415extern char *itoa_to_buf(int n, char *buf, unsigned buflen);
415extern void smart_ulltoa5(unsigned long long ul, char buf[5]); 416extern void smart_ulltoa5(unsigned long long ul, char buf[5]);
416/* Put a string of hex bytes (ala "1b"), return advanced pointer */ 417/* Put a string of hex bytes (ala "1b"), return advanced pointer */
417extern char *bin2hex(char *buf, const char *cp, int count); 418extern char *bin2hex(char *buf, const char *cp, int count);
@@ -542,6 +543,14 @@ extern void llist_unlink(llist_t **head, llist_t *elm);
542extern void llist_free(llist_t *elm, void (*freeit)(void *data)); 543extern void llist_free(llist_t *elm, void (*freeit)(void *data));
543extern llist_t* llist_rev(llist_t *list); 544extern llist_t* llist_rev(llist_t *list);
544 545
546#if ENABLE_FEATURE_PIDFILE
547int write_pidfile(const char *path);
548#define remove_pidfile(f) ((void)unlink(f))
549#else
550#define write_pidfile(f) 1
551#define remove_pidfile(f) ((void)0)
552#endif
553
545enum { 554enum {
546 LOGMODE_NONE = 0, 555 LOGMODE_NONE = 0,
547 LOGMODE_STDIO = 1<<0, 556 LOGMODE_STDIO = 1<<0,