*** empty log message ***
[arla.git] / rx / rx_misc.c
blob65609eb90308d0d3bd5c6be34b765ebaf6ebcc1d
1 #include "rx_locl.h"
3 RCSID("$Id$");
5 /*
6 * We currently only include below the errors that
7 * affect us the most. We should add to this list
8 * more code mappings, as necessary.
9 */
12 * Convert from the local (host) to the standard
13 * (network) system error code.
15 uint32_t
16 hton_syserr_conv(uint32_t code)
18 uint32_t error;
20 #if 0
21 if (code == ENOSPC)
22 error = VDISKFULL;
23 #ifndef AFS_SUN5_ENV
24 /* EDQUOT doesn't exist on solaris */
25 else if (code == EDQUOT)
26 error = VOVERQUOTA;
27 #endif
28 else
29 #endif
30 error = code;
31 return error;
36 * Convert from the standard (Network) format to the
37 * local (host) system error code.
39 uint32_t
40 ntoh_syserr_conv(uint32_t code)
42 uint32_t error;
44 #if 0
45 if (code == VDISKFULL)
46 error = ENOSPC;
47 else if (code == VOVERQUOTA)
48 #ifdef AFS_SUN5_ENV
49 error = ENOSPC;
50 #else
51 error = EDQUOT;
52 #endif
53 else
54 #endif
55 error = code;
56 return error;