[CRIU] [PATCH 1/2] crtools: add setproctitle.h

Ruslan Kuprieiev kupruser at gmail.com
Fri Mar 21 02:57:26 PDT 2014


Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
 include/setproctitle.h | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 include/setproctitle.h

diff --git a/include/setproctitle.h b/include/setproctitle.h
new file mode 100644
index 0000000..83d5736
--- /dev/null
+++ b/include/setproctitle.h
@@ -0,0 +1,11 @@
+#ifndef __CR_SETPROCTITLE_H__
+#define __CR_SETPROCTITLE_H__
+
+#ifdef CONFIG_HAS_LIBBSD
+#include <bsd/unistd.h>
+#else
+void setproctitle_init(int argc, char *argv[], char *envp[]) {return; }
+void setproctitle(const char *fmt, ...) {return; }
+#endif
+
+#endif /* __CR_SETPROCTITLE_H__ */
-- 
1.8.3.2



More information about the CRIU mailing list