1999-09-09 03:06:24 +08:00
|
|
|
/* $OpenLDAP$ */
|
2003-11-27 02:19:00 +08:00
|
|
|
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
|
|
|
*
|
|
|
|
* Copyright 1998-2003 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>.
|
2001-01-21 01:49:05 +08:00
|
|
|
*/
|
2003-11-27 02:19:00 +08:00
|
|
|
/* Portions Copyright (c) 1996 Regents of the University of Michigan.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms are permitted
|
|
|
|
* provided that this notice is preserved and that due credit is given
|
|
|
|
* to the University of Michigan at Ann Arbor. The name of the University
|
|
|
|
* may not be used to endorse or promote products derived from this
|
|
|
|
* software without specific prior written permission. This software
|
|
|
|
* is provided ``as is'' without express or implied warranty.
|
|
|
|
*/
|
|
|
|
/* ACKNOWLEDGEMENTS:
|
|
|
|
* This work was originally developed by the University of Michigan
|
|
|
|
* (as part of U-MICH LDAP).
|
|
|
|
*/
|
|
|
|
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
#ifndef _PROTO_SLURP
|
|
|
|
#define _PROTO_SLURP
|
|
|
|
|
|
|
|
#include <ldap_cdefs.h>
|
|
|
|
|
|
|
|
struct globals;
|
|
|
|
|
|
|
|
/* admin.c */
|
|
|
|
RETSIGTYPE do_admin LDAP_P((int sig));
|
|
|
|
|
|
|
|
/* args.c */
|
|
|
|
int doargs LDAP_P((int argc, char **argv, struct globals *g));
|
|
|
|
|
|
|
|
/* ch_malloc.c */
|
1999-08-20 04:01:42 +08:00
|
|
|
#ifdef CSRIMALLOC
|
|
|
|
#define ch_malloc malloc
|
|
|
|
#define ch_realloc realloc
|
|
|
|
#define ch_calloc calloc
|
2003-04-16 05:56:21 +08:00
|
|
|
#define ch_strdup strdup
|
1999-08-20 04:01:42 +08:00
|
|
|
#define ch_free free
|
|
|
|
#else
|
1999-06-19 07:53:05 +08:00
|
|
|
void *ch_malloc LDAP_P((ber_len_t size));
|
|
|
|
void *ch_realloc LDAP_P((void *block, ber_len_t size));
|
|
|
|
void *ch_calloc LDAP_P((ber_len_t nelem, ber_len_t size));
|
2003-04-16 05:56:21 +08:00
|
|
|
char *ch_strdup LDAP_P((const char *str));
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
void ch_free LDAP_P((void *p));
|
1999-08-20 04:01:42 +08:00
|
|
|
#endif
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
|
|
|
|
/* config.c */
|
|
|
|
int slurpd_read_config LDAP_P((char *fname));
|
|
|
|
|
2003-05-31 04:04:59 +08:00
|
|
|
extern char *slurpd_pid_file;
|
|
|
|
extern char *slurpd_args_file;
|
2003-04-16 05:56:21 +08:00
|
|
|
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
/* ch_malloc.c */
|
|
|
|
void ch_free LDAP_P(( void *p ));
|
|
|
|
|
|
|
|
/* fm.c */
|
|
|
|
void *fm LDAP_P((void *arg));
|
|
|
|
RETSIGTYPE do_nothing LDAP_P((int i));
|
2003-03-03 19:47:16 +08:00
|
|
|
RETSIGTYPE slurp_set_shutdown LDAP_P((int));
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
|
|
|
|
/* globals.c */
|
|
|
|
extern struct globals *sglob;
|
|
|
|
extern int ldap_syslog;
|
|
|
|
extern int ldap_syslog_level;
|
|
|
|
extern int ldap_debug;
|
|
|
|
extern struct globals *init_globals LDAP_P((void));
|
|
|
|
|
|
|
|
/* ldap_op.c */
|
2003-11-19 18:23:08 +08:00
|
|
|
int do_ldap LDAP_P((Ri *ri, Re *re, char **errmsg, int *errfree));
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
|
|
|
|
/* lock.c */
|
1999-08-21 06:24:58 +08:00
|
|
|
FILE *lock_fopen LDAP_P((const char *fname, const char *type, FILE **lfp));
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
int lock_fclose LDAP_P((FILE *fp, FILE *lfp));
|
1999-08-21 06:24:58 +08:00
|
|
|
int acquire_lock LDAP_P((const char *file, FILE **rfp, FILE **lfp));
|
|
|
|
int relinquish_lock LDAP_P((const char *file, FILE *rfp, FILE *lfp));
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
|
|
|
|
/* reject.c */
|
|
|
|
void write_reject LDAP_P((Ri *ri, Re *re, int lderr, char *errmsg));
|
|
|
|
|
|
|
|
/* replica.c */
|
|
|
|
int start_replica_thread LDAP_P((Ri *ri));
|
|
|
|
|
|
|
|
/* replog.c */
|
|
|
|
int copy_replog LDAP_P((char *src, char *dst));
|
|
|
|
int file_nonempty LDAP_P((char *filename));
|
|
|
|
|
|
|
|
/* sanity.c */
|
|
|
|
int sanity LDAP_P((void));
|
|
|
|
|
|
|
|
/* st.c */
|
|
|
|
int St_init LDAP_P((St **st));
|
|
|
|
|
|
|
|
/* tsleep.c */
|
1998-11-20 19:46:59 +08:00
|
|
|
int tsleep LDAP_P((time_t interval));
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
#if defined( HAVE_LWP )
|
|
|
|
void start_lwp_scheduler LDAP_P(( void ));
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _PROTO_SLURP */
|