Back to index

openldap  2.4.31
setproctitle.h
Go to the documentation of this file.
00001 /* Generic setproctitle.h */
00002 /* $OpenLDAP$ */
00003 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
00004  *
00005  * Copyright 1998-2012 The OpenLDAP Foundation.
00006  * All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted only as authorized by the OpenLDAP
00010  * Public License.
00011  *
00012  * A copy of this license is available in file LICENSE in the
00013  * top-level directory of the distribution or, alternatively, at
00014  * <http://www.OpenLDAP.org/license.html>.
00015  */
00016 
00017 #ifndef _AC_SETPROCTITLE_H
00018 #define _AC_SETPROCTITLE_H
00019 
00020 #ifdef LDAP_PROCTITLE
00021 
00022 #if defined( HAVE_LIBUTIL_H )
00023 #      include <libutil.h>
00024 #else
00025        /* use lutil version */
00026        LDAP_LUTIL_F (void) (setproctitle) LDAP_P((const char *fmt, ...)) \
00027               LDAP_GCCATTR((format(printf, 1, 2)));
00028        LDAP_LUTIL_V (int) Argc;
00029        LDAP_LUTIL_V (char) **Argv;
00030 #endif
00031 
00032 #endif /* LDAP_PROCTITLE */
00033 #endif /* _AC_SETPROCTITLE_H */