build: do not #include "config.h" in each file

Instead of including config.h in each file, and have the additional
config.h included from the compiler commandline (-include option).

When a .c file tests for a certain #define, and config.h was not
included, incorrect assumtions were made. With this change, it can not
happen again.

BUG: 1222319
Change-Id: I4f9097b8740b81ecfe8b218d52ca50361f74cb64
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/10808
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Tested-by: NetBSD Build System
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
This commit is contained in:
Niels de Vos 2015-05-18 16:26:02 +02:00 committed by Pranith Kumar Karampuri
parent 5d912230a7
commit 8a9328e37b
394 changed files with 1 additions and 1950 deletions

View File

@ -11,11 +11,6 @@
#ifndef _GFAPI_MESSAGES_H__ #ifndef _GFAPI_MESSAGES_H__
#define _GFAPI_MESSAGES_H_ #define _GFAPI_MESSAGES_H_
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "glfs-message-id.h" #include "glfs-message-id.h"
/*! \file gfapi-messages.h /*! \file gfapi-messages.h

View File

@ -15,11 +15,6 @@
#include <inttypes.h> #include <inttypes.h>
#include <limits.h> #include <limits.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "xlator.h" #include "xlator.h"
#include "glusterfs.h" #include "glusterfs.h"

View File

@ -16,11 +16,6 @@
#include <signal.h> #include <signal.h>
#include <pthread.h> #include <pthread.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif /* _CONFIG_H */
#include "glusterfs.h" #include "glusterfs.h"
#include "glfs.h" #include "glfs.h"
#include "stack.h" #include "stack.h"

View File

@ -16,11 +16,6 @@
#include <inttypes.h> #include <inttypes.h>
#include <limits.h> #include <limits.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "glusterfs.h" #include "glusterfs.h"
#include "logging.h" #include "logging.h"
#include "stack.h" #include "stack.h"

View File

@ -33,11 +33,6 @@
#include <unistd.h> #include <unistd.h>
#include <limits.h> #include <limits.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "glusterfs.h" #include "glusterfs.h"
#include "logging.h" #include "logging.h"
#include "stack.h" #include "stack.h"

View File

@ -19,11 +19,6 @@
#include <sys/wait.h> #include <sys/wait.h>
#include <netinet/in.h> #include <netinet/in.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "cli.h" #include "cli.h"
#include "cli-cmd.h" #include "cli-cmd.h"
#include "cli-mem-types.h" #include "cli-mem-types.h"

View File

@ -13,11 +13,6 @@
#include <stdint.h> #include <stdint.h>
#include <pthread.h> #include <pthread.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "cli.h" #include "cli.h"
#include "cli-cmd.h" #include "cli-cmd.h"
#include "cli-mem-types.h" #include "cli-mem-types.h"

View File

@ -13,11 +13,6 @@
#include <stdint.h> #include <stdint.h>
#include <pthread.h> #include <pthread.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "cli.h" #include "cli.h"
#include "cli-cmd.h" #include "cli-cmd.h"
#include "cli-mem-types.h" #include "cli-mem-types.h"

View File

@ -13,11 +13,6 @@
#include <stdint.h> #include <stdint.h>
#include <pthread.h> #include <pthread.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "cli.h" #include "cli.h"
#include "cli-cmd.h" #include "cli-cmd.h"
#include "cli-mem-types.h" #include "cli-mem-types.h"

View File

@ -13,11 +13,6 @@
#include <stdint.h> #include <stdint.h>
#include <pthread.h> #include <pthread.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "cli.h" #include "cli.h"
#include "cli-cmd.h" #include "cli-cmd.h"

View File

@ -13,11 +13,6 @@
#include <stdint.h> #include <stdint.h>
#include <pthread.h> #include <pthread.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "cli.h" #include "cli.h"
#include "cli-cmd.h" #include "cli-cmd.h"
#include "cli-mem-types.h" #include "cli-mem-types.h"

View File

@ -19,11 +19,6 @@
#include <sys/wait.h> #include <sys/wait.h>
#include <netinet/in.h> #include <netinet/in.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "cli.h" #include "cli.h"
#include "cli-cmd.h" #include "cli-cmd.h"
#include "cli-mem-types.h" #include "cli-mem-types.h"

View File

@ -13,11 +13,6 @@
#include <stdint.h> #include <stdint.h>
#include <pthread.h> #include <pthread.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "cli.h" #include "cli.h"
#include "cli-cmd.h" #include "cli-cmd.h"
#include "cli-mem-types.h" #include "cli-mem-types.h"

View File

@ -10,11 +10,6 @@
#ifndef __CLI_CMD_H__ #ifndef __CLI_CMD_H__
#define __CLI_CMD_H__ #define __CLI_CMD_H__
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <netdb.h> #include <netdb.h>
#include "cli.h" #include "cli.h"

View File

@ -7,11 +7,6 @@
later), or the GNU General Public License, version 2 (GPLv2), in all later), or the GNU General Public License, version 2 (GPLv2), in all
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "cli-quotad-client.h" #include "cli-quotad-client.h"

View File

@ -13,11 +13,6 @@
#include <stdint.h> #include <stdint.h>
#include <pthread.h> #include <pthread.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "cli.h" #include "cli.h"
#include "cli-cmd.h" #include "cli-cmd.h"
#include "cli-mem-types.h" #include "cli-mem-types.h"

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
/* Widths of various columns in top read/write-perf output /* Widths of various columns in top read/write-perf output
* Total width of top read/write-perf should be 80 chars * Total width of top read/write-perf should be 80 chars
* including one space between column * including one space between column

View File

@ -29,11 +29,6 @@
#include <semaphore.h> #include <semaphore.h>
#include <errno.h> #include <errno.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_MALLOC_H #ifdef HAVE_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif

View File

@ -10,11 +10,6 @@
#ifndef __CLI_H__ #ifndef __CLI_H__
#define __CLI_H__ #define __CLI_H__
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "rpc-clnt.h" #include "rpc-clnt.h"
#include "glusterfs.h" #include "glusterfs.h"
#include "protocol-common.h" #include "protocol-common.h"

View File

@ -13,11 +13,6 @@
#include <stdint.h> #include <stdint.h>
#include <pthread.h> #include <pthread.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "cli.h" #include "cli.h"
#include "cli-mem-types.h" #include "cli-mem-types.h"

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1257,7 +1257,7 @@ CONTRIBDIR='$(top_srcdir)/contrib'
AC_SUBST(CONTRIBDIR) AC_SUBST(CONTRIBDIR)
GF_CPPDEFINES='-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D$(GF_HOST_OS)' GF_CPPDEFINES='-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D$(GF_HOST_OS)'
GF_CPPINCLUDES='-I$(top_srcdir)/libglusterfs/src' GF_CPPINCLUDES='-include $(top_builddir)/config.h -I$(top_srcdir)/libglusterfs/src'
GF_CPPFLAGS="$GF_CPPFLAGS $GF_CPPDEFINES $GF_CPPINCLUDES" GF_CPPFLAGS="$GF_CPPFLAGS $GF_CPPDEFINES $GF_CPPINCLUDES"
AC_SUBST([GF_CPPFLAGS]) AC_SUBST([GF_CPPFLAGS])

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>

View File

@ -11,11 +11,6 @@
#ifndef _GLUSTERFSD_MESSAGES_H_ #ifndef _GLUSTERFSD_MESSAGES_H_
#define _GLUSTERFSD_MESSAGES_H_ #define _GLUSTERFSD_MESSAGES_H_
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "glfs-message-id.h" #include "glfs-message-id.h"
/* NOTE: Rules for message additions /* NOTE: Rules for message additions

View File

@ -13,11 +13,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <signal.h> #include <signal.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif /* _CONFIG_H */
#include "glusterfs.h" #include "glusterfs.h"
#include "stack.h" #include "stack.h"
#include "dict.h" #include "dict.h"

View File

@ -32,11 +32,6 @@
#include <errno.h> #include <errno.h>
#include <pwd.h> #include <pwd.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_MALLOC_H #ifdef HAVE_MALLOC_H
#include <malloc.h> #include <malloc.h>
#endif #endif

View File

@ -10,10 +10,6 @@
#ifndef __GLUSTERFSD_H__ #ifndef __GLUSTERFSD_H__
#define __GLUSTERFSD_H__ #define __GLUSTERFSD_H__
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "rpcsvc.h" #include "rpcsvc.h"
#include "glusterd1-xdr.h" #include "glusterd1-xdr.h"

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <openssl/md5.h> #include <openssl/md5.h>
#include <inttypes.h> #include <inttypes.h>

View File

