mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 20:40:28 +00:00
Add some definitions for Linux frame buffer/console ioctl APIs (#712)
Co-authored-by: tkchia <tkchia-cosmo@gmx.com>
This commit is contained in:
parent
d2f811eff3
commit
73507d5f4e
21 changed files with 133 additions and 0 deletions
36
libc/sysv/consts/kd.h
Normal file
36
libc/sysv/consts/kd.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_KD_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_KD_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
extern const uint64_t GIO_FONT;
|
||||
extern const uint64_t PIO_FONT;
|
||||
extern const uint64_t GIO_FONTX;
|
||||
extern const uint64_t PIO_FONTX;
|
||||
extern const uint64_t PIO_FONT8x8;
|
||||
extern const uint64_t PIO_FONT8x14;
|
||||
extern const uint64_t PIO_FONT8x16;
|
||||
extern const uint64_t PIO_VFONT;
|
||||
extern const uint64_t PIO_FONTRESET;
|
||||
extern const uint64_t KDFONTOP;
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
|
||||
#define GIO_FONT SYMBOLIC(GIO_FONT)
|
||||
#define PIO_FONT SYMBOLIC(PIO_FONT)
|
||||
#define GIO_FONTX SYMBOLIC(GIO_FONTX)
|
||||
#define PIO_FONTX SYMBOLIC(PIO_FONTX)
|
||||
#define PIO_FONT8x8 SYMBOLIC(PIO_FONT8x8)
|
||||
#define PIO_FONT8x14 SYMBOLIC(PIO_FONT8x14)
|
||||
#define PIO_FONT8x16 SYMBOLIC(PIO_FONT8x14)
|
||||
#define PIO_VFONT SYMBOLIC(PIO_VFONT)
|
||||
#define PIO_FONTRESET SYMBOLIC(PIO_FONTRESET)
|
||||
#define KDFONTOP SYMBOLIC(KDFONTOP)
|
||||
|
||||
#ifdef _BSD_SOURCE
|
||||
#define PIO_VFONT_DEFAULT PIO_FONTRESET
|
||||
#endif
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_KD_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue