POSIX 中未提及的错误

Unmentioned errors in POSIX

opendir is pretty much bound to be a memory-allocating function but the POSIX spec for opendir 未在可能的错误列表中提及 ENOMEM

是什么赋予了可能 POSIX 兼容的实现在调用 opendir 中设置 errno=ENOMEM 的权利?

请参阅系统界面:一般信息中的Error Numbers

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.