X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffsfs.h;h=b96411f0f599f77fc046132a43acd1828020d7f4;hp=8a6a8b85f0aadc3b530f4cc0a5b6cf3da412a15e;hb=HEAD;hpb=bfde38bff96a421dcb73ffbb8b9b69f3f6500677 diff --git a/direct/yaffsfs.h b/direct/yaffsfs.h index 8a6a8b8..b96411f 100644 --- a/direct/yaffsfs.h +++ b/direct/yaffsfs.h @@ -1,8 +1,7 @@ /* * YAFFS: Yet another Flash File System . A NAND-flash specific file system. * - * Copyright (C) 2002-2011 Aleph One Ltd. - * for Toby Churchill Ltd and Brightstar Engineering + * Copyright (C) 2002-2018 Aleph One Ltd. * * Created by Charles Manning * @@ -70,16 +69,16 @@ struct yaffs_stat { unsigned long yst_wince_mtime[2]; unsigned long yst_wince_ctime[2]; #else - unsigned long yst_atime; /* time of last access */ - unsigned long yst_mtime; /* time of last modification */ - unsigned long yst_ctime; /* time of last change */ + YTIME_T yst_atime; /* time of last access */ + YTIME_T yst_mtime; /* time of last modification */ + YTIME_T yst_ctime; /* time of last change */ #endif }; struct yaffs_utimbuf { - unsigned long actime; - unsigned long modtime; + YTIME_T actime; + YTIME_T modtime; }; /* Normal POSIX-style API functions */ @@ -95,6 +94,8 @@ int yaffs_access(const YCHAR *path, int amode); int yaffs_dup(int fd); +int yaffs_fgetfl(int fd, int *flags); + int yaffs_read(int fd, void *buf, unsigned int nbyte) ; int yaffs_write(int fd, const void *buf, unsigned int nbyte) ;