X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=blobdiff_plain;f=src%2Fglobal.h;h=9dec9d49dd82dae907b25820b513f41436861817;hp=2227ff0435841581c049ac6c577312bec641bf32;hb=836ed899ae22aef23380327762007ed4684fd4ff;hpb=3ef12e382456faea5ff49d4261685d377f4fcab7 diff --git a/src/global.h b/src/global.h index 2227ff04..9dec9d49 100644 --- a/src/global.h +++ b/src/global.h @@ -1,51 +1,186 @@ /* - * Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2 of the GNU General Public License as + * Copyright (c) 2000-2003 Silicon Graphics, Inc. + * All Rights Reserved. + * + * 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. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * Further, this software is distributed without any warranty that it is - * free of the rightful claim of any third person regarding infringement - * or the like. Any license provided herein, whether implied or - * otherwise, applies only to this software file. Patent licenses, if - * any, provided herein do not apply to combinations of this program with - * other software, or any other product whatsoever. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston MA 02111-1307, USA. - * - * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, - * Mountain View, CA 94043, or: - * - * http://www.sgi.com - * - * For further information regarding this notice, see: - * - * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/ + * + * This program is distributed in the hope that it would 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 the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef GLOBAL_H #define GLOBAL_H -/* xfs-specific includes */ +#include -#include -#include +#ifdef HAVE_XFS_XFS_H +#include +#endif + +#ifdef HAVE_XFS_LIBXFS_H +#include +#endif + +#ifdef HAVE_XFS_JDM_H +#include +#endif -/* libc includes */ +#ifdef HAVE_ATTR_ATTRIBUTES_H +#include +#endif + +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_STAT_H #include +#endif + +#ifdef HAVE_SYS_STATVFS_H #include +#endif + +#ifdef HAVE_SYS_TIME_H #include +#endif + +#ifdef HAVE_SYS_IOCTL_H #include +#endif + +#ifdef HAVE_SYS_WAIT_H #include +#endif + +#ifdef HAVE_MALLOC_H #include +#endif + +#ifdef HAVE_DIRENT_H #include +#endif + +#ifdef HAVE_STDLIB_H +#include +#endif + +#ifdef HAVE_UNISTD_H +#include +#endif + +#ifdef HAVE_ERRNO_H +#include +#endif + +#ifdef HAVE_STRING_H +#include +#endif + +#ifdef HAVE_SYS_FCNTL_H +#include +#endif + +#ifdef HAVE_TIME_H +#include +#endif + +#ifdef HAVE_WAIT_H +#include +#endif + +#ifdef HAVE_DIRENT_H +#include +#endif +#ifdef HAVE_SYS_PARAM_H +#include #endif + +#ifdef HAVE_SYS_ATTRIBUTES_H +#include +#endif + +#ifdef HAVE_LIBGEN_H +#include +#endif + +#ifdef HAVE_ASSERT_H +#include +#endif + +#ifdef STDC_HEADERS +#include +#include +#endif + +#ifdef HAVE_STRINGS_H +#include +#endif + +#ifdef HAVE_SYS_SYSSGI_H +#include +#endif + +#ifdef HAVE_SYS_UUID_H +#include +#endif + +#ifdef HAVE_SYS_FS_XFS_FSOPS_H +#include +#endif + +#ifdef HAVE_SYS_FS_XFS_ITABLE_H +#include +#endif + +#ifdef HAVE_BSTRING_H +#include +#endif + +#ifdef HAVE_SYS_PARAM_H +#include +#endif + +#ifdef HAVE_LINUX_FALLOC_H +#include + +#ifndef FALLOC_FL_KEEP_SIZE +#define FALLOC_FL_KEEP_SIZE 0x01 +#endif + +#ifndef FALLOC_FL_PUNCH_HOLE +#define FALLOC_FL_PUNCH_HOLE 0x02 +#endif + +#ifndef FALLOC_FL_NO_HIDE_STALE +#define FALLOC_FL_NO_HIDE_STALE 0x04 +#endif + +#ifndef FALLOC_FL_COLLAPSE_RANGE +#define FALLOC_FL_COLLAPSE_RANGE 0x08 +#endif + +#ifndef FALLOC_FL_ZERO_RANGE +#define FALLOC_FL_ZERO_RANGE 0x10 +#endif + +#ifndef FALLOC_FL_INSERT_RANGE +#define FALLOC_FL_INSERT_RANGE 0x20 +#endif + +#endif /* HAVE_LINUX_FALLOC_H */ + +#ifdef HAVE_SYS_MMAN_H +#include +#endif + +#endif /* GLOBAL_H */