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
Björn Stenberg
2382044ffc
Changing to C99 'bool' type
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@561 a1c6a512-1295-4272-9138-f99709370657
2002-05-13 12:29:34 +00:00
Björn Stenberg
412917e1b6
Added comment
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@519 a1c6a512-1295-4272-9138-f99709370657
2002-05-08 15:27:21 +00:00
Björn Stenberg
1c3217909b
Added lseek()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@518 a1c6a512-1295-4272-9138-f99709370657
2002-05-08 15:16:02 +00:00
Björn Stenberg
073ce1aab3
Fixed read() for sub-sector requests
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@513 a1c6a512-1295-4272-9138-f99709370657
2002-05-08 12:10:30 +00:00
Björn Stenberg
4bd870360a
Added open/close/read. read() only works on whole sectors right now.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@498 a1c6a512-1295-4272-9138-f99709370657
2002-05-07 16:01:53 +00:00
Björn Stenberg
44b1a21f17
Removed stray bad char
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@497 a1c6a512-1295-4272-9138-f99709370657
2002-05-07 13:13:17 +00:00
Daniel Stenberg
dd67452f89
if DIRFUNCTIONS_DEFINED is defined, then don't do the function prototypes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@489 a1c6a512-1295-4272-9138-f99709370657
2002-05-07 11:36:32 +00:00
Daniel Stenberg
276f62bc6e
load rockbox-mode in emacs!
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@487 a1c6a512-1295-4272-9138-f99709370657
2002-05-07 07:43:57 +00:00
Daniel Stenberg
a037f0c226
strtok_r() freshly implemented by yours truly
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@486 a1c6a512-1295-4272-9138-f99709370657
2002-05-07 07:42:30 +00:00
Björn Stenberg
6904d1ad5c
Added note about strtok() not being thread safe
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@478 a1c6a512-1295-4272-9138-f99709370657
2002-05-06 15:05:17 +00:00
Björn Stenberg
27a153e421
Added atributes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@477 a1c6a512-1295-4272-9138-f99709370657
2002-05-06 14:19:10 +00:00
Björn Stenberg
40b1f4f0ec
Fixed dir parsing
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@476 a1c6a512-1295-4272-9138-f99709370657
2002-05-06 14:16:20 +00:00
Linus Nielsen Feltzing
70109b9fd2
corrected a prototype
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@450 a1c6a512-1295-4272-9138-f99709370657
2002-05-05 18:34:58 +00:00
Daniel Stenberg
83e92b86fc
minor protection to not re-define O_RDONLY if it is already defined
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@432 a1c6a512-1295-4272-9138-f99709370657
2002-05-05 10:32:59 +00:00
Björn Stenberg
4d4ec3aa0b
Added opendir, closedir and readdir
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@412 a1c6a512-1295-4272-9138-f99709370657
2002-05-03 15:36:52 +00:00
Björn Stenberg
c7f7934e8f
Added disk/partition handling
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@405 a1c6a512-1295-4272-9138-f99709370657
2002-05-03 11:59:53 +00:00
Björn Stenberg
07b5ada0c6
Revert last change
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@381 a1c6a512-1295-4272-9138-f99709370657
2002-05-02 12:19:41 +00:00
Björn Stenberg
1244dd7d18
Added support for %%
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@380 a1c6a512-1295-4272-9138-f99709370657
2002-05-02 12:16:51 +00:00
Björn Stenberg
824a003052
Added Gary's snprintf() and changed all places to use it.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@379 a1c6a512-1295-4272-9138-f99709370657
2002-05-02 11:44:15 +00:00
Björn Stenberg
a98b20e22a
Added flags
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@378 a1c6a512-1295-4272-9138-f99709370657
2002-05-02 11:04:30 +00:00
Felix Arends
ced58d3fef
again, a little win32 simulator compability fix
...
(included io.h)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@351 a1c6a512-1295-4272-9138-f99709370657
2002-04-30 21:16:22 +00:00
Stuart Martin
8101b95879
header for track info
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@336 a1c6a512-1295-4272-9138-f99709370657
2002-04-30 19:19:17 +00:00
Daniel Stenberg
ef476e3a09
don't defined the dirent struct if DIRENT_DEFINED is defined...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@329 a1c6a512-1295-4272-9138-f99709370657
2002-04-30 13:18:59 +00:00
Felix Arends
d711bd9768
replaced _WIN32 constant with WIN32
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@304 a1c6a512-1295-4272-9138-f99709370657
2002-04-28 19:33:19 +00:00
Felix Arends
0196c0c45b
added win32 simulator compability
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@303 a1c6a512-1295-4272-9138-f99709370657
2002-04-28 19:29:57 +00:00
Björn Stenberg
aca76186c0
Added attribute and size
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@301 a1c6a512-1295-4272-9138-f99709370657
2002-04-28 19:14:17 +00:00
Felix Arends
17947b7898
win32 simulator compatible
...
(open, close, read, write do not have to be re-defined)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@299 a1c6a512-1295-4272-9138-f99709370657
2002-04-28 12:13:33 +00:00
Björn Stenberg
c8d4bcdbb9
Added closedir()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@279 a1c6a512-1295-4272-9138-f99709370657
2002-04-27 23:34:31 +00:00
Björn Stenberg
0e2a5a69bd
File and directory APIs
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@278 a1c6a512-1295-4272-9138-f99709370657
2002-04-27 23:31:23 +00:00
Linus Nielsen Feltzing
0ff7947488
Removed some warnings
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@192 a1c6a512-1295-4272-9138-f99709370657
2002-04-23 09:31:25 +00:00
Linus Nielsen Feltzing
77861463a2
First version
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@187 a1c6a512-1295-4272-9138-f99709370657
2002-04-23 09:00:08 +00:00