unix.h
来自「geekos 0.3.0简单的操作系统」· C头文件 代码 · 共 41 行
H
41 行
/* * Emulation of Unix system calls and C library functions * Copyright (c) 2004, David H. Hovemeyer <daveho@cs.umd.edu> * $Revision: 1.2 $ * * This is free software. You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". */#ifndef UNIX_H#define UNIX_H#include <fileio.h>#include <conio.h>/* * This module contains Unix system calls and C library * functions needed for the ae editor. * FIXME: this file should be split up according to * POSIX and ISO C standards. */extern int errno;static __inline__ int isspace(int c) { return c == ' ' || c == '\f' || c == '\n' || c == '\r' || c == '\t' || c == '\v';}#define printf(args...) Print(args)int read(int fd, void *buf, size_t sz);int write(int fd, void *buf, size_t sz);int creat(const char *path, int flags);int open(const char *path, int flags);int close(int fd);int exit(int exitCode);const char *strerror(int errno);#endif /* UNIX_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?