Back to index

avfs  1.0.1
operutil.h
Go to the documentation of this file.
00001 /*
00002     AVFS: A Virtual File System Library
00003     Copyright (C) 1998-2001  Miklos Szeredi <miklos@szeredi.hu>
00004 
00005     This program can be distributed under the terms of the GNU GPL.
00006     See the file COPYING.
00007 */
00008 #include "avfs.h"
00009 
00010 int av_file_open(vfile *vf, ventry *ve, int flags, avmode_t mode);
00011 int av_file_close(vfile *vf);
00012 avssize_t av_file_read(vfile *vf, char *buf, avsize_t nbyte);
00013 avssize_t av_file_pread(vfile *vf, char *buf, avsize_t nbyte, avoff_t offset);
00014 avssize_t av_file_write(vfile *vf, const char *buf, avsize_t nbyte);
00015 avssize_t av_file_pwrite(vfile *vf, const char *buf, avsize_t nbyte,
00016                          avoff_t offset);
00017 int av_file_truncate(vfile *vf, avoff_t length);
00018 int av_file_getattr(vfile *vf, struct avstat *buf, int attrmask);
00019 int av_file_setattr(vfile *vf, struct avstat *buf, int attrmask);
00020 avoff_t av_file_lseek(vfile *vf, avoff_t offset, int whence);
00021 int av_open(ventry *ve, int flags, avmode_t mode, vfile **resp);
00022 int av_close(vfile *vf);
00023 
00024 int av_fd_open_entry(ventry *ve, int flags, avmode_t mode);
00025 int av_fd_open(const char *path, int flags, avmode_t mode);
00026 int av_fd_close(int fd);
00027 avssize_t av_fd_read(int fd, void *buf, avsize_t nbyte);
00028 avssize_t av_fd_write(int fd, const char *buf, avsize_t nbyte);
00029 avoff_t av_fd_lseek(int fd, avoff_t offset, int whence);
00030 int av_fd_readdir(int fd, struct avdirent *buf, avoff_t *posp);
00031 int av_fd_getattr(int fd, struct avstat *buf, int attrmask);
00032 int av_fd_setattr(int fd, struct avstat *buf, int attrmask);
00033 int av_fd_truncate(int fd, avoff_t length);