目录: http://blog.csdn.net/alex_my/article/details/39346381
process control
1 exec functions
#include <unistd.h>
extern char** environ;
int execl(const char* path, const c
目录: http://blog.csdn.net/alex_my/article/details/39346381
process control
1 process identifiers
每一个进程都有一个唯一的非负整型做为标识符。
#include <unistd.h>
pid_t getpid();
pid_t getppi
目录: http://blog.csdn.net/alex_my/article/details/39346381
process environment
1 exit, _exit, _Exit and atexit
在解释前三个之前先说说这个:
#include <stdlib.h>
i
目录: http://blog.csdn.net/alex_my/article/details/39346381
system data files and infomation
1 password file
终端上输入cat /etc/passwd
可以看见很多相关信息。
也可以通过以下函数:
#inc
目录: http://blog.csdn.net/alex_my/article/details/39346381
date and time
涉及到的函数列出如下,然后再举例运行,输出结果,比较直观。
时间这块资料有限,如果有误,还望指正。
#include <time.h>
time_t tim