diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 13 |
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); | |||
408 | extern FILE *fopen_or_warn_stdin(const char *filename); | 408 | extern FILE *fopen_or_warn_stdin(const char *filename); |
409 | 409 | ||
410 | 410 | ||
411 | extern void utoa_to_buf(unsigned n, char *buf, unsigned buflen); | ||
412 | extern char *utoa(unsigned n); | 411 | extern char *utoa(unsigned n); |
413 | extern void itoa_to_buf(int n, char *buf, unsigned buflen); | ||
414 | extern char *itoa(int n); | 412 | extern char *itoa(int n); |
413 | /* Returns a pointer past the formatted number, does NOT null-terminate */ | ||
414 | extern char *utoa_to_buf(unsigned n, char *buf, unsigned buflen); | ||
415 | extern char *itoa_to_buf(int n, char *buf, unsigned buflen); | ||
415 | extern void smart_ulltoa5(unsigned long long ul, char buf[5]); | 416 | extern 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 */ |
417 | extern char *bin2hex(char *buf, const char *cp, int count); | 418 | extern char *bin2hex(char *buf, const char *cp, int count); |
@@ -542,6 +543,14 @@ extern void llist_unlink(llist_t **head, llist_t *elm); | |||
542 | extern void llist_free(llist_t *elm, void (*freeit)(void *data)); | 543 | extern void llist_free(llist_t *elm, void (*freeit)(void *data)); |
543 | extern llist_t* llist_rev(llist_t *list); | 544 | extern llist_t* llist_rev(llist_t *list); |
544 | 545 | ||
546 | #if ENABLE_FEATURE_PIDFILE | ||
547 | int 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 | |||
545 | enum { | 554 | enum { |
546 | LOGMODE_NONE = 0, | 555 | LOGMODE_NONE = 0, |
547 | LOGMODE_STDIO = 1<<0, | 556 | LOGMODE_STDIO = 1<<0, |