ebcdic.h 616 B

1234567891011121314151617181920212223242526
  1. /* crypto/ebcdic.h */
  2. #ifndef HEADER_EBCDIC_H
  3. # define HEADER_EBCDIC_H
  4. # include <sys/types.h>
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. /* Avoid name clashes with other applications */
  9. # define os_toascii _openssl_os_toascii
  10. # define os_toebcdic _openssl_os_toebcdic
  11. # define ebcdic2ascii _openssl_ebcdic2ascii
  12. # define ascii2ebcdic _openssl_ascii2ebcdic
  13. extern const unsigned char os_toascii[256];
  14. extern const unsigned char os_toebcdic[256];
  15. void *ebcdic2ascii(void *dest, const void *srce, size_t count);
  16. void *ascii2ebcdic(void *dest, const void *srce, size_t count);
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif