The getpwnam and getpwnam_r functions have variants named __32_ getpwnam, _getpwnam_r32 and __64_getpwnam, _getpwnam_r64 for use with 32-bit and 64-bit pointer sizes, respectively.