mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
72b2cb613a
Fix some memory leaks in error paths found by coverity. Use C99 struct initialisers. Move DEFS into configure.h. Clean-ups to remove miscellaneous compiler warnings.
431 lines
12 KiB
C
431 lines
12 KiB
C
/* lib/misc/configure.h. Generated by configure. */
|
|
/* lib/misc/configure.h.in. Generated from configure.in by autoheader. */
|
|
|
|
/* Define to 1 if the `closedir' function returns void instead of `int'. */
|
|
/* #undef CLOSEDIR_VOID */
|
|
|
|
/* Define to 1 to include built-in support for clustered LVM locking. */
|
|
/* #undef CLUSTER_LOCKING_INTERNAL */
|
|
|
|
/* Define to 1 to build the shared command library. */
|
|
/* #undef CMDLIB */
|
|
|
|
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
|
systems. This function is required for `alloca.c' support on those systems.
|
|
*/
|
|
/* #undef CRAY_STACKSEG_END */
|
|
|
|
/* Define to 1 if using `alloca.c'. */
|
|
/* #undef C_ALLOCA */
|
|
|
|
/* Define to 1 to enable device-mapper interaction. */
|
|
#define DEVMAPPER_SUPPORT 1
|
|
|
|
/* Define to 1 to enable the device-mapper event daemon. */
|
|
/* #undef DMEVENTD */
|
|
|
|
/* Define to 1 if you have `alloca', as a function or macro. */
|
|
#define HAVE_ALLOCA 1
|
|
|
|
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
|
|
*/
|
|
#define HAVE_ALLOCA_H 1
|
|
|
|
/* Define to 1 if you have the <asm/byteorder.h> header file. */
|
|
/* #undef HAVE_ASM_BYTEORDER_H */
|
|
|
|
/* Define to 1 if you have the <assert.h> header file. */
|
|
#define HAVE_ASSERT_H 1
|
|
|
|
/* Define to 1 if you have the <ctype.h> header file. */
|
|
#define HAVE_CTYPE_H 1
|
|
|
|
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
|
*/
|
|
#define HAVE_DIRENT_H 1
|
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
#define HAVE_DLFCN_H 1
|
|
|
|
/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
|
|
/* #undef HAVE_DOPRNT */
|
|
|
|
/* Define to 1 if you have the `dup2' function. */
|
|
/* #undef HAVE_DUP2 */
|
|
|
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
#define HAVE_FCNTL_H 1
|
|
|
|
/* Define to 1 if you have the `fork' function. */
|
|
#define HAVE_FORK 1
|
|
|
|
/* Define to 1 if you have the <fstab.h> header file. */
|
|
/* #undef HAVE_FSTAB_H */
|
|
|
|
/* Define to 1 if you have the `gethostname' function. */
|
|
#define HAVE_GETHOSTNAME 1
|
|
|
|
/* Define to 1 if you have the `getmntent' function. */
|
|
/* #undef HAVE_GETMNTENT */
|
|
|
|
/* Define to 1 to if getopt_long is available. */
|
|
#define HAVE_GETOPTLONG 1
|
|
|
|
/* Define to 1 if you have the <getopt.h> header file. */
|
|
#define HAVE_GETOPT_H 1
|
|
|
|
/* Define to 1 if you have the `getpagesize' function. */
|
|
#define HAVE_GETPAGESIZE 1
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
#define HAVE_INTTYPES_H 1
|
|
|
|
/* Define to 1 if you have the <libdevmapper.h> header file. */
|
|
#define HAVE_LIBDEVMAPPER_H 1
|
|
|
|
/* Define to 1 if dynamic libraries are available. */
|
|
#define HAVE_LIBDL 1
|
|
|
|
/* Define to 1 if you have the <libgen.h> header file. */
|
|
#define HAVE_LIBGEN_H 1
|
|
|
|
/* Define to 1 if you have the <libintl.h> header file. */
|
|
/* #undef HAVE_LIBINTL_H */
|
|
|
|
/* Define to 1 if you have the `readline' library (-lreadline). */
|
|
/* #undef HAVE_LIBREADLINE */
|
|
|
|
/* Define to 1 if you have the <limits.h> header file. */
|
|
#define HAVE_LIMITS_H 1
|
|
|
|
/* Define to 1 if you have the <linux/fs.h> header file. */
|
|
/* #undef HAVE_LINUX_FS_H */
|
|
|
|
/* Define to 1 if you have the <locale.h> header file. */
|
|
#define HAVE_LOCALE_H 1
|
|
|
|
/* Define to 1 if `lstat' has the bug that it succeeds when given the
|
|
zero-length file name argument. */
|
|
/* #undef HAVE_LSTAT_EMPTY_STRING_BUG */
|
|
|
|
/* Define to 1 if you have the <machine/endian.h> header file. */
|
|
#define HAVE_MACHINE_ENDIAN_H 1
|
|
|
|
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
|
|
to 0 otherwise. */
|
|
#define HAVE_MALLOC 1
|
|
|
|
/* Define to 1 if you have the <malloc.h> header file. */
|
|
/* #undef HAVE_MALLOC_H */
|
|
|
|
/* Define to 1 if you have the `memmove' function. */
|
|
/* #undef HAVE_MEMMOVE */
|
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
#define HAVE_MEMORY_H 1
|
|
|
|
/* Define to 1 if you have the `memset' function. */
|
|
#define HAVE_MEMSET 1
|
|
|
|
/* Define to 1 if you have the `mkdir' function. */
|
|
#define HAVE_MKDIR 1
|
|
|
|
/* Define to 1 if you have a working `mmap' system call. */
|
|
#define HAVE_MMAP 1
|
|
|
|
/* Define to 1 if you have the <mntent.h> header file. */
|
|
/* #undef HAVE_MNTENT_H */
|
|
|
|
/* Define to 1 if you have the `munmap' function. */
|
|
#define HAVE_MUNMAP 1
|
|
|
|
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
|
/* #undef HAVE_NDIR_H */
|
|
|
|
/* Define to 1 if you have the <netdb.h> header file. */
|
|
/* #undef HAVE_NETDB_H */
|
|
|
|
/* Define to 1 if you have the <netinet/in.h> header file. */
|
|
/* #undef HAVE_NETINET_IN_H */
|
|
|
|
/* Define to 1 if you have the <pthread.h> header file. */
|
|
/* #undef HAVE_PTHREAD_H */
|
|
|
|
/* Define to 1 if you have the <readline/history.h> header file. */
|
|
/* #undef HAVE_READLINE_HISTORY_H */
|
|
|
|
/* Define to 1 if you have the <readline/readline.h> header file. */
|
|
/* #undef HAVE_READLINE_READLINE_H */
|
|
|
|
/* Define to 1 if rl_completion_matches() is available. */
|
|
/* #undef HAVE_RL_COMPLETION_MATCHES */
|
|
|
|
/* Define to 1 if you have the `rmdir' function. */
|
|
#define HAVE_RMDIR 1
|
|
|
|
/* Define to 1 if you have the <search.h> header file. */
|
|
/* #undef HAVE_SEARCH_H */
|
|
|
|
/* Define to 1 if you have the `select' function. */
|
|
/* #undef HAVE_SELECT */
|
|
|
|
/* Define to 1 to include support for selinux. */
|
|
/* #undef HAVE_SELINUX */
|
|
|
|
/* Define to 1 if you have the <selinux/selinux.h> header file. */
|
|
/* #undef HAVE_SELINUX_SELINUX_H */
|
|
|
|
/* Define to 1 if you have the `setlocale' function. */
|
|
#define HAVE_SETLOCALE 1
|
|
|
|
/* Define to 1 if you have the <signal.h> header file. */
|
|
#define HAVE_SIGNAL_H 1
|
|
|
|
/* Define to 1 if you have the `socket' function. */
|
|
/* #undef HAVE_SOCKET */
|
|
|
|
/* Define to 1 if `stat' has the bug that it succeeds when given the
|
|
zero-length file name argument. */
|
|
/* #undef HAVE_STAT_EMPTY_STRING_BUG */
|
|
|
|
/* Define to 1 if you have the <stddef.h> header file. */
|
|
#define HAVE_STDDEF_H 1
|
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
#define HAVE_STDINT_H 1
|
|
|
|
/* Define to 1 if you have the <stdio.h> header file. */
|
|
#define HAVE_STDIO_H 1
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
#define HAVE_STDLIB_H 1
|
|
|
|
/* Define to 1 if you have the `strcasecmp' function. */
|
|
#define HAVE_STRCASECMP 1
|
|
|
|
/* Define to 1 if you have the `strchr' function. */
|
|
#define HAVE_STRCHR 1
|
|
|
|
/* Define to 1 if you have the `strdup' function. */
|
|
#define HAVE_STRDUP 1
|
|
|
|
/* Define to 1 if you have the `strerror' function. */
|
|
#define HAVE_STRERROR 1
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
#define HAVE_STRINGS_H 1
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
#define HAVE_STRING_H 1
|
|
|
|
/* Define to 1 if you have the `strncasecmp' function. */
|
|
#define HAVE_STRNCASECMP 1
|
|
|
|
/* Define to 1 if you have the `strrchr' function. */
|
|
#define HAVE_STRRCHR 1
|
|
|
|
/* Define to 1 if you have the `strstr' function. */
|
|
#define HAVE_STRSTR 1
|
|
|
|
/* Define to 1 if you have the `strtol' function. */
|
|
#define HAVE_STRTOL 1
|
|
|
|
/* Define to 1 if you have the `strtoul' function. */
|
|
#define HAVE_STRTOUL 1
|
|
|
|
/* Define to 1 if `st_rdev' is member of `struct stat'. */
|
|
#define HAVE_STRUCT_STAT_ST_RDEV 1
|
|
|
|
/* Define to 1 if your `struct stat' has `st_rdev'. Deprecated, use
|
|
`HAVE_STRUCT_STAT_ST_RDEV' instead. */
|
|
#define HAVE_ST_RDEV 1
|
|
|
|
/* Define to 1 if you have the <syslog.h> header file. */
|
|
#define HAVE_SYSLOG_H 1
|
|
|
|
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
|
*/
|
|
/* #undef HAVE_SYS_DIR_H */
|
|
|
|
/* Define to 1 if you have the <sys/disk.h> header file. */
|
|
#define HAVE_SYS_DISK_H 1
|
|
|
|
/* Define to 1 if you have the <sys/file.h> header file. */
|
|
#define HAVE_SYS_FILE_H 1
|
|
|
|
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
|
#define HAVE_SYS_IOCTL_H 1
|
|
|
|
/* Define to 1 if you have the <sys/mman.h> header file. */
|
|
#define HAVE_SYS_MMAN_H 1
|
|
|
|
/* Define to 1 if you have the <sys/mount.h> header file. */
|
|
/* #undef HAVE_SYS_MOUNT_H */
|
|
|
|
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
|
*/
|
|
/* #undef HAVE_SYS_NDIR_H */
|
|
|
|
/* Define to 1 if you have the <sys/param.h> header file. */
|
|
#define HAVE_SYS_PARAM_H 1
|
|
|
|
/* Define to 1 if you have the <sys/resource.h> header file. */
|
|
#define HAVE_SYS_RESOURCE_H 1
|
|
|
|
/* Define to 1 if you have the <sys/select.h> header file. */
|
|
/* #undef HAVE_SYS_SELECT_H */
|
|
|
|
/* Define to 1 if you have the <sys/socket.h> header file. */
|
|
/* #undef HAVE_SYS_SOCKET_H */
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
#define HAVE_SYS_STAT_H 1
|
|
|
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
|
#define HAVE_SYS_TIME_H 1
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
#define HAVE_SYS_TYPES_H 1
|
|
|
|
/* Define to 1 if you have the <sys/uio.h> header file. */
|
|
/* #undef HAVE_SYS_UIO_H */
|
|
|
|
/* Define to 1 if you have the <sys/un.h> header file. */
|
|
/* #undef HAVE_SYS_UN_H */
|
|
|
|
/* Define to 1 if you have the <sys/utsname.h> header file. */
|
|
#define HAVE_SYS_UTSNAME_H 1
|
|
|
|
/* Define to 1 if you have the <sys/vfs.h> header file. */
|
|
/* #undef HAVE_SYS_VFS_H */
|
|
|
|
/* Define to 1 if you have the <sys/wait.h> header file. */
|
|
#define HAVE_SYS_WAIT_H 1
|
|
|
|
/* Define to 1 if you have the <time.h> header file. */
|
|
#define HAVE_TIME_H 1
|
|
|
|
/* Define to 1 if you have the `uname' function. */
|
|
#define HAVE_UNAME 1
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
#define HAVE_UNISTD_H 1
|
|
|
|
/* Define to 1 if you have the <utmpx.h> header file. */
|
|
/* #undef HAVE_UTMPX_H */
|
|
|
|
/* Define to 1 if you have the `vfork' function. */
|
|
#define HAVE_VFORK 1
|
|
|
|
/* Define to 1 if you have the <vfork.h> header file. */
|
|
/* #undef HAVE_VFORK_H */
|
|
|
|
/* Define to 1 if you have the `vprintf' function. */
|
|
#define HAVE_VPRINTF 1
|
|
|
|
/* Define to 1 if `fork' works. */
|
|
#define HAVE_WORKING_FORK 1
|
|
|
|
/* Define to 1 if `vfork' works. */
|
|
#define HAVE_WORKING_VFORK 1
|
|
|
|
/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
|
|
slash. */
|
|
/* #undef LSTAT_FOLLOWS_SLASHED_SYMLINK */
|
|
|
|
/* Define to 1 if 'lvm' should fall back to using LVM1 binaries if
|
|
device-mapper is missing from the kernel */
|
|
/* #undef LVM1_FALLBACK */
|
|
|
|
/* Define to 1 to include built-in support for LVM1 metadata. */
|
|
#define LVM1_INTERNAL 1
|
|
|
|
/* Define to 1 to include built-in support for mirrors. */
|
|
#define MIRRORED_INTERNAL 1
|
|
|
|
/* The path to 'modprobe', if available. */
|
|
#define MODPROBE_CMD "/sbin/ifconfig"
|
|
|
|
/* Define to 1 to enable O_DIRECT support. */
|
|
/* #undef O_DIRECT_SUPPORT */
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
#define PACKAGE_BUGREPORT ""
|
|
|
|
/* Define to the full name of this package. */
|
|
#define PACKAGE_NAME ""
|
|
|
|
/* Define to the full name and version of this package. */
|
|
#define PACKAGE_STRING ""
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
#define PACKAGE_TARNAME ""
|
|
|
|
/* Define to the version of this package. */
|
|
#define PACKAGE_VERSION ""
|
|
|
|
/* Define to 1 to include built-in support for GFS pool metadata. */
|
|
#define POOL_INTERNAL 1
|
|
|
|
/* Define to 1 to include the LVM readline shell. */
|
|
/* #undef READLINE_SUPPORT */
|
|
|
|
/* Define as the return type of signal handlers (`int' or `void'). */
|
|
#define RETSIGTYPE void
|
|
|
|
/* Define to the type of arg 1 for `select'. */
|
|
/* #undef SELECT_TYPE_ARG1 */
|
|
|
|
/* Define to the type of args 2, 3 and 4 for `select'. */
|
|
/* #undef SELECT_TYPE_ARG234 */
|
|
|
|
/* Define to the type of arg 5 for `select'. */
|
|
/* #undef SELECT_TYPE_ARG5 */
|
|
|
|
/* Define to 1 to include built-in support for snapshots. */
|
|
#define SNAPSHOT_INTERNAL 1
|
|
|
|
/* If using the C implementation of alloca, define if you know the
|
|
direction of stack growth for your system; otherwise it will be
|
|
automatically deduced at run-time.
|
|
STACK_DIRECTION > 0 => grows toward higher addresses
|
|
STACK_DIRECTION < 0 => grows toward lower addresses
|
|
STACK_DIRECTION = 0 => direction of growth unknown */
|
|
/* #undef STACK_DIRECTION */
|
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
|
#define STDC_HEADERS 1
|
|
|
|
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
|
#define TIME_WITH_SYS_TIME 1
|
|
|
|
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
|
|
/* #undef TM_IN_SYS_TIME */
|
|
|
|
/* Define to empty if `const' does not conform to ANSI C. */
|
|
/* #undef const */
|
|
|
|
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
|
calls it, or to nothing if 'inline' is not supported under any name. */
|
|
#ifndef __cplusplus
|
|
/* #undef inline */
|
|
#endif
|
|
|
|
/* Define to rpl_malloc if the replacement function should be used. */
|
|
/* #undef malloc */
|
|
|
|
/* Define to `int' if <sys/types.h> does not define. */
|
|
/* #undef mode_t */
|
|
|
|
/* Define to `long' if <sys/types.h> does not define. */
|
|
/* #undef off_t */
|
|
|
|
/* Define to `int' if <sys/types.h> does not define. */
|
|
/* #undef pid_t */
|
|
|
|
/* Define to `unsigned' if <sys/types.h> does not define. */
|
|
/* #undef size_t */
|
|
|
|
/* Define as `fork' if `vfork' does not work. */
|
|
/* #undef vfork */
|