摘要:
// apuesunyj.h
#ifndef APUE_SUNYJ
#define APUE_SUNYJ #include #include #include #include #include #include #include int64_t const MAXLINE = 4096; // max line length
int64_t const ARG_MAX = 40... 阅读全文
posted @ 2015-02-11 10:34
孙永杰
阅读(294)
评论(0)
推荐(0)
摘要:
/* * 1.7ReadCommandsFromStandardInputAndExecuteThem.cpp * * Created on: Feb 11, 2015 * Author: sunyj */ #include #include "../apuesunyj.h" int main()
{ char buf[MAXLINE]; pid_t... 阅读全文
posted @ 2015-02-11 10:28
孙永杰
阅读(398)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2015-02-11 10:20
孙永杰
阅读(245)
评论(0)
推荐(0)
摘要:
under the directory of the project, create file .gdbinitwrite the "set follow-fork-mode child"then you can debug the child process 阅读全文
posted @ 2015-02-11 09:53
孙永杰
阅读(341)
评论(0)
推荐(0)
摘要:
1 /* 2 * 1.6PrintTheProcessID.cpp 3 * 4 * Created on: Feb 11, 2015 5 * Author: sunyj 6 */ 7 8 #include "../apuesunyj.h" 9 10 int main(void)
11 {
12 printf("hello wo... 阅读全文
posted @ 2015-02-11 08:43
孙永杰
阅读(271)
评论(0)
推荐(0)

浙公网安备 33010602011771号