home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 036 / emxfix02.zip / emx / src / os2 / select.h < prev    next >
C/C++ Source or Header  |  1994-12-21  |  2KB  |  56 lines

  1. /* select.h -- Header file for select.c
  2.    Copyright (c) 1993-1994 by Eberhard Mattes
  3.  
  4. This file is part of emx.
  5.  
  6. emx is free software; you can redistribute it and/or modify it
  7. under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10.  
  11. emx is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with emx; see the file COPYING.  If not, write to
  18. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. As special exception, emx.dll can be distributed without source code
  21. unless it has been changed.  If you modify emx.dll, this exception
  22. no longer applies and you must remove this paragraph from all source
  23. files for emx.dll.  */
  24.  
  25.  
  26. #define SELECT_MAX_SOCKETS      32
  27.  
  28. struct select_data
  29. {
  30.   SEMRECORD list[6];
  31.   fd_set rbits;
  32.   fd_set wbits;
  33.   fd_set ebits;
  34.   HMUX sem_mux;
  35.   BYTE sem_npipe_flag;
  36.   BYTE sem_kbd_flag;
  37.   BYTE sem_mux_flag;
  38.   BYTE socket_thread_flag;
  39.   int sem_count;
  40.   int ready_count;
  41.   int return_value;
  42.   ULONG timeout;
  43.   thread_data *td;
  44.   int socket_count;
  45.   int socket_nread;
  46.   int socket_nwrite;
  47.   int socket_nexcept;
  48.   int sockets[SELECT_MAX_SOCKETS];
  49.   int socketh[SELECT_MAX_SOCKETS];
  50. };
  51.  
  52. extern HEV socket_sem;
  53. extern HEV socket_done_sem;
  54. extern HEV socket_start_sem;
  55. extern BYTE select_socket_done;
  56.