diff options
author | Barry Warsaw <barry@python.org> | 2010-09-22 20:58:04 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2010-09-22 20:58:04 +0000 |
commit | 31c604d3a7ed0872b0a861ce8480245ff31db37c (patch) | |
tree | 4c67b4664798ce9d4d4770f27983356d7c9d9520 /Modules/errnomodule.c | |
parent | 0258ce8f0a992ffe24a7b77314603cc7224c3971 (diff) | |
download | cpython-git-31c604d3a7ed0872b0a861ce8480245ff31db37c.tar.gz |
Issue 9916: Add some missing errno symbols.
Diffstat (limited to 'Modules/errnomodule.c')
-rw-r--r-- | Modules/errnomodule.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Modules/errnomodule.c b/Modules/errnomodule.c index 19b8bd5bc7..86720af49d 100644 --- a/Modules/errnomodule.c +++ b/Modules/errnomodule.c @@ -797,6 +797,36 @@ PyInit_errno(void) #ifdef WSAN inscode(d, ds, de, "WSAN", WSAN, "Error WSAN"); #endif +#ifdef ENOMEDIUM + inscode(d, ds, de, "ENOMEDIUM", ENOMEDIUM, "No medium found"); +#endif +#ifdef EMEDIUMTYPE + inscode(d, ds, de, "EMEDIUMTYPE", EMEDIUMTYPE, "Wrong medium type"); +#endif +#ifdef ECANCELED + inscode(d, ds, de, "ECANCELED", ECANCELED, "Operation Canceled"); +#endif +#ifdef ENOKEY + inscode(d, ds, de, "ENOKEY", ENOKEY, "Required key not available"); +#endif +#ifdef EKEYEXPIRED + inscode(d, ds, de, "EKEYEXPIRED", EKEYEXPIRED, "Key has expired"); +#endif +#ifdef EKEYREVOKED + inscode(d, ds, de, "EKEYREVOKED", EKEYREVOKED, "Key has been revoked"); +#endif +#ifdef EKEYREJECTED + inscode(d, ds, de, "EKEYREJECTED", EKEYREJECTED, "Key was rejected by service"); +#endif +#ifdef EOWNERDEAD + inscode(d, ds, de, "EOWNERDEAD", EOWNERDEAD, "Owner died"); +#endif +#ifdef ENOTRECOVERABLE + inscode(d, ds, de, "ENOTRECOVERABLE", ENOTRECOVERABLE, "State not recoverable"); +#endif +#ifdef ERFKILL + inscode(d, ds, de, "ERFKILL", ERFKILL, "Operation not possible due to RF-kill"); +#endif /* Solaris-specific errnos */ #ifdef ECANCELED |