aboutsummaryrefslogtreecommitdiff
path: root/misc/sgtty.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-27 20:16:19 +0000
committerRoland McGrath <roland@gnu.org>1996-05-27 20:16:19 +0000
commit807912915b065225c55bf0ac0277cb71fc394e6d (patch)
tree8a9f28acd562fabf51b882ea4197a3887b61d86a /misc/sgtty.h
parentd36e76923049df98b0f5c99a32cdd79302bf9dff (diff)
downloadglibc-807912915b065225c55bf0ac0277cb71fc394e6d.zip
glibc-807912915b065225c55bf0ac0277cb71fc394e6d.tar.gz
glibc-807912915b065225c55bf0ac0277cb71fc394e6d.tar.bz2
* sysdeps/unix/sysv/linux/Makefile [$(subdir)=termios] (headers):
Append termio.h. * Makefile ($(includedir)/stubs.h): Print a msg if we do nothing. * misc/sgtty.h: Add forward decl of struct sgttyb in case it is never defined. * sysdeps/unix/sysv/linux/termio.h: New file. * sysdeps/unix/sysv/linux/Dist: Add it. * sysdeps/unix/sysv/linux/ioctl-types.h: New file, wrapper around kernel header <asm/termios.h>. * misc/Makefile (headers): Add ioctl-types.h. * sysdeps/generic/ioctl-types.h: New file. * misc/sys/ioctl.h: Include <ioctl-types.h>. (struct tchars, struct ltchars, struct sgttyb, struct winsize, struct ttysize): Types moved there.
Diffstat (limited to 'misc/sgtty.h')
-rw-r--r--misc/sgtty.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/sgtty.h b/misc/sgtty.h
index 00d13a4..29acb59 100644
--- a/misc/sgtty.h
+++ b/misc/sgtty.h
@@ -22,6 +22,10 @@ Cambridge, MA 02139, USA. */
#include <sys/ioctl.h>
+/* On some systems this type is not defined by <ioctl-types.h>;
+ in that case, the functions are just stubs that return ENOSYS. */
+struct sgttyb;
+
__BEGIN_DECLS
/* Fill in *PARAMS with terminal parameters associated with FD. */