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:
parent
8afc2b3bc1
commit
6b1f86aea8
@ -23,6 +23,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "system/passwd.h"
|
||||
#include "system/iconv.h"
|
||||
|
||||
#undef DBGC_CLASS
|
||||
#define DBGC_CLASS DBGC_AUTH
|
||||
|
@ -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.
|
||||
|
@ -20,7 +20,6 @@
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
|
||||
struct ldb_wrap {
|
||||
struct ldb_context *ldb;
|
||||
|
||||
|
@ -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"
|
||||
|
@ -52,3 +52,9 @@
|
||||
#include <sys/statvfs.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_FILIO_H
|
||||
#include <sys/filio.h>
|
||||
#endif
|
||||
|
||||
#include <sys/file.h>
|
||||
|
||||
|
@ -29,3 +29,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CTYPE_H
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
|
||||
|
35
source/include/system/resource.h
Normal file
35
source/include/system/resource.h
Normal 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
|
||||
|
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "system/iconv.h"
|
||||
|
||||
static unsigned char hash[258];
|
||||
static uint32 counter;
|
||||
|
@ -37,6 +37,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
/*
|
||||
|
@ -43,6 +43,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "ldb/include/ldb_parse.h"
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
/*
|
||||
|
@ -33,6 +33,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include <ctype.h>
|
||||
|
||||
/*
|
||||
TODO:
|
||||
|
@ -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))
|
||||
|
||||
|
||||
|
@ -33,6 +33,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "system/network.h"
|
||||
#include "system/iconv.h"
|
||||
|
||||
#define FAIL (-1)
|
||||
#define ALLONES ((uint32_t)0xFFFFFFFF)
|
||||
|
@ -37,6 +37,7 @@
|
||||
#else
|
||||
|
||||
#include "includes.h"
|
||||
#include "system/iconv.h"
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -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
|
||||
|
@ -22,6 +22,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "system/iconv.h"
|
||||
|
||||
/**
|
||||
* @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 */
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "system/network.h"
|
||||
#include "system/iconv.h"
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
|
@ -24,6 +24,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "system/iconv.h"
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
|
@ -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;
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
#include "include/includes.h"
|
||||
#include "vfs_posix.h"
|
||||
#include "system/iconv.h"
|
||||
|
||||
/*
|
||||
this mangling scheme uses the following format
|
||||
|
@ -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 */
|
||||
|
@ -80,6 +80,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "system/iconv.h"
|
||||
|
||||
/* -------------------------------------------------------------------------- **
|
||||
* Constants...
|
||||
|
@ -19,6 +19,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "system/iconv.h"
|
||||
|
||||
BOOL torture_utable(void)
|
||||
{
|
||||
|
@ -19,6 +19,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "system/iconv.h"
|
||||
|
||||
static const struct dcerpc_interface_table *find_pipe(const char *pipe_name)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user