Luna/libs/libc/include/sys/ioctl.h
apio 249c79f8a3 Kernel, libc: Add ioctl()
Right now, only the framebuffer supports this system call, to query its dimensions.
2022-11-02 20:59:42 +01:00

23 lines
425 B
C

#ifndef _SYS_IOCTL_H
#define _SYS_IOCTL_H
#include <sys/types.h>
/* Get the width of a framebuffer device. */
#define FB_GET_WIDTH 0
/* Get the height of a framebuffer device. */
#define FB_GET_HEIGHT 1
#ifdef __cplusplus
extern "C"
{
#endif
/* Perform an arbitrary operation on an open file descriptor. Many operations are device-specific. */
int ioctl(int fd, int cmd, ...);
#ifdef __cplusplus
}
#endif
#endif