From a9b60e93eeb4d2706ebc95bafb18bd4267a03d6f Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 4 Jan 2007 17:59:59 +0000 Subject: new libbb func: xmalloc_realpath (+ use it where makes sense) syslogd, logread: add debugging code (disabled) syslogs: drastically smaller bss; fix "-C n" behaviour --- include/libbb.h | 1 + include/usage.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 7ee66dce6..e92e4db1c 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -238,6 +238,7 @@ extern DIR *warn_opendir(const char *path); char *xgetcwd(char *cwd); char *xreadlink(const char *path); +char *xmalloc_realpath(const char *path); extern void xstat(char *filename, struct stat *buf); extern pid_t spawn(char **argv); extern pid_t xspawn(char **argv); diff --git a/include/usage.h b/include/usage.h index af518de0b..6202c4afd 100644 --- a/include/usage.h +++ b/include/usage.h @@ -3021,7 +3021,8 @@ "\n -R HOST[:PORT] Log to IP or hostname on PORT (default PORT=514/UDP)" \ "\n -L Log locally and via network logging (default is network only)") \ USE_FEATURE_IPC_SYSLOG( \ - "\n -C [size(KiB)] Log to a circular buffer (read the buffer using logread)") + "\n -C[size(KiB)] Log to a circular buffer (read the buffer using logread)") + /* NB: -Csize shouldn't have space (because size is optional) */ #define syslogd_example_usage \ "$ syslogd -R masterlog:514\n" \ "$ syslogd -R 192.168.1.1:601\n" -- cgit v1.2.3