2
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3
Copyright (C) 2005- The University of Notre Dame
4
This software is distributed under the GNU General Public License.
5
See the file COPYING for details.
11
#include "int_sizes.h"
14
#include <sys/types.h>
15
#include <sys/socket.h>
20
#define PFS_PATH_MAX 1024
21
#define PFS_LINE_MAX 1024
22
#define PFS_ARG_MAX 1024
24
typedef INT64_T pfs_ssize_t;
25
typedef INT64_T pfs_size_t;
26
typedef INT64_T pfs_off_t;
39
#if !defined(st_atime)
44
struct timespec st_atim;
45
struct timespec st_mtim;
46
struct timespec st_ctim;
64
#define COPY_STAT( a, b )\
65
memset(&(b),0,sizeof(b));\
66
(b).st_dev = (a).st_dev;\
67
(b).st_ino = (a).st_ino;\
68
(b).st_mode = (a).st_mode;\
69
(b).st_nlink = (a).st_nlink;\
70
(b).st_uid = (a).st_uid;\
71
(b).st_gid = (a).st_gid;\
72
(b).st_rdev = (a).st_rdev;\
73
(b).st_size = (a).st_size;\
74
(b).st_blksize = (a).st_blksize;\
75
(b).st_blocks = (a).st_blocks;\
76
(b).st_atime = (a).st_atime;\
77
(b).st_mtime = (a).st_mtime;\
78
(b).st_ctime = (a).st_ctime;
82
#define COPY_CSTAT( a, b )\
83
memset(&(b),0,sizeof(b));\
84
(b).st_dev = (a).cst_dev;\
85
(b).st_ino = (a).cst_ino;\
86
(b).st_mode = (a).cst_mode;\
87
(b).st_nlink = (a).cst_nlink;\
88
(b).st_uid = pfs_uid;\
89
(b).st_gid = pfs_gid;\
90
(b).st_rdev = (a).cst_rdev;\
91
(b).st_size = (a).cst_size;\
92
(b).st_blksize = (a).cst_blksize;\
93
(b).st_blocks = (a).cst_blocks;\
94
(b).st_atime = (a).cst_atime;\
95
(b).st_mtime = (a).cst_mtime;\
96
(b).st_ctime = (a).cst_ctime;
100
#define COPY_STATFS( a, b )\
101
memset(&(b),0,sizeof(b));\
102
(b).f_type = (a).f_type;\
103
(b).f_blocks = (a).f_blocks;\
104
(b).f_bavail = (a).f_bavail;\
105
(b).f_bsize = (a).f_bsize;\
106
(b).f_bfree = (a).f_bfree;\
107
(b).f_files = (a).f_files;\
108
(b).f_ffree = (a).f_ffree;