搜索资源列表
unix仿真
- provides implementations of the following UNIX APIs: chdir(), getcwd(), mkdir(), rmdir() dlopen(), dlclose(), dlsym(), dlerror() getpagesize() gettimeofday() link(), unlink() glob(), globfree() mmap(), munmap(), msync() opendir(), readdir
taoqianzimulu
- linux下如果目录为空目录,则只有.和.这两个也是属于目录类型的本代码使用递归来判断目录及其子目录是否为空目录 /*判断目录是否为空目录*/int IsEmptyDir(char*pszDir){DIR*pstDirp=NULL;struct dirent*pstDirStru=NULL;int ulFileNum=0;int ret=1;char szDir[100];memset(szDir,0,100);pstDirp=opendir(pszDir);if(NULL==pstD
test25
- 1.编写程序,从指定目录文件开始,打印目录文件树(opendir, readdir); 2.编写程序,打印指定目录文件下的所有的文件(readdir),同时标识除文件的类型(stat); 3.编写程序,在指定目录文件下创建一个新文件,删除一个指定文件,拷贝指定文件;-Write a program file from the specified directory, print directory file tree (the opendir, the fashion in which
umut
- 这个程序是读取linux文件目录下的所有文件并显示在CGI网页上-this is opendir for cgi in linux 。。。。。
td1
- Linux编程 查看文件属性 实现ls -il命令 opendir操作 关键函数:stat(2), opendir(3), getgrgid(3), getpwuid(3), ctime(3).-Linux programming Properties files Discution the links Access to Records stat(2), opendir(3), getgrgid(3), getpwuid(3), ctim
ls
- 使用opendir、readdir、closedir等函数来操作目录,使用stat函数来获取文件信息。编写一个功能完整的实现Unix/Linux下ls命令的程序,并且该程序实现了-l(长格式)选项功能,并能在Unix/Linux环境下正确地运行。-Use opendir, readdir, close to operate functions such as directory, use the stat function to get file information. Write a ful
code
- opendir()用来打开参数name 指定的目录, 并返回DIR*形态的目录流, 和open()类似, 接下来对目录的读取和搜索都要使用此返回值.(Opendir () is used to open the directory specified by the parameter name, and returns the directory flow of the DIR* form, similar to open (), and then uses the return value f
