home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / mach / mach_error.h < prev    next >
Text File  |  1991-06-14  |  2KB  |  60 lines

  1. /* 
  2.  **********************************************************************
  3.  * Mach Operating System
  4.  * Copyright (c) 1986 Carnegie-Mellon University
  5.  *  
  6.  * This software was developed by the Mach operating system
  7.  * project at Carnegie-Mellon University's Department of Computer
  8.  * Science. Software contributors as of May 1986 include Mike Accetta, 
  9.  * Robert Baron, William Bolosky, Jonathan Chew, David Golub, 
  10.  * Glenn Marcy, Richard Rashid, Avie Tevanian and Michael Young. 
  11.  * 
  12.  * Some software in these files are derived from sources other
  13.  * than CMU.  Previous copyright and other source notices are
  14.  * preserved below and permission to use such software is
  15.  * dependent on licenses from those institutions.
  16.  * 
  17.  * Permission to use the CMU portion of this software for 
  18.  * any non-commercial research and development purpose is
  19.  * granted with the understanding that appropriate credit
  20.  * will be given to CMU, the Mach project and its authors.
  21.  * The Mach project would appreciate being notified of any
  22.  * modifications and of redistribution of this software so that
  23.  * bug fixes and enhancements may be distributed to users.
  24.  *
  25.  * All other rights are reserved to Carnegie-Mellon University.
  26.  **********************************************************************
  27.  * HISTORY
  28.  * 30-Oct-86  Michael Young (mwyoung) at Carnegie-Mellon University
  29.  *    Created.
  30.  *
  31.  **********************************************************************
  32.  */ 
  33.  
  34. #ifndef    _MACH_ERROR_
  35. #define    _MACH_ERROR_    1
  36.  
  37. #import <mach/kern_return.h>
  38.  
  39. #ifdef    __STRICT_BSD__
  40. /*
  41.  *    mach_error_string() returns a string appropriate to the 
  42.  *     error argument given
  43.  */
  44. extern char *mach_error_string();
  45. /*
  46.  *    mach_erro()r prints an appropriate message on the standard error stream
  47.  */
  48. extern void mach_error();
  49. /*
  50.  *    mach_errormsg() returns a string appropriate to the 
  51.  *    error argument given
  52.  */
  53. extern char *mach_errormsg();
  54. #else
  55. extern char *mach_error_string(kern_return_t error_value);
  56. extern void mach_error(const char *str, kern_return_t error_value);
  57. extern char *mach_errormsg(kern_return_t error_value);
  58. #endif    __STRICT_BSD__
  59. #endif    _MACH_ERROR_
  60.