1.5.7 Re-implementation of legacy function __user_libspace() in the C library

The __user_libspace() function returns a pointer to a block of private static data for the C library. This function does not normally have to be redefined.

If you are writing an operating system or a process switcher, then typically you use the __user_perproc_libspace() and __user_perthread_libspace() functions (which are always available) rather than re-implement __user_libspace().

If you have legacy source code that re-implements __user_libspace(), you do not have to change the re-implementation for single-threaded processes. However, you are likely to be required to do so for multi-threaded applications. For multi-threaded applications, use either or both of __user_perproc_libspace() and __user_perthread_libspace(), instead of __user_libspace().

Non-ConfidentialPDF file icon PDF versionARM DUI0475M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.