-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbackend_unix.h
98 lines (91 loc) · 2.59 KB
/
backend_unix.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
* UNFS3 low-level filesystem calls for Unix
* (C) 2004, Pascal Schmidt
* see file LICENSE for license details
*/
#ifndef UNFS3_BACKEND_UNIX_H
#define UNFS3_BACKEND_UNIX_H
/*
* backend init and shutdown
*/
#define backend_init() 1
#define backend_shutdown() do { } while (0)
/*
* unfs3 functions
*/
#define backend_get_gen get_gen
#define backend_mksocket mksocket
#define backend_locate_file locate_file
/*
* system calls
*/
#define backend_chmod chmod
#define backend_chown chown
#define backend_close close
#define backend_closedir closedir
#define backend_fchmod fchmod
#define backend_fchown fchown
#define backend_fstat fstat
#define backend_fsync fsync
#define backend_ftruncate ftruncate
#define backend_getegid getegid
#define backend_geteuid geteuid
#define backend_getgid getgid
#define backend_getuid getuid
#define backend_link link
#define backend_lseek lseek
#define backend_lstat lstat
#define backend_mkdir mkdir
#define backend_mkfifo mkfifo
#define backend_mknod mknod
#define backend_open open
#define backend_open_create open
#define backend_opendir opendir
#define backend_pread pread
#define backend_pwrite pwrite
#define backend_readdir readdir
#define backend_readlink readlink
#define backend_realpath realpath
#define backend_remove remove
#define backend_rename rename
#define backend_rmdir rmdir
#define backend_setegid setegid
#define backend_seteuid seteuid
#define backend_setgroups setgroups
#define backend_stat stat
#define backend_statvfs statvfs
#define backend_symlink symlink
#define backend_truncate truncate
#define backend_utime utime
#define backend_statstruct struct stat
#define backend_dirstream DIR
#define backend_statvfsstruct struct statvfs
#define backend_fsinfo_properties FSF3_LINK | FSF3_SYMLINK | FSF3_HOMOGENEOUS | FSF3_CANSETTIME;
#define backend_time_delta_seconds 1
#define backend_pathconf_case_insensitive FALSE
#define backend_passwdstruct struct passwd
#define backend_getpwnam getpwnam
#define backend_gen_nonce gen_nonce
#define backend_flock flock
#define backend_getpid getpid
#define backend_store_create_verifier store_create_verifier
#define backend_check_create_verifier check_create_verifier
#if HAVE_LCHOWN == 1
#define backend_lchown lchown
#else
#define backend_lchown chown
#endif
#ifdef AFS_SUPPORT
# undef backend_get_gen
# define backend_get_gen afs_get_gen
# undef backend_stat
# define backend_stat afs_stat
# undef backend_fstat
# define backend_fstat afs_fstat
# undef backend_lstat
# define backend_lstat afs_lstat
# undef backend_statstruct
# define backend_statstruct struct stat_plus_afs
# include "afssupport.h"
#endif
#endif