摘要:
// 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... 阅读全文
摘要:
/* * 1.7ReadCommandsFromStandardInputAndExecuteThem.cpp * * Created on: Feb 11, 2015 * Author: sunyj */ #include #include "../apuesunyj.h" int main()
{ char buf[MAXLINE]; pid_t... 阅读全文
摘要:
阅读全文
摘要:
under the directory of the project, create file .gdbinitwrite the "set follow-fork-mode child"then you can debug the child process 阅读全文
摘要:
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... 阅读全文