Annotation of researchv10dc/ipc/bin/pupu/curdir.c, revision 1.1

1.1     ! root        1: /*
        !             2:        current directory.
        !             3:        Places the full pathname of the current directory in `str'.
        !             4:        Handles file systems not mounted on a root directory
        !             5:        via /etc/mtab (see mtab(V)).
        !             6:        NOTE: PWB systems don't use mtab(V), but they don't mount
        !             7:        file systems anywhere but on a root directory (so far, at least).
        !             8: 
        !             9:        returns 0 on success
        !            10:        < 0 on failure.
        !            11: 
        !            12:        Current directory on return:
        !            13:                success: same as on entry
        !            14:                failure: UNKNOWN!
        !            15: */
        !            16: curdir(str)
        !            17: char *str;
        !            18: {
        !            19:        register int n;
        !            20: 
        !            21:        n = chdir(str);
        !            22:        getwd(str);
        !            23:        return n;
        !            24: }

unix.superglobalmegacorp.com

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