home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / EXTRAS / UUCODE / UUPC / TEST / UPC12ES2.ZIP / UUCICO / suspend.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-07  |  4.5 KB  |  116 lines

  1. /*--------------------------------------------------------------------*/
  2. /*    s u s p e n d . c                                               */
  3. /*                                                                    */
  4. /*    suspend/resume uupoll/uucico daemon (dummies for non-OS/2)      */
  5. /*                                                                    */
  6. /*    Author: Kai Uwe Rommel                                          */
  7. /*                                                                    */
  8. /*--------------------------------------------------------------------*/
  9.  
  10. /*--------------------------------------------------------------------*/
  11. /*       Copyright (c) 1993 by Kai Uwe Rommel                         */
  12. /*--------------------------------------------------------------------*/
  13.  
  14. /*--------------------------------------------------------------------*/
  15. /*       Changes Copyright (c) 1989-1993 by Kendra Electronic         */
  16. /*       Wonderworks.                                                 */
  17. /*                                                                    */
  18. /*       All rights reserved except those explicitly granted by       */
  19. /*       the UUPC/extended license agreement.                         */
  20. /*--------------------------------------------------------------------*/
  21.  
  22. /*--------------------------------------------------------------------*/
  23. /*                          RCS Information                           */
  24. /*--------------------------------------------------------------------*/
  25.  
  26. /*
  27.  *    $Id: suspend.c 1.4 1993/11/06 17:57:09 rhg Exp $
  28.  *
  29.  *    Revision history:
  30.  *    $Log: suspend.c $
  31.  * Revision 1.4  1993/11/06  17:57:09  rhg
  32.  * Drive Drew nuts by submitting cosmetic changes mixed in with bug fixes
  33.  *
  34.  * Revision 1.3  1993/09/29  04:52:03  ahd
  35.  * General clean up to be compatible with suspend2.c
  36.  *
  37.  * Revision 1.2  1993/09/27  02:42:11  ahd
  38.  * Include header, use proper return values to match OS/2 functions
  39.  *
  40.  * Revision 1.1  1993/09/27  00:48:43  ahd
  41.  * Initial revision
  42.  *
  43.  */
  44.  
  45. /*--------------------------------------------------------------------*/
  46. /*                        System include files                        */
  47. /*--------------------------------------------------------------------*/
  48.  
  49. #include <stdio.h>
  50. #include <sys/types.h>
  51.  
  52. /*--------------------------------------------------------------------*/
  53. /*                    UUPC/extended include files                     */
  54. /*--------------------------------------------------------------------*/
  55.  
  56. #include "lib.h"
  57. #include "hostable.h"
  58. #include "dcp.h"
  59. #include "security.h"
  60. #include "suspend.h"
  61.  
  62. boolean suspend_processing = FALSE;
  63.  
  64. /*--------------------------------------------------------------------*/
  65. /*       s u s p e n d _ i n i t                                      */
  66. /*                                                                    */
  67. /*       Initialize thread to handle port suspension                  */
  68. /*--------------------------------------------------------------------*/
  69.  
  70. #ifdef __TURBOC__
  71. #pragma argsused
  72. #elif _MSC_VER >= 700
  73. #pragma warning(disable:4100)   /* suppress unref'ed formal param. warnings */
  74. #endif
  75.  
  76. void suspend_init(const char *port )
  77. {
  78. }
  79.  
  80. #if _MSC_VER >= 700
  81. #pragma warning(default:4100)   /* restore unref'ed formal param. warnings */
  82. #endif
  83.  
  84. /*--------------------------------------------------------------------*/
  85. /*       s u s p e n d _ o t h e r                                    */
  86. /*                                                                    */
  87. /*       Request another UUCICO give up a modem                       */
  88. /*--------------------------------------------------------------------*/
  89.  
  90. #ifdef __TURBOC__
  91. #pragma argsused
  92. #elif _MSC_VER >= 700
  93. #pragma warning(disable:4100)   /* suppress unref'ed formal param. warnings */
  94. #endif
  95.  
  96. int suspend_other(const boolean suspend,
  97.                   const char *port )
  98. {
  99.    return 1;
  100. }
  101.  
  102. #if _MSC_VER >= 700
  103. #pragma warning(default:4100)   /* restore unref'ed formal param. warnings */
  104. #endif
  105.  
  106. /*--------------------------------------------------------------------*/
  107. /*       s u s p e n d _ w a i t                                      */
  108. /*                                                                    */
  109. /*       Wait to take the serial port back                            */
  110. /*--------------------------------------------------------------------*/
  111.  
  112. CONN_STATE suspend_wait(void)
  113. {
  114.   return CONN_EXIT;
  115. }
  116.