Annotation of researchv10no/cmd/adb/g/gtou.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * gnope to unix mapping
                      3:  */
                      4: 
                      5: int
                      6: Read(f, b, s)
                      7: int f;
                      8: char *b;
                      9: int s;
                     10: {
                     11:        return (read(f, b, (long)s));
                     12: }
                     13: 
                     14: int
                     15: Write(f, b, s)
                     16: int f;
                     17: char *b;
                     18: int s;
                     19: {
                     20:        return (write(f, b, (long)s));
                     21: }
                     22: 
                     23: typedef (*pf)();
                     24: 
                     25: pf
                     26: signal(s, f)
                     27: int s;
                     28: pf f;
                     29: {
                     30:        return ((pf)0);
                     31: }
                     32: 
                     33: char *
                     34: Malloc(sz)
                     35: int sz;
                     36: {
                     37:        char *malloc();
                     38: 
                     39:        return (malloc((long)sz));
                     40: }

unix.superglobalmegacorp.com

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