2 ******************************************************************************
5 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2014.
10 * @brief PiOS stdio posix file functions
11 *****************************************************************************/
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 3 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, write to the Free Software Foundation, Inc.,
25 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 #define pios_open(path, oflag, mode) yaffs_open(path, oflag, mode)
33 #define pios_close(fd) yaffs_close(fd)
34 #define pios_fsync(fd) yaffs_fsync(fd)
35 #define pios_flush(fd) yaffs_flush(fd)
36 #define pios_read(fd, buf, nbyte) yaffs_read(fd, buf, nbyte)
37 #define pios_write(fd, buf, nbyte) yaffs_write(fd, buf, nbyte)
38 #define pios_fdatasync(fd) yaffs_fdatasync(fd)
39 #define pios_access(path, amode) yaffs_access(path, amode)
40 #define pios_dup(fd) yaffs_dup(fd)
41 #define pios_pread(fd, buf, nbyte, offset) yaffs_pread(fd, buf, nbyte, offset)
42 #define pios_pwrite(fd, buf, nbyte, offset) yaffs_pwrite(fd, buf, nbyte, offset)
43 #define pios_lseek(fd, offset, whence) yaffs_lseek(fd, offset, whence)
44 #define pios_truncate(path, new_size) yaffs_truncate(path, new_size)
45 #define pios_ftruncate(fd, new_size) yaffs_ftruncate(fd, new_size)
46 #define pios_unlink(path) yaffs_unlink(path)
47 #define pios_rename(oldPath, newPath) yaffs_rename(oldPath, newPath)
48 #define pios_stat(path, buf) yaffs_stat(path, buf)
49 #define pios_lstat(path, buf) yaffs_lstat(path, buf)
50 #define pios_fstat(fd, buf) yaffs_fstat(fd, buf)
51 #define pios_utime(path, buf) yaffs_utime(path, buf)
52 #define pios_futime(fd, buf) yaffs_futime(fd, buf)
53 #define pios_setxattr(path, name, data, size, flags) yaffs_setxattr(path, name, data, size, flags)
54 #define pios_lsetxattr(path, name, data, size, flags) yaffs_lsetxattr(path, name, data, size, flags)
55 #define pios_fsetxattr(fd, name, data, size, flags) yaffs_fsetxattr(path, name, data, size, flags)
57 #define pios_getxattr(path, name, data, size) yaffs_getxattr(path, name, data, size)
58 #define pios_lgetxattr(path, name, data, size) yaffs_lgetxattr(path, name, data, size)
59 #define pios_fgetxattr(fd, name, data, size) yaffs_fgetxattr(fd, name, data, size)
60 #define pios_removexattr(path, name) yaffs_removexattr(path, name)
61 #define pios_lremoveattr(path, name) yaffs_lremovexattr(path, name)
62 #define pios_fremovexattr(fd, name) yaffs_fremovexattr(fd, name)
63 #define pios_listxattr(path, list, size) yaffs_listxattr(path, list, size)
64 #define pios_llistxattr(path, list, size) yaffs_llistxattr(path, list, size)
65 #define pios_flistxattr(fd, list, size) yaffs_flistxattr(fd, list, size)
66 #define pios_chmod(path, mode) yaffs_chmod(path, mode)
67 #define pios_fchmod(fd, mode) yaffs_fchmod(fd, mode)
68 #define pios_mkdir(path, mode) yaffs_mkdir(path, mode)
69 #define pios_rmdir(path) yaffs_rmdir(path)
70 #define pios_opendir(dirname) yaffs_opendir(dirname)
71 #define pios_readdir(dirp) yaffs_readdir(dirp)
72 #define pios_rewinddir(dirp) yaffs_rewinddir(dirp)
73 #define pios_closedir(dirp) yaffs_closedir(dirp)
74 #define pios_mount(path) yaffs_mount(path)
75 #define pios_mount2(path, read_only) yaffs_mount2(path, read_only)
76 #define pios_mount3(path, read_only, skip_checkpt) yaffs_mount3(path, read_only, skip_checkpt)
77 #define pios_umount(path) yaffs_unmount(path)
78 #define pios_umount2(path, force) yaffs_unmount2(path, force)
79 #define pios_remount(path, force, read_only) yaffs_remount(path, force, read_only)
80 #define pios_format(path, unmount_flag, force_unmount_flag, remount_flag) yaffs_format(path, unmount_flag, force_unmount_flag, remount_flag)
81 #define pios_sync(path) yaffs_sync(path)
82 #define pios_symlink(oldpath, newpath) yaffs_symlink(oldpath, newpath)
83 #define pios_readlink(path, buf, bufsize) yaffs_readlink(path, buf, bufsiz)
84 #define pios_link(oldpath, newpath) yaffs_link(oldpath, newpath)
85 #define pios_mknod(pathname, mode, dev) yaffs_mknod(pathname, mode, dev)
86 #define pios_freespace(path) yaffs_freespace(path)
87 #define pios_totalspace(path) yaffs_totalspace(path)
89 #define pios_DIR yaffs_DIR
90 #define pios_dirent yaffs_dirent
93 #endif /* PIOS_STDIO_H */