本程序使用了一些对目录进行操作的函数编写了一个遍历文件层次结构的程序,最后对各种类型的文件计数。这个程序只有一个参数,它说明起点路径名,从该点开始递归降序遍历文件层次结构。其中还用到了一个为路径名动态分配存储区的函数path_alloc。
// ftw.c
// 2015-08-18 Lucifer Zhang
// Recursively descend a directory hier...
分类:
其他好文 时间:
2015-08-18 21:29:05
阅读次数:
216
解决方法: hadoop.tmp.dir /usr/local/hadoop/tmp 改成如下: hadoop.tmp.dir /usr/local/hadoop/...
分类:
数据库 时间:
2015-08-18 06:31:48
阅读次数:
663
一个最简单的struts程序竟然搞了一整天。感觉书上写的不对啊。书上说的导入的那几个包不全,会报错。信息: Deploying web application directory D:\apache-tomcat-7.0.52\webapps\struts2八月 17, 2015 9:37:45 下...
分类:
其他好文 时间:
2015-08-17 23:09:57
阅读次数:
143
pwd命令的英文解释为print working directory(打印工作目录)。输入pwd命令,Linux会输出当前目录。1、格式:pwd [选项]2、参数-P 显示实际物理路径,而非使用连接(link)路径
分类:
系统相关 时间:
2015-08-17 21:41:05
阅读次数:
166
机器时间同步的时候遇到原因是64位的系统运行32位的软件需要glibc但是机器因为glibc版本太旧或者没有安装导致解决办法yum-yinstallglibc.i686
分类:
其他好文 时间:
2015-08-17 12:18:40
阅读次数:
242
1. Creating a project
From the command line, cd into a directory where you’d like to store your code, then
run the following command:
$ django-admin startproject mysite
Let’s look at...
分类:
移动开发 时间:
2015-08-17 01:07:11
阅读次数:
193
1. Creating app
$ python manage.py startapp polls
That’ll create a directory polls,
which is laid out like this:
polls/
__init__.py
admin.py
migrations/
__init_...
分类:
移动开发 时间:
2015-08-17 01:02:41
阅读次数:
162
“stdafx.h”: No such file or directory一般原因是建工程的时候选择了空工程,然后添加现有源文件(含stdafx.cpp) 或者 修改了已有的stdafx.cpp 或者 从项目排除该文件后重新添加,需单独设置stdafx.cpp属性: 把整个工程属性 -> C/C+....
分类:
其他好文 时间:
2015-08-16 21:16:20
阅读次数:
128
安装完red hat enterprise linux 5后,ftp不能使用root用户,将/etc/vsftpd/ftpusers和/etc/vsftpd/user_list两个文件中的root注释掉,就是在root前加个#,再运行ftp结果报错
500 OOPS:cannot change directory:/root
500 OOPS: child died
...
分类:
其他好文 时间:
2015-08-16 13:51:56
阅读次数:
243
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
### Command
```
/Users/rwx-mac/.rvm/rubies/ruby-2.0.0-p643/bin/pod install
```
### Report ...
分类:
Web程序 时间:
2015-08-16 12:16:52
阅读次数:
344