home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !gcc / include / libscl / sys / h / os next >
Encoding:
Text File  |  2006-09-17  |  2.6 KB  |  79 lines

  1. /* sys/os.h extension header for the RISC OS SharedCLibrary.
  2.    Copyright (c) 1996 P.J. Burwood
  3.    Copyright (c) 1997-2005 Nick Burrett
  4.    All rights reserved.
  5.  
  6.    Redistribution and use in source and binary forms, with or without
  7.    modification, are permitted provided that the following conditions
  8.    are met:
  9.    1. Redistributions of source code must retain the above copyright
  10.       notice, this list of conditions and the following disclaimer.
  11.    2. Redistributions in binary form must reproduce the above copyright
  12.       notice, this list of conditions and the following disclaimer in the
  13.       documentation and/or other materials provided with the distribution.
  14.    3. The name of the author may not be used to endorse or promote products
  15.       derived from this software without specific prior written permission.
  16.  
  17.    THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  18.    IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  19.    OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  20.    IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
  21.    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  22.    NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  23.    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  24.    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  25.    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  26.    THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
  27.  
  28. #ifndef __SYS_OS_H
  29. #define __SYS_OS_H
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. typedef struct
  36.   {
  37.   unsigned int    err;
  38.   char        mess[252];
  39.   } os_error;
  40.  
  41. #define os_prhex __os_prhex
  42. extern os_error    *os_prhex (int);     /* %8x format hex output */
  43. #define os_print __os_print
  44. extern os_error    *os_print (char *);
  45.  
  46. #define os_file __os_file
  47. extern os_error    *os_file (int, const char *,int * /* 6 reg */ );
  48.  
  49. /* OS_Find */
  50.  
  51. #define os_fopen __os_fopen
  52. extern os_error    *os_fopen (int, const char *,int * /* 1 reg */ );
  53. #define os_fclose __os_fclose
  54. extern os_error    *os_fclose (int);
  55.  
  56. /* OS_GBPB */
  57.  
  58. #define os_fread __os_fread
  59. extern os_error    *os_fread (int,void *,int,int * /* 5 reg */ );
  60. #define os_fwrite __os_fwrite
  61. extern os_error    *os_fwrite (int,void *,int,int * /* 5 reg */ );
  62. #define os_gbpb567 __os_gbpb567
  63. extern os_error    *os_gbpb567 (int,void *);
  64.  
  65. #define os_args __os_args
  66. extern os_error    *os_args (int,int,int,int * /* 3 reg */ );
  67.  
  68. #define os_fsctrl __os_fsctrl
  69. extern os_error    *os_fsctrl (int,char *,char *,int);
  70.  
  71. extern void __seterr(os_error *);    /* flag RISC OS error to UNIX */
  72.  
  73. #ifdef __cplusplus
  74.     }
  75. #endif
  76.  
  77. #endif
  78.  
  79.