/* Ofront+ 1.0 -swC -48 */

#ifndef Files__oh
#define Files__oh

#include "SYSTEM.oh"

typedef
  struct Files_FileDesc *Files_File;

typedef
  struct Files_FileDesc {
    char _prvt0[1048];
    INTEGER fd;
    char _prvt1[32];
  } Files_FileDesc;

typedef
  struct Files_Rider {
    INTEGER res;
    BOOLEAN eof;
    char _prvt0[15];
  } Files_Rider;



import SYSTEM_ADRINT *Files_FileDesc__typ;
import SYSTEM_ADRINT *Files_Rider__typ;

import Files_File Files_Base (Files_Rider *r, SYSTEM_ADRINT *r__typ);
import void Files_ChangeDirectory (LONGCHAR *path, INTEGER path__len, INTEGER *res);
import void Files_Close (Files_File f);
import void Files_Delete (LONGCHAR *name, INTEGER name__len, INTEGER *res);
import void Files_GetDate (Files_File f, INTEGER *t, INTEGER *d);
import void Files_GetName (Files_File f, LONGCHAR *name, INTEGER name__len);
import INTEGER Files_Length (Files_File f);
import Files_File Files_New (LONGCHAR *name, INTEGER name__len);
import Files_File Files_Old (LONGCHAR *name, INTEGER name__len);
import INTEGER Files_Pos (Files_Rider *r, SYSTEM_ADRINT *r__typ);
import void Files_Purge (Files_File f);
import void Files_Read (Files_Rider *r, SYSTEM_ADRINT *r__typ, CHAR *x);
import void Files_ReadBool (Files_Rider *R, SYSTEM_ADRINT *R__typ, BOOLEAN *x);
import void Files_ReadBytes (Files_Rider *r, SYSTEM_ADRINT *r__typ, CHAR *x, INTEGER x__len, INTEGER n);
import void Files_ReadChar (Files_Rider *r, SYSTEM_ADRINT *r__typ, LONGCHAR *x);
import void Files_ReadInt (Files_Rider *R, SYSTEM_ADRINT *R__typ, INTEGER *x);
import void Files_ReadLInt (Files_Rider *R, SYSTEM_ADRINT *R__typ, LONGINT *x);
import void Files_ReadLReal (Files_Rider *R, SYSTEM_ADRINT *R__typ, REAL *x);
import void Files_ReadLine (Files_Rider *R, SYSTEM_ADRINT *R__typ, CHAR *x, INTEGER x__len);
import void Files_ReadNum (Files_Rider *R, SYSTEM_ADRINT *R__typ, INTEGER *x);
import void Files_ReadReal (Files_Rider *R, SYSTEM_ADRINT *R__typ, SHORTREAL *x);
import void Files_ReadSInt (Files_Rider *R, SYSTEM_ADRINT *R__typ, SHORTINT *x);
import void Files_ReadSet (Files_Rider *R, SYSTEM_ADRINT *R__typ, SET *x);
import void Files_ReadShortChar (Files_Rider *r, SYSTEM_ADRINT *r__typ, CHAR *x);
import void Files_ReadShortString (Files_Rider *R, SYSTEM_ADRINT *R__typ, CHAR *x, INTEGER x__len);
import void Files_ReadString (Files_Rider *R, SYSTEM_ADRINT *R__typ, LONGCHAR *x, INTEGER x__len);
import void Files_Register (Files_File f);
import void Files_Rename (LONGCHAR *old, INTEGER old__len, LONGCHAR *new, INTEGER new__len, INTEGER *res);
import void Files_Set (Files_Rider *r, SYSTEM_ADRINT *r__typ, Files_File f, INTEGER pos);
import void Files_SetSearchPath (LONGCHAR *path, INTEGER path__len);
import void Files_Truncate (Files_File F, INTEGER pos);
import void Files_Write (Files_Rider *r, SYSTEM_ADRINT *r__typ, CHAR x);
import void Files_WriteBool (Files_Rider *R, SYSTEM_ADRINT *R__typ, BOOLEAN x);
import void Files_WriteBytes (Files_Rider *r, SYSTEM_ADRINT *r__typ, CHAR *x, INTEGER x__len, INTEGER n);
import void Files_WriteChar (Files_Rider *R, SYSTEM_ADRINT *R__typ, LONGCHAR c);
import void Files_WriteInt (Files_Rider *R, SYSTEM_ADRINT *R__typ, INTEGER x);
import void Files_WriteLInt (Files_Rider *R, SYSTEM_ADRINT *R__typ, LONGINT x);
import void Files_WriteLReal (Files_Rider *R, SYSTEM_ADRINT *R__typ, REAL x);
import void Files_WriteNum (Files_Rider *R, SYSTEM_ADRINT *R__typ, INTEGER x);
import void Files_WriteReal (Files_Rider *R, SYSTEM_ADRINT *R__typ, SHORTREAL x);
import void Files_WriteSInt (Files_Rider *R, SYSTEM_ADRINT *R__typ, SHORTINT x);
import void Files_WriteSet (Files_Rider *R, SYSTEM_ADRINT *R__typ, SET x);
import void Files_WriteShortChar (Files_Rider *R, SYSTEM_ADRINT *R__typ, CHAR x);
import void Files_WriteShortString (Files_Rider *R, SYSTEM_ADRINT *R__typ, CHAR *s, INTEGER s__len);
import void Files_WriteString (Files_Rider *R, SYSTEM_ADRINT *R__typ, LONGCHAR *s, INTEGER s__len);
import void *Files__init (void);


#endif
