ref: 8400240efda16e4261a17eac0f5b719701b16cd8 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; }