summaryrefslogtreecommitdiff
path: root/firmware/common (follow)
Commit message (Collapse)AuthorAge
...
* Fix a dircache NULL-pointer dereference.Amaury Pouly2010-02-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24835 a1c6a512-1295-4272-9138-f99709370657
* Fix error handling in dircache generation.Amaury Pouly2010-02-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24730 a1c6a512-1295-4272-9138-f99709370657
* -Cosmetic change in a comparisonAmaury Pouly2010-02-16
| | | | | | | | -Move fat_dir structure out of dircache stack to RAM. Reduce dircache stack size (max level depth should stay be around 20). This should fix nano2g dircache stkov of FS#10679 -Change the structure returned by readdir_cached to match the one returned by readdir_uncached: remove useless fields to save space and avoid any potential incoherence -Remove one field from the internal structure used by {opend,read,close}dir_cached because it was mostly redundant. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24708 a1c6a512-1295-4272-9138-f99709370657
* Rewrite dircache generation to take advantage for the FAT code. Reduce RAM ↵Amaury Pouly2010-02-14
| | | | | | usage by ~30Kb and binsize by at least several hundreds bytes. Also remove the directory depth limit of dircache. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24657 a1c6a512-1295-4272-9138-f99709370657
* Remove a file that mcuelenaere forgot to delete (see r23763 and r23767).Amaury Pouly2010-02-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24543 a1c6a512-1295-4272-9138-f99709370657
* Optimize (size and speed) strncasecmp (based on a newlib patch).Amaury Pouly2010-02-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24542 a1c6a512-1295-4272-9138-f99709370657
* Various dircache improvements: reduce size of a path buffer to MAX_PATH and ↵Amaury Pouly2010-02-01
| | | | | | rewrote copy_path to improve stack usage. Also simplified get_entry. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24445 a1c6a512-1295-4272-9138-f99709370657
* Fix a dircache bug (opening a directory opens the first file of that ↵Amaury Pouly2010-01-31
| | | | | | directory). Also clarify the behaviour of dircache_get_entry. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24420 a1c6a512-1295-4272-9138-f99709370657
* Final removal of tabs in firmware pathAndree Buschmann2010-01-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24158 a1c6a512-1295-4272-9138-f99709370657
* Add strlcat to core to match strlcpy (also add to plugin api). Some uses of ↵Torne Wuff2010-01-02
| | | | | | strcat could probably do with being changed to this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24141 a1c6a512-1295-4272-9138-f99709370657
* FS#9409: fix rename which didn't close file handles on error and enventually ↵Amaury Pouly2010-01-01
| | | | | | cause cut/paste to fail between volumes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24134 a1c6a512-1295-4272-9138-f99709370657
* Make read() and write() return -1/EISDIR on directoriesFrank Gevaerts2009-12-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24106 a1c6a512-1295-4272-9138-f99709370657
* only get the file pointer if fd is actually valid.Frank Gevaerts2009-12-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24105 a1c6a512-1295-4272-9138-f99709370657
* Move strip_volume() to filefuncs.c and set properties.Maurus Cuelenaere2009-11-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23767 a1c6a512-1295-4272-9138-f99709370657
* Forgot fileMaurus Cuelenaere2009-11-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23763 a1c6a512-1295-4272-9138-f99709370657
* - Split off strip_volume() to a separate fileMaurus Cuelenaere2009-11-26
| | | | | | - fix some yellows git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23762 a1c6a512-1295-4272-9138-f99709370657
* Merge branch 'hotswap'Maurus Cuelenaere2009-11-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23759 a1c6a512-1295-4272-9138-f99709370657
* Rename vfnprintf to vuprintf (u stands for user for the user callback and ↵Thomas Martitz2009-11-03
| | | | | | data passed to it) to avoid confusion with file and buffer size related functions from the printf-family, and add a comment to its declaration. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23503 a1c6a512-1295-4272-9138-f99709370657
* Little bit of const correctnessNils Wallménius2009-10-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23343 a1c6a512-1295-4272-9138-f99709370657
* Use wrap-safe TIME_BEFORE/TIME_AFTER macros to compare times with ↵Bertrik Sikken2009-10-18
| | | | | | current_time, instead of comparing them directly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23246 a1c6a512-1295-4272-9138-f99709370657
* Patch #1 from FS#10633 (Nano 2G developments) by Michael Sparmann - Allows ↵Dave Chapman2009-10-02
| | | | | | targets to set a different sector size than 512 for the storage system. Should not affect any other target. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22874 a1c6a512-1295-4272-9138-f99709370657
* FS#10569 RTC driver cleanupNils Wallménius2009-09-26
| | | | | | | | Change the RTC drivers so that the rtc_(read|write)_datetime functions now deal directly with the tm struct instead of passing a string of bcd digits to/from (set|get)_time . This simplifies drivers for rtc's that do not use a bcd representation internally and cleans up some target specific code and #ifdefs in generic code. Implement simple stubs for the sim to avoid #ifdefing for that too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22839 a1c6a512-1295-4272-9138-f99709370657
* A new implementation of logf, logfdisplay and logfdump.Maurus Cuelenaere2009-08-21
| | | | | | | | Flyspray: FS#10528 Author: Amaury Pouly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22462 a1c6a512-1295-4272-9138-f99709370657
* Remove dead codeAlexander Levin2009-08-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22268 a1c6a512-1295-4272-9138-f99709370657
* Change the function name in strnatsort so that the code doesn't contradict ↵Alexander Levin2009-08-12
| | | | | | itself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22267 a1c6a512-1295-4272-9138-f99709370657
* Move yearday_to_daymonth() to usb_storage.c. It's the only user, this ↵Frank Gevaerts2009-08-11
| | | | | | function is pretty specific, and it seems to be the cleanest way to avoid ram usage increases for unrelated targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22259 a1c6a512-1295-4272-9138-f99709370657
* Consolidate day of week calculationFrank Gevaerts2009-08-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22258 a1c6a512-1295-4272-9138-f99709370657
* rework new time handling functions a bit to be more memory efficientFrank Gevaerts2009-08-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22257 a1c6a512-1295-4272-9138-f99709370657
* Add support for setting the clock using a special SCSI command. This is the ↵Frank Gevaerts2009-08-11
| | | | | | | | | | | same method that itunes uses, and there are host-side tools for it (e.g. libgpod) Flyspray: FS#10514 Author: Laurent Papier and myself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22255 a1c6a512-1295-4272-9138-f99709370657
* Fix for:Thomas Martitz2009-08-04
| | | | | | | | | | FS#10031 - "improper sorting of names with underscores when Interpret numbers when sorting is used" and FS#10200 - "Incorrect sorting of roman numerals when whole numbers selected" a) By using tolower instead of toupper for case-insensitive sorting b) By not ignoring spaces (which isn't really what we aimed for anyway). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22153 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#9545, storage cleanup and multi-driver supportFrank Gevaerts2009-07-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21933 a1c6a512-1295-4272-9138-f99709370657
* FS#10080Nils Wallménius2009-07-14
| | | | | | | | | | * Move strncpy() from core to the pluginlib * Introduce strlcpy() and use that instead in most places (use memcpy in a few) in core and some plugins * Drop strncpy() from the codec api as no codec used it * Bump codec and plugin api versions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21863 a1c6a512-1295-4272-9138-f99709370657
* Fix yellow introduced in r21561Alexander Levin2009-06-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21563 a1c6a512-1295-4272-9138-f99709370657
* Make the get_time on non-RTC sims behave like target, i.e. always return a ↵Alexander Levin2009-06-29
| | | | | | constant time (FS#10390) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21561 a1c6a512-1295-4272-9138-f99709370657
* Add missing #includes for the ondas.Bertrik Sikken2009-03-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20457 a1c6a512-1295-4272-9138-f99709370657
* Update the comment about our changes too.Thomas Martitz2009-03-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20341 a1c6a512-1295-4272-9138-f99709370657
* Restore behavior of the original implementation strnatcmp to not ignore ↵Thomas Martitz2009-03-17
| | | | | | leading zeros. Fixes FS#10029 (Files being sorted incorrectly in latest builds), leads to better sorting of decimal numbers. It also doesn't sort 2 before 03 (but still before 10) anymore. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20340 a1c6a512-1295-4272-9138-f99709370657
* Make strnatcmp() and strnatcasecmp() call strcmp() or strcasecmp() if ↵Frank Gevaerts2009-03-09
| | | | | | strings otherwise sort the same. This is done to make sure that strings always sort the same. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20265 a1c6a512-1295-4272-9138-f99709370657
* Make sure that sorting works both for signed and unsigned char (it depends ↵Alexander Levin2009-03-02
| | | | | | on the platform/compiler used) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20183 a1c6a512-1295-4272-9138-f99709370657
* Make natural sorting work properly with cyrillic chars: they should be ↵Alexander Levin2009-03-02
| | | | | | placed after the latin ones (FS#9975). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20180 a1c6a512-1295-4272-9138-f99709370657
* Actually apply the patch...thanks again to Bryan Vandyke (and Tom Ross for ↵Thomas Martitz2009-03-02
| | | | | | notifying me about my commit-fail). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20167 a1c6a512-1295-4272-9138-f99709370657
* FS#9972 - Simplify strnatcmp. As we do ignore leading zeros (as opposed to ↵Thomas Martitz2009-03-02
| | | | | | | | the original version), we can remove some unused code. Also, change the header to state that we changed it and do not use the original version. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20166 a1c6a512-1295-4272-9138-f99709370657
* Fix some memset calls that use the wrong order for arguments.Tom Ross2009-03-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20165 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#8314. This adds strnat[case]cmp written by Martin Pool, which ↵Thomas Martitz2009-03-01
| | | | | | | | | | respects numbers within strings, and gives a more intuitive sorting. This also adds a setting, so that the sorting can be used in the file browser. The implementation is very generic, and can possibly be used in other places. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20155 a1c6a512-1295-4272-9138-f99709370657
* Onda VX747:Maurus Cuelenaere2009-02-13
| | | | | | | | | | | | | * Add preliminary keymap * Split up generic MIPS stuff from Ingenic specific * Make apps/ compilable * Add SD driver * Fix RTC driver * Add debug screen * Other cleanups/rewrites/fixes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19993 a1c6a512-1295-4272-9138-f99709370657
* Moved database builder into a separate directory, and gave it its' own ↵Björn Stenberg2008-12-15
| | | | | | Makefile. Now it compiles cleanly and builds a database if ran in root of music tree. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19448 a1c6a512-1295-4272-9138-f99709370657
* Cleaned up codepage handling, by Yoshihisa Uchida. (FS#9349)Björn Stenberg2008-12-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19339 a1c6a512-1295-4272-9138-f99709370657
* Added support for configurable rockbox directory. FS#9567 by Alex Bennee.Björn Stenberg2008-11-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19208 a1c6a512-1295-4272-9138-f99709370657
* Fix a small bug in %x when padding is being addedKarl Kurbjun2008-11-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19092 a1c6a512-1295-4272-9138-f99709370657
* drive might be used uninitialized, prevent thatRafaël Carré2008-11-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19042 a1c6a512-1295-4272-9138-f99709370657