Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unmentioned errors in POSIX

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?

like image 319
PSkocik Avatar asked Sep 28 '18 11:09

PSkocik


1 Answers

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.

like image 156
Florian Weimer Avatar answered Oct 13 '22 00:10

Florian Weimer