Ricky, thanks for the prompt reply. I went ahead and made flag defs compliant with my arm gcc tool chain. Necessary changes are all in uffs.h and affect open() flags and lseek() flags:
#include <fcntl.h>
...
#define UO_RDONLY O_RDONLY /** read only */
#define UO_WRONLY O_WRONLY /** write only */
#define UO_RDWR O_RDWR /** read and write */
#define UO_APPEND O_APPEND /** append */
#define UO_BINARY 0x10000 /** no used in uffs */
#define UO_CREATE O_CREAT
#define UO_TRUNC O_TRUNC
#define UO_EXCL O_EXCL
#define UO_NOECC 0x100000 /** skip ECC when reading file data from media */
#define UO_DIR 0x200000 /** open a directory */
...
#define _SEEK_CUR SEEK_CUR /** seek from current position */
#define _SEEK_SET SEEK_SET /** seek from beginning of file */
#define _SEEK_END SEEK_END /** seek from end of file */
Error (errno) defs are also non-compliant too but I did not get a chance to fix these yet.
Regards,
Sergei