4.24 __rt_errno_addr()

The __rt_errno_addr() function is called to get the address of the C library errno variable when the C library attempts to read or write errno.

Syntax

volatile int *__rt_errno_addr(void);

Usage

The library provides a default implementation. It is unlikely that you have to reimplement this function.

This function is not part of the C library standard, but the ARM® C library supports it as an extension.

Note:

This function is associated with pre-ABI versions of the compilation tools. However, it remains supported to ensure that object files compiled with those tools link successfully. Unless you are working with object files compiled with pre-ABI versions of the tools, use __aeabi_errno_addr() instead of __rt_errno_addr().
Non-ConfidentialPDF file icon PDF versionARM DUI0475M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.