fdopen should set errno when it fails due to invalid mode string
[musl] / include / memory.h
1 #include <string.h>