git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel - VFS API Update - ReadDir caller provided buffer
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
include
/
vfs_ext.h
diff --git
a/KernelLand/Kernel/include/vfs_ext.h
b/KernelLand/Kernel/include/vfs_ext.h
index
d9bc833
..
44c70f8
100644
(file)
--- a/
KernelLand/Kernel/include/vfs_ext.h
+++ b/
KernelLand/Kernel/include/vfs_ext.h
@@
-13,6
+13,7
@@
typedef Uint64 tInode;
typedef Uint32 tMount;
// === CONSTANTS ===
typedef Uint32 tMount;
// === CONSTANTS ===
+#define FILENAME_MAX 256
//! Maximum size of a Memory Path generated by VFS_GetMemPath
#define VFS_MEMPATH_SIZE (3 + (BITS/4)*2)
/**
//! Maximum size of a Memory Path generated by VFS_GetMemPath
#define VFS_MEMPATH_SIZE (3 + (BITS/4)*2)
/**
@@
-368,10
+369,10
@@
extern int VFS_Symlink(const char *Name, const char *Link);
/**
* \brief Read from a directory
* \param FD File handle returned by ::VFS_Open
/**
* \brief Read from a directory
* \param FD File handle returned by ::VFS_Open
- * \param Dest Destination array for the file name (max
255
bytes)
+ * \param Dest Destination array for the file name (max
FILENAME_MAX
bytes)
* \return Boolean Success
*/
* \return Boolean Success
*/
-extern int VFS_ReadDir(int FD, char
*Dest
);
+extern int VFS_ReadDir(int FD, char
Dest[FILENAME_MAX]
);
/**
* \brief Wait for an aciton on a file descriptor
* \param MaxHandle Maximum set handle in \a *Handles
/**
* \brief Wait for an aciton on a file descriptor
* \param MaxHandle Maximum set handle in \a *Handles
UCC
git Repository :: git.ucc.asn.au