Changeset 04803bf in mainline for uspace/lib/c/include/ipc/vfs.h
- Timestamp:
- 2011-03-21T22:00:17Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 143932e3
- Parents:
- b50b5af2 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/ipc/vfs.h
rb50b5af2 r04803bf 36 36 #define LIBC_IPC_VFS_H_ 37 37 38 #include <ipc/common.h> 38 39 #include <sys/types.h> 39 #include < ipc/ipc.h>40 #include <bool.h> 40 41 41 42 #define FS_NAME_MAXLEN 20 … … 55 56 /** Unique identifier of the fs. */ 56 57 char name[FS_NAME_MAXLEN + 1]; 58 bool concurrent_read_write; 59 bool write_retains_size; 57 60 } vfs_info_t; 58 61 … … 73 76 VFS_IN_UNLINK, 74 77 VFS_IN_RENAME, 75 VFS_IN_STAT 78 VFS_IN_STAT, 79 VFS_IN_DUP 76 80 } vfs_in_request_t; 77 81 … … 85 89 VFS_OUT_MOUNTED, 86 90 VFS_OUT_UNMOUNT, 91 VFS_OUT_UNMOUNTED, 87 92 VFS_OUT_SYNC, 88 93 VFS_OUT_STAT, … … 99 104 * No lookup flags used. 100 105 */ 101 #define L_NONE 106 #define L_NONE 0 102 107 103 108 /** … … 106 111 * with L_DIRECTORY. 107 112 */ 108 #define L_FILE 113 #define L_FILE 1 109 114 110 115 /** 111 * Lookup wil succeed only if the object is a directory. If L_CREATE is116 * Lookup will succeed only if the object is a directory. If L_CREATE is 112 117 * specified, an empty directory will be created. This flag is mutually 113 118 * exclusive with L_FILE. 114 119 */ 115 #define L_DIRECTORY 2 120 #define L_DIRECTORY 2 121 122 /** 123 * Lookup will succeed only if the object is a root directory. The flag is 124 * mutually exclusive with L_FILE and L_MP. 125 */ 126 #define L_ROOT 4 127 128 /** 129 * Lookup will succeed only if the object is a mount point. The flag is mutually 130 * exclusive with L_FILE and L_ROOT. 131 */ 132 #define L_MP 8 133 116 134 117 135 /** … … 119 137 * object already exists. L_EXCLUSIVE is implied when L_DIRECTORY is used. 120 138 */ 121 #define L_EXCLUSIVE 4139 #define L_EXCLUSIVE 16 122 140 123 141 /** 124 142 * L_CREATE is used for creating both regular files and directories. 125 143 */ 126 #define L_CREATE 8144 #define L_CREATE 32 127 145 128 146 /** 129 147 * L_LINK is used for linking to an already existing nodes. 130 148 */ 131 #define L_LINK 16149 #define L_LINK 64 132 150 133 151 /** … … 136 154 * VFS_UNLINK. 137 155 */ 138 #define L_UNLINK 32156 #define L_UNLINK 128 139 157 140 158 /** 141 * L_OPEN is used to indicate that the lookup operation is a part of VFS_ OPEN159 * L_OPEN is used to indicate that the lookup operation is a part of VFS_IN_OPEN 142 160 * call from the client. This means that the server might allocate some 143 161 * resources for the opened file. This flag cannot be passed directly by the 144 162 * client. 145 163 */ 146 #define L_OPEN 64164 #define L_OPEN 256 147 165 148 166 #endif
Note:
See TracChangeset
for help on using the changeset viewer.