Whamcloud - gitweb
support for sles10 kernel in lustre.
[fs/lustre-release.git] / lustre / include / darwin / lustre_user.h
1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2  * vim:expandtab:shiftwidth=8:tabstop=8:
3  *
4  *   This file is part of Lustre, http://www.lustre.org
5  *
6  * Lustre public user-space interface definitions.
7  */
8
9 #ifndef _DARWIN_LUSTRE_USER_H
10 #define _DARWIN_LUSTRE_USER_H
11
12 #include <lustre/types.h>
13
14 #ifndef __KERNEL__
15 /* for llmount */
16 # define _GNU_SOURCE
17 # include <getopt.h>
18 # include <sys/utsname.h>
19 # include <sys/stat.h>
20 # include <errno.h>
21 # include <sys/mount.h>
22 # include <sys/fcntl.h>
23 # include <sys/ioccom.h>
24 # include <sys/wait.h>
25 # include <string.h>
26 #endif
27
28 typedef struct stat     lstat_t;
29 #define HAVE_LOV_USER_MDS_DATA
30
31 #ifndef LPU64
32 #if (BITS_PER_LONG == 32 || __WORDSIZE == 32)
33 # define LPU64 "%llu"
34 # define LPD64 "%lld"
35 # define LPX64 "%#llx"
36 # define LPSZ  "%u"
37 # define LPSSZ "%d"
38 #elif (BITS_PER_LONG == 64 || __WORDSIZE == 64)
39 # define LPU64 "%lu"
40 # define LPD64 "%ld"
41 # define LPX64 "%#lx"
42 # define LPSZ  "%lu"
43 # define LPSSZ "%ld"
44 #endif
45 #endif /* !LPU64 */
46
47 #endif /* _LUSTRE_USER_H */