ref: 4cf6f39af2db7e9c5985ff80cc20a8b7b8567a31 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; }