1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

r3449: more include file reduction

the ldb part isn't ideal, I will have to think of a better solution
This commit is contained in:
Andrew Tridgell 2004-11-02 01:42:45 +00:00 committed by Gerald (Jerry) Carter
parent 8afc2b3bc1
commit 6b1f86aea8
25 changed files with 77 additions and 30 deletions

View File

@ -23,6 +23,7 @@
#include "includes.h"
#include "system/passwd.h"
#include "system/iconv.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH

View File

@ -38,6 +38,7 @@
#include "includes.h"
#include "clitar.h"
#include "system/time.h"
#include "system/iconv.h"
/**
Convert list of tokens to array; dependent on above routine.

View File

@ -20,7 +20,6 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
struct ldb_wrap {
struct ldb_context *ldb;

View File

@ -73,26 +73,16 @@
#endif
#include <unistd.h>
#include <sys/types.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif
#include <unistd.h>
#include <stdio.h>
#include <stddef.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#include <stdlib.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#ifdef HAVE_STRING_H
#include <string.h>
#endif
@ -119,24 +109,12 @@
#include <sys/stat.h>
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
#ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h>
#endif
#include <signal.h>
#ifdef HAVE_CTYPE_H
#include <ctype.h>
#endif
#include <errno.h>
#ifdef HAVE_SYS_MODE_H
@ -152,8 +130,6 @@
#include <varargs.h>
#endif
#include <sys/file.h>
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif
@ -281,11 +257,11 @@ extern int errno;
/* Lists, trees, caching, database... */
#include "xfile.h"
#include "dlinklist.h"
#include "talloc.h"
#include "lib/ldb/include/ldb.h"
#include "lib/tdb/include/tdb.h"
#include "lib/tdb/include/spinlock.h"
#include "lib/tdb/include/tdbutil.h"
#include "talloc.h"
#include "db_wrap.h"
#include "nt_status.h"
#include "trans2.h"

View File

@ -52,3 +52,9 @@
#include <sys/statvfs.h>
#endif
#ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h>
#endif
#include <sys/file.h>

View File

@ -29,3 +29,7 @@
#endif
#endif
#ifdef HAVE_CTYPE_H
#include <ctype.h>
#endif

View File

@ -0,0 +1,35 @@
/*
Unix SMB/CIFS implementation.
resource 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_RESOURCE_H
#include <sys/resource.h>
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif

View File

@ -21,6 +21,7 @@
*/
#include "includes.h"
#include "system/iconv.h"
static unsigned char hash[258];
static uint32 counter;

View File

@ -37,6 +37,7 @@
*/
#include "includes.h"
#include <ctype.h>
/*

View File

@ -43,6 +43,7 @@
#include "includes.h"
#include "ldb/include/ldb_parse.h"
#include <ctype.h>
/*

View File

@ -33,6 +33,7 @@
*/
#include "includes.h"
#include <ctype.h>
/*
TODO:

View File

@ -28,3 +28,11 @@
#include "tdb.h"
#include "proto.h"
#ifdef HAVE_INTPTR_T
#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
#else
#define discard_const(ptr) ((void *)(ptr))
#endif
#define discard_const_p(type, ptr) ((type *)discard_const(ptr))

View File

@ -33,6 +33,7 @@
#include "includes.h"
#include "system/network.h"
#include "system/iconv.h"
#define FAIL (-1)
#define ALLONES ((uint32_t)0xFFFFFFFF)

View File

@ -37,6 +37,7 @@
#else
#include "includes.h"
#include "system/iconv.h"
#endif

View File

@ -24,6 +24,7 @@
#include "includes.h"
#include "system/network.h"
#include "system/iconv.h"
/**************************************************************************n
Find a suitable temporary directory. The result should be copied immediately

View File

@ -22,6 +22,7 @@
*/
#include "includes.h"
#include "system/iconv.h"
/**
* @file

View File

@ -20,6 +20,7 @@
*/
#include "includes.h"
#include "system/iconv.h"
/* these 2 tables define the unicode case handling. They are loaded
at startup either via mmap() or read() from the lib directory */

View File

@ -25,6 +25,7 @@
#include "includes.h"
#include "system/network.h"
#include "system/iconv.h"
/****************************************************************************
*

View File

@ -24,6 +24,7 @@
*/
#include "includes.h"
#include "system/iconv.h"
/****************************************************************************
*

View File

@ -22,6 +22,7 @@
#include "includes.h"
#include "system/network.h"
#include "system/time.h"
#include "system/iconv.h"
static const struct opcode_names {
const char *nmb_opcode_name;

View File

@ -22,6 +22,7 @@
#include "include/includes.h"
#include "vfs_posix.h"
#include "system/iconv.h"
/*
this mangling scheme uses the following format

View File

@ -54,6 +54,7 @@
#include "includes.h"
#include "system/time.h"
#include "system/iconv.h"
#include "librpc/gen_ndr/ndr_svcctl.h"
BOOL in_client = False; /* Not in the client by default */

View File

@ -80,6 +80,7 @@
*/
#include "includes.h"
#include "system/iconv.h"
/* -------------------------------------------------------------------------- **
* Constants...

View File

@ -19,6 +19,7 @@
*/
#include "includes.h"
#include "system/iconv.h"
BOOL torture_utable(void)
{

View File

@ -19,6 +19,7 @@
*/
#include "includes.h"
#include "system/iconv.h"
static const struct dcerpc_interface_table *find_pipe(const char *pipe_name)
{