lustre_user.h

来自「lustre 1.6.5 source code」· C头文件 代码 · 共 60 行

H
60
字号
/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*- * vim:expandtab:shiftwidth=8:tabstop=8: * *   This file is part of Lustre, http://www.lustre.org * * Lustre public user-space interface definitions. */#ifndef _LINUX_LUSTRE_USER_H#define _LINUX_LUSTRE_USER_H#ifdef HAVE_ASM_TYPES_H#include <asm/types.h>#else#include <lustre/types.h>#endif#ifndef __KERNEL__# define NEED_QUOTA_DEFS# ifdef HAVE_QUOTA_SUPPORT#  include <sys/quota.h># endif#else# include <linux/version.h># if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,21)#  define NEED_QUOTA_DEFS# endif# ifdef HAVE_QUOTA_SUPPORT#  include <linux/quota.h># endif#endif/* * asm-x86_64/processor.h on some SLES 9 distros seems to use * kernel-only typedefs.  fortunately skipping it altogether is ok * (for now). */#define __ASM_X86_64_PROCESSOR_H#ifdef __KERNEL__#include <linux/string.h>#else#include <string.h>#include <sys/stat.h>#endif#if defined(__x86_64__) || defined(__ia64__) || defined(__ppc64__) || \    defined(__craynv) || defined (__mips64__)typedef struct stat     lstat_t;#define lstat_f         lstat#define HAVE_LOV_USER_MDS_DATA#elif defined(__USE_LARGEFILE64) || defined(__KERNEL__)typedef struct stat64   lstat_t;#define lstat_f         lstat64#define HAVE_LOV_USER_MDS_DATA#endif#endif /* _LUSTRE_USER_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?