Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / openldap / dist / include / ac / setproctitle.h
blob140e2f8911c02ba82ba1e53e8c23a7fff9f5bcce
1 /* Generic setproctitle.h */
2 /* $OpenLDAP: pkg/ldap/include/ac/setproctitle.h,v 1.21.2.3 2008/02/11 23:26:40 kurt Exp $ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 1998-2008 The OpenLDAP Foundation.
6 * All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted only as authorized by the OpenLDAP
10 * Public License.
12 * A copy of this license is available in file LICENSE in the
13 * top-level directory of the distribution or, alternatively, at
14 * <http://www.OpenLDAP.org/license.html>.
17 #ifndef _AC_SETPROCTITLE_H
18 #define _AC_SETPROCTITLE_H
20 #ifdef LDAP_PROCTITLE
22 #if defined( HAVE_LIBUTIL_H )
23 # include <libutil.h>
24 #else
25 /* use lutil version */
26 LDAP_LUTIL_F (void) (setproctitle) LDAP_P((const char *fmt, ...)) \
27 LDAP_GCCATTR((format(printf, 1, 2)));
28 LDAP_LUTIL_V (int) Argc;
29 LDAP_LUTIL_V (char) **Argv;
30 #endif
32 #endif /* LDAP_PROCTITLE */
33 #endif /* _AC_SETPROCTITLE_H */