summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/includes.h79
-rw-r--r--source4/include/structs.h8
-rw-r--r--source4/include/system/filesys.h12
-rw-r--r--source4/include/system/network.h9
-rw-r--r--source4/include/system/passwd.h29
-rw-r--r--source4/include/system/printing.h42
-rw-r--r--source4/include/system/shmem.h4
-rw-r--r--source4/include/system/terminal.h6
-rw-r--r--source4/include/system/time.h4
-rw-r--r--source4/include/system/wait.h4
10 files changed, 112 insertions, 85 deletions
diff --git a/source4/include/includes.h b/source4/include/includes.h
index 83f95f0a2b..78397faac6 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -28,31 +28,6 @@
#include "local.h"
-#ifdef AIX
-#define DEFAULT_PRINTING PRINT_AIX
-#define PRINTCAP_NAME "/etc/qconfig"
-#endif
-
-#ifdef HPUX
-#define DEFAULT_PRINTING PRINT_HPUX
-#endif
-
-#ifdef QNX
-#define DEFAULT_PRINTING PRINT_QNX
-#endif
-
-#ifdef SUNOS4
-/* on SUNOS4 termios.h conflicts with sys/ioctl.h */
-#undef HAVE_TERMIOS_H
-#endif
-
-#ifndef DEFAULT_PRINTING
-#define DEFAULT_PRINTING PRINT_BSD
-#endif
-#ifndef PRINTCAP_NAME
-#define PRINTCAP_NAME "/etc/printcap"
-#endif
-
#if (__GNUC__ >= 3)
/** Use gcc attribute to check printf fns. a1 is the 1-based index of
* the parameter containing the format, and a2 the index of the first
@@ -215,8 +190,6 @@ extern int errno;
#include "structs.h"
#include "ntvfs/ntvfs.h"
#include "cli_context.h"
-#include "libnet/libnet.h"
-#include "utils/net/net.h"
#include "nsswitch/winbind_client.h"
#define malloc_p(type) (type *)malloc(sizeof(type))
@@ -245,54 +218,10 @@ typedef int (*comparison_fn_t)(const void *, const void *);
#define QSORT_CAST (int (*)(const void *, const void *))
#endif
-#ifndef SIGCLD
-#define SIGCLD SIGCHLD
-#endif
-
-#ifndef MAP_FILE
-#define MAP_FILE 0
-#endif
-
-#if defined(HAVE_PUTPRPWNAM) && defined(AUTH_CLEARTEXT_SEG_CHARS)
-#define OSF1_ENH_SEC 1
-#endif
-
-#ifndef ALLOW_CHANGE_PASSWORD
-#if (defined(HAVE_TERMIOS_H) && defined(HAVE_DUP2) && defined(HAVE_SETSID))
-#define ALLOW_CHANGE_PASSWORD 1
-#endif
-#endif
-
-/* what is the longest significant password available on your system?
- Knowing this speeds up password searches a lot */
-#ifndef PASSWORD_LENGTH
-#define PASSWORD_LENGTH 8
-#endif
-
#ifndef HAVE_PIPE
#define SYNC_DNS 1
#endif
-#ifndef MAXPATHLEN
-#define MAXPATHLEN 256
-#endif
-
-#ifndef SEEK_SET
-#define SEEK_SET 0
-#endif
-
-#ifndef INADDR_LOOPBACK
-#define INADDR_LOOPBACK 0x7f000001
-#endif
-
-#ifndef INADDR_NONE
-#define INADDR_NONE 0xffffffff
-#endif
-
-#if defined(HAVE_CRYPT16) && defined(HAVE_GETAUTHUID)
-#define ULTRIX_AUTH 1
-#endif
-
#ifndef HAVE_STRDUP
char *strdup(const char *s);
#endif
@@ -313,10 +242,6 @@ size_t strlcpy(char *d, const char *s, size_t bufsize);
size_t strlcat(char *d, const char *s, size_t bufsize);
#endif
-#ifndef HAVE_FTRUNCATE
-int ftruncate(int f,long l);
-#endif
-
#ifndef HAVE_STRNDUP
char *strndup(const char *s, size_t n);
#endif
@@ -364,10 +289,6 @@ int asprintf(char **,const char *, ...) PRINTF_ATTRIBUTE(2,3);
#define VA_COPY(dest, src) (dest) = (src)
#endif
-#ifndef HAVE_TIMEGM
-time_t timegm(struct tm *tm);
-#endif
-
#if defined(VALGRIND)
#define strlen(x) valgrind_strlen(x)
#endif
diff --git a/source4/include/structs.h b/source4/include/structs.h
index 6886c7632a..24ae2a5ba0 100644
--- a/source4/include/structs.h
+++ b/source4/include/structs.h
@@ -98,3 +98,11 @@ struct dcesrv_connection;
struct dcesrv_endpoint;
struct dcesrv_call_state;
struct dcesrv_auth;
+
+union libnet_ChangePassword;
+union libnet_SetPassword;
+union libnet_find_pdc;
+union libnet_rpc_connect;
+union libnet_RemoteTOD;
+struct net_functable;
+struct net_context;
diff --git a/source4/include/system/filesys.h b/source4/include/system/filesys.h
index 07465c1c56..60d2910ba0 100644
--- a/source4/include/system/filesys.h
+++ b/source4/include/system/filesys.h
@@ -180,3 +180,15 @@ int rename(const char *zfrom, const char *zto);
#define UINT16_MAX 65535
#endif
+#ifndef HAVE_FTRUNCATE
+int ftruncate(int f,long l);
+#endif
+
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 256
+#endif
+
+#ifndef SEEK_SET
+#define SEEK_SET 0
+#endif
+
diff --git a/source4/include/system/network.h b/source4/include/system/network.h
index dfecd59090..bad4339666 100644
--- a/source4/include/system/network.h
+++ b/source4/include/system/network.h
@@ -81,3 +81,12 @@
#ifndef HAVE_SOCKLEN_T_TYPE
typedef int socklen_t;
#endif
+
+#ifndef INADDR_LOOPBACK
+#define INADDR_LOOPBACK 0x7f000001
+#endif
+
+#ifndef INADDR_NONE
+#define INADDR_NONE 0xffffffff
+#endif
+
diff --git a/source4/include/system/passwd.h b/source4/include/system/passwd.h
index 901b1b92f2..8a5402131a 100644
--- a/source4/include/system/passwd.h
+++ b/source4/include/system/passwd.h
@@ -56,15 +56,32 @@
#define getpass(prompt) getsmbpass((prompt))
#endif
-#ifndef HAVE_INITGROUPS
-int initgroups(char *name,gid_t id);
+#ifndef NGROUPS_MAX
+#define NGROUPS_MAX 32 /* Guess... */
#endif
-#ifndef HAVE_CRYPT
-#define crypt ufc_crypt
+/* what is the longest significant password available on your system?
+ Knowing this speeds up password searches a lot */
+#ifndef PASSWORD_LENGTH
+#define PASSWORD_LENGTH 8
#endif
+#if defined(HAVE_PUTPRPWNAM) && defined(AUTH_CLEARTEXT_SEG_CHARS)
+#define OSF1_ENH_SEC 1
+#endif
-#ifndef NGROUPS_MAX
-#define NGROUPS_MAX 32 /* Guess... */
+#ifndef ALLOW_CHANGE_PASSWORD
+#if (defined(HAVE_TERMIOS_H) && defined(HAVE_DUP2) && defined(HAVE_SETSID))
+#define ALLOW_CHANGE_PASSWORD 1
+#endif
#endif
+
+#if defined(HAVE_CRYPT16) && defined(HAVE_GETAUTHUID)
+#define ULTRIX_AUTH 1
+#endif
+
+
+#ifndef HAVE_INITGROUPS
+int initgroups(char *name,gid_t id);
+#endif
+
diff --git a/source4/include/system/printing.h b/source4/include/system/printing.h
new file mode 100644
index 0000000000..9eb93a776e
--- /dev/null
+++ b/source4/include/system/printing.h
@@ -0,0 +1,42 @@
+/*
+ Unix SMB/CIFS implementation.
+
+ printing system include wrappers
+
+ Copyright (C) Andrew Tridgell 2004
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifdef AIX
+#define DEFAULT_PRINTING PRINT_AIX
+#define PRINTCAP_NAME "/etc/qconfig"
+#endif
+
+#ifdef HPUX
+#define DEFAULT_PRINTING PRINT_HPUX
+#endif
+
+#ifdef QNX
+#define DEFAULT_PRINTING PRINT_QNX
+#endif
+
+#ifndef DEFAULT_PRINTING
+#define DEFAULT_PRINTING PRINT_BSD
+#endif
+#ifndef PRINTCAP_NAME
+#define PRINTCAP_NAME "/etc/printcap"
+#endif
+
diff --git a/source4/include/system/shmem.h b/source4/include/system/shmem.h
index 49ab291960..e197cd146f 100644
--- a/source4/include/system/shmem.h
+++ b/source4/include/system/shmem.h
@@ -42,3 +42,7 @@
#endif
+#ifndef MAP_FILE
+#define MAP_FILE 0
+#endif
+
diff --git a/source4/include/system/terminal.h b/source4/include/system/terminal.h
index abc661d7ac..b727f8e7fa 100644
--- a/source4/include/system/terminal.h
+++ b/source4/include/system/terminal.h
@@ -20,6 +20,12 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#ifdef SUNOS4
+/* on SUNOS4 termios.h conflicts with sys/ioctl.h */
+#undef HAVE_TERMIOS_H
+#endif
+
+
#if defined(HAVE_TERMIOS_H)
/* POSIX terminal handling. */
#include <termios.h>
diff --git a/source4/include/system/time.h b/source4/include/system/time.h
index 132a3e5dfc..7d27a56c9e 100644
--- a/source4/include/system/time.h
+++ b/source4/include/system/time.h
@@ -35,3 +35,7 @@
#include <utime.h>
#endif
+#ifndef HAVE_TIMEGM
+time_t timegm(struct tm *tm);
+#endif
+
diff --git a/source4/include/system/wait.h b/source4/include/system/wait.h
index 6af01986f9..d4c47582ad 100644
--- a/source4/include/system/wait.h
+++ b/source4/include/system/wait.h
@@ -31,3 +31,7 @@
typedef int sig_atomic_t;
#endif
+#ifndef SIGCLD
+#define SIGCLD SIGCHLD
+#endif
+