unistd.h

来自「一个微型操作系统源码」· C头文件 代码 · 共 57 行

H
57
字号
/* * OSV * Copyright (C) 2002 Ciprian DOSOFTEI <rocksoul@mail.com> * All rights reserved. *  * http://backster.free.fr/osv * * This file is part of the OSV project. OSV is free software, also known as * "open source"; you can redistribute it and/or modify it under the terms  * of the GNU General Public License (GPL), version 2, as published by the Free * Software Foundation (FSF). To explore alternate licensing terms, contact  * the author at rocksoul@mail.com or +40740649907. *  * OSV is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE.  See the GPL for more details.  You should have * received a copy of the GPL along with OSV; see the file COPYING.  If * not, write to the FSF, 59 Temple Place #330, Boston, MA 02111-1307, USA. */#ifndef INCUNISTD#define INCUNISTD#ifdef __cplusplusextern "C" {#endif#include <types.h>#define SEEK_SET	0#define SEEK_CUR	1#define SEEK_END	2#define STDIN_FILENO		0#define STDOUT_FILENO		1#define STDERR_FILENO		2int	access(const char* path, int amode);int	chdir(const char* path);int	close(int h);int	dup(int h);int	dup2(int h, int h2);char*	getcwd(char* buf, size_t size);int     seek(int h, uint pos);off_t	lseek(int h, off_t offset, int whence);int	read(int h, void* buf, size_t cb);int	rmdir(const char *_path);uint	sleep(uint seconds);int	unlink(const char* path);int	write(int h, const void* buf, size_t cb);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

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