/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2010 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* AT&T Research
* return terminal rows and cols
*/
#include <ast.h>
#include <ast_tty.h>
#if defined(__STDPP__directive) && defined(__STDPP__hide)
#else
#define ioctl ______ioctl
#define sleep ______sleep
#endif
#if _sys_ioctl
#endif
#if defined(TIOCGWINSZ)
#if _sys_stream && _sys_ptem
#endif
#else
#if !defined(TIOCGSIZE) && !defined(TIOCGWINSZ)
#if _hdr_jioctl
#include <jioctl.h>
#else
#if _sys_jioctl
#endif
#endif
#endif
#endif
#if defined(__STDPP__directive) && defined(__STDPP__hide)
#else
#endif
static int ttctl(int, int, void*);
void
{
#ifdef TIOCGWINSZ
#define NEED_ttctl
{
}
else
#else
#ifdef TIOCGSIZE
#define NEED_ttctl
{
}
else
#else
#ifdef JWINSIZE
#define NEED_ttctl
{
}
else
#endif
#endif
#endif
{
char* s;
}
}
#ifdef NEED_ttctl
/*
* tty ioctl() -- no cache
*/
static int
{
register int v;
if (fd < 0)
{
{
return(v);
}
}
return(-1);
}
#endif