Add some definitions for Linux frame buffer/console ioctl APIs (#712)

Co-authored-by: tkchia <tkchia-cosmo@gmx.com>
This commit is contained in:
tkchia 2023-01-02 08:28:03 +08:00 committed by GitHub
parent d2f811eff3
commit 73507d5f4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 133 additions and 0 deletions

26
libc/sysv/consts/fbio.h Normal file
View file

@ -0,0 +1,26 @@
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_FB_H_
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_FB_H_
#include "libc/runtime/symbolic.h"
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
extern const uint64_t FBIOGET_VSCREENINFO;
extern const uint64_t FBIOPUT_VSCREENINFO;
extern const uint64_t FBIOGET_FSCREENINFO;
extern const uint64_t FBIOGETCMAP;
extern const uint64_t FBIOPUTCMAP;
extern const uint64_t FBIOPAN_DISPLAY;
extern const uint64_t FBIO_WAITFORVSYNC;
COSMOPOLITAN_C_END_
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
#define FBIOGET_VSCREENINFO SYMBOLIC(FBIOGET_VSCREENINFO)
#define FBIOPUT_VSCREENINFO SYMBOLIC(FBIOPUT_VSCREENINFO)
#define FBIOGET_FSCREENINFO SYMBOLIC(FBIOGET_FSCREENINFO)
#define FBIOGETCMAP SYMBOLIC(FBIOGETCMAP)
#define FBIOPUTCMAP SYMBOLIC(FBIOPUTCMAP)
#define FBIOPAN_DISPLAY SYMBOLIC(FBIOPAN_DISPLAY)
#define FBIO_WAITFORVSYNC SYMBOLIC(FBIO_WAITFORVSYNC)
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_FB_H_ */