add get_window_size

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1161 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-01-15 11:39:46 +00:00
parent 0da419d602
commit f9269fab6f
3 changed files with 29 additions and 2 deletions

View File

@@ -61,6 +61,10 @@
#include <netinet/in.h>
#endif
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
#include "protos.h"
#ifndef HAVE_PUTENV
@@ -206,6 +210,15 @@ void inaddr2str(struct in_addr addr, char *s, size_t len);
void mini_inetd (int port);
#ifndef HAVE_STRUCT_WINSIZE
struct winsize {
unsigned short ws_row, ws_col;
unsigned short ws_xpixel, ws_ypixel;
};
#endif
int get_window_size(int fd, struct winsize *);
#ifndef INADDR_NONE
#define INADDR_NONE 0xffffffff
#endif