1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * Copyright 1987 Sun Microsystems, Inc. All rights reserved. 3*0Sstevel@tonic-gate * Use is subject to license terms. 4*0Sstevel@tonic-gate */ 5*0Sstevel@tonic-gate 6*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 7*0Sstevel@tonic-gate 8*0Sstevel@tonic-gate /* 9*0Sstevel@tonic-gate * Copyright (c) 1983 Regents of the University of California. 10*0Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement 11*0Sstevel@tonic-gate * specifies the terms and conditions for redistribution. 12*0Sstevel@tonic-gate */ 13*0Sstevel@tonic-gate 14*0Sstevel@tonic-gate #ifndef _ttyent_h 15*0Sstevel@tonic-gate #define _ttyent_h 16*0Sstevel@tonic-gate 17*0Sstevel@tonic-gate struct ttyent { /* see getttyent(3) */ 18*0Sstevel@tonic-gate char *ty_name; /* terminal device name */ 19*0Sstevel@tonic-gate char *ty_getty; /* command to execute, usually getty */ 20*0Sstevel@tonic-gate char *ty_type; /* terminal type for termcap (3X) */ 21*0Sstevel@tonic-gate int ty_status; /* status flags (see below for defines) */ 22*0Sstevel@tonic-gate char *ty_window; /* command to start up window manager */ 23*0Sstevel@tonic-gate char *ty_comment; /* usually the location of the terminal */ 24*0Sstevel@tonic-gate }; 25*0Sstevel@tonic-gate 26*0Sstevel@tonic-gate #define TTY_ON 0x1 /* enable logins (startup getty) */ 27*0Sstevel@tonic-gate #define TTY_SECURE 0x2 /* allow root to login */ 28*0Sstevel@tonic-gate #define TTY_LOCAL 0x4 /* local tty, supply software carrier */ 29*0Sstevel@tonic-gate 30*0Sstevel@tonic-gate extern struct ttyent *getttyent(); 31*0Sstevel@tonic-gate extern struct ttyent *getttynam(); 32*0Sstevel@tonic-gate 33*0Sstevel@tonic-gate #endif /*!_ttyent_h*/ 34