1 2 3 4 5
extern int h_errno; int *__h_errno_location() { return &h_errno; } int *h_errno_location() __attribute__((weak,alias("__h_errno_location")));