Annotation of researchv10no/cmd/dist/v10/rename.c, revision 1.1

1.1     ! root        1: int
        !             2: rename(char *old, char *new)
        !             3: {
        !             4:        if (link(old, new) == 0) {
        !             5:                unlink(old);
        !             6:                return 0;
        !             7:        } else
        !             8:                return -1;
        !             9: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.