Implemented bfs_setflags().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3367 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-05-28 01:56:24 +00:00
parent a13beecdee
commit a9aa5ee181
2 changed files with 9 additions and 4 deletions

View File

@ -66,7 +66,7 @@ Volume
kernel_interface
- missing functions, maybe they are not really needed: bfs_rename_attr(), bfs_rename_index(), bfs_initialize(), bfs_setflags(), bfs_link()
- missing functions, maybe they are not really needed: bfs_rename_attr(), bfs_rename_index(), bfs_initialize(), bfs_link()
- bfs_rename() currently doesn't respect any permissions

View File

@ -692,13 +692,18 @@ bfs_ioctl(void *_ns, void *_node, void *_cookie, int cmd, void *buffer, size_t b
}
/** Sets the open-mode flags for the open file cookie - only
* supports O_APPEND currently, but that should be sufficient
* for a file system.
*/
int
bfs_setflags(void *ns, void *node, void *cookie, int flags)
bfs_setflags(void *_ns, void *_node, void *_cookie, int flags)
{
FUNCTION_START(("node = %p, flags = %d", node, flags));
// ToDo: implement bfs_setflags()!
INFORM(("setflags not yet implemented...\n"));
file_cookie *cookie = (file_cookie *)_cookie;
cookie->open_mode = (cookie->open_mode & ~O_APPEND) | (flags & O_APPEND);
return B_OK;
}