Annotation of researchv10no/ipc/mgrs/svcmgr/ld_act.c, revision 1.1

1.1     ! root        1: #include "mgr.h"
        !             2: #include <pwd.h>
        !             3: #include <sys/filio.h>
        !             4: #include <sys/inio.h>
        !             5: #include "defs.h"
        !             6: 
        !             7: /*
        !             8:  *  action routines to pushline disciplines
        !             9:  */
        !            10: mesgld(rp, ap)
        !            11:        Request *rp;
        !            12:        Action *ap;
        !            13: {
        !            14:        extern int rmesg_ld;
        !            15:        int rv;
        !            16: 
        !            17:        USE(ap);
        !            18:        rv = ioctl(rp->i->cfd, FIOPUSHLD, &rmesg_ld);
        !            19:        if(rv<0)
        !            20:                errstr = "can't push rmesg line disc";
        !            21:        return rv;
        !            22: }
        !            23: 
        !            24: ttyld(rp, ap)
        !            25:        Request *rp;
        !            26:        Action *ap;
        !            27: {
        !            28:        extern int tty_ld;
        !            29:        int rv;
        !            30: 
        !            31:        USE(ap);
        !            32:        rv = ioctl(rp->i->cfd, FIOPUSHLD, &tty_ld);
        !            33:        if(rv<0)
        !            34:                errstr = "can't push tty line disc";
        !            35:        return rv;
        !            36: }
        !            37: 
        !            38: #ifdef PEX
        !            39: /*
        !            40:  *  what did this come from? -- presotto
        !            41:  */
        !            42: pex(rp, ap)
        !            43:        Request *rp;
        !            44:        Action *ap;
        !            45: {
        !            46:        USE(ap);
        !            47:        ioctl(rp->i->cfd, FIOAPX, 0);   /* make channel lockable */
        !            48:        return 0;
        !            49: }
        !            50: #endif PEX
        !            51: 
        !            52: /*
        !            53:  *  do the ioctl that disables one way hangups on tcp channels
        !            54:  */
        !            55: tcphup(rp, ap)
        !            56:        Request *rp;
        !            57:        Action *ap;
        !            58: {
        !            59:        USE(ap);
        !            60:        ioctl(rp->i->cfd, TCPIOHUP, 0);
        !            61:        return 0;
        !            62: }

unix.superglobalmegacorp.com

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