@ -11,11 +11,6 @@
#ifndef _CALL_STUB_H_ #ifndef _CALL_STUB_H_
#define _CALL_STUB_H_ #define _CALL_STUB_H_
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "xlator.h" #include "xlator.h"
#include "defaults.h" #include "defaults.h"
#include "stack.h" #include "stack.h"

View File

@ -16,11 +16,6 @@
#include "rpcsvc.h" #include "rpcsvc.h"
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
static int static int
gf_client_chain_client_entries (cliententry_t *entries, uint32_t startidx, gf_client_chain_client_entries (cliententry_t *entries, uint32_t startidx,
uint32_t endcount) uint32_t endcount)

View File

@ -11,11 +11,6 @@
#ifndef _CLIENT_T_H #ifndef _CLIENT_T_H
#define _CLIENT_T_H #define _CLIENT_T_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "glusterfs.h" #include "glusterfs.h"
#include "locking.h" /* for gf_lock_t, not included by glusterfs.h */ #include "locking.h" /* for gf_lock_t, not included by glusterfs.h */

View File

@ -12,11 +12,6 @@
#ifndef _CLUSTER_SYNCOP_H #ifndef _CLUSTER_SYNCOP_H
#define _CLUSTER_SYNCOP_H #define _CLUSTER_SYNCOP_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "xlator.h" #include "xlator.h"
#include <sys/time.h> #include <sys/time.h>
#include <pthread.h> #include <pthread.h>

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_BACKTRACE #ifdef HAVE_BACKTRACE
#include <execinfo.h> #include <execinfo.h>
#else #else

View File

@ -11,11 +11,6 @@
#ifndef _COMMON_UTILS_H #ifndef _COMMON_UTILS_H
#define _COMMON_UTILS_H #define _COMMON_UTILS_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <stdint.h> #include <stdint.h>
#include <sys/uio.h> #include <sys/uio.h>
#include <netdb.h> #include <netdb.h>

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <stdint.h> #include <stdint.h>
#include "compat-errno.h" #include "compat-errno.h"

View File

@ -11,11 +11,6 @@
#ifndef __COMPAT_ERRNO_H__ #ifndef __COMPAT_ERRNO_H__
#define __COMPAT_ERRNO_H__ #define __COMPAT_ERRNO_H__
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#define GF_ERROR_CODE_SUCCESS 0 #define GF_ERROR_CODE_SUCCESS 0

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>

View File

@ -11,11 +11,6 @@
#ifndef __COMPAT_H__ #ifndef __COMPAT_H__
#define __COMPAT_H__ #define __COMPAT_H__
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <stdint.h> #include <stdint.h>
#include "dict.h" #include "dict.h"

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif /* !_CONFIG_H */
#include <pthread.h> #include <pthread.h>
#include "globals.h" #include "globals.h"

View File

@ -11,11 +11,6 @@
#ifndef _DAEMON_H #ifndef _DAEMON_H
#define _DAEMON_H #define _DAEMON_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#define DEVNULLPATH "/dev/null" #define DEVNULLPATH "/dev/null"
int os_daemon_return(int nochdir, int noclose); int os_daemon_return(int nochdir, int noclose);

View File

@ -20,11 +20,6 @@
All the functions are plain enough to understand. All the functions are plain enough to understand.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "xlator.h" #include "xlator.h"
#include "defaults.h" #include "defaults.h"

View File

