[8204] in Athena Bugs

home help back first fref pref prev next nref lref last post

rsaix 7.3M: sys/ioctl.h

daemon@ATHENA.MIT.EDU (Marc Horowitz)
Sun Sep 15 05:39:25 1991

To: bugs@ATHENA.MIT.EDU
Date: Sun, 15 Sep 91 05:40:05 EDT
From: Marc Horowitz <marc@ATHENA.MIT.EDU>

System name:		rosebud
Type and version:	POWER 7.3M (1 update(s) to same version)
Display type:		

What were you trying to do?
	More of the last bug report.

What's wrong:
	The block near the top of ioctl is #ifdef'd at all.  From the
InfoExplorer section "TTY Subsystem Overview: par 14":

    TTY Common Code

    The /usr/include/sys/ioctl.h file describes the interface to the
    services provided by the TTY common code.  The ioctl.h file, which is
    used by all of the disciplines, includes the winsize structure as well
    as several ioctl commands.

    Common ioctl Commands for Terminal Device Support

    There are three ioctl commands defined in the /usr/include/sys/ioctl.h
    file for terminal device (TTY) support that can be used regardless of
    which discipline is currently in effect.

	      TXISATTY

	      TXTTYNAME

	      TXGETCD

There is no indication here that you can only use this stuff if you
are compiling in the _POSIX_SOURCE, _XOPEN_SOURCE, and _ANSI_C_SOURCE
environments all at the same time.  Sheesh.

What should have happened:
	remove the #ifdef/#endif altogether.

Please describe any relevant documentation references:
	See above.  Don'cha love it when the docs contradict the code, and
	the *code* is wrong?

home help back first fref pref prev next nref lref last post