Annotation of xinu/sys/namopen.c, revision 1.1.1.1

1.1       root        1: /* namopen.c - namopen */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <name.h>
                      6: 
                      7: /*------------------------------------------------------------------------
                      8:  *  namopen  -  open an object (e.g., remote file) based on the name
                      9:  *------------------------------------------------------------------------
                     10:  */
                     11: namopen(devptr, filenam, mode)
                     12: struct devsw   *devptr;
                     13: char   *filenam;
                     14: char   *mode;
                     15: {
                     16:        int     dev;
                     17:        char    newname[NAMLEN];
                     18: 
                     19:        if ( (dev=nammap(filenam, newname)) == SYSERR)
                     20:                return(SYSERR);
                     21:        return( open(dev, newname, mode) );
                     22: }

unix.superglobalmegacorp.com

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