#include <unistd.h>#include <stdio.h>#include <errno.h>size_tconfstr(intname,char*buf,size_tlen){constchar*s="";if(!name){s="/bin:/usr/bin";}elseif((name&~4U)!=1&&name-_CS_POSIX_V6_ILP32_OFF32_CFLAGS>31U){errno=EINVAL;return0;}// snprintf is overkill but avoid wasting code size to implement// this completely useless function and its truncation semantics