ref: 6a93414a2883e0ad4611f249810bd6b46f0a9f7c 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; }