Commit graph

30 commits

Author SHA1 Message Date
Marcin Bukat
10829b2f78 Fix fat test program not compiling (FS#12646).
This changes the way creat() is wrapped around in native builds
so more experienced devs should look at it.

This patch forces to compile fat test in 32bit mode. Building
natively on x86-64 works just fine but our fat code apparently
can't deal with 64bit pointers/ints correctly.

Change-Id: I000015094f7db957ce826c22672608cd419908b0
Reviewed-on: http://gerrit.rockbox.org/228
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
2012-05-08 13:00:14 +02:00
Björn Stenberg
3a5eaa8fa9 Made the fat test code compile again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29456 a1c6a512-1295-4272-9138-f99709370657
2011-02-28 10:48:58 +00:00
Thomas Martitz
0a1d7c28b7 Make open() posix compliant api-wise. A few calls (those with O_CREAT) need the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25844 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 17:35:13 +00:00
Frank Gevaerts
c0a5a67387 Commit FS#9545, storage cleanup and multi-driver support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21933 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 22:28:49 +00:00
Björn Stenberg
ae2bf7ab72 Display return code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6312 a1c6a512-1295-4272-9138-f99709370657
2005-04-18 14:32:21 +00:00
Björn Stenberg
b99551d1be FAT test case builds again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6309 a1c6a512-1295-4272-9138-f99709370657
2005-04-18 14:16:35 +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
Jörg Hohensohn
b2c2738f09 test code portable now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5145 a1c6a512-1295-4272-9138-f99709370657
2004-10-01 19:19:09 +00:00
Linus Nielsen Feltzing
0876cec68a Added rmdir, and changed atoi() to strtol(), to be able to enter hex values as arguments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4507 a1c6a512-1295-4272-9138-f99709370657
2004-04-16 08:13:27 +00:00
Linus Nielsen Feltzing
d070fc9627 Minor corrections for the mkdir function, and some cleanup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4506 a1c6a512-1295-4272-9138-f99709370657
2004-04-15 08:38:13 +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
f6cb6163b9 Fat test code, for the archives.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2911 a1c6a512-1295-4272-9138-f99709370657
2002-12-03 14:00:33 +00:00
Björn Stenberg
dc9cdc40ed Added close() return code checks, and an eof-write test.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2848 a1c6a512-1295-4272-9138-f99709370657
2002-11-14 15:32:34 +00:00
Björn Stenberg
8a727cecdb Fixed file creation test case for new flags.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2836 a1c6a512-1295-4272-9138-f99709370657
2002-11-12 09:04:53 +00:00
Björn Stenberg
4cde667659 Added a truckload of test code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2829 a1c6a512-1295-4272-9138-f99709370657
2002-11-11 15:47:19 +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
f9b5fdcd4d Added lseek() to chkfile test.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2795 a1c6a512-1295-4272-9138-f99709370657
2002-10-31 20:40:15 +00:00
Björn Stenberg
6b104a6c69 Improved tests.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2794 a1c6a512-1295-4272-9138-f99709370657
2002-10-31 19:06:14 +00:00
Björn Stenberg
a5e77d8f94 Fat writing update. File creation now works, though still only short filenames.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2790 a1c6a512-1295-4272-9138-f99709370657
2002-10-31 16:09:28 +00:00
Björn Stenberg
b4cf6a1a0b Remodeled as a test application
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2782 a1c6a512-1295-4272-9138-f99709370657
2002-10-30 16:15:03 +00:00
Björn Stenberg
ab7c63814b 'fat' is now a ommand-line test tool
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2747 a1c6a512-1295-4272-9138-f99709370657
2002-10-23 14:34:53 +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
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
eebd237d46 Fat32 test code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2669 a1c6a512-1295-4272-9138-f99709370657
2002-10-15 14:36:52 +00:00
Björn Stenberg
e46af01bc4 Storing the latest fat32 test code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1624 a1c6a512-1295-4272-9138-f99709370657
2002-08-08 20:32:09 +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
49b4488d8a Added 'type' testcase for open/read/close
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@514 a1c6a512-1295-4272-9138-f99709370657
2002-05-08 12:13:47 +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
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
Renamed from firmware/test/fat/debug.c (Browse further)