3 ms·
”There are a few library calls that have a cousin with an _r suffix in POSIX, but these are not system interfacing calls.” Neither are most Windows functions.
by Someone 8y ago
”There are a few library calls that have a cousin with an _r suffix in POSIX, but these are not system interfacing calls.”
Neither are most Windows functions. FindFirstFile, for example, is defined in kernel32.dll, and calls through to ntdll.dll, and eventually makes system calls such as NtOpenDirectoryObject and NtQueryDirectoryObject.
What IMO matters is the usability of the stable API. It doesn’t matter whether that is the kernel interface or not.
- jstimpfle 8y agoYes. The distinction I made was meant to be between calls that end up calling into the system and ones that do not (like strtok()). I agree with what you say and my statement was exactly that the stable APIs into the system offered by POSX are mostly unproblematic.