home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / perl / scripts-convex / conf / conf_SunSparc.pl < prev    next >
Encoding:
Text File  |  1993-07-14  |  1.3 KB  |  61 lines

  1. # BEGIN Sun short cut config file.  
  2.  
  3.  
  4. # h2ph generates something like this...
  5.  
  6. #sub TCGETS        { 0x40225408; }
  7. sub TCGETS        { 0x40245408; }
  8. #sub TCSETS        { 0x80225409; }
  9. sub TCSETS        { 0x80245409; }
  10. sub TIOCGWINSZ    { 0x40087468; }
  11. sub TIOCGETP      { 0x40067408; }
  12.  
  13. sub VERASE     { 2; };
  14. sub VKILL     { 3; };
  15.  
  16. sub VEOF    { 4; };
  17. sub VEOL    { 5; };
  18. sub VEOL2    { 6; };
  19. sub VMIN    { &VEOF; };
  20. sub VTIME    { &VEOL; };
  21. sub ICANON    { 0x00000002; };
  22. sub IEXTEN     { 0x00008000; };
  23.  
  24. sub ECHO    { 0x00000008; };
  25.  
  26. sub B1200       { 0x9; }
  27.  
  28.  
  29.  
  30. # c2ph generates something like this....
  31.  
  32. STRUCT_TERMIOS: {
  33.     package termios;
  34.  
  35.     sub typedef                          { 'L4 c C17'; }
  36.  
  37.     sub termios'c_iflag                  {    0; }
  38.     sub termios'c_oflag                  {    1; }
  39.     sub termios'c_cflag                  {    2; }
  40.     sub termios'c_lflag                  {    3; }
  41.     sub termios'c_line                   {    4; }
  42.     sub termios'c_cc                     {    5; }
  43.  
  44. }
  45.  
  46. STRUCT_SGTTYB: {
  47.     package sgttyb;
  48.  
  49.     sub typedef                       { 'c4 s'; }
  50.  
  51.     sub sg_ispeed                 { 0; }
  52.     sub sg_ospeed                 { 1; }
  53.     sub sg_erase                  { 2; }
  54.     sub sg_kill                   { 3; }
  55.     sub sg_flags                  { 4; }
  56.  
  57. ($SYSTEM, $VENDOR) = (POSIX, Sun);
  58.  
  59. # END Sun short cut config file.  
  60.