X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Fvfs_ext.h;h=5e6b77ddb744c5101eb995909e068ff430f31122;hb=046980a1afd982af07dc97aaadb186e31eebb340;hp=acee16457574cd90c5ed89ef57048907a0e24ae9;hpb=e573d30162c179edc6de7b7c8364a617d9f25f77;p=tpg%2Facess2.git diff --git a/Kernel/include/vfs_ext.h b/Kernel/include/vfs_ext.h index acee1645..5e6b77dd 100644 --- a/Kernel/include/vfs_ext.h +++ b/Kernel/include/vfs_ext.h @@ -292,4 +292,16 @@ extern int VFS_ReadDir(int FD, char *Dest); */ extern int VFS_OpenChild(Uint *Errno, int FD, const char *Name, Uint Mode); +/** + * \brief Wait for an aciton on a file descriptor + * \param MaxHandle Maximum set handle in \a *Handles + * \param ReadHandles Handles to wait for data on + * \param WriteHandles Handles to wait to write to + * \param ErrHandles Handle to wait for errors on + * \param Timeout Timeout for select() (if null, there is no timeout), if zero select() is non blocking + * \param IsKernel Use kernel handles as opposed to user handles + * \return Number of handles that actioned + */ +extern int VFS_Select(int MaxHandle, fd_set *ReadHandles, fd_set *WriteHandles, fd_set *ErrHandles, tTime *Timeout, BOOL IsKernel); + #endif