misc - Cleaning up warnings that occur on travis
[tpg/acess2.git] / KernelLand / Kernel / include / vfs_ext.h
index 99a64e3..73d82ce 100644 (file)
@@ -70,6 +70,10 @@ enum eVFS_SeekDirs
  * \}
  */
 
+#define VFS_ACLENT_ALL 0x7FFFFFFF
+#define VFS_GROUP_ANY  {1, VFS_ACLENT_ALL}     //!< Rules for all users
+#define VFS_USER_NOBODY        {0, VFS_ACLENT_ALL}     //!< Rules for nobody
+
 /**
  * \brief MMap protection flags
  * \{
@@ -328,6 +332,16 @@ extern size_t      VFS_ReadAt(int FD, Uint64 Offset, size_t Length, void *Buffer);
  */
 extern size_t  VFS_WriteAt(int FD, Uint64 Offset, size_t Length, const void *Buffer);
 
+/**
+ * \brief Set the valid size of a file
+ * \param FD   File descriptor
+ * \param Size New file size
+ * \return Actual new file size (-1 if error occurred)
+ *
+ * \note Not all files support this call (will return ENOTIMPL)
+ */
+extern off_t   VFS_Truncate(int FD, off_t Size);
+
 /**
  * \brief Sends an IOCtl request to the driver
  * \param FD   File handle returned by ::VFS_Open

UCC git Repository :: git.ucc.asn.au