Thom Johansen
374647f478
Fix stupid mistake.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8787 a1c6a512-1295-4272-9138-f99709370657
2006-02-22 19:34:42 +00:00
Thom Johansen
ff493e081f
Commit correct file this time.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8786 a1c6a512-1295-4272-9138-f99709370657
2006-02-22 19:03:20 +00:00
Thom Johansen
e94d262795
ARM optimised memset from Linux.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8785 a1c6a512-1295-4272-9138-f99709370657
2006-02-22 18:52:08 +00:00
Jens Arnold
eb65f89f0e
Added memset16() for filling memory regions with 16 bit values, needed for upcoming 16 bit LCD driver opts. ASM optimised for coldfire.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8773 a1c6a512-1295-4272-9138-f99709370657
2006-02-22 01:20:45 +00:00
Jens Arnold
d036e97d38
Added memmove() to the rockbox core. C implementation taken from newlib. Fully optimised ASM implementations for SH1 and coldfire, reusing the AMS memcpy code path for forward copying.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8601 a1c6a512-1295-4272-9138-f99709370657
2006-02-06 16:00:58 +00:00
Tomasz Malesinski
91f08b5a24
Made %n not eat white space.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8557 a1c6a512-1295-4272-9138-f99709370657
2006-02-03 23:39:12 +00:00
Miika Pekkarinen
de281db7e7
Now dircache should work on players requiring long aligned memory
...
accesses.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8502 a1c6a512-1295-4272-9138-f99709370657
2006-01-31 10:08:53 +00:00
Tomasz Malesinski
e8e0b241bd
Simple sscanf implementation
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8444 a1c6a512-1295-4272-9138-f99709370657
2006-01-25 01:35:04 +00:00
Jens Arnold
c05cd1676f
Better random number generator: Mersenne twiser with improved initialisation. BSD-style license.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8396 a1c6a512-1295-4272-9138-f99709370657
2006-01-20 01:21:26 +00:00
Jens Arnold
a601fb8d19
More compact & straight-forward headbytes handling.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8255 a1c6a512-1295-4272-9138-f99709370657
2005-12-17 12:17:11 +00:00
Miika Pekkarinen
a6a0c4b2d5
Now the file corruption bug when reading & writing the same file is
...
hopefully fully fixed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8251 a1c6a512-1295-4272-9138-f99709370657
2005-12-16 20:44:41 +00:00
Miika Pekkarinen
d9dcb0fbcf
Fixed a file system driver caching bug corrupting files on certain situations
...
(when reading and writing the same file).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8231 a1c6a512-1295-4272-9138-f99709370657
2005-12-13 16:11:00 +00:00
Dave Chapman
790b365595
Reworking of Archos RTC code to create a (slightly) more abstract RTC api
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8216 a1c6a512-1295-4272-9138-f99709370657
2005-12-11 00:47:40 +00:00
Marcoen Hirschberg
46b726eaab
several small fixes sugested by different people (FireFly, Lear, Takka)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8184 a1c6a512-1295-4272-9138-f99709370657
2005-12-07 08:37:14 +00:00
Marcoen Hirschberg
f9752c408d
move some code from .h files to .c files and polish unicode.c a bit
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8174 a1c6a512-1295-4272-9138-f99709370657
2005-12-06 15:04:48 +00:00
Marcoen Hirschberg
b0fee17d6e
waiting is over: initial unicode commit
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8169 a1c6a512-1295-4272-9138-f99709370657
2005-12-06 13:27:15 +00:00
Dave Chapman
8c800cf59a
Replace references to HAVE_RTC with CONFIG_RTC and remove the HAVE_RTC defines from config-*.h
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8147 a1c6a512-1295-4272-9138-f99709370657
2005-12-04 15:23:47 +00:00
Miika Pekkarinen
29e04eff05
More comments to the dircache functions and a debug menu entry to
...
determine how long the disk scanning took.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8072 a1c6a512-1295-4272-9138-f99709370657
2005-11-26 20:47:10 +00:00
Miika Pekkarinen
8f280a30f3
Debug menu entry for the dircache.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8071 a1c6a512-1295-4272-9138-f99709370657
2005-11-26 20:22:19 +00:00
Daniel Stenberg
1a29cfb23e
Initial gcc4 warning cleanup (and some minor policing)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8063 a1c6a512-1295-4272-9138-f99709370657
2005-11-25 00:10:12 +00:00
Miika Pekkarinen
10f2f89d0f
Fixed an empty directory problem with dircache when renaming files.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7966 a1c6a512-1295-4272-9138-f99709370657
2005-11-18 19:28:22 +00:00
Miika Pekkarinen
735f453730
Added dircache support to playlist. Now playlist filename pointers are
...
automatically accuired from dircache. WPS UI response with dircache
enabled should be instant.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7931 a1c6a512-1295-4272-9138-f99709370657
2005-11-17 19:31:29 +00:00
Jens Arnold
83d3dcfd88
Coldfire: Assembler optimised memcpy(), 2.4x...10x (avg. 6.8x) as fast as the C version when copying large blocks within SDRAM.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7835 a1c6a512-1295-4272-9138-f99709370657
2005-11-12 23:42:47 +00:00
Jens Arnold
d8ad74de74
SH1 memcpy(): Slightly changed loop concept: saved 4 bytes, and the long+1 case is now as fast as the long+3 case.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7696 a1c6a512-1295-4272-9138-f99709370657
2005-10-31 01:10:27 +00:00
Jens Arnold
c082bc42a2
Further optimised SH1 memcpy(): Lower latency for very small blocks, faster large block copying for odd destination alignment (+27% for long+1, +33% for long+3).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7690 a1c6a512-1295-4272-9138-f99709370657
2005-10-30 20:48:52 +00:00
Jens Arnold
aaf36caeb6
Coldfire: slight optimisations of memset().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7649 a1c6a512-1295-4272-9138-f99709370657
2005-10-22 08:06:49 +00:00
Miika Pekkarinen
4b2aa9830e
Now correctly interrupting the dircache rebuilding.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7645 a1c6a512-1295-4272-9138-f99709370657
2005-10-20 08:33:59 +00:00
Miika Pekkarinen
20bc58dc9a
Do not try to read from dircache if directory was opened when cache was not
...
available.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7602 a1c6a512-1295-4272-9138-f99709370657
2005-10-09 07:32:23 +00:00
Miika Pekkarinen
b76e8c09fa
Fixed a problem with dircache where filetree modified dircache
...
structures directly. Moved #ifdef directly to SOURCES instead of
dircache.c to decide whether to compile the cache or not.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7599 a1c6a512-1295-4272-9138-f99709370657
2005-10-08 18:41:11 +00:00
Miika Pekkarinen
ab78b04680
Implemented directory caching. No more waiting for disk to spin up while
...
browsing when cache is enabled (system -> disk -> enable directory
cache). Cache building on boot is transparent except the first boot.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7588 a1c6a512-1295-4272-9138-f99709370657
2005-10-07 17:38:05 +00:00
Linus Nielsen Feltzing
073f83ada3
Correct usage of ICODE_ATTR in memcpy.c and strlen.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7328 a1c6a512-1295-4272-9138-f99709370657
2005-08-15 05:33:10 +00:00
Christian Gmeiner
c6ff1f5eb5
Added CPU_COLDFIRE define - one step closer to iAudio-port
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7186 a1c6a512-1295-4272-9138-f99709370657
2005-07-18 12:40:29 +00:00
Daniel Stenberg
db4fb95585
make the ctype array unsigned so that bit 7 (octal 0200) can be set and
...
used properly without warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7120 a1c6a512-1295-4272-9138-f99709370657
2005-07-12 11:06:38 +00:00
Linus Nielsen Feltzing
eaf8b2d76d
Patch #1232549 by Ryan Jackson, adds seeking and comments to Vorbis playback
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7025 a1c6a512-1295-4272-9138-f99709370657
2005-07-05 08:43:36 +00:00
Jens Arnold
292b77b097
Coldfire: slight memset() optimisation.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6799 a1c6a512-1295-4272-9138-f99709370657
2005-06-22 07:44:21 +00:00
Jens Arnold
8caf175c7f
memset() on coldfire now exploits burst mode whenever possible, giving another speed increase of up to 2.4 times for large blocks. Added a slight optimisation for small blocks as well.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6790 a1c6a512-1295-4272-9138-f99709370657
2005-06-21 18:15:35 +00:00
Jens Arnold
ac0bc83777
Assembler optimised memset() for coldfire. Speed increase ranging from a few percent (small blocks) to 4 times (large unaligned blocks). Slight optimisation for SH1 as well.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6789 a1c6a512-1295-4272-9138-f99709370657
2005-06-21 13:25:18 +00:00
Jens Arnold
91c46c818a
Slightly more optimised memset() for SH1. Especially faster for 4 < length < 12.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6594 a1c6a512-1295-4272-9138-f99709370657
2005-06-07 17:27:47 +00:00
Jens Arnold
fe1ce9d842
Hotswap: Better placement for switching the MMC monitor off/on.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6480 a1c6a512-1295-4272-9138-f99709370657
2005-05-16 15:21:09 +00:00
Jean-Philippe Bernardy
a83214d16f
couple of fixes for 16 bits archs
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6073 a1c6a512-1295-4272-9138-f99709370657
2005-02-27 20:44:26 +00:00
Jean-Philippe Bernardy
fc19445ba0
more long policy
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6065 a1c6a512-1295-4272-9138-f99709370657
2005-02-25 18:50:16 +00:00
Daniel Stenberg
22b7701fe7
Build cleanup and general fixes. fprintf() is now fdprintf(), the separation
...
between uisimulator files and firmware/apps files are better done.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6031 a1c6a512-1295-4272-9138-f99709370657
2005-02-22 12:19:12 +00:00
Daniel Stenberg
cdde25b597
Unified build system to use SOURCES for sim builds too, a single Makefile-look
...
made by configure and various related adjustments. This has not yet been tested
on cygwin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6001 a1c6a512-1295-4272-9138-f99709370657
2005-02-18 13:47:17 +00:00
Jean-Philippe Bernardy
effb196053
random longness fixes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5950 a1c6a512-1295-4272-9138-f99709370657
2005-02-15 13:28:39 +00:00
Jean-Philippe Bernardy
a161ef490f
long policy
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5946 a1c6a512-1295-4272-9138-f99709370657
2005-02-15 11:13:00 +00:00
Jörg Hohensohn
dc7534bdb2
preparations for hotswapping MMC
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5701 a1c6a512-1295-4272-9138-f99709370657
2005-01-28 21:32:16 +00:00
Björn Stenberg
6660f8e910
Added ID3 searching
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5683 a1c6a512-1295-4272-9138-f99709370657
2005-01-27 22:21:08 +00:00
Jens Arnold
81d4b8c492
TABs removed
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5645 a1c6a512-1295-4272-9138-f99709370657
2005-01-24 00:56:39 +00:00
Jean-Philippe Bernardy
cea551dd9c
int -> long where needed
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5643 a1c6a512-1295-4272-9138-f99709370657
2005-01-23 23:29:35 +00:00
Jean-Philippe Bernardy
fc0372b209
Support for %l* plus __attribute__ printf support
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5641 a1c6a512-1295-4272-9138-f99709370657
2005-01-23 23:08:07 +00:00
Jens Arnold
756e7404d8
Forgot to commit removal of string.c when reviving memcpy.c and memset.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5633 a1c6a512-1295-4272-9138-f99709370657
2005-01-22 22:06:29 +00:00
Jens Arnold
78826de045
Assembler optimized strlen() for SH1, both smaller & faster. Moved strlen() into IRAM.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5629 a1c6a512-1295-4272-9138-f99709370657
2005-01-22 13:18:33 +00:00
Jens Arnold
0310f16005
Revived C implementations of memcpy() and memset() for platforms without asm optimized versions (gmini), replacing the intermediate strings.c. Moved the asm optimized versions 'out of the way' for the implicit 'make' rules by renaming them to *_a.S (for assembler/alternative).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5628 a1c6a512-1295-4272-9138-f99709370657
2005-01-21 22:43:02 +00:00
Daniel Stenberg
39fb8f0705
Jean-Philippe Bernardy: C versions of memset() and memcpy() for archs with
...
no asm optimized versions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5550 a1c6a512-1295-4272-9138-f99709370657
2005-01-10 21:31:13 +00:00
Jörg Hohensohn
dcdffe828c
using a pointer instead of array dereferencing saves ~250 bytes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5529 a1c6a512-1295-4272-9138-f99709370657
2005-01-03 20:23:42 +00:00
Jörg Hohensohn
6dda40124d
volume names look better in sharp brackets, code slightly more compact
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5523 a1c6a512-1295-4272-9138-f99709370657
2005-01-01 14:27:28 +00:00
Jörg Hohensohn
1a5962f2be
Shared mounting code, also more general. It will mount multiple HD partitions, too, once HAVE_MULTIVOLUME is enabled.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5518 a1c6a512-1295-4272-9138-f99709370657
2004-12-29 22:10:24 +00:00
Jörg Hohensohn
da84857631
prepared to mount multiple partitions into one logical file system (most useful for Ondio, internal memory + external MMC)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5514 a1c6a512-1295-4272-9138-f99709370657
2004-12-28 22:16:07 +00:00
Jens Arnold
f78524bf93
Bug fix: Do only flush the sector buffer after writing head bytes if it 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
2004-11-17 02:34:17 +00:00
Linus Nielsen Feltzing
04c5ecb4ee
Wrong typing caused a very skewed random number distribution
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5385 a1c6a512-1295-4272-9138-f99709370657
2004-11-06 23:33:07 +00:00
Linus Nielsen Feltzing
ba809183a8
Ported to Coldfire
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5347 a1c6a512-1295-4272-9138-f99709370657
2004-10-26 05:40:24 +00:00
Jörg Hohensohn
85c91a3b8e
void* can't be offset, gcc should not allows this
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5147 a1c6a512-1295-4272-9138-f99709370657
2004-10-01 19:45:51 +00:00
Jens Arnold
8537e2d12a
Bug fix: open() now handles O_TRUNC correctly (this was the real cause for the .playlist_control corruption)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5048 a1c6a512-1295-4272-9138-f99709370657
2004-09-06 23:33:21 +00:00
Linus Nielsen Feltzing
e0e0140f4e
Bug fix: renaming a directory could cause a name clash. New feature: rename() can now move files/directories as well.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5008 a1c6a512-1295-4272-9138-f99709370657
2004-08-22 11:28:24 +00:00
Jens Arnold
0ceaa5e365
Const policed pointer arguments to functions, part 2
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4996 a1c6a512-1295-4272-9138-f99709370657
2004-08-17 01:45:48 +00:00
Jens Arnold
3a43231392
Fixed a warning when (experimentally) compiling with -Os
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4966 a1c6a512-1295-4272-9138-f99709370657
2004-07-27 19:51:05 +00:00
Jens Arnold
0258287e57
Made the char property lookup table constant
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4905 a1c6a512-1295-4272-9138-f99709370657
2004-07-20 22:32:17 +00:00
Jens Arnold
f68e13c5b4
The pathname argument for open() is declared const, so copy it has to be copied
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4894 a1c6a512-1295-4272-9138-f99709370657
2004-07-19 21:08:44 +00:00
Jörg Hohensohn
74eb64257a
infrastructure for sorting by date+time, now we "only" need to decide on the UI
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4778 a1c6a512-1295-4272-9138-f99709370657
2004-06-20 16:34:29 +00:00
Linus Nielsen Feltzing
7662f06e53
valid_time() now handles tm_wday correctly
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4555 a1c6a512-1295-4272-9138-f99709370657
2004-04-25 23:47:50 +00:00
Jens Arnold
4f7956c206
(v)snprintf() wrote past buffer end if string length was equal to buffer size
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4549 a1c6a512-1295-4272-9138-f99709370657
2004-04-22 21:19:33 +00:00
Linus Nielsen Feltzing
7ddf0d673d
Reworked the time get/set functions
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4522 a1c6a512-1295-4272-9138-f99709370657
2004-04-20 10:23:57 +00:00
Linus Nielsen Feltzing
18d5d30c1c
Better POSIX compatibility for mkdir(), rmdir() and opendir()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4521 a1c6a512-1295-4272-9138-f99709370657
2004-04-20 10:15:39 +00:00
Linus Nielsen Feltzing
bc9397d1fa
New function: rmdir(). Also some changes in the fat code, to track the parent directory in opendir(), to be able to delete directories
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4509 a1c6a512-1295-4272-9138-f99709370657
2004-04-16 08:58:29 +00:00
Linus Nielsen Feltzing
b8beff39e9
No need to call fat_truncate() to delete the file, fat_remove() frees all clusters anyway
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4508 a1c6a512-1295-4272-9138-f99709370657
2004-04-16 08:54:13 +00:00
Jörg Hohensohn
b61cf76aba
patch #917153 : faster memset()/memcpy()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4406 a1c6a512-1295-4272-9138-f99709370657
2004-03-18 22:06:36 +00:00
Linus Nielsen Feltzing
5c8e82e097
You can't open() a directory as a file (at least not for writing)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4359 a1c6a512-1295-4272-9138-f99709370657
2004-03-10 19:47:59 +00:00
Linus Nielsen Feltzing
05f1fc4654
Empty file/dir names are now rejected by open() and mkdir()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4303 a1c6a512-1295-4272-9138-f99709370657
2004-02-11 14:37:16 +00:00
Linus Nielsen Feltzing
ef7293f0bc
New feature: NOw you can store the recorded files in either /recordings (the directory will be created automatically) or in the current directory.
...
New feature: A "Create directory" menu option (untested in the simulator).
Bug fix: The ON+Play menu could do nasty things if you pressed ON+Play in an empty dir.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4268 a1c6a512-1295-4272-9138-f99709370657
2004-01-21 14:58:40 +00:00
Linus Nielsen Feltzing
54353e04b1
Second bug in mkdir() :-)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4241 a1c6a512-1295-4272-9138-f99709370657
2004-01-15 15:56:19 +00:00
Linus Nielsen Feltzing
ce1c93d628
First mkdir() bug killed :-)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4239 a1c6a512-1295-4272-9138-f99709370657
2004-01-15 14:34:54 +00:00
Linus Nielsen Feltzing
60b1c4bbe1
Implemented the mkdir() function in the FAT32 driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4238 a1c6a512-1295-4272-9138-f99709370657
2004-01-15 14:30:59 +00:00
Björn Stenberg
96147edb7d
Moved memset() out of .iram
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4170 a1c6a512-1295-4272-9138-f99709370657
2003-12-21 12:22:50 +00:00
Daniel Stenberg
ae960a9ece
my take at fixing the simulator warnings by adding mode_t, size_t, ssize_t
...
and off_t
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4116 a1c6a512-1295-4272-9138-f99709370657
2003-12-08 21:58:38 +00:00
Hardeep Sidhu
9e4262081b
Added dynamic playlists. ON+PLAY->Playlist on a track, directory, or playlist from file browser to see available options.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3796 a1c6a512-1295-4272-9138-f99709370657
2003-07-01 21:05:43 +00:00
Björn Stenberg
a4baacd3ec
Renamed flush() to fsync() to be more in line with POSIX/unix
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3766 a1c6a512-1295-4272-9138-f99709370657
2003-06-29 13:17:19 +00:00
Linus Nielsen Feltzing
c6db7870ef
Slightly better handling of disk-full situations
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3756 a1c6a512-1295-4272-9138-f99709370657
2003-06-19 12:08:22 +00:00
Linus Nielsen Feltzing
d9a2ef49d6
Fixed bad %x handling
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3695 a1c6a512-1295-4272-9138-f99709370657
2003-05-24 00:19:27 +00:00
Daniel Stenberg
2723531ff3
remove the ifdef for simulator
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3616 a1c6a512-1295-4272-9138-f99709370657
2003-04-25 13:35:31 +00:00
Daniel Stenberg
012d1f86cc
use size_t and not int as the prototype says so
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3614 a1c6a512-1295-4272-9138-f99709370657
2003-04-25 12:43:44 +00:00
Daniel Stenberg
ed155ccc39
include the sprintf.h header, basicly for simulator purposes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3612 a1c6a512-1295-4272-9138-f99709370657
2003-04-25 12:36:52 +00:00
Björn Stenberg
631b8d3bb8
Update fileoffset and cacheoffset on error.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3556 a1c6a512-1295-4272-9138-f99709370657
2003-04-15 08:07:50 +00:00
Linus Nielsen Feltzing
e98bad5b38
Added the filesize() function
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3473 a1c6a512-1295-4272-9138-f99709370657
2003-03-18 00:39:57 +00:00
Daniel Stenberg
73b427a743
kill warning
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3455 a1c6a512-1295-4272-9138-f99709370657
2003-03-16 22:35:30 +00:00
Daniel Stenberg
3f27f7d82c
only do the fprintf() if not doing a simulator, since this file is used
...
for the win32 simulator and the fprintf() of Rockbox differs slightly from
how the true POSIX one is (the first argument).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3452 a1c6a512-1295-4272-9138-f99709370657
2003-03-16 21:42:22 +00:00
Daniel Stenberg
758a2c823a
introducing fprintf():
...
int fprintf(int fd, const char *fmt, ...)
Returns number of bytes written to the file descriptor.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3450 a1c6a512-1295-4272-9138-f99709370657
2003-03-16 19:43:28 +00:00
Hardeep Sidhu
e5e9bc3e65
Previous change broke read after seek. Reverted that change and added 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
2003-03-15 21:13:35 +00:00
Hardeep Sidhu
67c1a0c63c
Make sure we are on correct sector after lseek. This fixes the queue file corruption bug.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3443 a1c6a512-1295-4272-9138-f99709370657
2003-03-14 15:39:50 +00:00
Björn Stenberg
3ca8d3589e
flush_cache() failure should still return error.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3433 a1c6a512-1295-4272-9138-f99709370657
2003-03-12 15:15:46 +00:00
Björn Stenberg
188be8ec57
Bug fix: If head bytes were read but sector read failed, return head byte count instead of error.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3432 a1c6a512-1295-4272-9138-f99709370657
2003-03-12 15:06:57 +00:00
Linus Nielsen Feltzing
5f12c8fbc7
Killed compiling error on debug builds
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3425 a1c6a512-1295-4272-9138-f99709370657
2003-03-10 21:55:59 +00:00
Linus Nielsen Feltzing
9cb9c821a0
Killed a warning
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3423 a1c6a512-1295-4272-9138-f99709370657
2003-03-10 20:49:18 +00:00
Linus Nielsen Feltzing
44e51833ed
Zagor added the flush() function
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3416 a1c6a512-1295-4272-9138-f99709370657
2003-03-10 17:10:46 +00:00
Linus Nielsen Feltzing
a077e271ee
rename() didn't close the file if the target name exists, and didn't return 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
2003-02-26 02:08:52 +00:00
Linus Nielsen Feltzing
490085aa7d
Lame debug output
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3322 a1c6a512-1295-4272-9138-f99709370657
2003-02-22 01:54:03 +00:00
Daniel Stenberg
cb2de174c1
more moves
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3221 a1c6a512-1295-4272-9138-f99709370657
2003-02-07 10:13:23 +00:00
Daniel Stenberg
70e59ede4e
not used, removed
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3218 a1c6a512-1295-4272-9138-f99709370657
2003-02-07 09:56:08 +00:00
Daniel Stenberg
bd654cdfbc
not used. removed
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3217 a1c6a512-1295-4272-9138-f99709370657
2003-02-07 09:52:31 +00:00
Björn Stenberg
b8f5759d96
tm_mon starts at 0
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3173 a1c6a512-1295-4272-9138-f99709370657
2003-01-27 14:43:32 +00:00
Björn Stenberg
cc11e885d1
Corrected get_time(). This should fix the bad file date bug. Also changed status.c to use get_time() instead of reading directly from RTC.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3170 a1c6a512-1295-4272-9138-f99709370657
2003-01-27 14:24:40 +00:00
Björn Stenberg
184fd55411
Directories can now be renamed too.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3167 a1c6a512-1295-4272-9138-f99709370657
2003-01-27 09:32:17 +00:00
Mats Lidell
74cc9e41fa
Remove use of rockbox-mode.el in local variables list.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3157 a1c6a512-1295-4272-9138-f99709370657
2003-01-24 10:56:06 +00:00
Hardeep Sidhu
85d8b85de9
Fixed win32 simulator warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3042 a1c6a512-1295-4272-9138-f99709370657
2003-01-09 03:05:59 +00:00
Hardeep Sidhu
d2f90c9a74
Use flush_cache() when writing headbytes to disk to make sure we are on the correct sector.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3023 a1c6a512-1295-4272-9138-f99709370657
2002-12-19 00:51:39 +00:00
Linus Nielsen Feltzing
063c6d471f
Killed a warning
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2882 a1c6a512-1295-4272-9138-f99709370657
2002-11-24 15:04:22 +00:00
Linus Nielsen Feltzing
0281125c98
Removed debug output
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2880 a1c6a512-1295-4272-9138-f99709370657
2002-11-24 11:47:56 +00:00
Linus Nielsen Feltzing
2260f83376
Now uses timefuncs.h instead of time.h
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2868 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 22:46:35 +00:00
Linus Nielsen Feltzing
4dd6654bb2
Only Recorders have RTC
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2864 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 00:26:55 +00:00
Linus Nielsen Feltzing
85969853d5
New time functions
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2861 a1c6a512-1295-4272-9138-f99709370657
2002-11-20 00:00:25 +00:00
Björn Stenberg
c5f5be565e
Added rename()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2857 a1c6a512-1295-4272-9138-f99709370657
2002-11-19 12:48:50 +00:00
Björn Stenberg
4cde17d1ca
Flush sector cache before truncating.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2849 a1c6a512-1295-4272-9138-f99709370657
2002-11-14 15:50:07 +00:00
Björn Stenberg
7d8bbe71b6
creat() now includes the O_TRUNC flag.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2846 a1c6a512-1295-4272-9138-f99709370657
2002-11-13 23:25:46 +00:00
Björn Stenberg
94fb95f00b
Cosmetic: Replaced dozens of openfiles[fd] with 'file' pointers.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2831 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 16:13:45 +00:00
Björn Stenberg
4059ea61d4
Bugfix: Flags work better when they're binary...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2830 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 16:08:28 +00:00
Björn Stenberg
9f9c495662
Added support for O_CREAT, O_APPEND and O_TRUNC.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2828 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 15:45:43 +00:00
Björn Stenberg
68640edf90
Added ftruncate().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2827 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 14:40:18 +00:00
Björn Stenberg
228605dc7b
Added support for O_RDWR and lseek() while writing.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2826 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 13:57:58 +00:00
Björn Stenberg
6dc77d881b
Bug fix for previous commit: write() always returned 0 on even sector writes.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2822 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 11:16:49 +00:00
Björn Stenberg
11a09e632c
close() now does not truncate the file.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2821 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 10:21:51 +00:00
Björn Stenberg
62085b1bc0
Corrected return value check.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2807 a1c6a512-1295-4272-9138-f99709370657
2002-11-05 16:15:47 +00:00
Björn Stenberg
c9fb098250
Bugfix: lseek() did not invalidate sector cache when seeking to start of file.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2803 a1c6a512-1295-4272-9138-f99709370657
2002-11-04 14:59:46 +00:00
Björn Stenberg
307f5d846e
Added remove()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2801 a1c6a512-1295-4272-9138-f99709370657
2002-11-01 15:26:06 +00:00
Björn Stenberg
675d258575
Fixed lseek().
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2796 a1c6a512-1295-4272-9138-f99709370657
2002-10-31 20:41:36 +00:00
Björn Stenberg
08356fb50a
More graceful handling when running out of space.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2793 a1c6a512-1295-4272-9138-f99709370657
2002-10-31 19:05:25 +00:00
Björn Stenberg
46ddacf533
Fat32 write updates: Nixed some bugs. Basic file creation now works. Todo: Long filenames and extensive test cases.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2742 a1c6a512-1295-4272-9138-f99709370657
2002-10-22 15:06:08 +00:00
Daniel Stenberg
aeb3d0dcef
removed use of uninitialized variable
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2727 a1c6a512-1295-4272-9138-f99709370657
2002-10-21 07:26:12 +00:00
Björn Stenberg
b7b48fea02
Snapshot of file writing code. Bugs remain. Only short names are supported yet.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2726 a1c6a512-1295-4272-9138-f99709370657
2002-10-20 22:50:58 +00:00
Björn Stenberg
4d55c2f4b7
Partition debug screen added, and jumped to when no fat32 partition is found at boot.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2558 a1c6a512-1295-4272-9138-f99709370657
2002-10-10 12:01:58 +00:00
Daniel Stenberg
07557e5612
Magnus Holmgren's improved atoi()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2446 a1c6a512-1295-4272-9138-f99709370657
2002-09-30 08:50:00 +00:00
Felix Arends
306c316433
added memcmp function to make rockbox compilable with latest gcc versions without using libc
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2304 a1c6a512-1295-4272-9138-f99709370657
2002-09-16 21:01:06 +00:00
Daniel Stenberg
cc1662420f
undef MAX_PATH before defining it makes it play the simulator game better
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2280 a1c6a512-1295-4272-9138-f99709370657
2002-09-13 06:27:16 +00:00
Heikki Hannikainen
adbe4eddf9
Make close() check for a valid fd and set errno accordingly.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1965 a1c6a512-1295-4272-9138-f99709370657
2002-08-24 09:47:54 +00:00
Daniel Stenberg
af341158db
bad bad bad snprintf() overflow the buffer if the string passed in with a
...
%s didn't fit within the buffer!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1943 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 08:29:44 +00:00
Daniel Stenberg
e666ce933a
when we want to open a file, we want the exact specified file name, not
...
just one that starts with our given string...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1929 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 20:13:21 +00:00
Linus Nielsen Feltzing
fae5b82d60
Now doesn't truncate the lenght when comparing path components
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1757 a1c6a512-1295-4272-9138-f99709370657
2002-08-15 11:26:12 +00:00
Björn Stenberg
cd225736f9
First version of loadable fonts patch by Alex Gitelman
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1666 a1c6a512-1295-4272-9138-f99709370657
2002-08-11 09:17:47 +00:00
Daniel Stenberg
1beaa8b362
added weirdo extra protos for the mingw cross-compile build
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1534 a1c6a512-1295-4272-9138-f99709370657
2002-08-05 07:51:09 +00:00
Daniel Stenberg
c1370d25b2
use our own prototypes for open, read, close and lseek if we compile
...
with Mingw32 as <io.h> doesn't seem to be good to include then
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1532 a1c6a512-1295-4272-9138-f99709370657
2002-08-04 14:17:01 +00:00
Daniel Stenberg
2ec1e170ab
just defensivelt check for defined defines before we define them
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1524 a1c6a512-1295-4272-9138-f99709370657
2002-08-02 12:33:48 +00:00
Daniel Stenberg
d52f113442
debreakage
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1523 a1c6a512-1295-4272-9138-f99709370657
2002-08-02 12:32:26 +00:00