summaryrefslogtreecommitdiff
path: root/firmware/common/file.c (follow)
Commit message (Collapse)AuthorAge
* prepared to mount multiple partitions into one logical file system (most ↵Jörg Hohensohn2004-12-28
| | | | | | useful for Ondio, internal memory + external MMC) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5514 a1c6a512-1295-4272-9138-f99709370657
* Bug fix: Do only flush the sector buffer after writing head bytes if it ↵Jens Arnold2004-11-17
| | | | | | really needs to be. The old code did flush always, causing the huge slowdown of fprintf() and other places writing byte-wise git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5413 a1c6a512-1295-4272-9138-f99709370657
* void* can't be offset, gcc should not allows thisJörg Hohensohn2004-10-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5147 a1c6a512-1295-4272-9138-f99709370657
* Bug fix: open() now handles O_TRUNC correctly (this was the real cause for ↵Jens Arnold2004-09-06
| | | | | | the .playlist_control corruption) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5048 a1c6a512-1295-4272-9138-f99709370657
* Bug fix: renaming a directory could cause a name clash. New feature: ↵Linus Nielsen Feltzing2004-08-22
| | | | | | rename() can now move files/directories as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5008 a1c6a512-1295-4272-9138-f99709370657
* The pathname argument for open() is declared const, so copy it has to be copiedJens Arnold2004-07-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4894 a1c6a512-1295-4272-9138-f99709370657
* No need to call fat_truncate() to delete the file, fat_remove() frees all ↵Linus Nielsen Feltzing2004-04-16
| | | | | | clusters anyway git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4508 a1c6a512-1295-4272-9138-f99709370657
* You can't open() a directory as a file (at least not for writing)Linus Nielsen Feltzing2004-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4359 a1c6a512-1295-4272-9138-f99709370657
* Empty file/dir names are now rejected by open() and mkdir()Linus Nielsen Feltzing2004-02-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4303 a1c6a512-1295-4272-9138-f99709370657
* my take at fixing the simulator warnings by adding mode_t, size_t, ssize_tDaniel Stenberg2003-12-08
| | | | | | | and off_t git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4116 a1c6a512-1295-4272-9138-f99709370657
* Added dynamic playlists. ON+PLAY->Playlist on a track, directory, or ↵Hardeep Sidhu2003-07-01
| | | | | | playlist from file browser to see available options. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3796 a1c6a512-1295-4272-9138-f99709370657
* Renamed flush() to fsync() to be more in line with POSIX/unixBjörn Stenberg2003-06-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3766 a1c6a512-1295-4272-9138-f99709370657
* Slightly better handling of disk-full situationsLinus Nielsen Feltzing2003-06-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3756 a1c6a512-1295-4272-9138-f99709370657
* Update fileoffset and cacheoffset on error.Björn Stenberg2003-04-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3556 a1c6a512-1295-4272-9138-f99709370657
* Added the filesize() functionLinus Nielsen Feltzing2003-03-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3473 a1c6a512-1295-4272-9138-f99709370657
* Previous change broke read after seek. Reverted that change and added ↵Hardeep Sidhu2003-03-15
| | | | | | temporary fix in flush_cache to make sure we are on correct sector before writing to disk. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3448 a1c6a512-1295-4272-9138-f99709370657
* Make sure we are on correct sector after lseek. This fixes the queue file ↵Hardeep Sidhu2003-03-14
| | | | | | corruption bug. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3443 a1c6a512-1295-4272-9138-f99709370657
* flush_cache() failure should still return error.Björn Stenberg2003-03-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3433 a1c6a512-1295-4272-9138-f99709370657
* Bug fix: If head bytes were read but sector read failed, return head byte ↵Björn Stenberg2003-03-12
| | | | | | count instead of error. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3432 a1c6a512-1295-4272-9138-f99709370657
* Killed compiling error on debug buildsLinus Nielsen Feltzing2003-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3425 a1c6a512-1295-4272-9138-f99709370657
* Killed a warningLinus Nielsen Feltzing2003-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3423 a1c6a512-1295-4272-9138-f99709370657
* Zagor added the flush() functionLinus Nielsen Feltzing2003-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3416 a1c6a512-1295-4272-9138-f99709370657
* rename() didn't close the file if the target name exists, and didn't return ↵Linus Nielsen Feltzing2003-02-26
| | | | | | | | | a negative error code Enhanced the return codes to make it easier to track panics. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3340 a1c6a512-1295-4272-9138-f99709370657
* Lame debug outputLinus Nielsen Feltzing2003-02-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3322 a1c6a512-1295-4272-9138-f99709370657
* Directories can now be renamed too.Björn Stenberg2003-01-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3167 a1c6a512-1295-4272-9138-f99709370657
* Remove use of rockbox-mode.el in local variables list.Mats Lidell2003-01-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3157 a1c6a512-1295-4272-9138-f99709370657
* Use flush_cache() when writing headbytes to disk to make sure we are on the ↵Hardeep Sidhu2002-12-19
| | | | | | correct sector. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3023 a1c6a512-1295-4272-9138-f99709370657
* Added rename()Björn Stenberg2002-11-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2857 a1c6a512-1295-4272-9138-f99709370657
* Flush sector cache before truncating.Björn Stenberg2002-11-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2849 a1c6a512-1295-4272-9138-f99709370657
* creat() now includes the O_TRUNC flag.Björn Stenberg2002-11-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2846 a1c6a512-1295-4272-9138-f99709370657
* Cosmetic: Replaced dozens of openfiles[fd] with 'file' pointers.Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2831 a1c6a512-1295-4272-9138-f99709370657
* Bugfix: Flags work better when they're binary...Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2830 a1c6a512-1295-4272-9138-f99709370657
* Added support for O_CREAT, O_APPEND and O_TRUNC.Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2828 a1c6a512-1295-4272-9138-f99709370657
* Added ftruncate().Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2827 a1c6a512-1295-4272-9138-f99709370657
* Added support for O_RDWR and lseek() while writing.Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2826 a1c6a512-1295-4272-9138-f99709370657
* Bug fix for previous commit: write() always returned 0 on even sector writes.Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2822 a1c6a512-1295-4272-9138-f99709370657
* close() now does not truncate the file.Björn Stenberg2002-11-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2821 a1c6a512-1295-4272-9138-f99709370657
* Corrected return value check.Björn Stenberg2002-11-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2807 a1c6a512-1295-4272-9138-f99709370657
* Bugfix: lseek() did not invalidate sector cache when seeking to start of file.Björn Stenberg2002-11-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2803 a1c6a512-1295-4272-9138-f99709370657
* Added remove()Björn Stenberg2002-11-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2801 a1c6a512-1295-4272-9138-f99709370657
* Fixed lseek().Björn Stenberg2002-10-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2796 a1c6a512-1295-4272-9138-f99709370657
* More graceful handling when running out of space.Björn Stenberg2002-10-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2793 a1c6a512-1295-4272-9138-f99709370657
* Fat32 write updates: Nixed some bugs. Basic file creation now works. Todo: ↵Björn Stenberg2002-10-22
| | | | | | Long filenames and extensive test cases. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2742 a1c6a512-1295-4272-9138-f99709370657
* removed use of uninitialized variableDaniel Stenberg2002-10-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2727 a1c6a512-1295-4272-9138-f99709370657
* Snapshot of file writing code. Bugs remain. Only short names are supported yet.Björn Stenberg2002-10-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2726 a1c6a512-1295-4272-9138-f99709370657
* Make close() check for a valid fd and set errno accordingly.Heikki Hannikainen2002-08-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1965 a1c6a512-1295-4272-9138-f99709370657
* when we want to open a file, we want the exact specified file name, notDaniel Stenberg2002-08-22
| | | | | | | just one that starts with our given string... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1929 a1c6a512-1295-4272-9138-f99709370657
* lseek: Adjust cacheoffset if cache is usedBjörn Stenberg2002-06-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1199 a1c6a512-1295-4272-9138-f99709370657
* 1 byte reads past a sector boundary failedLinus Nielsen Feltzing2002-06-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1138 a1c6a512-1295-4272-9138-f99709370657
* lseek() bug: It would claim cached sector even if that was not the caseBjörn Stenberg2002-06-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1095 a1c6a512-1295-4272-9138-f99709370657