home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archimedes / arafio.h < prev    next >
C/C++ Source or Header  |  2020-01-01  |  2KB  |  65 lines

  1. /* -> h.ckafio
  2.  */
  3.  
  4. struct FileData {int loadaddr, execaddr, length, attrib;};
  5.  
  6. struct BTim {int low, high;};
  7.  
  8.  
  9. /*
  10.  *  Functions (n is one of the predefined file numbers from ckermi.h):
  11.  */
  12.  
  13. extern int chkfn( int );
  14.  
  15. extern int zopeni( int, char * ); /* Opens an existing file for input. */
  16. extern int zopeno( int, char * ); /* Opens a new file for output. */
  17. extern int zclose( int ); /* Closes a file. */
  18.  
  19. /* Gets the next character from an input file. */
  20. extern int zchin( int, char * );
  21.  
  22. /* Write a null-terminated string to output file, buffered. */
  23. extern int zsout( int, char * );
  24.  
  25. /* Like extern int zsout, but appends a line terminator. */
  26. extern int zsoutl( int, char *);
  27.  
  28. /* Write x characters to output file, unbuffered. */
  29. extern int zsoutx( int, char *, int);
  30.  
  31. /* Add a character to an output file, unbuffered. */
  32. extern int zchout( int, char );
  33.  
  34. /* Check if named file exists and is readable, return siextern int ze. */
  35. extern long zchki( char * );
  36.  
  37. /* Check if named file can be created. */
  38. extern int zchko( char * );
  39.  
  40. /* Make a new unique file name based on the given name. */
  41. extern void znewn(char *, char ** );
  42.  
  43. extern int zdelet( char * ); /* Delete the named file. */
  44.  
  45. /* Expands the given wildcard string into a list of files. */
  46. extern int zxpand( char * );
  47.  
  48. /* Returns the next file from the list in "string". */
  49. extern int znext( char * );
  50.  
  51. extern int zxcmd( char * ); /* Execute the command in a lower fork. */
  52.  
  53. /* Close input file associated with extern int zxcmd()'s lower fork. */
  54. extern int zclosf( void );
  55.  
  56. /* Convert remote filename into local form. */
  57. extern void zrtol( char *, char *);
  58.  
  59. /* Convert local filename into remote form. */
  60. extern void zltor(char *, char *);
  61.  
  62. extern int zchdir( char *); /* Change working directory. */
  63. extern char *zhome( void ); /* Return pointer to home directory name string. */
  64. extern int zkself( void ); /* Kill self, log out own job. */
  65.