Annotation of xinu/sys/LSI/dskbcpy.c, revision 1.1.1.1

1.1       root        1: /* dskbcpy.c - dskbcpy */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <disk.h>
                      6: 
                      7: /*------------------------------------------------------------------------
                      8:  *  dskbcpy  --  copy data into a new disk buffer and return its address
                      9:  *------------------------------------------------------------------------
                     10:  */
                     11: dskbcpy(oldbuf)
                     12: char   *oldbuf;
                     13: {
                     14:        int     i;
                     15:        char    *newbuf, *to;
                     16: 
                     17:        newbuf = to = getbuf(dskdbp);
                     18:        for (i=0 ; i<DBUFSIZ ; i++)
                     19:                *to++ = *oldbuf++;
                     20:        return(newbuf);
                     21: }

unix.superglobalmegacorp.com

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