1 /* $Id: setproctitle.h 5682 2002-08-29 05:17:56Z rra $
3 ** Set things up for setproctitle portably.
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).
10 #ifndef PORTABLE_SETPROCTITLE_H
11 #define PORTABLE_SETPROCTITLE_H 1
15 #if !HAVE_SETPROCTITLE
16 void setproctitle(const char *format, ...);
19 #if HAVE_SETPROCTITLE || HAVE_PSTAT
20 # define setproctitle_init(argc, argv) /* empty */
22 void setproctitle_init(int argc, char *argv[]);
25 #endif /* !PORTABLE_SETPROCTITLE_H */