cosmopolitan/libc/calls/struct/winsize.internal.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
505 B
C
Raw Normal View History

#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_WINSIZE_INTERNAL_H_
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_WINSIZE_INTERNAL_H_
#include "libc/calls/struct/winsize.h"
#include "libc/intrin/fds.h"
#include "libc/mem/alloca.h"
COSMOPOLITAN_C_START_
int tcgetwinsize_nt(int, struct winsize *);
const char *_DescribeWinsize(char[64], int, const struct winsize *);
#define DescribeWinsize(rc, ws) _DescribeWinsize(alloca(64), rc, ws)
COSMOPOLITAN_C_END_
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_WINSIZE_INTERNAL_H_ */