Location:
Search - unix
Search list
Description: Unix课程作业。
使用fork(), exec(), dup2(), pipe() ,open()系统调用完成与下列shell命令等价的功能。
grep –v usr < /etc/passwd | wc –l > result.txt
-An assignment in UNIX course.
Using fork(), exec(), dup2(), pipe(), open() system calls to do the same function of the shell command below: grep –v usr < /etc/passwd | wc –l > result.txt
Platform: |
Size: 4096 |
Author: kank |
Hits:
Description: UNIX网络编程第1卷_code,很好的unix网络编程的例子-UNIX Network Programming Volume 1 _code, a good example of network programming unix
Platform: |
Size: 1472512 |
Author: wanghan |
Hits:
Description: DB2 9 for Linux UNIX and Windows_ DBA Guide Reference and Exam Prep6th Edition
Platform: |
Size: 10422272 |
Author: 于明 |
Hits:
Description: Unix网络编程卷一.pdf,是学习C++ UNIX编程的一本好书-Unix Network Programming Volume. Pdf, is to learn C++ UNIX programming of a good book
Platform: |
Size: 19091456 |
Author: xudong |
Hits:
Description: UNIX学习的好教材,UNIX高级编程,大师作品-Good material to learn UNIX, UNIX Advanced programming
Platform: |
Size: 16180224 |
Author: Robert |
Hits:
Description: Advanced Programming in the UNIX® Environment: Second Edition
By W. Richard Stevens, Stephen A. Rago
...............................................
Publisher: Addison Wesley Professional
Pub Date: June 17, 2005
ISBN: 0201433079
Pages: 960
-Advanced Programming in the UNIX® Environment: Second Edition
By W. Richard Stevens, Stephen A. Rago
...............................................
Publisher: Addison Wesley Professional
Pub Date: June 17, 2005
ISBN: 0201433079
Pages: 960
Platform: |
Size: 3339264 |
Author: duongtu |
Hits:
Description: UNIX Network Programming With TCP/IP:共167页,详细讲解了UNIX网络编程!-UNIX Network Programming With TCP/IP: A total of 167 gave a detailed UNIX network programming!
Platform: |
Size: 365568 |
Author: Open00 |
Hits:
Description: 介绍UNIX系统操作的文件,登录步骤,文件或目录处理,复制文件,建立新目录-Introduction UNIX file system operations, log steps, file or directory processing, copy files, create a new directory
Platform: |
Size: 22528 |
Author: yangsirr |
Hits:
Description: 《UNIX环境高级编程》全套,很棒的UNIX介绍书籍。入门必看-Here is a good book for UNIX OS learning.
Platform: |
Size: 18733056 |
Author: 杨晓 |
Hits:
Description: Small app that show how to convert the windows time to Unix time.
Platform: |
Size: 209920 |
Author: Galay |
Hits:
Description: CWP:波场中心软件,由SEISMIC UNIX代码改写为matlab版本。-matlab version for seismic unix
Platform: |
Size: 484352 |
Author: bobking |
Hits:
Description: Unix命令,很简单,但很重要的命令,对大家绝对有用-Unix
Platform: |
Size: 153600 |
Author: jinfacesmile |
Hits:
Description: Unix guide and excellent shell scripting manual
Platform: |
Size: 12673024 |
Author: prem |
Hits:
Description: unix 命令大全,适合初学者,PDF格式。- the unix order comprehensive work, suits the beginner, the PDF form.
Platform: |
Size: 168960 |
Author: 王乐 |
Hits:
Description: Linux/Unix下alarm setitimer函数的使用和简单例子,欢迎下载-Linux/Unix function under the alarm setitimer use and simple example, please download
Platform: |
Size: 1024 |
Author: yang |
Hits:
Description: unix shell编程指南.unix shell编程基础及相关案例-unix shell programming guide
Platform: |
Size: 17860608 |
Author: yanyi |
Hits:
Description: Unix 程序设计
适用于unix软件开发人员做参考-Unix program design
this book is my training teaching material
Platform: |
Size: 14539776 |
Author: tangjin |
Hits:
Description: 自己编写的一个UNIX小型文件系统,实现了ls,grep,cd,cp等基本指令集-a small UNIX file system, to achieve a ls, grep, cd, cp, and other basic instruction set
Platform: |
Size: 11264 |
Author: 张祝 |
Hits:
Description: sco unix 下c 编程,实现socket通讯,并写日志。
Platform: |
Size: 2048 |
Author: cai |
Hits:
Description: unix du命令的简单实现,主要可以学习glob函数的使用-static int64_t
mydu_getblocks(const char*path)
{
int i
int64_t sum=0
static struct stat stat_result
glob_t glob_result
static int ret
static char fullpath[PATHMAX]
if (lstat(path, &stat_result)<0) {
perror("lstat()")
return 0
}
if (!S_ISDIR(stat_result.st_mode)) {
return stat_result.st_blocks
}
/************************************************/
snprintf(fullpath, PATHMAX, " s/*", path)
ret = glob(fullpath, GLOB_NOCHECK|GLOB_NOSORT, NULL, &glob_result)
if (ret!=0) {
perror("glob()")
return 0
}
snprintf(fullpath, PATHMAX, " s/.*", path)
ret = glob(fullpath, GLOB_NOCHECK|GLOB_NOSORT|GLOB_APPEND, NULL, &glob_result)
if (ret!=0) {
perror("glob()")
return 0
}
sum+= stat_result.st_blocks
for (i=0 i<glob_result.gl_pathc ++i) {
if (isvalid(glob_result.gl_pathv[i])) {
sum+= mydu_getblocks(glob_result.gl_pathv[i])
}
}
globfree(&glob_result)
return sum
}
Platform: |
Size: 1024 |
Author: aasdf |
Hits: