APUE(Advanced Programming In The Unix Environment
guocai_yao
态度决定一切
展开
-
APUE手记00之准备工作
学习环境搭建:① xp下虚拟机上安装ubuntu9.04② 所需材料(APUE(Advanced Programming In The Unix Environment, Unix环境高级编程)+中文第一版+英文第二版+源码)l Advanced.Programming.In.The.Unix.Environment.(2005).2Ed,APUE英文版第二版;l原创 2010-01-16 18:04:00 · 731 阅读 · 0 评论 -
APUE手记01之第一个例程的运行myls.c
1. 环境环境:ubuntu 9.04;gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3;程序来源:书1.3.3节-路径名 程序1-12. 编译前配置① 拷贝源码下apue.h到/usr/include目录下,apue.h文件具体内容如下: /* Our own header, to be included before all standard system原创 2010-01-16 18:05:00 · 2137 阅读 · 1 评论 -
手记03之APUE源码包编译
1. 从http://www.apuebook.com下载源码包2. 解压缩,并认真阅读REAME并设置目录To build the source, edit the Make.defines.* file for your system and set WKDIR to the pathname of the tree containing the source code. Then j原创 2010-05-29 22:16:00 · 567 阅读 · 0 评论 -
手记02之安装Linux User's Manual
Ubuntu默认安装的manual是不全的,欲安装Linux Users Manual执行下面命令使之完全。 #sudo apt-get install manpages-dev原创 2010-05-29 22:14:00 · 578 阅读 · 0 评论 -
手记04之例程安排组织文件Sourcefiles
从http://www.apuebook.com下载源码包里面没有Sourcefiles文件,这样看书中例程源码或者运行例程的时候就会不知道从上哪儿去找文件下载:http://download.csdn.net/source/2407803 ps: 第二版的源码(apue.2e)不知道哪个文件可以看到例程的组织结构,待求证。原创 2010-05-29 22:20:00 · 501 阅读 · 0 评论 -
手记06之shell如何执行脚本
1. 执行执行内建命令 $ [root@localhost Desktop]# type -a lsls is aliased to `ls --color=ttyls is /bin/ls[root@localhost Desktop]# type -a typetype is a shell builtin原创 2010-05-29 22:23:00 · 759 阅读 · 0 评论 -
手记06之shell如何执行脚本
1. 执行执行内建命令 $ [root@localhost Desktop]# type -a lsls is aliased to `ls --color=ttyls is /bin/ls[root@localhost Desktop]# type -a typetype is a shell builtin原创 2010-05-29 22:24:00 · 823 阅读 · 0 评论 -
手记07之解释器文件(Interpreter Files)
先看例程8.10(exec2.c)#include "apue.h"#includesys/wait.h>int main(void){ pid_t pid; if((pid = fork() ) 0) { err_sys("fork error"); } else if(pid == 0) {/* chil原创 2010-05-29 22:29:00 · 1279 阅读 · 3 评论 -
手记05之linux查看命令是否为内建命令(type)
type [ - aftpP] name [ name . . . ] With no options, indicate how each name would be interpreted if used as a command name. If the - t option is used, type prints a st原创 2010-05-29 22:21:00 · 726 阅读 · 0 评论