Made C++ safe.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5075 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-10-17 14:42:45 +00:00
parent bd77051dc3
commit 50ba16fccf
4 changed files with 36 additions and 2 deletions
+9 -2
View File
@@ -9,13 +9,16 @@
#include <lock.h>
#include <memheap.h>
#include <sys/stat.h>
//#include <list.h>
#ifdef __cplusplus
extern "C" {
#endif
struct select_sync;
struct fd_ops {
ssize_t (*fd_read) (struct file_descriptor *, off_t pos, void *buffer, size_t *length);
ssize_t (*fd_read)(struct file_descriptor *, off_t pos, void *buffer, size_t *length);
ssize_t (*fd_write)(struct file_descriptor *, off_t pos, const void *buffer, size_t *length);
off_t (*fd_seek)(struct file_descriptor *, off_t pos, int seekType);
status_t (*fd_ioctl)(struct file_descriptor *, ulong op, void *buffer, size_t length);
@@ -84,4 +87,8 @@ get_current_io_context(bool kernel)
return (struct io_context *)thread_get_current_thread()->team->io_context;
}
#ifdef __cplusplus
}
#endif
#endif /* _FD_H */