kopia lustrzana https://github.com/meshtastic/firmware
Make STM32 compile again
rodzic
d663d44647
commit
5fad198335
|
@ -1057,12 +1057,6 @@ int lfs_dir_seek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off)
|
|||
return 0;
|
||||
}
|
||||
|
||||
lfs_soff_t lfs_dir_tell(lfs_t *lfs, lfs_dir_t const *dir)
|
||||
{
|
||||
(void)lfs;
|
||||
return dir->pos;
|
||||
}
|
||||
|
||||
int lfs_dir_rewind(lfs_t *lfs, lfs_dir_t *dir)
|
||||
{
|
||||
// reload the head dir
|
||||
|
@ -1676,7 +1670,7 @@ lfs_ssize_t lfs_file_write(lfs_t *lfs, lfs_file_t *file, const void *buffer, lfs
|
|||
return size;
|
||||
}
|
||||
|
||||
lfs_soff_t lfs_file_seek(lfs_t *lfs, lfs_file_t *file, lfs_soff_t off, int whence)
|
||||
lfs_off_t lfs_file_seek(lfs_t *lfs, lfs_file_t *file, lfs_off_t off, int whence)
|
||||
{
|
||||
// write out everything beforehand, may be noop if rdonly
|
||||
int err = lfs_file_flush(lfs, file);
|
||||
|
@ -1755,7 +1749,7 @@ int lfs_file_truncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size)
|
|||
return 0;
|
||||
}
|
||||
|
||||
lfs_soff_t lfs_file_tell(lfs_t *lfs, lfs_file_t const *file)
|
||||
lfs_off_t lfs_file_tell(lfs_t *lfs, lfs_file_t const *file)
|
||||
{
|
||||
(void)lfs;
|
||||
return file->pos;
|
||||
|
|
|
@ -378,7 +378,7 @@ lfs_ssize_t lfs_file_write(lfs_t *lfs, lfs_file_t *file, const void *buffer, lfs
|
|||
//
|
||||
// The change in position is determined by the offset and whence flag.
|
||||
// Returns the old position of the file, or a negative error code on failure.
|
||||
lfs_soff_t lfs_file_seek(lfs_t *lfs, lfs_file_t *file, lfs_soff_t off, int whence);
|
||||
lfs_off_t lfs_file_seek(lfs_t *lfs, lfs_file_t *file, lfs_off_t off, int whence);
|
||||
|
||||
// Truncates the size of the file to the specified size
|
||||
//
|
||||
|
@ -389,7 +389,7 @@ int lfs_file_truncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size);
|
|||
//
|
||||
// Equivalent to lfs_file_seek(lfs, file, 0, LFS_SEEK_CUR)
|
||||
// Returns the position of the file, or a negative error code on failure.
|
||||
lfs_soff_t lfs_file_tell(lfs_t *lfs, lfs_file_t *file);
|
||||
lfs_off_t lfs_file_tell(lfs_t *lfs, lfs_file_t const *file);
|
||||
|
||||
// Change the position of the file to the beginning of the file
|
||||
//
|
||||
|
@ -436,14 +436,6 @@ int lfs_dir_read(lfs_t *lfs, lfs_dir_t *dir, struct lfs_info *info);
|
|||
// Returns a negative error code on failure.
|
||||
int lfs_dir_seek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off);
|
||||
|
||||
// Return the position of the directory
|
||||
//
|
||||
// The returned offset is only meant to be consumed by seek and may not make
|
||||
// sense, but does indicate the current position in the directory iteration.
|
||||
//
|
||||
// Returns the position of the directory, or a negative error code on failure.
|
||||
lfs_soff_t lfs_dir_tell(lfs_t *lfs, lfs_dir_t *dir);
|
||||
|
||||
// Change the position of the directory to the beginning of the directory
|
||||
//
|
||||
// Returns a negative error code on failure.
|
||||
|
|
Ładowanie…
Reference in New Issue