summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2010-01-10 00:37:03 +0100
committerGuillem Jover <guillem@hadrons.org>2010-01-10 15:29:50 +0100
commit3fed78e5b08f78256e533788b4bcd6502b0949d7 (patch)
tree938fc23c9434fede8b15fb9bcfb2c0c4b017620b /include
parent2a81893cc028b40f7832bf033821a1aacfaaea68 (diff)
downloadlibbsd-3fed78e5b08f78256e533788b4bcd6502b0949d7.tar.gz
Replace setproctitle dummy macro with a function stub
This way we can replace it later on with a real implementation so that applications can immediately benefit from it w/o the need to recompile them.
Diffstat (limited to 'include')
-rw-r--r--include/bsd/sys/cdefs.h4
-rw-r--r--include/bsd/unistd.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/include/bsd/sys/cdefs.h b/include/bsd/sys/cdefs.h
index a0b7860..4d9aa49 100644
--- a/include/bsd/sys/cdefs.h
+++ b/include/bsd/sys/cdefs.h
@@ -29,10 +29,6 @@
#include <sys/cdefs.h>
-#ifndef setproctitle
-# define setproctitle(fmt, args...)
-#endif
-
#ifndef __dead2
# define __dead2
#endif
diff --git a/include/bsd/unistd.h b/include/bsd/unistd.h
index 16855ec..f9f7874 100644
--- a/include/bsd/unistd.h
+++ b/include/bsd/unistd.h
@@ -37,6 +37,8 @@
__BEGIN_DECLS
mode_t getmode(const void *set, mode_t mode);
void *setmode(const char *mode_str);
+
+void setproctitle(const char *fmt, ...);
__END_DECLS
#endif