Skip to content
Discussion options

You must be logged in to vote

According to https://www.ibm.com/docs/en/aix/7.1.0?topic=files-inttypesh-file

AIX 7.1 forward should include a definition of uintptr_t. Are you working with an older version of AIX perhaps?

Also (bearing in mind I know nothing about i-series space pointers), It seems strange to me that we would be using pointers that fall outside of the usual 8 byte address size. From what I read those pointers need to be declared specially with various #pragmas.

In either case, I would do the following:

  1. Write a test program to check sizeof(void *), and confirm that the pointer is truly 16 bytes wide
  2. if (1) is false, and you just don't have a uintptr_t defined, you can define it by hand, similar to what …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@nickaudinet
Comment options

@nhorman
Comment options

Answer selected by nickaudinet
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants