MCPcopy Create free account
hub / github.com/NetHack/NetHack / getioctls

Function getioctls

sys/share/ioctl.c:118–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void
119getioctls(void)
120{
121#ifdef BSD_JOB_CONTROL
122 (void) ioctl(fileno(stdin), (int) TIOCGLTC, (char *) &ltchars);
123 (void) ioctl(fileno(stdin), (int) TIOCSLTC, (char *) &ltchars0);
124#else
125#ifdef POSIX_TYPES
126 (void) tcgetattr(fileno(stdin), &termio);
127#else
128#if defined(TCSETS) && !defined(AIX_31)
129 (void) ioctl(fileno(stdin), (int) TCGETS, &termio);
130#else
131 (void) ioctl(fileno(stdin), (int) TCGETA, &termio);
132#endif
133#endif
134#endif
135 getwindowsz();
136#ifdef AUX
137 (void) signal(SIGTSTP, catch_stp);
138#endif
139}
140
141void
142setioctls(void)

Callers 1

getttyFunction · 0.85

Calls 1

getwindowszFunction · 0.70

Tested by

no test coverage detected