Code: Select all
if ((_REENT) && !(_REENT)->__sdidinit) __sinit(_REENT);
This will initialize the C-library (especially the reent structure) with the correct data.
After the C-library has been initialized, the file descriptor in the _write(....) method will be different depending on if you send stdout or stderr (for example).
Who is online
Users browsing this forum: No registered users and 1 guest