enum eConfigs {
CFG_VFS_CWD,
CFG_VFS_MAXFILES,
+ CFG_VFS_CHROOT,
NUM_CFG_ENTRIES
};
#define CFGINT(id) (*Threads_GetCfgPtr(id))
/**
* \brief Checks is a memory range is user accessable
* \param VAddr Base address to check
- * \param Length Number of bytes to check
* \return 1 if the memory is all user-accessable, 0 otherwise
*/
-extern int MM_IsUser(tVAddr VAddr, int Length);
+extern int MM_IsUser(tVAddr VAddr);
/**
* \brief Set the access flags on a page
* \param VAddr Virtual address of the page
extern void *memcpyd(void *dest, const void *src, Uint count);
extern void *memset(void *dest, int val, Uint count);
extern void *memsetd(void *dest, Uint val, Uint count);
+/**
+ * \}
+ */
+/**
+ * \name Memory Validation
+ * \{
+ */
+extern int CheckString(char *String);
+extern int CheckMem(void *Mem, int Num);
/**
* \}
*/
extern void itoa(char *buf, Uint num, int base, int minLength, char pad);
extern int ReadUTF8(Uint8 *str, Uint32 *Val);
extern int WriteUTF8(Uint8 *str, Uint32 Val);
+extern int LookupString(char **Array, char *Needle);
/**
* \}
*/