Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.   Copyright (c) 1990-2000 Info-ZIP.  All rights reserved.
  3.  
  4.   See the accompanying file LICENSE, version 2000-Apr-09 or later
  5.   (the contents of which are also included in unzip.h) for terms of use.
  6.   If, for some reason, all these files are missing, the Info-ZIP license
  7.   also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
  8. */
  9. /* swiven.h */
  10.  
  11. #ifndef __swiven_h
  12. #define __swiven_h
  13.  
  14. os_error *SWI_OS_FSControl_26(char *source, char *dest, int actionmask);
  15. /* copy */
  16.  
  17. os_error *SWI_OS_FSControl_27(char *filename, int actionmask);
  18. /* wipe */
  19.  
  20. os_error *SWI_OS_GBPB_9(char *dirname, void *buf, int *number,
  21.                         int *offset, int size, char *match);
  22. /* read dir */
  23.  
  24. os_error *SWI_OS_File_1(char *filename, unsigned int loadaddr,
  25.                         unsigned int execaddr, int attrib);
  26. /* write file attributes */
  27.  
  28. os_error *SWI_OS_File_5(char *filename, int *objtype, unsigned int *loadaddr,
  29.                         unsigned int *execaddr, int *length, int *attrib);
  30. /* read file info */
  31.  
  32. os_error *SWI_OS_File_6(char *filename);
  33. /* delete */
  34.  
  35. os_error *SWI_OS_File_7(char *filename, int loadaddr, int execaddr, int size);
  36. /* create an empty file */
  37.  
  38. os_error *SWI_OS_File_8(char *dirname);
  39. /* create a directory */
  40.  
  41. os_error *SWI_OS_File_18(char *filename, int filetype);
  42. /* set a file's type */
  43.  
  44. os_error *SWI_OS_CLI(char *cmd);
  45. /* execute a command */
  46.  
  47. int SWI_OS_ReadC(void);
  48. /* get a key from the keyboard buffer */
  49.  
  50. os_error *SWI_OS_ReadVarVal(char *var, char *buf, int len, int *bytesused);
  51. /* reads an OS varibale */
  52.  
  53. os_error *SWI_OS_FSControl_54(char *buffer, int dir, char *fsname, int *size);
  54. /* reads the path of a specified directory */
  55.  
  56. os_error *SWI_OS_FSControl_37(char *pathname, char *buffer, int *size);
  57. /* canonicalise path */
  58.  
  59. os_error *SWI_DDEUtils_Prefix(char *dir);
  60. /* sets the 'prefix' directory */
  61.  
  62. int SWI_Read_Timezone(void);
  63. /* returns the timezone offset (centiseconds) */
  64.  
  65. int SWI_MimeMap_Translate(const char *ext);
  66. /* given a filename extn, returns the filetype (or -1 if no match).
  67.  * Uses the MimeMap module */
  68.  
  69. #endif /* !__swiven_h */
  70.