上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页
摘要: // 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 孙永杰 阅读(290) 评论(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 孙永杰 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-02-11 10:20 孙永杰 阅读(240) 评论(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 孙永杰 阅读(331) 评论(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 孙永杰 阅读(265) 评论(0) 推荐(0) 编辑
摘要: /* * 1.5CopyStandardInputToStandardOutputUsingStandardIO.cpp * * Created on: Feb 10, 2015 * Author: sunyj */ #include "../apuesunyj.h" /* The standard I/O functions provide a buffered... 阅读全文
posted @ 2015-02-10 20:55 孙永杰 阅读(184) 评论(0) 推荐(0) 编辑
摘要: // 1.4CopyStandardInputToStandardOutput.cpp #include "../apuesunyj.h" #define BUFFSIZE 4096 int main() { int n; char buf[BUFFSIZE]; // By convention, all shells open three descriptors ... 阅读全文
posted @ 2015-02-10 19:55 孙永杰 阅读(298) 评论(0) 推荐(0) 编辑
摘要: // 1.3ListAllTheFilesInADirectory.cpp#include #include "../apuesunyj.h"int main(int argc, char *argv[]){ DIR* dp; struct dirent* dirp; if (2 != argc) ... 阅读全文
posted @ 2015-02-10 19:10 孙永杰 阅读(228) 评论(0) 推荐(0) 编辑
摘要: // apuesunyj.h#ifndef APUE_SUNYJ#define APUE_SUNYJ#include #include #include #include #include #include void err_quit(const char *fmt, ...);void err_s... 阅读全文
posted @ 2015-02-10 17:46 孙永杰 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 将所有/etc/yum.repos.d/下面的文件,中https更改为http,避免yum问题sudo yum -y install vnc-server 阅读全文
posted @ 2015-02-10 13:59 孙永杰 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 21 下一页