home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / gnuc / library / rcs / select.h,v < prev    next >
Encoding:
Text File  |  1992-07-04  |  1.8 KB  |  86 lines

  1. head    1.1;
  2. access;
  3. symbols
  4.     version39-41:1.1;
  5. locks;
  6. comment    @ *  @;
  7.  
  8.  
  9. 1.1
  10. date    92.05.14.20.36.14;    author mwild;    state Exp;
  11. branches;
  12. next    ;
  13.  
  14.  
  15. desc
  16. @define command types and modes for select emulator
  17. @
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @/*
  26.  *  This file is part of ixemul.library for the Amiga.
  27.  *  Copyright (C) 1991, 1992  Markus M. Wild
  28.  *
  29.  *  This library is free software; you can redistribute it and/or
  30.  *  modify it under the terms of the GNU Library General Public
  31.  *  License as published by the Free Software Foundation; either
  32.  *  version 2 of the License, or (at your option) any later version.
  33.  *
  34.  *  This library is distributed in the hope that it will be useful,
  35.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  36.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  37.  *  Library General Public License for more details.
  38.  *
  39.  *  You should have received a copy of the GNU Library General Public
  40.  *  License along with this library; if not, write to the Free
  41.  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  42.  *
  43.  *  $Id$
  44.  *
  45.  *  $Log$
  46.  */
  47.  
  48. /*
  49.  * definitions of arguments for select() implementation.
  50.  *
  51.  * Each file type that supports select has to look like this:
  52.  *
  53.  *  __..select (f, select_cmd, io_mode)
  54.  *
  55.  */
  56.  
  57. /*
  58.  * possible values for select_cmd
  59.  */
  60.  
  61. /* init a select, perhaps initiate a timeout call that can be checked with
  62.  * SELECT_CHECK
  63.  * Return a signal-mask to be used in Wait() that indicates that this file
  64.  * has changed mode.
  65.  */
  66. #define SELCMD_PREPARE    1
  67.  
  68. /* return whether io_mode on this file won't block */
  69. #define SELCMD_CHECK    2
  70.  
  71.  
  72. /*
  73.  * possible values for io_mode
  74.  */
  75.  
  76. #define SELMODE_IN    0
  77. #define SELMODE_OUT    1
  78. #define SELMODE_EXC    2
  79.  
  80. /*
  81.  * if PREPARE does a timeout call, use this value (usec) for all these timeouts
  82.  */
  83.  
  84. #define SELTIMEOUT    100000
  85. @
  86.