⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _sys.h

📁 一个类linux的dos下开发的操作系统.
💻 H
字号:
/* Warning: this file is #included by both C and NASM code.
This file should contain only #define statements */

#ifndef __TL__SYS_H
#define	__TL__SYS_H

#ifdef __cplusplus
extern "C"
{
#endif

/* this must agree with the IDT layout in file STARTUP.ASM */
#define	SYSCALL_INT	0x30

/* file I/O */
#define	SYS_OPEN	0
#define	SYS_CLOSE	1
#define	SYS_WRITE	2
#define	SYS_READ	3
#define SYS_IOCTL	4	/* odds and ends */
#define SYS_SELECT	5	/* wait for file/device to change status */
#define	SYS_STAT	6	/* get length, perms, etc. of open file */
#define	SYS_SEEK	7
#define SYS_MMAP	8	/* memory-mapped files */
/* memory */
#define	SYS_SBRK	9	/* change size of data segment */
/* misc */
#define	SYS_TIME	10	/* get time-of-day */
/* tasks */
#define SYS_EXIT	11	/* task suicide */
#define	SYS_SLEEP	12	/* give up time slices for N microseconds */

#define	SYS_RUN		13	/* new program, new address space */
#define SYS_FORK	14	/* same program, new address space */
#define SYS_EXEC	15	/* new program, same address space */

#define SYS_WAIT	16	/* wait for other task to exit */
#define SYS_NICE	17	/* change priority of other task */
#define SYS_TASKINFO	18	/* get info about other task(s) */
/* signals */
#define	SYS_KILL	19


#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -