// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: fileutl.h,v 1.12 1999/01/18 06:20:08 jgg Exp $
+// $Id: fileutl.h,v 1.15 1999/03/15 08:10:39 jgg Exp $
/* ######################################################################
File Utilities
bool Read(void *To,unsigned long Size);
bool Write(const void *From,unsigned long Size);
bool Seek(unsigned long To);
+ bool Truncate(unsigned long To);
unsigned long Tell();
unsigned long Size();
bool Close();
string SafeGetCWD();
void SetCloseExec(int Fd,bool Close);
void SetNonBlock(int Fd,bool Block);
-bool WaitFd(int Fd);
+bool WaitFd(int Fd,bool write = false,unsigned long timeout = 0);
// File string manipulators
string flNotDir(string File);