chiark / gitweb /
some fixes; debug for missing
[inn-innduct.git] / include / portable / setproctitle.h
1 /*  $Id: setproctitle.h 5682 2002-08-29 05:17:56Z rra $
2 **
3 **  Set things up for setproctitle portably.
4 **
5 **  If the system supports setproctitle, we need to define away
6 **  setproctitle_init.  Otherwise, we have to prototype setproctitle (which is
7 **  normally prototyped in stdlib.h).
8 */
9
10 #ifndef PORTABLE_SETPROCTITLE_H
11 #define PORTABLE_SETPROCTITLE_H 1
12
13 #include "config.h"
14
15 #if !HAVE_SETPROCTITLE
16 void setproctitle(const char *format, ...);
17 #endif
18
19 #if HAVE_SETPROCTITLE || HAVE_PSTAT
20 # define setproctitle_init(argc, argv)   /* empty */
21 #else
22 void setproctitle_init(int argc, char *argv[]);
23 #endif
24
25 #endif /* !PORTABLE_SETPROCTITLE_H */