unistd.h

来自「T-kernel 的extension源代码」· C头文件 代码 · 共 59 行

H
59
字号
/* *---------------------------------------------------------------------- *    T-Kernel / Standard Extension * *    Copyright (C) 2006 by Ken Sakamura. All rights reserved. *    T-Kernel / Standard Extension is distributed  *      under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * *    Version:   1.00.00 *    Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* *	unistd.h * */#ifndef __STDFILE_UNISTD_H__#define __STDFILE_UNISTD_H__#include "sys/types.h"#include "sys/unistd.h"#ifdef __cplusplusextern "C" {#endif/* Default file descriptor */#define	STDIN_FILENO		0	/* Standard input */#define	STDOUT_FILENO		1	/* Standard output */#define	STDERR_FILENO		2	/* Standard error output *//* * System call */extern int	close( int fildes );extern off_t	lseek( int fildes, off_t offset, int whence );extern ssize_t	read( int fildes, void *buf, size_t nbyte );extern ssize_t	write( int fildes, const void *buf, size_t nbyte );extern int	unlink( const char *path );extern int	rmdir( const char *path );extern int	dup( int oldd );extern int	dup2( int oldd, int newd );extern int	fsync( int fd );extern int	chdir( const char *path );extern int	fchdir( int fd );extern int	truncate( const char *path, off_t length );extern int	ftruncate( int fildes, off_t length );extern void	sync( void );extern char*	getcwd( char *buf, size_t size );#ifdef __cplusplus}#endif#endif /* __STDFILE_UNISTD_H__ */

⌨️ 快捷键说明

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