1/* 2 * Copyright (c) 2012, 2011, ETH Zurich. 3 * All rights reserved. 4 * 5 * This file is distributed under the terms in the attached LICENSE file. 6 * If you do not find this file, copies can be found by writing to: 7 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. 8 */ 9 10#ifndef VFS_FD_H 11#define VFS_FD_H 12 13#include <sys/cdefs.h> /* for __BEGIN_DECLS, __END_DECLS */ 14#include <sys/types.h> /* for off_t */ 15 16__BEGIN_DECLS 17 18int vfsfd_open(const char *pathname, int flags); 19int vfsfd_read(int fd, void *buf, size_t len); 20int vfsfd_write(int fd, const void *buf, size_t len); 21int vfsfd_close(int fd); 22off_t vfsfd_lseek(int fd, off_t off, int whence); 23 24__END_DECLS 25 26#endif /* VFS_FD_H */ 27