Dave Murphy
42fe5af38d
update FAT32 FSINFO for statvfs if invalid
2017-07-31 14:45:57 +01:00
Dave Murphy
d4926573ac
Merge pull request #9 from Nebuleon/patch
...
An unsigned char fix and an errno change
2016-12-22 04:40:39 +00:00
Dave Murphy
73ccaec815
match newlib
...
ensure max filename length matches newlib
2016-12-20 20:07:08 +00:00
Nebuleon Fumika
b7c4d38b32
Don't set errno at the end of a directory if no error occurred
...
In _FAT_dirnext, which implements a function similar to readdir, don't
set errno to ENOENT, because reaching the end of a directory is not an
error. This conforms to POSIX readdir and is consistent with _FAT_read
not setting errno when reaching EOF.
2016-06-20 07:19:37 +00:00
Nebuleon Fumika
3fde6ce161
Set errno to ENOTEMPTY when removing a non-empty directory
...
The value that was previously set, EPERM, implies that the user didn't
have the (write) permission to remove the directory.
2016-06-19 19:58:02 +00:00
Dave Murphy
1bb3bab6e4
cleanup patch - http://sourceforge.net/tracker/?func=detail&aid=3331605&group_id=114505&atid=668553
2011-06-28 20:35:00 +00:00
tantricity
93ec6aad6a
support to read/write FS info sector for FAT32 partitions. speeds up statvfs. patch submitted by dimok
2011-01-16 19:03:37 +00:00
Dave Murphy
875d47b8f3
update for changes in newlib patches
2011-01-11 12:15:37 +00:00
Dave Murphy
eafce2e122
.. in subdir of root always links to cluster 0
2009-06-09 18:22:51 +00:00
Dave Murphy
22f264e5fd
set access and modify times on dir creation
2009-05-01 07:56:08 +00:00
Dave Murphy
52def810fc
patch applied from https://sourceforge.net/tracker/?func=detail&aid=2721592&group_id=114505&atid=668551
2009-05-01 07:37:36 +00:00
Michael Chisholm
2cc2cc2e39
Moved disc interfaces to appropriate libraries (DLDI to libnds, SD/USB to libogc).
...
Changed read/write functions to use size_t and seek function to use off_t -- will help on 64 bit platforms.
Partitions no longer specified by fat1:/, fat2:/, etc.
Use "nice" device names. On GBA/NDS the default partition is still fat:/; however on Wii and GC sd:/, usb:/, etc. are used instead.
Added fsync and ftruncate functions.
Mount and unmount no longer startup/shutdown the device, this is the job of the host app.
Mount now accepts a partition start parameter.
Used standard types, eg uint32_t instead of u32.
Archive bit is set when closing/synchronizing a modified file.
Various minor bug fixes.
2008-11-20 05:22:28 +00:00
Michael Chisholm
d72dcb0384
Fixed unlink not freeing cluster chains
2008-09-11 08:54:23 +00:00
Michael Chisholm
bfb4d60d1f
Don't read high 16 bits of start cluster from a directory entry on non-FAT32 partititions, in case it contains non-zero data
2008-09-08 08:28:17 +00:00
Dave Murphy
8b9d437f76
add locks for threaded systems.
...
fix eof conditions
https://sourceforge.net/tracker/?func=detail&atid=668553&aid=1970541&group_id=114505
2008-05-23 19:37:46 +00:00
Michael Chisholm
8c319ec76a
Added statvfs functionality
2007-10-25 12:52:08 +00:00
Michael Chisholm
8cfa906c22
Use CLUSTER_ERROR when an error occurs with the FAT, not CLUSTER_FREE
2007-09-01 07:55:38 +00:00
Dave Murphy
e64acc0133
make dirnext return 0 for success & -1 for error/no more files
2007-01-25 18:01:02 +00:00
Michael Chisholm
7d0b004900
Updated directory iterator functions for DevkitPro r20
2007-01-10 10:34:47 +00:00
Michael Chisholm
0dc13f35a1
Directory support updated for DKP r20
2007-01-10 10:33:20 +00:00
Michael Chisholm
8956d40bc1
Now clears the whole cluster when creating or extending a directory, bug found by Hermes
2006-09-30 16:00:01 +00:00
Michael Chisholm
698f3aecee
Updated dirnext return values to return correctly
2006-08-19 12:32:17 +00:00
Michael Chisholm
11140aaa33
Added directory iterator functions
2006-08-14 12:04:16 +00:00
Michael Chisholm
11eb212459
Added _FAT_mkdir_r
...
Moved all externally visible directory related functions to fatdir
2006-08-13 09:44:20 +00:00