bstroptsh.inc 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. const
  2. __SID = ord('S') shl 8;
  3. I_NREAD = __SID or 1;
  4. I_PUSH = __SID or 2;
  5. I_POP = __SID or 3;
  6. I_LOOK = __SID or 4;
  7. I_FLUSH = __SID or 5;
  8. I_SRDOPT = __SID or 6;
  9. I_GRDOPT = __SID or 7;
  10. I_STR = __SID or 8;
  11. I_SETSIG = __SID or 9;
  12. I_GETSIG = __SID or 10;
  13. I_FIND = __SID or 11;
  14. I_LINK = __SID or 12;
  15. I_UNLINK = __SID or 13;
  16. I_PEEK = __SID or 15;
  17. I_FDINSERT = __SID or 16;
  18. I_SENDFD = __SID or 17;
  19. I_RECVFD = __SID or 14;
  20. I_SWROPT = __SID or 19;
  21. I_GWROPT = __SID or 20;
  22. I_LIST = __SID or 21;
  23. I_PLINK = __SID or 22;
  24. I_PUNLINK = __SID or 23;
  25. I_FLUSHBAND = __SID or 28;
  26. I_CKBAND = __SID or 29;
  27. I_GETBAND = __SID or 30;
  28. I_ATMARK = __SID or 31;
  29. I_SETCLTIME = __SID or 32;
  30. I_GETCLTIME = __SID or 33;
  31. I_CANPUT = __SID or 34;
  32. FMNAMESZ = 8;
  33. FLUSHR = $01;
  34. FLUSHW = $02;
  35. FLUSHRW = $03;
  36. FLUSHBAND = $04;
  37. S_INPUT = $0001;
  38. S_HIPRI = $0002;
  39. S_OUTPUT = $0004;
  40. S_MSG = $0008;
  41. S_ERROR = $0010;
  42. S_HANGUP = $0020;
  43. S_RDNORM = $0040;
  44. S_WRNORM = S_OUTPUT;
  45. S_RDBAND = $0080;
  46. S_WRBAND = $0100;
  47. S_BANDURG = $0200;
  48. RS_HIPRI = $01;
  49. RNORM = $0000;
  50. RMSGD = $0001;
  51. RMSGN = $0002;
  52. RPROTDAT = $0004;
  53. RPROTDIS = $0008;
  54. RPROTNORM = $0010;
  55. RPROTMASK = $001C;
  56. SNDZERO = $001;
  57. SNDPIPE = $002;
  58. ANYMARK = $01;
  59. LASTMARK = $02;
  60. MUXID_ALL = -(1);
  61. MSG_HIPRI = $01;
  62. MSG_ANY = $02;
  63. MSG_BAND = $04;
  64. MORECTL = 1;
  65. MOREDATA = 2;
  66. type
  67. Pbandinfo = ^bandinfo;
  68. bandinfo = record
  69. bi_pri : byte;
  70. bi_flag : longint;
  71. end;
  72. Pstrbuf = ^strbuf;
  73. strbuf = record
  74. maxlen : longint;
  75. len : longint;
  76. buf : Pchar;
  77. end;
  78. t_uscalar_t = __t_uscalar_t; // moved here from stropts.h
  79. Pstrpeek = ^strpeek;
  80. strpeek = record
  81. ctlbuf : strbuf;
  82. databuf : strbuf;
  83. flags : t_uscalar_t;
  84. end;
  85. Pstrfdinsert = ^strfdinsert;
  86. strfdinsert = record
  87. ctlbuf : strbuf;
  88. databuf : strbuf;
  89. flags : t_uscalar_t;
  90. fildes : longint;
  91. offset : longint;
  92. end;
  93. Pstrioctl = ^strioctl;
  94. strioctl = record
  95. ic_cmd : longint;
  96. ic_timout : longint;
  97. ic_len : longint;
  98. ic_dp : Pchar;
  99. end;
  100. Pstrrecvfd = ^strrecvfd;
  101. strrecvfd = record
  102. fd : longint;
  103. uid : uid_t;
  104. gid : gid_t;
  105. __fill : array[0..7] of char;
  106. end;
  107. Pstr_mlist = ^str_mlist;
  108. str_mlist = record
  109. l_name : array[0..(FMNAMESZ + 1)-1] of char;
  110. end;
  111. Pstr_list = ^str_list;
  112. str_list = record
  113. sl_nmods : longint;
  114. sl_modlist : Pstr_mlist;
  115. end;
  116. { ---------------------------------------------------------------------
  117. Borland compatibility types
  118. ---------------------------------------------------------------------}
  119. Type
  120. Tstrbuf = strbuf;