Annotation of researchv10no/netfs/libnetb/mixwhocalled.c, revision 1.1

1.1     ! root        1: /* 
        !             2:  * who called me;
        !             3:  * 4BSD socket-using machines
        !             4:  * that also run research connection server
        !             5:  */
        !             6: 
        !             7: #define        NULL    0
        !             8: 
        !             9: char *_rfcallsource();
        !            10: char *_rfbsdpeer();
        !            11: 
        !            12: char *
        !            13: _rfwhocalled(cfd)
        !            14: int cfd;
        !            15: {
        !            16:        static char buf[100];   /* arbitrary */
        !            17:        char *p;
        !            18: 
        !            19:        if ((p = _rfcallsource()) != NULL)
        !            20:                return (p);
        !            21:        if ((p = _rfbsdpeer(cfd)) != NULL) {
        !            22:                strcpy(buf, "tcp!");
        !            23:                strcat(buf, p);
        !            24:                return (buf);
        !            25:        }
        !            26:        return (NULL);
        !            27: }

unix.superglobalmegacorp.com

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