]> git.sur5r.net Git - openldap/blobdiff - include/ac/setproctitle.h
streamline group attr specification/diagnostics
[openldap] / include / ac / setproctitle.h
index ac1c6a2472fce921878f7c82d7d81a67d6a1d81e..84e165bd8fed53bf2ff455230eaada45cbabd6f1 100644 (file)
@@ -1,4 +1,18 @@
 /* Generic setproctitle.h */
+/* $OpenLDAP$ */
+/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
+ *
+ * Copyright 1998-2007 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * <http://www.OpenLDAP.org/license.html>.
+ */
 
 #ifndef _AC_SETPROCTITLE_H
 #define _AC_SETPROCTITLE_H
@@ -9,9 +23,10 @@
 #      include <libutil.h>
 #else
        /* use lutil version */
-       void setproctitle LDAP_P((const char *fmt, ...));
-       extern int Argc;
-       extern char **Argv;
+       LDAP_LUTIL_F (void) (setproctitle) LDAP_P((const char *fmt, ...)) \
+               LDAP_GCCATTR((format(printf, 1, 2)));
+       LDAP_LUTIL_V (int) Argc;
+       LDAP_LUTIL_V (char) **Argv;
 #endif
 
 #endif /* LDAP_PROCTITLE */