00001
00008
00009
00010
00011
00012 #ifndef __L4VFS_INCLUDE_BASIC_IO_H_
00013 #define __L4VFS_INCLUDE_BASIC_IO_H_
00014
00015 #include <l4/sys/compiler.h>
00016 #include <l4/l4vfs/types.h>
00017 #include <l4/l4vfs/common_io.h>
00018 #include <l4/l4vfs/basic_io-client.h>
00019
00020 #include <dirent.h>
00021
00022 EXTERN_C_BEGIN
00023
00024 object_handle_t l4vfs_open(l4_threadid_t server,
00025 object_id_t object_id,
00026 l4_int32_t flags);
00027
00028 object_handle_t l4vfs_creat(l4_threadid_t server,
00029 object_id_t parent,
00030 const char* name,
00031 l4_int32_t flags,
00032 mode_t mode);
00033
00034 off_t l4vfs_lseek(l4_threadid_t server,
00035 object_handle_t fd,
00036 off_t offset,
00037 l4_int32_t whence);
00038
00039 l4_int32_t l4vfs_fsync(l4_threadid_t server,
00040 object_handle_t fd);
00041
00042 l4_int32_t l4vfs_getdents(l4_threadid_t server,
00043 object_handle_t fd,
00044 l4vfs_dirent_t *dirp,
00045 l4_uint32_t count);
00046
00047 l4_int32_t l4vfs_stat(l4_threadid_t server,
00048 object_id_t object_id,
00049 l4vfs_stat_t * buf);
00050
00051 l4_int32_t l4vfs_access(l4_threadid_t server,
00052 object_id_t object_id,
00053 l4_int32_t mode);
00054
00055 l4_int32_t l4vfs_unlink(l4_threadid_t server,
00056 object_id_t object_id);
00057
00058 EXTERN_C_END
00059
00060 #endif