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:
@@ -41,10 +41,11 @@ SOURCES = \
|
||||
seteuid.c signal.c strcasecmp.c strchr.c strdup.c \
|
||||
strerror.c strftime.c strlwr.c strnlen.c strrchr.c \
|
||||
strupr.c tm2time.c unsetenv.c verify.c verr.c \
|
||||
verrx.c vsyslog.c vwarn.c vwarnx.c warn.c warnx.c
|
||||
verrx.c vsyslog.c vwarn.c vwarnx.c warn.c warnx.c \
|
||||
get_window_size.c
|
||||
|
||||
OBJECTS = k_getpwuid.o k_getpwnam.o signal.o tm2time.o \
|
||||
verify.o inaddr2str.o mini_inetd.o \
|
||||
verify.o inaddr2str.o mini_inetd.o get_window_size.o \
|
||||
@LIBOBJS@
|
||||
|
||||
all: $(LIB)
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user