summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3d95d54)
* Move \a fd file seek position of \a offset bytes
* from current position.
*/
* Move \a fd file seek position of \a offset bytes
* from current position.
*/
-static int32_t flash_avr_seek(struct _KFile *fd, int32_t offset, KSeekMode whence)
+static int32_t flash_avr_seek(struct _KFile *fd, kfile_off_t offset, KSeekMode whence)
* Move \a fd file seek position of \a offset bytes
* from current position.
*/
* Move \a fd file seek position of \a offset bytes
* from current position.
*/
-static int32_t dataflash_seek(struct _KFile *fd, int32_t offset, KSeekMode whence)
+static int32_t dataflash_seek(struct _KFile *fd, kfile_off_t offset, KSeekMode whence)
/* fwd decl */
struct _KFile;
/* fwd decl */
struct _KFile;
+typedef int32_t kfile_off_t;
+
/**
* Costants for repositioning read/write file offset.
* These are needed because on some embedded platforms
/**
* Costants for repositioning read/write file offset.
* These are needed because on some embedded platforms
typedef size_t (*ReadFunc_t) (struct _KFile *fd, void *buf, size_t size);
typedef size_t (*WriteFunc_t) (struct _KFile *fd, const void *buf, size_t size);
typedef size_t (*ReadFunc_t) (struct _KFile *fd, void *buf, size_t size);
typedef size_t (*WriteFunc_t) (struct _KFile *fd, const void *buf, size_t size);
-typedef int32_t (*SeekFunc_t) (struct _KFile *fd, int32_t offset, KSeekMode whence);
+typedef int32_t (*SeekFunc_t) (struct _KFile *fd, kfile_off_t offset, KSeekMode whence);
typedef bool (*OpenFunc_t) (struct _KFile *fd, const char *name, int mode);
typedef bool (*CloseFunc_t) (struct _KFile *fd);
typedef bool (*OpenFunc_t) (struct _KFile *fd, const char *name, int mode);
typedef bool (*CloseFunc_t) (struct _KFile *fd);