/*
 * @DEC_COPYRIGHT@
 */
/*
 * HISTORY
 * $Log:	ttyloc.h,v $
 * Revision 4.2  91/09/19  23:02:09  devbld
 * Adding ODE Headers
 * 
 * $EndLog$
 */
/*	
 *	@(#)$RCSfile: ttyloc.h,v $ $Revision: 4.2 $ (DEC) $Date: 91/09/19 23:02:09 $
 */ 
/*
 */
/*
 * (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
 * ALL RIGHTS RESERVED
 */
/* 
 * Mach Operating System
 * Copyright (c) 1989 Carnegie-Mellon University
 * Copyright (c) 1988 Carnegie-Mellon University
 * Copyright (c) 1987 Carnegie-Mellon University
 * All rights reserved.  The CMU software License Agreement specifies
 * the terms and conditions for use and redistribution.
 */
/*
 * OSF/1 Release 1.0
 */

#ifndef	_SYS_TTYLOC_H_
#define _SYS_TTYLOC_H_

struct ttyloc
{
    long tlc_hostid;		/* host identifier of location (on Internet) */
    long tlc_ttyid;		/* terminal identifier of location (on host) */
};

/*
 *  Pseudo host location of Front Ends
 */
#define TLC_FEHOST	((128<<24)|(2<<16)|(254<<8)|255)
#define TLC_SPECHOST	((0<<24)|(0<<16)|(0<<8)|0)

/*
 *  Pseudo terminal index of console
 */
#define TLC_CONSOLE	((unsigned short)0177777)
#define TLC_DISPLAY	((unsigned short)0177776)

/*
 *  Constants
 */
#define TLC_UNKHOST	((long)(0))
#define TLC_UNKTTY	((long)(-1))
#define TLC_DETACH	((long)(-2))
#define TLC_TACTTY	((long)(-3))		/* unused by kernel */
#define TLC_RANDOMTTY	((long)(-4))		/* unused by kernel */

#ifdef	KERNEL
#include <sys/kernel.h>		/* for hostid */

/*
 *  IP address of local host (as determined by the network module)
 */
#define TLC_MYHOST	(hostid)

#endif	/* KERNEL */
#endif	/* _SYS_TTYLOC_H_ */
