ref: 686729f16636fe0310dcb4b3108a572b25c88106 dir: /libnpe/rename.c/
#include <unistd.h> int rename(char *old, char *new) { Dir d; nulldir(&d); d.name = new; return dirwstat(old, &d) > 0 ? 0 : -1; }