xv6-simplified 0.1
简化版xv6
Loading...
Searching...
No Matches
Functions
user.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int exit (int) __attribute__((noreturn))
 退出当前进程,不返回,该退出的进程在其父进程调用wait()之前保持僵尸进程状态
 
int exec (const char *, char **)
 
int write (int, char, int)
 
char * strcpy (char *s, const char *t)
 将字符串t的内容复制给s
 
int strcmp (const char *p, const char *q)
 比较两个字符串的大小
 
uint strlen (const char *s)
 计算字符串长度(不包含'\0')
 
void * memset (void *dst, int c, uint n)
 将指针指向的地址统一赋值为c
 
void fprintf (int fd, const char *fmt,...)
 向文件描述符fd输出标准格式字符串
 
void printf (const char *fmt,...)
 在终端打印标准格式字符串
 

Function Documentation

◆ exec()

int exec ( const char *  ,
char **   
)

◆ exit()

int exit ( int  status)

退出当前进程,不返回,该退出的进程在其父进程调用wait()之前保持僵尸进程状态

Parameters
status该进程退出时的状态

◆ fprintf()

void fprintf ( int  fd,
const char *  fmt,
  ... 
)

向文件描述符fd输出标准格式字符串

Parameters
fd文件描述符
fmt标准格式字符串
...可变参数列表
Here is the call graph for this function:
Here is the caller graph for this function:

◆ memset()

void * memset ( void *  dst,
int  c,
uint  n 
)

将指针指向的地址统一赋值为c

Parameters
dst指向待赋值地址的指针
c所赋的值
n赋值的长度
Returns
赋值的开始地址

将指针指向的地址统一赋值为c

Parameters
dst待赋值的内存开始指针
c将赋值的值
n赋值空间的大小
Returns
赋值后的内存开始指针

◆ printf()

void printf ( const char *  fmt,
  ... 
)

在终端打印标准格式字符串

Parameters
fmt标准格式字符串
...可变参数列表
Here is the call graph for this function:

◆ strcmp()

int strcmp ( const char *  p,
const char *  q 
)

比较两个字符串的大小

Parameters
p待比较的前一个字符串
q待比较的后一个字符串
Returns
比较结果:0: 相等 +:前者大 -:后者大

◆ strcpy()

char * strcpy ( char *  s,
const char *  t 
)

将字符串t的内容复制给s

Parameters
s目标字符串指针
t源字符串指针
Returns
目标字符串指针
Here is the caller graph for this function:

◆ strlen()

uint strlen ( const char *  s)

计算字符串长度(不包含'\0')

Parameters
s待计算的字符串
Returns
字符串s的长度

计算字符串长度(不包含'\0')

Parameters
s
Returns
字符串s的长度

◆ write()

int write ( int  ,
char  ,
int   
)
Here is the caller graph for this function: