]> git.sur5r.net Git - openldap/blob - include/ac/setproctitle.h
Import from devel
[openldap] / include / ac / setproctitle.h
1 /* Generic setproctitle.h */
2 /* $OpenLDAP$ */
3 /*
4  * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms are permitted only
8  * as authorized by the OpenLDAP Public License.  A copy of this
9  * license is available at http://www.OpenLDAP.org/license.html or
10  * in file LICENSE in the top-level directory of the distribution.
11  */
12
13 #ifndef _AC_SETPROCTITLE_H
14 #define _AC_SETPROCTITLE_H
15
16 #ifdef LDAP_PROCTITLE
17
18 #if defined( HAVE_LIBUTIL_H )
19 #       include <libutil.h>
20 #else
21         /* use lutil version */
22         LDAP_LUTIL_F (void) (setproctitle) LDAP_P((const char *fmt, ...)) \
23                 LDAP_GCCATTR((format(printf, 1, 2)));
24         LDAP_LUTIL_V (int) Argc;
25         LDAP_LUTIL_V (char) **Argv;
26 #endif
27
28 #endif /* LDAP_PROCTITLE */
29 #endif /* _AC_SETPROCTITLE_H */