xref: /freebsd/contrib/unifdef/tests/xterm.expout (revision fb3ef04d2028110f06d68b09009f1f2ca0f4128e)
1#define RES_OFFSET(field)	XtOffsetOf(XTERM_RESOURCE, field)
2#include <xterm.h>
3#include <version.h>
4#include <X11/cursorfont.h>
5#include <X11/Xlocale.h>
6#include <pwd.h>
7#include <ctype.h>
8#include <data.h>
9#include <error.h>
10#include <menu.h>
11#include <main.h>
12#include <xstrings.h>
13#include <xtermcap.h>
14#include <xterm_io.h>
15#include <sys/stat.h>
16#include <sys/resource.h>
17#define HAS_BSD_GROUPS
18#include <sys/param.h>		/* for NOFILE */
19#define WTMP
20#include <stdio.h>
21#define UTMP_STR utmp
22#include <libutil.h>		/* openpty() */
23#include <signal.h>
24#include <sys/wait.h>
25#define TERMCAP_ERASE "kb"
26#define VAL_INITIAL_ERASE A2E(8)
27#define VAL_LINE_SPEED B38400
28#define TERMIO_STRUCT struct termios
29#define ttySetAttr(fd, datap) tcsetattr(fd, TCSANOW, datap)
30#define ttyGetAttr(fd, datap) tcgetattr(fd, datap)
31#define ttyFlush(fd)          tcflush(fd, TCOFLUSH)
32#define TTYMODE(name) { name, sizeof(name)-1, 0, 0 }
33#define XTTYMODE_intr	0
34#define XTTYMODE_quit	1
35#define XTTYMODE_erase	2
36#define XTTYMODE_kill	3
37#define XTTYMODE_eof	4
38#define XTTYMODE_eol	5
39#define XTTYMODE_swtch	6
40#define XTTYMODE_start	7
41#define XTTYMODE_stop	8
42#define XTTYMODE_brk	9
43#define XTTYMODE_susp	10
44#define XTTYMODE_dsusp	11
45#define XTTYMODE_rprnt	12
46#define XTTYMODE_flush	13
47#define XTTYMODE_weras	14
48#define XTTYMODE_lnext	15
49#define XTTYMODE_status	16
50#define XTTYMODE_erase2	17
51#define XTTYMODE_eol2	18
52#define validTtyChar(data, n) \
53#define TMODE(ind,var) if (ttymodelist[ind].set) var = (cc_t) ttymodelist[ind].value
54#include <X11/Xmu/SysUtil.h>	/* XmuGetHostname */
55#define MIT_CONSOLE_LEN	12
56#define MIT_CONSOLE "MIT_CONSOLE_"
57#define SetUtmpHost(dst, screen) \
58{"#",		".iconGeometry",XrmoptionStickyArg,	(XPointer) NULL},
59{ "#geom",                 "icon window geometry" },
60    TRACE(("...decode_keyvalue %#x\n", value));
61#define isOption(string) (Boolean)((string)[0] == '-' || (string)[0] == '+')
62#define DATA(option,kind) { option, NULL, kind, (XtPointer) NULL }
63#undef DATA
64#define ITEM(n) ((Cardinal)(n) < XtNumber(optionDescList) \
65#undef ITEM
66#define disableSetUid()		/* nothing */
67#define disableSetGid()		/* nothing */
68#define DATA(name) { #name, es##name }
69#undef DATA
70#define USE_OPENPTY 1
71#define NO_FDS {-1, -1}
72#define TRACE_HANDSHAKE(tag, data)	/* nothing */
73    TRACE(("set_owner(%s, uid=%d, gid=%d, mode=%#o\n",
74		TRACE(("...stat uid=%d, gid=%d, mode=%#o\n",
75#define close_fd(fd) close(fd), fd = -1
76#define USE_NO_DEV_TTY 1
77	if ((ptr1 = x_strindex(oldtc, "co#")) == NULL) {
78	    strcat(oldtc, "co#80:");
79	    ptr1 = x_strindex(oldtc, "co#");
80	if ((ptr2 = x_strindex(oldtc, "li#")) == NULL) {
81	    strcat(oldtc, "li#24:");
82	    ptr2 = x_strindex(oldtc, "li#");
83	    TRACE(("...parsed #%d: %s=%#x\n", count, mp->name, c));
84