r3447: more include/system/XXX.h include files
authorAndrew Tridgell <tridge@samba.org>
Tue, 2 Nov 2004 00:24:21 +0000 (00:24 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:12 +0000 (13:05 -0500)
(This used to be commit 264ce9181089922547e8f6f67116f2d7277a5105)

71 files changed:
source4/auth/auth_sam.c
source4/auth/pass_check.c
source4/client/client.c
source4/client/clitar.c
source4/include/includes.h
source4/include/structs.h
source4/include/system/capability.h [new file with mode: 0644]
source4/include/system/dir.h [new file with mode: 0644]
source4/include/system/filesys.h [new file with mode: 0644]
source4/include/system/glob.h [new file with mode: 0644]
source4/include/system/passwd.h [new file with mode: 0644]
source4/include/system/select.h [new file with mode: 0644]
source4/include/system/shmem.h
source4/include/system/syslog.h [new file with mode: 0644]
source4/include/system/terminal.h [new file with mode: 0644]
source4/include/system/time.h [new file with mode: 0644]
source4/intl/lang_tdb.c
source4/ldap_server/ldap_rootdse.c
source4/lib/events.c
source4/lib/fsusage.c
source4/lib/gencache.c
source4/lib/messaging/messaging.c
source4/lib/module.c
source4/lib/registry/reg_backend_dir/reg_backend_dir.c
source4/lib/registry/reg_backend_nt4/reg_backend_nt4.c
source4/lib/registry/reg_backend_w95/reg_backend_w95.c
source4/lib/registry/tools/regshell.c
source4/lib/replace.c
source4/lib/tdb/common/tdb.c
source4/lib/tdb/tools/tdbtorture.c
source4/lib/time.c
source4/lib/util_file.c
source4/lib/wins_srv.c
source4/libcli/auth/credentials.c
source4/libcli/namecache.c
source4/libcli/namequery.c
source4/libcli/nmblib.c
source4/libcli/raw/clitransport.c
source4/libcli/raw/rawnegotiate.c
source4/libcli/util/smbencrypt.c
source4/libnet/libnet_time.c
source4/ntvfs/posix/pvfs_dirlist.c
source4/ntvfs/posix/pvfs_lock.c
source4/ntvfs/posix/pvfs_open.c
source4/ntvfs/posix/pvfs_resolve.c
source4/ntvfs/posix/pvfs_search.c
source4/ntvfs/posix/pvfs_setfileinfo.c
source4/ntvfs/simple/svfs_util.c
source4/ntvfs/simple/vfs_simple.c
source4/param/loadparm.c
source4/rpc_server/netlogon/schannel_state.c
source4/rpc_server/samr/dcesrv_samr.c
source4/rpc_server/samr/samr_password.c
source4/smb_server/smb_server.c
source4/smbd/service.c
source4/torture/basic/locking.c
source4/torture/basic/secleak.c
source4/torture/gentest.c
source4/torture/local/iconv.c
source4/torture/locktest.c
source4/torture/masktest.c
source4/torture/nbench/nbio.c
source4/torture/raw/close.c
source4/torture/raw/lock.c
source4/torture/raw/open.c
source4/torture/raw/read.c
source4/torture/raw/setfileinfo.c
source4/torture/raw/write.c
source4/torture/torture.c
source4/torture/torture_util.c
source4/utils/net/net_time.c

index 1530165eb1b246d90ad8d68cbc55e2ca5b3e6690..5aff1d07e6c89f5f329bfe8e25d4ea3dd08db146 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "includes.h"
 #include "librpc/gen_ndr/ndr_samr.h"
+#include "system/time.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_AUTH
index 34faa5e03a44b0548c6677082712da2d607396da..a50b370ad1ab6f598a1013c355f147516b518447 100644 (file)
@@ -22,6 +22,7 @@
    password database. The SMB encrypted password support is elsewhere */
 
 #include "includes.h"
+#include "system/passwd.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_AUTH
index 4dd149796d190ea935d65c27ff59df1bf0c58f66..4a7f0dd2581ef8b718ea25e6d6082e4e3c727725 100644 (file)
@@ -24,6 +24,8 @@
 #include "includes.h"
 #include "librpc/gen_ndr/ndr_srvsvc.h"
 #include "libcli/raw/libcliraw.h"
+#include "system/time.h"
+#include "system/dir.h"
 
 #ifndef REGISTER
 #define REGISTER 0
index 7c19204e742067681ad616f8cc0ea5c9bbc38a22..3746f51248f4fe2833291b8130741308b1b4c4b6 100644 (file)
@@ -37,6 +37,7 @@
 
 #include "includes.h"
 #include "clitar.h"
+#include "system/time.h"
 
 /**
  Convert list of tokens to array; dependent on above routine.
index 914ec2f4eab551ed43c1d190db0cf70fa090b31e..24319cad065c37cf4d8c3660263099b3360c6152 100644 (file)
 /** Feel free to add definitions for other compilers here. */
 #endif
 
-#ifdef RELIANTUNIX
-/*
- * <unistd.h> has to be included before any other to get
- * large file support on Reliant UNIX. Yes, it's broken :-).
- */
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#endif /* RELIANTUNIX */
 
 #include <sys/types.h>
 #include <stdint.h>
 
-#ifdef TIME_WITH_SYS_TIME
-#include <sys/time.h>
-#include <time.h>
-#else
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#else
-#include <time.h>
-#endif
-#endif
-
 #ifdef HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif
 
-#ifdef HAVE_UNISTD_H
 #include <unistd.h>
-#endif
 
 #include <stdio.h>
 #include <stddef.h>
 #include <stdlib.h>
 #endif
 
-#ifdef HAVE_SYS_SYSCALL_H
-#include <sys/syscall.h>
-#elif HAVE_SYSCALL_H
-#include <syscall.h>
-#endif
-
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
 #ifdef HAVE_CTYPE_H
 #include <ctype.h>
 #endif
-#ifdef HAVE_GRP_H
-#include <grp.h>
-#endif
-#ifdef HAVE_SYS_PRIV_H
-#include <sys/priv.h>
-#endif
-#ifdef HAVE_SYS_ID_H
-#include <sys/id.h>
-#endif
 
 #include <errno.h>
 
-#ifdef HAVE_UTIME_H
-#include <utime.h>
-#endif
-
-#ifdef HAVE_SYS_SELECT_H
-#include <sys/select.h>
-#endif
-
 #ifdef HAVE_SYS_MODE_H
 /* apparently AIX needs this for S_ISLNK */
 #ifndef S_ISLNK
 #endif
 #endif
 
-#ifdef HAVE_GLOB_H
-#include <glob.h>
-#endif
-
-#include <pwd.h>
-
 #ifdef HAVE_STDARG_H
 #include <stdarg.h>
 #else
 #include <varargs.h>
 #endif
 
-#ifdef HAVE_SYSLOG_H
-#include <syslog.h>
-#else
-#ifdef HAVE_SYS_SYSLOG_H
-#include <sys/syslog.h>
-#endif
-#endif
-
 #include <sys/file.h>
 
-#if defined(HAVE_TERMIOS_H)
-/* POSIX terminal handling. */
-#include <termios.h>
-#elif defined(HAVE_TERMIO_H)
-/* Older SYSV terminal handling - don't use if we can avoid it. */
-#include <termio.h>
-#elif defined(HAVE_SYS_TERMIO_H)
-/* Older SYSV terminal handling - don't use if we can avoid it. */
-#include <sys/termio.h>
-#endif
-
-#if HAVE_DIRENT_H
-# include <dirent.h>
-# define NAMLEN(dirent) strlen((dirent)->d_name)
-#else
-# define dirent direct
-# define NAMLEN(dirent) (dirent)->d_namlen
-# if HAVE_SYS_NDIR_H
-#  include <sys/ndir.h>
-# endif
-# if HAVE_SYS_DIR_H
-#  include <sys/dir.h>
-# endif
-# if HAVE_NDIR_H
-#  include <ndir.h>
-# endif
-#endif
-
-#ifdef HAVE_SYS_MMAN_H
-#include <sys/mman.h>
-#endif
-
-#ifdef HAVE_SYS_MOUNT_H
-#include <sys/mount.h>
-#endif
-
-#ifdef HAVE_SYS_VFS_H
-#include <sys/vfs.h>
-#endif
-
-#ifdef HAVE_SYS_ACL_H
-#include <sys/acl.h>
-#endif
-
-#ifdef HAVE_SYS_FS_S5PARAM_H 
-#include <sys/fs/s5param.h>
-#endif
-
-#if defined (HAVE_SYS_FILSYS_H) && !defined (_CRAY)
-#include <sys/filsys.h> 
-#endif
-
-#ifdef HAVE_SYS_STATFS_H
-# include <sys/statfs.h>
-#endif
-
-#ifdef HAVE_DUSTAT_H              
-#include <sys/dustat.h>
-#endif
-
-#ifdef HAVE_SYS_STATVFS_H          
-#include <sys/statvfs.h>
-#endif
-
-#ifdef HAVE_SHADOW_H
-#include <shadow.h>
-#endif
-
-#ifdef HAVE_GETPWANAM
-#include <sys/label.h>
-#include <sys/audit.h>
-#include <pwdadj.h>
-#endif
-
-#ifdef HAVE_SYS_SECURITY_H
-#include <sys/security.h>
-#include <prot.h>
-#define PASSWORD_LENGTH 16
-#endif  /* HAVE_SYS_SECURITY_H */
-
-#ifdef HAVE_COMPAT_H
-#include <compat.h>
-#endif
-
 #ifdef HAVE_STROPTS_H
 #include <stropts.h>
 #endif
 
-#ifdef HAVE_SYS_CAPABILITY_H
-
-#if defined(BROKEN_REDHAT_7_SYSTEM_HEADERS) && !defined(_I386_STATFS_H)
-#define _I386_STATFS_H
-#define BROKEN_REDHAT_7_STATFS_WORKAROUND
-#endif
-
-#include <sys/capability.h>
-
-#ifdef BROKEN_REDHAT_7_STATFS_WORKAROUND
-#undef _I386_STATFS_H
-#undef BROKEN_REDHAT_7_STATFS_WORKAROUND
-#endif
-
-#endif
-
 /* we support ADS if we want it and have krb5 and ldap libs */
 #if defined(WITH_ADS) && defined(HAVE_KRB5) && defined(HAVE_LDAP)
 #define HAVE_ADS
index e1e6de5d7761b11cc7541c4a5a950271f2ec3d1a..428495ef13bf0bb28709bc0355c93f13a25f490d 100644 (file)
@@ -49,3 +49,6 @@ struct netr_SamInfo3;
 struct netr_Authenticator;
 
 struct iface_struct;
+
+struct tm;
+struct utimbuf;
diff --git a/source4/include/system/capability.h b/source4/include/system/capability.h
new file mode 100644 (file)
index 0000000..5a5bc93
--- /dev/null
@@ -0,0 +1,38 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   capability 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 HAVE_SYS_CAPABILITY_H
+
+#if defined(BROKEN_REDHAT_7_SYSTEM_HEADERS) && !defined(_I386_STATFS_H)
+#define _I386_STATFS_H
+#define BROKEN_REDHAT_7_STATFS_WORKAROUND
+#endif
+
+#include <sys/capability.h>
+
+#ifdef BROKEN_REDHAT_7_STATFS_WORKAROUND
+#undef _I386_STATFS_H
+#undef BROKEN_REDHAT_7_STATFS_WORKAROUND
+#endif
+
+#endif
+
diff --git a/source4/include/system/dir.h b/source4/include/system/dir.h
new file mode 100644 (file)
index 0000000..14c0ba4
--- /dev/null
@@ -0,0 +1,39 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   directory 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.
+*/
+
+#if HAVE_DIRENT_H
+# include <dirent.h>
+# define NAMLEN(dirent) strlen((dirent)->d_name)
+#else
+# define dirent direct
+# define NAMLEN(dirent) (dirent)->d_namlen
+# if HAVE_SYS_NDIR_H
+#  include <sys/ndir.h>
+# endif
+# if HAVE_SYS_DIR_H
+#  include <sys/dir.h>
+# endif
+# if HAVE_NDIR_H
+#  include <ndir.h>
+# endif
+#endif
+
diff --git a/source4/include/system/filesys.h b/source4/include/system/filesys.h
new file mode 100644 (file)
index 0000000..d99f892
--- /dev/null
@@ -0,0 +1,54 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   filesystem 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 HAVE_SYS_MOUNT_H
+#include <sys/mount.h>
+#endif
+
+#ifdef HAVE_SYS_VFS_H
+#include <sys/vfs.h>
+#endif
+
+#ifdef HAVE_SYS_ACL_H
+#include <sys/acl.h>
+#endif
+
+#ifdef HAVE_SYS_FS_S5PARAM_H 
+#include <sys/fs/s5param.h>
+#endif
+
+#if defined (HAVE_SYS_FILSYS_H) && !defined (_CRAY)
+#include <sys/filsys.h> 
+#endif
+
+#ifdef HAVE_SYS_STATFS_H
+# include <sys/statfs.h>
+#endif
+
+#ifdef HAVE_DUSTAT_H              
+#include <sys/dustat.h>
+#endif
+
+#ifdef HAVE_SYS_STATVFS_H          
+#include <sys/statvfs.h>
+#endif
+
diff --git a/source4/include/system/glob.h b/source4/include/system/glob.h
new file mode 100644 (file)
index 0000000..fc56a18
--- /dev/null
@@ -0,0 +1,26 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   glob 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 HAVE_GLOB_H
+#include <glob.h>
+#endif
+
diff --git a/source4/include/system/passwd.h b/source4/include/system/passwd.h
new file mode 100644 (file)
index 0000000..ba7fc93
--- /dev/null
@@ -0,0 +1,54 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   passwd 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.
+*/
+
+#include <pwd.h>
+
+#ifdef HAVE_GRP_H
+#include <grp.h>
+#endif
+#ifdef HAVE_SYS_PRIV_H
+#include <sys/priv.h>
+#endif
+#ifdef HAVE_SYS_ID_H
+#include <sys/id.h>
+#endif
+
+#ifdef HAVE_SHADOW_H
+#include <shadow.h>
+#endif
+
+#ifdef HAVE_SYS_SECURITY_H
+#include <sys/security.h>
+#include <prot.h>
+#define PASSWORD_LENGTH 16
+#endif  /* HAVE_SYS_SECURITY_H */
+
+#ifdef HAVE_GETPWANAM
+#include <sys/label.h>
+#include <sys/audit.h>
+#include <pwdadj.h>
+#endif
+
+#ifdef HAVE_COMPAT_H
+#include <compat.h>
+#endif
+
diff --git a/source4/include/system/select.h b/source4/include/system/select.h
new file mode 100644 (file)
index 0000000..0d8a505
--- /dev/null
@@ -0,0 +1,26 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   select 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 HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
+
index 57b47dd879c988a0a732f0f0d5819aaf3bde6a87..49ab2919605041c640f324e557d8f02110dbfad9 100644 (file)
 #include <sys/shm.h>
 #endif /* HAVE_SYS_SHM_H */
 
+#ifdef HAVE_SYS_MMAN_H
+#include <sys/mman.h>
+#endif
+
 /* NetBSD doesn't have these */
 #ifndef SHM_R
 #define SHM_R 0400
@@ -37,3 +41,4 @@
 #define SHM_W 0200
 #endif
 
+
diff --git a/source4/include/system/syslog.h b/source4/include/system/syslog.h
new file mode 100644 (file)
index 0000000..7fcb877
--- /dev/null
@@ -0,0 +1,30 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   syslog 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 HAVE_SYSLOG_H
+#include <syslog.h>
+#else
+#ifdef HAVE_SYS_SYSLOG_H
+#include <sys/syslog.h>
+#endif
+#endif
+
diff --git a/source4/include/system/terminal.h b/source4/include/system/terminal.h
new file mode 100644 (file)
index 0000000..abc661d
--- /dev/null
@@ -0,0 +1,33 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   terminal 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.
+*/
+
+#if defined(HAVE_TERMIOS_H)
+/* POSIX terminal handling. */
+#include <termios.h>
+#elif defined(HAVE_TERMIO_H)
+/* Older SYSV terminal handling - don't use if we can avoid it. */
+#include <termio.h>
+#elif defined(HAVE_SYS_TERMIO_H)
+/* Older SYSV terminal handling - don't use if we can avoid it. */
+#include <sys/termio.h>
+#endif
+
diff --git a/source4/include/system/time.h b/source4/include/system/time.h
new file mode 100644 (file)
index 0000000..132a3e5
--- /dev/null
@@ -0,0 +1,37 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   time 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 TIME_WITH_SYS_TIME
+#include <sys/time.h>
+#include <time.h>
+#else
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
+#endif
+
+#ifdef HAVE_UTIME_H
+#include <utime.h>
+#endif
+
index 05e3a7ba638f5ae137fbbb3fb52bc61b284f41a7..a70faa0d75e87520939bf1997ed11adcaf9c7df6 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 static TDB_CONTEXT *tdb;
 
index f7457f45053501940e648aaf0c18d1f5bfd56944..4bbbdad71f45ce0ee095d038be1f17f6a89651f3 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 #define ATTR_BLOB_CONST(val) data_blob_talloc(mem_ctx, val, sizeof(val)-1)
 #define ATTR_SINGLE_NOVAL(ctx, attr, blob, num, nam) do { \
index dac23ec6bc11ea72c5e55b38f152cbe98bcf6f46..276b3d08e98f4bd00039e4900ab157b4b1e8d4c6 100644 (file)
@@ -65,6 +65,8 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
+#include "system/select.h"
 
 /*
   create a event_context structure. This must be the first events
index bff6fdda03d3ef66b132f5ba3a11ffb56223074f..f81767254478017b66d7c48ff9957fdb12e82648 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "system/filesys.h"
 
 
 /* Return the number of TOSIZE-byte blocks used by
index a176dc5ae88c705e4cd8b1249503b47aaa8138f1..f32db598f8e55abe000edadd35974f42ee2f501b 100644 (file)
@@ -22,6 +22,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 #undef  DBGC_CLASS
 #define DBGC_CLASS DBGC_TDB
index 125089ac6255ea728f6190d7b4c7b791f038b600..a2316919cbca565c29481af3f79ff996991dd490 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 /* change the message version with any incompatible changes in the protocol */
 #define MESSAGING_VERSION 1
index 67fb830e6f62961556346ca1d17cf3e7623800ac..58764683d52b93fcffa5b2dfc372ede2c4ee3440 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "system/dir.h"
 
 #ifdef HAVE_DLOPEN
 
index 95d4c47af0e6cd6bc340db38aa395ef23117e3b7..2273a867712fd0fc183feba8436289bf2ab42dc2 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "system/dir.h"
 
 static WERROR reg_dir_add_key(TALLOC_CTX *mem_ctx, struct registry_key *parent, const char *name, uint32_t access_mask, SEC_DESC *desc, struct registry_key **result)
 {
index 805f95fca164d7db19c9aec0b9e06725a4c2d20c..a8d175207027d2d2716ff7c9ef7f787195577c61 100644 (file)
@@ -304,6 +304,7 @@ Hope this helps....  (Although it was "fun" for me to uncover this things,
 *************************************************************************/
 
 #include "includes.h"
+#include "system/shmem.h"
 
 #define REG_KEY_LIST_SIZE 10
 #define FLAG_HAS_NAME    0x01
index c285dac7c990674df5e5c11d06f04f827a6298b6..448af66eec8ac24ae7263bf7cb5d42faa42cef6b 100644 (file)
@@ -20,6 +20,7 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include "includes.h"
+#include "system/shmem.h"
 
 /**
  * The registry starts with a header that contains pointers to 
index db7af9d5b68566d803d37d7ec1767a101d2df573..8449446c8639b661bdd58acd717c23b9da6f025f 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 /* 
  * ck/cd - change key
index c2180a168ff7d3301a613002ede1de469b8ec193..60faa473b64e144434819dce8966c1f1e744ee97 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "includes.h"
 #include "system/wait.h"
+#include "system/time.h"
 
  void replace_dummy(void);
  void replace_dummy(void) {}
index 67d9f9903dfcde43790f8457ea28efd2e8546466..d41809c3d838005d479c45ae4b2b9ca6c382932a 100644 (file)
@@ -66,6 +66,8 @@
 #include "spinlock.h"
 #else
 #include "includes.h"
+#include "system/time.h"
+#include "system/shmem.h"
 #endif
 
 #define TDB_MAGIC_FOOD "TDB file\n"
index 95eb71281cf8592d7c6e311ea2b13df37f492966..6471aec3ad399651e03ef3ecd58a3bf0c95fe928 100644 (file)
@@ -21,6 +21,7 @@
 #else
 
 #include "includes.h"
+#include "system/time.h"
 
 #endif
 
index 5ea9b46844185e8e57912ee94360a931b221e4f7..cfceebf9cb71624eccee79caa4ca5059a2e202b6 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 #ifndef TIME_T_MIN
 #define TIME_T_MIN 0
index 0093de9517d9f7e1fa5ed02a5991b92946ff4a57..1dbaf1147e7c327ba8cfe31948ebc7edc6307e2e 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #include "includes.h"
+#include "system/shmem.h"
 
 /*************************************************************************
  gets a line out of a file.
index d8be9e61d6afc262d5fbdc2dfe5b7d74925ef73e..c9a5549cdc4c6b617d4388ec61d332cbca7b2748 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 /*
   This is pretty much a complete rewrite of the earlier code. The main
index 60feee788417f65bd6b9fdbbc032288be7d2dd42..f3f8324005fe4d16fb241e2cd4cedcb9e144433d 100644 (file)
@@ -22,6 +22,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 /*
   initialise the credentials state for old-style 64 bit session keys
index 8a4dab752294e9cccc7d32498543e8759d1310a3..34df4a3c5f180bfcf0bccad90af8b07ba11a4a6d 100644 (file)
@@ -22,6 +22,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 #define NBTKEY_FMT  "NBT/%s#%02X"
 
index 7a2d69779719881ec5affb2a8bc5e75a24a278d7..8dae5e1206dbca459e2e705b1b2d6e3ae71d321c 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "includes.h"
 #include "system/network.h"
+#include "system/time.h"
 
 /* A netbios node status array element. */
 struct node_status {
index ef5210cf63027ba3db15b893a41a80226557d694..120b937be55506e9c40f3a3497d0805dc7027e34 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "includes.h"
 #include "system/network.h"
+#include "system/time.h"
 
 static const struct opcode_names {
        const char *nmb_opcode_name;
index a6e8071a0512f81b1394492b78969b449d7bbe84..e70ee915c6ff60937583d0f0a2dfbf309303f3e9 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "includes.h"
 #include "libcli/raw/libcliraw.h"
+#include "system/time.h"
 
 
 static void smbcli_transport_process_recv(struct smbcli_transport *transport);
index da7bcabda9e0fe570e47f9d749fcd804244647aa..4f7d7b4058d3bb9a4e123cd1625ae0c0da97d2f9 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "includes.h"
 #include "libcli/raw/libcliraw.h"
+#include "system/time.h"
 
 static const struct {
        enum protocol_types prot;
index 1089c3a4cf9e15fbcaeaa5f6f96d39459100b650..1cf0890ba87dc99238f0989d32d62026a1beeb0c 100644 (file)
@@ -23,6 +23,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 #include "byteorder.h"
 
 /*
index 6a5eec7c26979684dd3d803262040474535f512b..fefddce39b492376166ee80d31c2d5a95f296da5 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "includes.h"
 #include "librpc/gen_ndr/ndr_srvsvc.h"
+#include "system/time.h"
 
 /*
  * get the remote time of a server via srvsvc_NetRemoteTOD
index 79f014d967e795536d2b76c405946e4a9cfd7743..613de080878a03c95740ac6425651e4257621da1 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "includes.h"
 #include "vfs_posix.h"
+#include "system/dir.h"
 
 struct pvfs_dir {
        struct pvfs_state *pvfs;
index 3835c9319b2f55d8635ff3ad8c6c777b5ebb6317..3625fc7891cb547ece42779435209b5f8b17d7be 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "include/includes.h"
 #include "vfs_posix.h"
+#include "system/time.h"
 
 
 /*
index bfaa7bf5a1973511dbf41f9718b25a49970b1265..bc56962912bb9fac9879dfa35a11634dff4ff767 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "include/includes.h"
 #include "vfs_posix.h"
+#include "system/time.h"
 
 /*
   create file handles with convenient numbers for sniffers
index 672d028dd5b4e53699c45d94d24a8682878146d6..551b05b248a32dc9cc12ee1d76485be43b43472d 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "include/includes.h"
 #include "vfs_posix.h"
+#include "system/dir.h"
 
 /*
   compare two filename components. This is where the name mangling hook will go
index 43d0f946b7f6c4959301fb1f4742463ac1da916c..18e22c2e980f74067e2566c85549e7279ec0eece 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "include/includes.h"
 #include "vfs_posix.h"
+#include "system/time.h"
 
 
 /* the state of a search started with pvfs_search_first() */
index bc96f25fecdc37573b5f273dc2b51eea37ac2ac0..8a4c6e433dea2aec1dfff3e5b4e8a1e839bdac45 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "include/includes.h"
 #include "vfs_posix.h"
+#include "system/time.h"
 
 /*
   set info on a open file
index 2ac12b191832b81c086538d06ff22dd5d3130c36..cfe846a828a09d1c20f74f0fbf72c07ec21a1faf 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "includes.h"
 #include "svfs.h"
+#include "system/time.h"
+#include "system/dir.h"
 
 /*
   convert a windows path to a unix path - don't do any manging or case sensitive handling
index 379d24f8485a872b553cd3d9acbabc5cb2f1cb6e..c84483ea23f3e4d58af4078aae99823da303cedc 100644 (file)
@@ -28,6 +28,7 @@
 
 #include "includes.h"
 #include "svfs.h"
+#include "system/time.h"
 
 #ifndef O_DIRECTORY
 #define O_DIRECTORY 0
index c4518d620f29d4e18a8d350180e35259968e2bc9..ffc539ef185c15cef54d9d652f61d8d65b38cca5 100644 (file)
@@ -53,6 +53,7 @@
  */
 
 #include "includes.h"
+#include "system/time.h"
 #include "librpc/gen_ndr/ndr_svcctl.h"
 
 BOOL in_client = False;                /* Not in the client by default */
index 5657b1cd64ef0a3593d9b5471421fdc307adf931..6e46108e7aef8d84774cc83580f1a8a627c6bc23 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 /* a reasonable amount of time to keep credentials live */
 #define SCHANNEL_CREDENTIALS_EXPIRY 600
index 572f5b08161aebf26e70745a8b947a0879c7c970..b3938ce41705cb11ffd0755502751ea41364f333 100644 (file)
@@ -24,6 +24,7 @@
 #include "librpc/gen_ndr/ndr_samr.h"
 #include "rpc_server/common/common.h"
 #include "rpc_server/samr/dcesrv_samr.h"
+#include "system/time.h"
 
 
 
index 60d5927207d8b1913d2b5827ccb0ca5c592bf6b7..cce412dfb7b5257828b9f3a8317f160fd0a90a93 100644 (file)
@@ -24,6 +24,7 @@
 #include "librpc/gen_ndr/ndr_samr.h"
 #include "rpc_server/common/common.h"
 #include "rpc_server/samr/dcesrv_samr.h"
+#include "system/time.h"
 
 /* 
   samr_ChangePasswordUser 
index a1a90852a18bb9c628ad845b79472ff2a9bc44ee..521cfd7de9956501d7e14c21bf0adb1b8effd656 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 
 /*
index d9841b63b23d91a00f9a30b67294ae9867125a5f..b7be3a1e6a8b268efab70606dea9db296dac21cb 100644 (file)
@@ -22,6 +22,7 @@
 */
 
 #include "includes.h"
+#include "system/dir.h"
 
 struct server_context *server_service_startup(const char *model)
 {
index 00187cbeac23dfa5e98acb72b9bfa79df8065c3b..aea94bd5a1b8577c75023282950efea8e8f5e741 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "includes.h"
 #include "libcli/raw/libcliraw.h"
+#include "system/time.h"
 
 /*
   This test checks for two things:
index 7cf1d43b8121d0ded12a689591aa9c27cb1b4fcf..a2d992cfc7d26e9b131d23cdca873ada26c3a7cf 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "includes.h"
 #include "libcli/raw/libcliraw.h"
+#include "system/time.h"
 
 static BOOL try_failed_login(struct smbcli_state *cli)
 {
index 59775e02d91ad3383acdd914b6b5e3f1ff983170..583cec5b45d4576a3cfd8e36dce5cebba7b3457c 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 #include "libcli/raw/libcliraw.h"
 
 #define NSERVERS 2
index eeca81e47031c10f03346abb2e4f2d539dadf402..ab64044513867577f8b765936ade6f81686bee0d 100644 (file)
@@ -23,6 +23,7 @@
 
 #include "includes.h"
 #include "system/iconv.h"
+#include "system/time.h"
 
 #if HAVE_NATIVE_ICONV
 /*
index 6d5558c6fde6d83149892b310599c971f5bc52a8..246178551270bd9ef0cb297ab8381a8e580eb0fa 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 static int numops = 1000;
 static BOOL showall;
index c112158492c6b0b96b18537460662e229eab0559..1f4bce0288b11ca1c149a5a97b162487cc6e6502 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "includes.h"
 #include "libcli/raw/libcliraw.h"
+#include "system/time.h"
 
 static fstring password;
 static fstring username;
index 9e4a08eea4ec0645a8a02b6a869f0712661d6067..5ef791037a779ee4a46c555a3be1d6662c369c5f 100644 (file)
@@ -21,6 +21,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 #define MAX_FILES 100
 
index 7a53c9be4a8b430a1733bae0742a72e5a520991a..f6884f37c91ecd50f51bf37f75895a8744d74482 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 
 /* basic testing of all RAW_CLOSE_* calls 
index 9d7ff0a28f248d2793068ce30ca8c20eb042fdfc..034c79326044454d24d9271e225eb6473f0ac294 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "includes.h"
 #include "libcli/raw/libcliraw.h"
+#include "system/time.h"
 
 #define CHECK_STATUS(status, correct) do { \
        if (!NT_STATUS_EQUAL(status, correct)) { \
index 5da0338552cb3792f068b99223cf1dc04c4b34be..03621dca45daf2ebc566da52381271a34e2d7519 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "includes.h"
 #include "libcli/raw/libcliraw.h"
+#include "system/time.h"
 
 /* enum for whether reads/writes are possible on a file */
 enum rdwr_mode {RDWR_NONE, RDWR_RDONLY, RDWR_WRONLY, RDWR_RDWR};
index 46b5f9403a24f29718c683928100202e4d5426ce..8b76a5a02992151a5b41ad49a19f5c2b73c34f3a 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "includes.h"
 #include "libcli/raw/libcliraw.h"
+#include "system/time.h"
 
 #define CHECK_STATUS(status, correct) do { \
        if (!NT_STATUS_EQUAL(status, correct)) { \
index f4baf1f02018711438ba13cd65a3ae7d2b428775..d0368df5b6521664f41dcdccf1993fc809ad1e87 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 #define BASEDIR "\\testsfileinfo"
 
index 28faf6b22ce033f2934d6e2e9ae0970939e64db2..585e231cacb0ce34ffb2558cf5314fd620fab361 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "includes.h"
 #include "libcli/raw/libcliraw.h"
+#include "system/time.h"
 
 #define CHECK_STATUS(status, correct) do { \
        if (!NT_STATUS_EQUAL(status, correct)) { \
index 15ecd02923fac46fafa10a7038bc9b4873bb3dc5..969e68265d83bd784ef4b4b1769ce32a51da8055 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "includes.h"
 #include "libcli/raw/libcliraw.h"
+#include "system/time.h"
 
 int torture_nprocs=4;
 int torture_numops=100;
index 41e616b5be9c82ba73accc5fecf5983e9e6494a9..0c0464507d063997892c8a8b1ef9377e9138a306 100644 (file)
@@ -21,6 +21,7 @@
 #include "includes.h"
 #include "libcli/raw/libcliraw.h"
 #include "system/shmem.h"
+#include "system/time.h"
 
 
 static struct timeval tp1,tp2;
index 2efe8faffe5969d66409f9f3b3acc11b5241f669..e32ec76293a64ce64c44767662e5995e577fe631 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "system/time.h"
 
 /*
  * Code for getting the remote time