File:  [Research Unix] / researchv10no / ipc / mgrs / svcmgr / ld_act.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

#include "mgr.h"
#include <pwd.h>
#include <sys/filio.h>
#include <sys/inio.h>
#include "defs.h"

/*
 *  action routines to pushline disciplines
 */
mesgld(rp, ap)
	Request *rp;
	Action *ap;
{
	extern int rmesg_ld;
	int rv;

	USE(ap);
	rv = ioctl(rp->i->cfd, FIOPUSHLD, &rmesg_ld);
	if(rv<0)
		errstr = "can't push rmesg line disc";
	return rv;
}

ttyld(rp, ap)
	Request *rp;
	Action *ap;
{
	extern int tty_ld;
	int rv;

	USE(ap);
	rv = ioctl(rp->i->cfd, FIOPUSHLD, &tty_ld);
	if(rv<0)
		errstr = "can't push tty line disc";
	return rv;
}

#ifdef PEX
/*
 *  what did this come from? -- presotto
 */
pex(rp, ap)
	Request *rp;
	Action *ap;
{
	USE(ap);
	ioctl(rp->i->cfd, FIOAPX, 0);	/* make channel lockable */
	return 0;
}
#endif PEX

/*
 *  do the ioctl that disables one way hangups on tcp channels
 */
tcphup(rp, ap)
	Request *rp;
	Action *ap;
{
	USE(ap);
	ioctl(rp->i->cfd, TCPIOHUP, 0);
	return 0;
}

unix.superglobalmegacorp.com

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