mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
Add <ac/param.h> to wrap <sys/param.h>
This commit is contained in:
parent
37a25fa648
commit
4cc712db53
19 changed files with 43 additions and 59 deletions
|
|
@ -19,8 +19,6 @@
|
||||||
/* don't suck in all of the win32 api */
|
/* don't suck in all of the win32 api */
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
#define MAXPATHLEN _MAX_PATH
|
|
||||||
|
|
||||||
/* preprocess out undefined functions */
|
/* preprocess out undefined functions */
|
||||||
#define LOG_DEBUG 0
|
#define LOG_DEBUG 0
|
||||||
#define openlog(a, b)
|
#define openlog(a, b)
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include <ac/ctype.h>
|
#include <ac/ctype.h>
|
||||||
#include <ac/errno.h>
|
#include <ac/errno.h>
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/signal.h>
|
#include <ac/signal.h>
|
||||||
#include <ac/socket.h>
|
#include <ac/socket.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
|
|
@ -28,9 +29,6 @@
|
||||||
#include <ac/unistd.h>
|
#include <ac/unistd.h>
|
||||||
#include <ac/wait.h>
|
#include <ac/wait.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_SYS_RESOURCE_H
|
#ifdef HAVE_SYS_RESOURCE_H
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -26,12 +26,9 @@
|
||||||
#include <ac/unistd.h>
|
#include <ac/unistd.h>
|
||||||
#include <ac/wait.h>
|
#include <ac/wait.h>
|
||||||
|
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/setproctitle.h>
|
#include <ac/setproctitle.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_SYS_RESOURCE_H
|
#ifdef HAVE_SYS_RESOURCE_H
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -26,12 +26,9 @@
|
||||||
#include <ac/unistd.h>
|
#include <ac/unistd.h>
|
||||||
#include <ac/wait.h>
|
#include <ac/wait.h>
|
||||||
|
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/setproctitle.h>
|
#include <ac/setproctitle.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_SYS_RESOURCE_H
|
#ifdef HAVE_SYS_RESOURCE_H
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
#include <ac/stdlib.h>
|
#include <ac/stdlib.h>
|
||||||
|
|
||||||
#include <ac/ctype.h>
|
#include <ac/ctype.h>
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/signal.h>
|
#include <ac/signal.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/sysexits.h>
|
#include <ac/sysexits.h>
|
||||||
|
|
@ -32,10 +33,6 @@
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_SYS_RESOURCE_H
|
#ifdef HAVE_SYS_RESOURCE_H
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
26
include/ac/param.h
Normal file
26
include/ac/param.h
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
/* Generic param.h */
|
||||||
|
/* $OpenLDAP$ */
|
||||||
|
/*
|
||||||
|
* Copyright 1999 The OpenLDAP Foundation, Redwood City, California, USA
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms are permitted only
|
||||||
|
* as authorized by the OpenLDAP Public License. A copy of this
|
||||||
|
* license is available at http://www.OpenLDAP.org/license.html or
|
||||||
|
* in file LICENSE in the top-level directory of the distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _AC_PARAM_H
|
||||||
|
#define _AC_PARAM_H
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_PARAM_H
|
||||||
|
#include <sys/param.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef MAXPATHLEN
|
||||||
|
# ifdef _MAX_PATH
|
||||||
|
# define MAXPATHLEN _MAX_PATH
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _AC_PARAM_H */
|
||||||
|
|
@ -20,8 +20,6 @@
|
||||||
/* don't suck in all of the win32 api */
|
/* don't suck in all of the win32 api */
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
|
||||||
#define MAXPATHLEN _MAX_PATH
|
|
||||||
|
|
||||||
/* preprocess out undefined functions */
|
/* preprocess out undefined functions */
|
||||||
#define LOG_DEBUG 0
|
#define LOG_DEBUG 0
|
||||||
#define openlog(a, b)
|
#define openlog(a, b)
|
||||||
|
|
|
||||||
|
|
@ -18,13 +18,11 @@
|
||||||
|
|
||||||
#include <ac/stdlib.h>
|
#include <ac/stdlib.h>
|
||||||
|
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/socket.h>
|
#include <ac/socket.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/time.h>
|
#include <ac/time.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "ldap-int.h"
|
#include "ldap-int.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,14 +16,11 @@
|
||||||
|
|
||||||
#include <ac/stdlib.h>
|
#include <ac/stdlib.h>
|
||||||
|
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/socket.h>
|
#include <ac/socket.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/time.h>
|
#include <ac/time.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "ldap-int.h"
|
#include "ldap-int.h"
|
||||||
|
|
||||||
int ldap_open_defconn( LDAP *ld )
|
int ldap_open_defconn( LDAP *ld )
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,7 @@
|
||||||
/* include socket.h to get sys/types.h and/or winsock2.h */
|
/* include socket.h to get sys/types.h and/or winsock2.h */
|
||||||
#include <ac/socket.h>
|
#include <ac/socket.h>
|
||||||
|
|
||||||
#if defined(HAVE_SYS_PARAM_H)
|
#include <ac/param.h>
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "lutil_sha1.h"
|
#include "lutil_sha1.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,7 @@
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/time.h>
|
#include <ac/time.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
#include <ac/param.h>
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "ldap_pvt.h"
|
#include "ldap_pvt.h"
|
||||||
#include "slap.h"
|
#include "slap.h"
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/socket.h>
|
#include <ac/socket.h>
|
||||||
#include <ac/time.h>
|
#include <ac/time.h>
|
||||||
|
|
@ -17,9 +18,7 @@
|
||||||
#ifdef HAVE_SYS_FILE_H
|
#ifdef HAVE_SYS_FILE_H
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
#include "slap.h"
|
#include "slap.h"
|
||||||
|
|
||||||
FILE *
|
FILE *
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/socket.h>
|
#include <ac/socket.h>
|
||||||
#include <ac/time.h>
|
#include <ac/time.h>
|
||||||
|
|
@ -27,9 +28,6 @@
|
||||||
#ifdef HAVE_SYS_FILE_H
|
#ifdef HAVE_SYS_FILE_H
|
||||||
#include <sys/file.h>
|
#include <sys/file.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "slurp.h"
|
#include "slurp.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include <ac/errno.h>
|
#include <ac/errno.h>
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/syslog.h>
|
#include <ac/syslog.h>
|
||||||
#include <ac/time.h>
|
#include <ac/time.h>
|
||||||
|
|
@ -28,10 +29,6 @@
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include "slurp.h"
|
#include "slurp.h"
|
||||||
|
|
|
||||||
|
|
@ -21,13 +21,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <ac/errno.h>
|
#include <ac/errno.h>
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/signal.h>
|
#include <ac/signal.h>
|
||||||
#include <ac/syslog.h>
|
#include <ac/syslog.h>
|
||||||
#include <ac/time.h>
|
#include <ac/time.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include <ldap.h>
|
#include <ldap.h>
|
||||||
|
|
|
||||||
|
|
@ -10,15 +10,12 @@
|
||||||
#include <ac/stdlib.h>
|
#include <ac/stdlib.h>
|
||||||
|
|
||||||
#include <ac/ctype.h>
|
#include <ac/ctype.h>
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/socket.h>
|
#include <ac/socket.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/unistd.h>
|
#include <ac/unistd.h>
|
||||||
#include <ac/wait.h>
|
#include <ac/wait.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ldap.h>
|
#include <ldap.h>
|
||||||
|
|
||||||
#define LOOPS 100
|
#define LOOPS 100
|
||||||
|
|
|
||||||
|
|
@ -10,15 +10,12 @@
|
||||||
#include <ac/stdlib.h>
|
#include <ac/stdlib.h>
|
||||||
|
|
||||||
#include <ac/ctype.h>
|
#include <ac/ctype.h>
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/socket.h>
|
#include <ac/socket.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/unistd.h>
|
#include <ac/unistd.h>
|
||||||
#include <ac/wait.h>
|
#include <ac/wait.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ldap.h>
|
#include <ldap.h>
|
||||||
|
|
||||||
#define LOOPS 100
|
#define LOOPS 100
|
||||||
|
|
|
||||||
|
|
@ -10,14 +10,12 @@
|
||||||
#include <ac/stdlib.h>
|
#include <ac/stdlib.h>
|
||||||
|
|
||||||
#include <ac/ctype.h>
|
#include <ac/ctype.h>
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/socket.h>
|
#include <ac/socket.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/unistd.h>
|
#include <ac/unistd.h>
|
||||||
#include <ac/wait.h>
|
#include <ac/wait.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <ldap.h>
|
#include <ldap.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,14 +11,12 @@
|
||||||
|
|
||||||
#include <ac/ctype.h>
|
#include <ac/ctype.h>
|
||||||
#include <ac/dirent.h>
|
#include <ac/dirent.h>
|
||||||
|
#include <ac/param.h>
|
||||||
#include <ac/socket.h>
|
#include <ac/socket.h>
|
||||||
#include <ac/string.h>
|
#include <ac/string.h>
|
||||||
#include <ac/unistd.h>
|
#include <ac/unistd.h>
|
||||||
#include <ac/wait.h>
|
#include <ac/wait.h>
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
|
||||||
#include <sys/param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "ldap_defaults.h"
|
#include "ldap_defaults.h"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue