X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Finclude%2Fvfs_ext.h;h=44c70f869dd58bcca9a5aad5a9f1a75b18c4443c;hb=4ebe00546574e97c5316881881f7f2562deea74b;hp=d9bc833c2e67f1ee8aa6516fea30c456fbf7ae71;hpb=bf62604f78c2d8bc88cac3664e15ed02c6e6d581;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/include/vfs_ext.h b/KernelLand/Kernel/include/vfs_ext.h index d9bc833c..44c70f86 100644 --- 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 === +#define FILENAME_MAX 256 //! 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 - * \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 */ -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