haiku/headers/os/kernel/fs_index.h
Axel Dörfler 146a3000ee Added syscalls for the index functions.
Corrected the prototype for fs_rewind_index_dir() (don't copy and paste...)
Also checked in the syscall definitions for the signal stuff to save Angelo
some work.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 18:52:04 +00:00

42 lines
903 B
C

/* fs_index.h
**
** functions/definitions for file system indices.
** Distributed under the terms of the OpenBeOS License.
*/
#ifndef _FS_INDEX_H
#define _FS_INDEX_H
#include <OS.h>
#include <dirent.h>
typedef struct index_info {
uint32 type;
off_t size;
time_t modification_time;
time_t creation_time;
uid_t uid;
gid_t gid;
} index_info;
#ifdef __cplusplus
extern "C" {
#endif
extern int fs_create_index(dev_t device, const char *name, uint32 type, uint32 flags);
extern int fs_remove_index(dev_t device, const char *name);
extern int fs_stat_index(dev_t device, const char *name, struct index_info *indexInfo);
extern DIR *fs_open_index_dir(dev_t device);
extern int fs_close_index_dir(DIR *indexDirectory);
extern struct dirent *fs_read_index_dir(DIR *indexDirectory);
extern void fs_rewind_index_dir(DIR *indexDirectory);
#ifdef __cplusplus
}
#endif
#endif /* _FS_INDEX_H */