Commit graph

81 commits

Author SHA1 Message Date
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
Daniel Stenberg
4c043173bb ming compile fixes by Bill Napier
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1522 a1c6a512-1295-4272-9138-f99709370657
2002-08-02 12:18:30 +00:00
Linus Nielsen Feltzing
ce2597550b Moved to internal RAM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1508 a1c6a512-1295-4272-9138-f99709370657
2002-08-01 13:08:09 +00:00
Linus Nielsen Feltzing
3b919cbda3 The ctype array was too short. Found by Magnus Holmgren, thanks.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1443 a1c6a512-1295-4272-9138-f99709370657
2002-07-25 11:12:12 +00:00
Björn Stenberg
b1404175f0 Use most significant bits instead (gives better random)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1381 a1c6a512-1295-4272-9138-f99709370657
2002-07-18 11:24:54 +00:00
Björn Stenberg
25e92bd967 Vastly improved, now working, random! :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1379 a1c6a512-1295-4272-9138-f99709370657
2002-07-18 00:03:47 +00:00
Björn Stenberg
529e166888 New vastly improved random algorithm: Mersenne Twister
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1377 a1c6a512-1295-4272-9138-f99709370657
2002-07-17 23:07:45 +00:00
Björn Stenberg
761cd95f23 Allow LBA-less partitions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1364 a1c6a512-1295-4272-9138-f99709370657
2002-07-16 08:48:16 +00:00
Linus Nielsen Feltzing
377725fefe Some more buffer length fixing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1361 a1c6a512-1295-4272-9138-f99709370657
2002-07-15 22:58:28 +00:00
Björn Stenberg
de943a5bd1 Added searching for FAT32 partition
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1351 a1c6a512-1295-4272-9138-f99709370657
2002-07-15 15:06:45 +00:00
Linus Nielsen Feltzing
75447f6d41 Added MAX_PATH
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1341 a1c6a512-1295-4272-9138-f99709370657
2002-07-05 11:28:20 +00:00
Björn Stenberg
928e334831 Added id3 tracknum (Yusef Napora)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1204 a1c6a512-1295-4272-9138-f99709370657
2002-06-26 21:11:29 +00:00
Björn Stenberg
88c861ed41 lseek: Adjust cacheoffset if cache is used
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1199 a1c6a512-1295-4272-9138-f99709370657
2002-06-26 14:21:25 +00:00
Linus Nielsen Feltzing
79e72318c2 1 byte reads past a sector boundary failed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1138 a1c6a512-1295-4272-9138-f99709370657
2002-06-24 07:46:19 +00:00
Björn Stenberg
866600216e lseek() bug: It would claim cached sector even if that was not the case
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1095 a1c6a512-1295-4272-9138-f99709370657
2002-06-19 17:01:58 +00:00
Daniel Stenberg
55fd87c8ec make the array 257 bytes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1077 a1c6a512-1295-4272-9138-f99709370657
2002-06-19 12:51:40 +00:00
Daniel Stenberg
3dc01eebb4 strcat()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1069 a1c6a512-1295-4272-9138-f99709370657
2002-06-19 08:29:02 +00:00
Björn Stenberg
d6b04045c0 Filenames are case insensitive in Fat32
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1060 a1c6a512-1295-4272-9138-f99709370657
2002-06-18 08:35:20 +00:00
Daniel Stenberg
d38ab69072 case insensitive string comparisons
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1057 a1c6a512-1295-4272-9138-f99709370657
2002-06-18 08:19:38 +00:00
Daniel Stenberg
aca6b2ef22 we need ctype
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1045 a1c6a512-1295-4272-9138-f99709370657
2002-06-17 13:51:21 +00:00
Daniel Stenberg
ebe6cc007d added vsnprintf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1036 a1c6a512-1295-4272-9138-f99709370657
2002-06-17 13:22:40 +00:00
Felix Arends
0f06cf6152 fixed intptr_t to int, thanks to greg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@982 a1c6a512-1295-4272-9138-f99709370657
2002-06-12 15:41:45 +00:00
Linus Nielsen Feltzing
7fbdc3692d Added check for open-for-write
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@922 a1c6a512-1295-4272-9138-f99709370657
2002-06-07 15:15:10 +00:00
Linus Nielsen Feltzing
9ce7831193 Killed a few warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@913 a1c6a512-1295-4272-9138-f99709370657
2002-06-07 14:09:05 +00:00
Linus Nielsen Feltzing
6b918cf54d Killed a few warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@912 a1c6a512-1295-4272-9138-f99709370657
2002-06-07 13:30:36 +00:00
Felix Arends
d1ffa5452b Had to include <stddef.h> so that size_t is defined.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@861 a1c6a512-1295-4272-9138-f99709370657
2002-05-31 20:27:36 +00:00
Björn Stenberg
b69338f9f8 Added code from libc instead of requiring newlib
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@835 a1c6a512-1295-4272-9138-f99709370657
2002-05-30 21:03:17 +00:00
Björn Stenberg
6573d6d4b4 Partition table is no longer global
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@831 a1c6a512-1295-4272-9138-f99709370657
2002-05-30 19:41:35 +00:00
Daniel Stenberg
e29d0307cb Changed the size argument to be a size_t type, to make the prototype look
like the system one as otherwise the compiler complains a lot.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@805 a1c6a512-1295-4272-9138-f99709370657
2002-05-30 06:31:24 +00:00
Felix Arends
d69cb5545f define functions in sprintf.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@804 a1c6a512-1295-4272-9138-f99709370657
2002-05-29 16:42:56 +00:00
Björn Stenberg
aa12eda830 Bugfix: SEEK_END takes negative position
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@747 a1c6a512-1295-4272-9138-f99709370657
2002-05-27 12:38:41 +00:00
Björn Stenberg
881cd23652 Fixed possible race condition
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@728 a1c6a512-1295-4272-9138-f99709370657
2002-05-27 09:13:56 +00:00
Björn Stenberg
3d25f7825a Now supports multiple concurrent opendir()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@727 a1c6a512-1295-4272-9138-f99709370657
2002-05-27 09:13:24 +00:00
Björn Stenberg
a7b8b00fd4 strtok:ing a copy of the parameter instead
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@687 a1c6a512-1295-4272-9138-f99709370657
2002-05-24 09:57:33 +00:00
Linus Nielsen Feltzing
29b6b51c5e Removed debug output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@602 a1c6a512-1295-4272-9138-f99709370657
2002-05-16 20:58:47 +00:00