@@ -797,6 +797,36 @@ PyInit_errno(void)
797797#ifdef WSAN
798798 inscode (d , ds , de , "WSAN" , WSAN , "Error WSAN" );
799799#endif
800+ #ifdef ENOMEDIUM
801+ inscode (d , ds , de , "ENOMEDIUM" , ENOMEDIUM , "No medium found" );
802+ #endif
803+ #ifdef EMEDIUMTYPE
804+ inscode (d , ds , de , "EMEDIUMTYPE" , EMEDIUMTYPE , "Wrong medium type" );
805+ #endif
806+ #ifdef ECANCELED
807+ inscode (d , ds , de , "ECANCELED" , ECANCELED , "Operation Canceled" );
808+ #endif
809+ #ifdef ENOKEY
810+ inscode (d , ds , de , "ENOKEY" , ENOKEY , "Required key not available" );
811+ #endif
812+ #ifdef EKEYEXPIRED
813+ inscode (d , ds , de , "EKEYEXPIRED" , EKEYEXPIRED , "Key has expired" );
814+ #endif
815+ #ifdef EKEYREVOKED
816+ inscode (d , ds , de , "EKEYREVOKED" , EKEYREVOKED , "Key has been revoked" );
817+ #endif
818+ #ifdef EKEYREJECTED
819+ inscode (d , ds , de , "EKEYREJECTED" , EKEYREJECTED , "Key was rejected by service" );
820+ #endif
821+ #ifdef EOWNERDEAD
822+ inscode (d , ds , de , "EOWNERDEAD" , EOWNERDEAD , "Owner died" );
823+ #endif
824+ #ifdef ENOTRECOVERABLE
825+ inscode (d , ds , de , "ENOTRECOVERABLE" , ENOTRECOVERABLE , "State not recoverable" );
826+ #endif
827+ #ifdef ERFKILL
828+ inscode (d , ds , de , "ERFKILL" , ERFKILL , "Operation not possible due to RF-kill" );
829+ #endif
800830
801831 /* Solaris-specific errnos */
802832#ifdef ECANCELED
0 commit comments