home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / oslib / h / pipefs < prev    next >
Encoding:
Text File  |  1994-09-07  |  1.9 KB  |  68 lines

  1. #ifndef pipefs_H
  2. #define pipefs_H
  3.  
  4. /* C header file for PipeFS
  5.  * written by DefMod (Sep  7 1994) on Wed Sep  7 21:19:43 1994
  6.  * Copyright © Acorn Computers Ltd, 1994
  7.  */
  8.  
  9. /*************************************************************************
  10.  * This source file was written by Acorn Computers Limited. It is part   *
  11.  * of the OSLib library for writing applications for RISC OS. It may be  *
  12.  * used freely in the creation of programs for RISC OS.                  *
  13.  *************************************************************************/
  14.  
  15. #ifndef types_H
  16.    #include "types.h"
  17. #endif
  18.  
  19. #ifndef os_H
  20.    #include "os.h"
  21. #endif
  22.  
  23. /**********************************
  24.  * SWI names and SWI reason codes *
  25.  **********************************/
  26. #undef  UpCall_SleepNoMore
  27. #define UpCall_SleepNoMore                      0x7
  28.  
  29. /************************
  30.  * Constant definitions *
  31.  ************************/
  32. #define error_PIPE_FS_NO_BLOCKING               0x12F00u
  33.  
  34. /*************************
  35.  * Function declarations *
  36.  *************************/
  37.  
  38. #ifdef __cplusplus
  39.    extern "C" {
  40. #endif
  41.  
  42. /*************************************************************
  43.  * NOTE: The following functions provide direct access to    *
  44.  *       the SWI's noted in the function description.        *
  45.  *       Please read the relevant PRM section for more       *
  46.  *       information on their input/output parameters.       *
  47.  *************************************************************/
  48.  
  49. /* ------------------------------------------------------------------------
  50.  * Function:      upcall_sleep_no_more()
  51.  *
  52.  * Description:   Informs the TaskWindow module that an open pipe has been
  53.  *                closed or deleted
  54.  *
  55.  * Input:         pollword - value of R1 on entry
  56.  *
  57.  * Other notes:   Calls SWI 0x33 with R0 = 0x7.
  58.  */
  59.  
  60. extern os_error *xupcall_sleep_no_more (int *pollword);
  61. extern void upcall_sleep_no_more (int *pollword);
  62.  
  63. #ifdef __cplusplus
  64.    }
  65. #endif
  66.  
  67. #endif
  68.