- 博客(3)
- 收藏
- 关注
原创 创建守护进程
#include int daemon(int nochdir, int noclose); 1. daemon()函数主要用于希望脱离控制台,以守护进程形式在后台运行的程序。 2. 当nochdir为0时,daemon将更改进城的根目录为root(“/”)。 3. 当noclose为0是,daemon将进城的STDIN, STDOUT, STDERR都重定向到/dev/null。
2013-10-21 16:07:46 301
原创 setbuf关闭流缓冲
setbuf 打开和关闭缓冲机制。 功 能: 把缓冲区与流相联 用 法: void setbuf(FILE *steam, char *buf); 说明:setbuf函数具有打开和关闭缓冲机制。为了带缓冲进行I/O,参数buf必须指向一个长度为BUFSIZ(定义在stdio.h头文件中)的缓冲区。通常在此之后该流就是全缓冲的,但是如果该流与一个终端设备相关,那么某
2013-10-21 15:53:16 693
原创 warning: implicit declaration of function 与c99
-U__STRICT_ANSI_ 解决 http://www.nntp.perl.org/group/perl.perl5.porters/2007/02/msg120546.html toke.c:544: warning: implicit declaration of function `strlcpy' toke.c:6178: warning: implicit declar
2013-09-24 16:58:38 3506
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人