opendir is pretty much bound to be a memory-allocating function but the POSIX spec for opendir does not mention ENOMEM
in the list of possible errors.
What gives would-be-POSIX-compliant implementations the right to set errno=ENOMEM
in a call opendir
?
See Error Numbers in System Interfaces: General Information:
Implementations may support additional errors not included in this list, may generate errors included in this list under circumstances other than those described here, or may contain extensions or limitations that prevent some errors from occurring.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With