home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / pascal2c / misc.h < prev    next >
C/C++ Source or Header  |  1992-08-03  |  3KB  |  138 lines

  1. /* Header for module misc, generated by p2c */
  2. #ifndef MISC_H
  3. #define MISC_H
  4.  
  5.  
  6.  
  7. /*homeless orphans*/
  8. #ifndef SYSGLOBALS_H
  9. #include <sysgloba.h>
  10. #endif
  11.  
  12. #ifndef ASM_H
  13. #include <asm.h>
  14. #endif
  15.  
  16.  
  17.  
  18. #ifdef MISC_G
  19. # define vextern
  20. #else
  21. # define vextern extern
  22. #endif
  23.  
  24.  
  25.  
  26. #define misc_null       0
  27.  
  28. #define misc_nullchar   '\0'
  29. #define misc_homechar   '\001'
  30.  
  31. #define misc_etx        3
  32. #define misc_bell       7
  33.  
  34. #define misc_bellchar   '\007'
  35.  
  36. #define misc_bs         8
  37.  
  38. #define misc_leftchar   '\b'
  39.  
  40. #define misc_tab        9
  41.  
  42. #define misc_cteol      '\t'
  43.  
  44. #define misc_lf         10
  45.  
  46. #define misc_downchar   '\n'
  47.  
  48. #define misc_vt         11
  49.  
  50. #define misc_cteos      '\013'
  51.  
  52. #define misc_ff         12
  53.  
  54. #define misc_clearscr   '\f'
  55.  
  56. #define misc_cr         13
  57.  
  58. #define misc_eol        '\015'
  59.  
  60. #define misc_dle        16
  61. #define misc_esc        27
  62.  
  63. #define misc_escchar    '\033'
  64.  
  65. #define misc_fsp        28
  66.  
  67. #define misc_rightchar  '\034'
  68.  
  69. #define misc_us         31
  70.  
  71. #define misc_upchar     '\037'
  72.  
  73. #define misc_del        127
  74. #define misc_cntrl      255
  75.  
  76.  
  77.  
  78. /* CATALOGUE INFORMATION, zero entry refers to the directory itself */
  79. /*name of file or directory*/
  80. /*external file type (LIF)*/
  81. /*file kind*/
  82. /*physical size of file  */
  83. /*                                         or of total data space on volume*/
  84. /*logical size of file  */
  85. /*                                         or unused space on medium*/
  86. /*starting location of file  */
  87. /*                                         or first possible data location*/
  88. /*size of a sector or block*/
  89. /*creation, last modified dates*/
  90. /*creation, last modified times*/
  91. /*extension  */
  92. /*                                         or total possible number of files */
  93. /*                                         or requested number of files*/
  94. /*secondary discretionary field */
  95. /*                                         or start index of requested catalog*/
  96. /*comment or miscellaneous information*/
  97.  
  98. typedef struct misc_catentry {
  99.     Char cname[tidleng + 1];
  100.     short ceft;
  101.     filekind ckind;
  102.     long cpsize, clsize, cstart, cblocksize;
  103.     daterec ccreatedate, clastdate;
  104.     timerec ccreatetime, clasttime;
  105.     long cextra1, cextra2;
  106.     Char cinfo[21];
  107. } misc_catentry;
  108.  
  109. typedef struct misc_passentry {
  110.     long pbits;
  111.     Char pword[passleng + 1];
  112. } misc_passentry;
  113.  
  114.  
  115.  
  116. vextern uchar misc_idle;
  117.  
  118.  
  119.  
  120. /* idle character -- 3.0 bug jws 3/20/84 */
  121. extern Void misc_getioerrmsg PP((Char *s, long lastior));
  122. extern Void misc_printerror PP((long errorcode, long lastior));
  123. extern Void misc_upc PP((Char *s));
  124. extern long misc_ueovbytes PP((int unit));
  125. extern Void misc_unblockeddam PP((fib *f, int unum, int request));
  126. extern Void misc_initfilekinds PV( );
  127. extern Void misc_lockup PV( );
  128. extern Void misc_lockdown PV( );
  129.  
  130.  
  131.  
  132. #undef vextern
  133.  
  134. #endif /*MISC_H*/
  135.  
  136. /* End. */
  137.  
  138.