summaryrefslogtreecommitdiff
path: root/libmom/mom-errors.h
blob: 85a35d5ecea0096fd653b6d0108f801ac06569af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* Error codes for MOM library
   Copyright (C) 1996 Free Software Foundation, Inc.
   Written by Michael I. Bushnell, p/BSG.

   This file is part of the GNU Hurd.

   The GNU Hurd is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License as
   published by the Free Software Foundation; either version 2, or (at
   your option) any later version.

   The GNU Hurd is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA. */


/* MOM uses Mach error system 0x11 and subsystem 0. */
#define _MOM_ERRNO(n)  ((0x11 << 26 | ((n) & 0x3fff)))

enum __momerrors_error_codes
{
  /* These are standard errors to be returned by RPC user stubs
     in Mom systems.  */
     
  /* All Mom systems must detect and return these errors */

  /* The RPC attempted to send to an invalid mom_port_ref.  This can
     happen because, for example, the server it spoke to has died. */
  EMOM_INVALID_DEST	= _MOM_ERRNO (1),
  
  /* The RPC attempted to send an invalid mom_port_ref in its content.
     This shall not happen if the server the reference is to has
     merely died. */
  EMOM_INVALID_REF	= _MOM_ERRNO (2),
  
  /* The server began processing the RPC, but at some point it died. */
  EMOM_SERVER_DIED	= _MOM_ERRNO (3)
};

typedef enum __momerrors_error_codes mom_error_t;