Updated to current Haiku version

This commit is contained in:
Ingo Weinhold
2011-11-25 06:17:32 +01:00
parent d9516a06cc
commit dff6f3c1ca
+14 -11
View File
@@ -1,7 +1,7 @@
/* File System attributes /*
** * Copyright 2002-2009, Haiku Inc. All Rights Reserved.
** Distributed under the terms of the OpenBeOS License. * Distributed under the terms of the MIT License.
*/ */
#ifndef _FS_ATTR_H #ifndef _FS_ATTR_H
#define _FS_ATTR_H #define _FS_ATTR_H
@@ -20,15 +20,18 @@ typedef struct attr_info {
extern "C" { extern "C" {
#endif #endif
extern ssize_t fs_read_attr(int fd, const char *attribute, uint32 type, off_t pos, void *buffer, size_t readBytes); extern ssize_t fs_read_attr(int fd, const char *attribute, uint32 type,
extern ssize_t fs_write_attr(int fd, const char *attribute, uint32 type, off_t pos, const void *buffer, size_t readBytes); off_t pos, void *buffer, size_t readBytes);
extern ssize_t fs_write_attr(int fd, const char *attribute, uint32 type,
off_t pos, const void *buffer, size_t readBytes);
extern int fs_remove_attr(int fd, const char *attribute); extern int fs_remove_attr(int fd, const char *attribute);
extern int fs_stat_attr(int fd, const char *attribute, struct attr_info *attrInfo); extern int fs_stat_attr(int fd, const char *attribute,
struct attr_info *attrInfo);
// ToDo: the following three functions are not part of the R5 API, and extern int fs_open_attr(const char *path, const char *attribute,
// are only preliminary - they may change or be removed at any point uint32 type, int openMode);
//extern int fs_open_attr(const char *path, const char *attribute, uint32 type, int openMode); extern int fs_fopen_attr(int fd, const char *attribute, uint32 type,
extern int fs_open_attr(int fd, const char *attribute, uint32 type, int openMode); int openMode);
extern int fs_close_attr(int fd); extern int fs_close_attr(int fd);
extern DIR *fs_open_attr_dir(const char *path); extern DIR *fs_open_attr_dir(const char *path);