unistd.h

来自「一个操作系统的源码部分」· C头文件 代码 · 共 85 行

H
85
字号
#ifndef UNISTD_H
#define UNISTD_H

typedef unsigned arg_t;
#define NULL_ARG	((arg_t) 0)

#define sys_os_info() \
    int386(0x00, NULL_ARG, NULL_ARG, NULL_ARG)

#define sys_Fork(time) \
    int386(0x01, NULL_ARG, time, NULL_ARG)

#define sys_LockProc(bLock)\
	  int386(0x04, bLock,       NULL_ARG, NULL_ARG)

#define sys_GetCurInstance()\
	  int386(0x05, NULL_ARG,    NULL_ARG, NULL_ARG)

#define sys_BlcokProc(hWnd)\
	  int386(0x06, hWnd,    NULL_ARG, NULL_ARG)

#define sys_WakeUpProc(hWnd)\
	  int386(0x07, hWnd,    NULL_ARG, NULL_ARG)

#define sys_kmalloc(size) \
	  int386(0x10, size, NULL_ARG, NULL_ARG)

#define sys_kfree(base,size)\
    int386(0x11, base, size, NULL_ARG)

#define sys_GetPageInfo(TotalPages,FreePages) \
	  int386(0x12, TotalPages, FreePages, NULL_ARG)

#define sys_GetMemHoleInfo(HoleSize,HoleNum)\
    int386(0x13, HoleSize, HoleNum, NULL_ARG)

#define sys_openfile(filename) \
	  int386(0x20, filename,     NULL_ARG, NULL_ARG)

#define sys_readfile(fp,buf,size)\
	  int386(0x21, fp,     buf,     size)

#define sys_RegisterWin(pWin)\
	  int386(0x30, pWin,     NULL_ARG,    NULL_ARG)

#define sys_SendMessage(hWnd,MesAddr)\
	  int386(0x34, hWnd,     MesAddr,     NULL_ARG)

#define sys_RefreshMsBuf(aInvRect)\
	  int386(0x38, aInvRect, NULL_ARG,    NULL_ARG)

#define sys_GetDC(hWnd)\
	  int386(0x40, hWnd,     NULL_ARG,    NULL_ARG)

#define sys_GetMsgQueue(hWnd)\
	  int386(0x41, hWnd,     NULL_ARG,    NULL_ARG)

#define sys_GetWndProc(hWnd)\
	  int386(0x42, hWnd,     NULL_ARG,    NULL_ARG)

#define sys_GetWndInstance(hWnd)\
	  int386(0x43, hWnd,     NULL_ARG,    NULL_ARG)

#define sys_SetWndPos(hWnd,pt)\
	  int386(0x44, hWnd,     pt,   NULL_ARG)

#define sys_SetWndSize(hWnd,w,h)\
	  int386(0x45, hWnd,     w,    h)

#define sys_GetWndRect(hWnd,pRect)\
	  int386(0x46, hWnd,      pRect,    NULL_ARG)

#define sys_SetBelowClipRgn(hWnd)\
	  int386(0x48, hWnd,     NULL_ARG,    NULL_ARG)

#define sys_SetBelowInvalidRgn(hWnd,pRect)\
	  int386(0x49, hWnd,     pRect,    NULL_ARG)

#define sys_SetAboveClipRgn(hWnd)\
	  int386(0x4A, hWnd,     NULL_ARG,    NULL_ARG)


int int386(int eax, unsigned ebx, unsigned ecx, unsigned edx);

#endif

⌨️ 快捷键说明

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