@ -15,11 +15,6 @@
#ifndef _DEFAULTS_H #ifndef _DEFAULTS_H
#define _DEFAULTS_H #define _DEFAULTS_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "xlator.h" #include "xlator.h"
typedef struct { typedef struct {

View File

@ -16,11 +16,6 @@
#include <limits.h> #include <limits.h>
#include <fnmatch.h> #include <fnmatch.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "glusterfs.h" #include "glusterfs.h"
#include "common-utils.h" #include "common-utils.h"
#include "dict.h" #include "dict.h"

View File

@ -11,11 +11,6 @@
#ifndef _DICT_H #ifndef _DICT_H
#define _DICT_H #define _DICT_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <inttypes.h> #include <inttypes.h>
#include <sys/uio.h> #include <sys/uio.h>
#include <pthread.h> #include <pthread.h>

View File

@ -21,11 +21,6 @@
#include "mem-pool.h" #include "mem-pool.h"
#include "common-utils.h" #include "common-utils.h"
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_SYS_EPOLL_H #ifdef HAVE_SYS_EPOLL_H
#include <sys/epoll.h> #include <sys/epoll.h>

View File

@ -11,11 +11,6 @@
#ifndef _EH_H #ifndef _EH_H
#define _EH_H #define _EH_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "mem-types.h" #include "mem-types.h"
#include "circ-buff.h" #include "circ-buff.h"

View File

@ -21,11 +21,6 @@
#include "mem-pool.h" #include "mem-pool.h"
#include "common-utils.h" #include "common-utils.h"
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
struct event_slot_poll { struct event_slot_poll {

View File

@ -21,11 +21,6 @@
#include "mem-pool.h" #include "mem-pool.h"
#include "common-utils.h" #include "common-utils.h"
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
struct event_pool * struct event_pool *

View File

@ -11,11 +11,6 @@
#ifndef _EVENT_H_ #ifndef _EVENT_H_
#define _EVENT_H_ #define _EVENT_H_
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <pthread.h> #include <pthread.h>
struct event_pool; struct event_pool;

View File

@ -15,11 +15,6 @@
#include "statedump.h" #include "statedump.h"
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
static int static int
gf_fd_fdtable_expand (fdtable_t *fdtable, uint32_t nr); gf_fd_fdtable_expand (fdtable_t *fdtable, uint32_t nr);

View File

@ -11,11 +11,6 @@
#ifndef _FD_H #ifndef _FD_H
#define _FD_H #define _FD_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "list.h" #include "list.h"
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>

View File

@ -9,11 +9,6 @@
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@ -12,11 +12,6 @@
#ifndef _GF_DIRENT_H #ifndef _GF_DIRENT_H
#define _GF_DIRENT_H #define _GF_DIRENT_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "iatt.h" #include "iatt.h"
#include "inode.h" #include "inode.h"

View File

@ -11,11 +11,6 @@
#define __GFDB_DATA_STORE_H #define __GFDB_DATA_STORE_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "glusterfs.h" #include "glusterfs.h"
#include "xlator.h" #include "xlator.h"
#include "logging.h" #include "logging.h"

View File

@ -11,11 +11,6 @@
#define __GFDB_DATA_STORE_TYPE_H #define __GFDB_DATA_STORE_TYPE_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <time.h> #include <time.h>
#include <sys/time.h> #include <sys/time.h>
#include <string.h> #include <string.h>

View File

@ -11,11 +11,6 @@
#define __GFDB_SQLITE3_H #define __GFDB_SQLITE3_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
/*Sqlite3 header file*/ /*Sqlite3 header file*/
#include <sqlite3.h> #include <sqlite3.h>

View File

@ -11,11 +11,6 @@
#define __GFDB_SQLITE3_HELPER_H #define __GFDB_SQLITE3_HELPER_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "gfdb_sqlite3.h" #include "gfdb_sqlite3.h"
/****************************************************************************** /******************************************************************************

View File

@ -11,11 +11,6 @@
#ifndef _GLFS_MESSAGE_ID_H_ #ifndef _GLFS_MESSAGE_ID_H_
#define _GLFS_MESSAGE_ID_H_ #define _GLFS_MESSAGE_ID_H_
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
/* Base of all message IDs, all message IDs would be /* Base of all message IDs, all message IDs would be
* greater than this */ * greater than this */
#define GLFS_MSGID_BASE 100000 #define GLFS_MSGID_BASE 100000

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif /* !_CONFIG_H */
#include <pthread.h> #include <pthread.h>
#include "glusterfs.h" #include "glusterfs.h"

View File

@ -11,11 +11,6 @@
#ifndef _GLUSTERFS_H #ifndef _GLUSTERFS_H
#define _GLUSTERFS_H #define _GLUSTERFS_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <sys/uio.h> #include <sys/uio.h>
#include "common-utils.h" #include "common-utils.h"

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "xlator.h" #include "xlator.h"
#include <dlfcn.h> #include <dlfcn.h>
#include <netdb.h> #include <netdb.h>

View File

@ -11,11 +11,6 @@
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "hashfn.h" #include "hashfn.h"
#define get16bits(d) (*((const uint16_t *) (d))) #define get16bits(d) (*((const uint16_t *) (d)))

View File

@ -11,11 +11,6 @@
#ifndef __HASHFN_H__ #ifndef __HASHFN_H__
#define __HASHFN_H__ #define __HASHFN_H__
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <sys/types.h> #include <sys/types.h>
#include <stdint.h> #include <stdint.h>

View File

@ -12,11 +12,6 @@
#ifndef _IATT_H #ifndef _IATT_H
#define _IATT_H #define _IATT_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> /* for iatt <--> stat conversions */ #include <sys/stat.h> /* for iatt <--> stat conversions */
#include <unistd.h> #include <unistd.h>

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "inode.h" #include "inode.h"
#include "fd.h" #include "fd.h"
#include "common-utils.h" #include "common-utils.h"

View File

@ -11,11 +11,6 @@
#ifndef _INODE_H #ifndef _INODE_H
#define _INODE_H #define _INODE_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <stdint.h> #include <stdint.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -11,11 +11,6 @@
#ifndef _LK_OWNER_H #ifndef _LK_OWNER_H
#define _LK_OWNER_H #define _LK_OWNER_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#define GF_MAX_LOCK_OWNER_LEN 1024 /* 1kB as per NLM */ #define GF_MAX_LOCK_OWNER_LEN 1024 /* 1kB as per NLM */
/* 16strings-16strings-... */ /* 16strings-16strings-... */

View File

@ -11,11 +11,6 @@
#ifndef _LOCKING_H #ifndef _LOCKING_H
#define _LOCKING_H #define _LOCKING_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <pthread.h> #include <pthread.h>
#if HAVE_SPINLOCK #if HAVE_SPINLOCK

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <errno.h> #include <errno.h>
#include <pthread.h> #include <pthread.h>
#include <stdio.h> #include <stdio.h>

View File

@ -11,11 +11,6 @@
#ifndef __LOGGING_H__ #ifndef __LOGGING_H__
#define __LOGGING_H__ #define __LOGGING_H__
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <sys/time.h> #include <sys/time.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>

View File

@ -11,11 +11,6 @@
#ifndef _LVM_DEFAULTS_H #ifndef _LVM_DEFAULTS_H
#define _LVM_DEFAULTS_H #define _LVM_DEFAULTS_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#define LVM_RESIZE "/sbin/lvresize" #define LVM_RESIZE "/sbin/lvresize"
#define LVM_CREATE "/sbin/lvcreate" #define LVM_CREATE "/sbin/lvcreate"
#define LVM_CONVERT "/sbin/lvconvert" #define LVM_CONVERT "/sbin/lvconvert"

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <fnmatch.h> #include <fnmatch.h>
#include "xlator.h" #include "xlator.h"

View File

@ -11,11 +11,6 @@
#ifndef _OPTIONS_H #ifndef _OPTIONS_H
#define _OPTIONS_H #define _OPTIONS_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <inttypes.h> #include <inttypes.h>

View File

@ -16,11 +16,6 @@
#ifndef _STACK_H #ifndef _STACK_H
#define _STACK_H #define _STACK_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
struct _call_stack_t; struct _call_stack_t;
typedef struct _call_stack_t call_stack_t; typedef struct _call_stack_t call_stack_t;
struct _call_frame_t; struct _call_frame_t;

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <inttypes.h> #include <inttypes.h>
#include <libgen.h> #include <libgen.h>

View File

@ -10,11 +10,6 @@
#ifndef _GLUSTERD_STORE_H_ #ifndef _GLUSTERD_STORE_H_
#define _GLUSTERD_STORE_H_ #define _GLUSTERD_STORE_H_
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "compat.h" #include "compat.h"
#include "glusterfs.h" #include "glusterfs.h"

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <stdarg.h> #include <stdarg.h>
#include "mem-types.h" #include "mem-types.h"

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "syncop.h" #include "syncop.h"
#include "common-utils.h" #include "common-utils.h"

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "syncop.h" #include "syncop.h"
int int

View File

@ -11,11 +11,6 @@
#ifndef _SYNCOP_H #ifndef _SYNCOP_H
#define _SYNCOP_H #define _SYNCOP_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "xlator.h" #include "xlator.h"
#include <sys/time.h> #include <sys/time.h>
#include <pthread.h> #include <pthread.h>

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "compat.h" #include "compat.h"
#include "syscall.h" #include "syscall.h"

View File

@ -11,11 +11,6 @@
#ifndef _component_MESSAGES_H_ #ifndef _component_MESSAGES_H_
#define _component_MESSAGES_H_ #define _component_MESSAGES_H_
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "glfs-message-id.h" #include "glfs-message-id.h"
/* NOTE: Rules for message additions /* NOTE: Rules for message additions

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "timer.h" #include "timer.h"
#include "logging.h" #include "logging.h"
#include "common-utils.h" #include "common-utils.h"

View File

@ -11,11 +11,6 @@
#ifndef _TIMER_H #ifndef _TIMER_H
#define _TIMER_H #define _TIMER_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "glusterfs.h" #include "glusterfs.h"
#include "xlator.h" #include "xlator.h"
#include <sys/time.h> #include <sys/time.h>

View File

@ -11,11 +11,6 @@
#ifndef _TRIE_H_ #ifndef _TRIE_H_
#define _TRIE_H_ #define _TRIE_H_
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
struct trienode; struct trienode;
typedef struct trienode trienode_t; typedef struct trienode trienode_t;

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "xlator.h" #include "xlator.h"
#include <dlfcn.h> #include <dlfcn.h>
#include <netdb.h> #include <netdb.h>

View File

@ -11,11 +11,6 @@
#ifndef _XLATOR_H #ifndef _XLATOR_H
#define _XLATOR_H #define _XLATOR_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <inttypes.h> #include <inttypes.h>

View File

@ -10,11 +10,6 @@
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "rpcsvc.h" #include "rpcsvc.h"
#include "list.h" #include "list.h"
#include "dict.h" #include "dict.h"

View File

@ -9,11 +9,6 @@
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "rpcsvc.h" #include "rpcsvc.h"
#include "list.h" #include "list.h"
#include "dict.h" #include "dict.h"

View File

@ -10,11 +10,6 @@
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "rpcsvc.h" #include "rpcsvc.h"
#include "list.h" #include "list.h"
#include "dict.h" #include "dict.h"

View File

@ -9,11 +9,6 @@
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "rpc-clnt.h" #include "rpc-clnt.h"
#include "rpc-clnt-ping.h" #include "rpc-clnt-ping.h"
#include "byte-order.h" #include "byte-order.h"

View File

@ -9,11 +9,6 @@
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#define RPC_DEFAULT_PING_TIMEOUT 30 #define RPC_DEFAULT_PING_TIMEOUT 30
void void
rpc_clnt_check_and_start_ping (struct rpc_clnt *rpc_ptr); rpc_clnt_check_and_start_ping (struct rpc_clnt *rpc_ptr);

View File

@ -9,11 +9,6 @@
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#define RPC_CLNT_DEFAULT_REQUEST_COUNT 512 #define RPC_CLNT_DEFAULT_REQUEST_COUNT 512
#include "rpc-clnt.h" #include "rpc-clnt.h"

View File

@ -8,11 +8,6 @@
cases as published by the Free Software Foundation. cases as published by the Free Software Foundation.
*/ */
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "rpcsvc.h" #include "rpcsvc.h"
#ifndef RPC_DRC_H #ifndef RPC_DRC_H
#include "rpc-drc.h" #include "rpc-drc.h"

View File

@ -11,11 +11,6 @@
#ifndef RPC_DRC_H #ifndef RPC_DRC_H
#define RPC_DRC_H #define RPC_DRC_H
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "rpcsvc-common.h" #include "rpcsvc-common.h"
#include "rpcsvc.h" #include "rpcsvc.h"
#include "locking.h" #include "locking.h"

View File

@ -11,11 +11,6 @@
#ifndef _RPC_LIB_MESSAGES_H_ #ifndef _RPC_LIB_MESSAGES_H_
#define _RPC_LIB_MESSAGES_H_ #define _RPC_LIB_MESSAGES_H_
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "glfs-message-id.h" #include "glfs-message-id.h"
/* NOTE: Rules for message additions /* NOTE: Rules for message additions

View File

@ -15,11 +15,6 @@
#include <fnmatch.h> #include <fnmatch.h>
#include <stdint.h> #include <stdint.h>
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include "logging.h" #include "logging.h"
#include "rpc-transport.h" #include "rpc-transport.h"
#include "glusterfs.h" #include "glusterfs.h"

View File

@ -11,11 +11,6 @@
#ifndef __RPC_TRANSPORT_H__ #ifndef __RPC_TRANSPORT_H__
#define __RPC_TRANSPORT_H__ #define __RPC_TRANSPORT_H__
#ifndef _CONFIG_H
#define _CONFIG_H
#include "config.h"
#endif
#include <inttypes.h> #include <inttypes.h>
#ifdef GF_SOLARIS_HOST_OS #ifdef GF_SOLARIS_HOST_OS

Some files were not shown because too many files have changed in this diff Show More