Annotation of researchv10no/cmd/procmount.c, revision 1.1.1.1

1.1       root        1: #include <stdio.h>
                      2: 
                      3: int mntfstyp = 2;
                      4: char mntdir[] = "/proc";
                      5: 
                      6: main(argc, argv)
                      7: char **argv;
                      8: {
                      9:        register flag, n;
                     10: 
                     11:        if (argc > 1) {
                     12:                if (funmount(mntdir) < 0) {
                     13:                        perror(mntdir);
                     14:                        exit(1);
                     15:                }
                     16:        } else {
                     17:                if (fmount(mntfstyp, 0, mntdir, 0) < 0) {
                     18:                        perror(mntdir);
                     19:                        exit(1);
                     20:                }
                     21:        }
                     22:        printf("%s %s\n", mntdir, argc > 1 ? "unmounted" : "mounted");
                     23:        exit(0);
                     24: }

unix.superglobalmegacorp.com

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