搜索资源列表
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
md3loader
- Quake 3 s MD3 Viewer (july 13, 2007), loads and displays a player and a weapon. Supports lighting, texture mapping and animation. Includes a sample player model with weapon. See README for how to use it. Note (1): it uses the POSIX opendir/read
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
1234
- 完成一个目录复制命令mycp,包括目录下的文件和子目录, 运行结果如下: beta@bugs.com [~/]# ls -l sem total 56 drwxr-xr-x3 beta beta 4096 Dec 19 02:53 ./ drwxr-xr-x8 beta beta 4096 Nov 27 08:49 ../ -rw-r r 1 beta beta128 Nov 27 09:31 Makefile -rwxr-xr-x1 beta beta 5705 Nov
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