搜索资源列表
CYHS
- 这是一个在 unix 系统下使用的常用输入界面处理、字段处理、屏幕数据打印等函数。-This is a unix systems in common use input interface, field processing, data on the screen printing function.
mulushudebianli
- 根据用户输入的命令行选项的不同,来实现三种功能:argc为2时,命令格式为 myfind <pathname> 它要统计出,在常规文件中,文件长度不大于4096字节的常规文件,在所有允许访问的普通文件中所占的百分比。不允许打印出任何路径名。 argc为4且argv[2] == “-comp”时,命令格式为 myfind <pathname> -comp <filename> 输出在<pathname>目录子树之下,所有与<
tcpscan
- 多线程端口扫描程序 实现一个多线程端口扫描程序,满足要求: 1)能同时扫描5个IP地址 2)针对每个IP地址,开设100个线程对其进行扫描 3)如果端口打开,使用函数getservbyport获取服务名,在屏幕上打印:IP port servername,如果是未知的服务,则在屏幕上显示:IP port unkown. -Multi-threaded port scanner to achieve a multi-threaded port scanner to meet
debuf.tar
- 输出文件,log,可以自动打印,所在的文件,行号,函数名称-Output file, log, can automatically print, where the documents, line number, function name
printf
- 本人参照linux 0.1内核源代码写的printf函数的实现,支持 c, s, o, d, x, f的打印输出-I am the light of linux 0.1 kernel source code to write to achieve the printf function in support of c, s, o, d, x, f print output
Linux
- Linux 系统内核初始化过程。 一、对硬件数据结构的初始化过程 1、系统首先调用 printk() 函数在屏幕上打印 Linux 内核版本号和编译内核所使用的 gcc 编译器版本号、启用时间等,如果这个过程失败,将显示一个参考信息给用户-Linux 系统内核初始化过程。 一、对硬件数据结构的初始化过程 1、系统首先调用 printk() 函数在屏幕上打印 Linux 内核版本号和编译内核所使用的 gcc 编译器版本号、启用时间等,如果这个过程失败,将显示
write
- 该程序是在linux下执行,首先创建一个文件,然后对此文件进行读写操作。接着,写入“Hello,I m writing to this file!”,此时文件指针位于文件尾部。接着再使用lseek函数将文件指针移到文件开始处,并读出10个字节并将其打印出来。-The program is run under linux, first of all to create a document, and then read and write operations on this file. Then
txt
- linux下使用backtrace和backtrace_symbols函数 打印调用堆栈-linux
portscan
- 端口扫描程序,输入一个特点IP和起始端口号,终止端口号,进行扫描,如果端口打开,使用函数getservbyport获取服务名,在屏幕上打印:IP port servername,如果是未知的服务,则在屏幕上显示:IP port unkown.-Port scanner, enter a starting port number and IP feature, the ending port number, scanning, if the port is open, use the functi
xml
- 解析XML文件的结点内容,并保存到结构体中。然后在主函数中打印结果(没有实现,望高手指点)。-parse content of XML doc,and save to struct,but i can t get the content from struct,may someone teach me,thanks a lot!
thread
- 概述一下原理和每个类的作用 (1): CTask 一个任务基类,作为线程的参数用 (2): CWorkThread:工作线程类,轮询检测参数是否可用,如果可用的话, 就去调用参数CTask的执 行函数Execute,如果参数不可用就等待 (3): CWorkQueue:是一个任务队列,里面装载CTask子类的对象,是一个对象的容器 (4): CWorkThreadPool:工作线程池,其中包含了工作线程组,调度线程,调度线程不停的检测 任务队列中是否有可用
jinchengkongzhi
- 进程控制实验 每个进程的状态可以是就绪 W(Wait)、运行R(Run)、或完成F(Finish)三种状态之一。 本实验要求用C语言编程实现创建n个进程的创建函数creat;根据进程的优先数把就绪进程插入就绪队列的排序函数sort;打印就绪进程PCB信息的函数check;以及进程的撤销函数destroy。 -
test27
- 程序,要求程序运行后进入一个无限循环,打印用户按下的键的值,当用户按下中断键(Ctrl+Z)时,进入程序的自定义信号处理函数,当用户再次按下中断键(Ctrl+Z)后,结束程序运行;-Procedures, requirements to run the program into an infinite loop, printing the user presses a key value, when the user presses the interrupt key (CTRL+ Z), cu
pwd2
- linux中实现pwd命令,不是调用通过系统调用getpid,而是通过递归函数打印路径的。-linux achieve pwd command, instead of calling through the system call getpid, but through the recursive function print path.
myATM
- 1.启动服务器时创建两个消息队列,关闭时进行删除。用信号关闭,在信号的处理函数中删除消息队列。 2.服务端根据客户端发过来的数据,判断是何种请求,再根据各种请求做出相应的处理。 3.分析开户的流程:客户端输入用户名,密码和金额,把数据封存在msg中,通过消息队列发给服务器,在服务器端生成一个帐号,然后把account信息写入文件,并把处理结果通过消息队列返回给客户端。 4.服务器端用多进程完成各种功能。(vfork+execl) 通过跳转到另一个可执行程序,来实现各种业务功能。
XIAOXIDUILIE
- 消息队列:先定义一个消息结构,包含消息类型和文本长度。在SERVER函数中,首先获得一个KEY为75的消息的描述符,然后利用do while循环来判断当消息类型为1的时候打印输出。在CLIENT函数中,先获得消息队列,然后利用for循环将消息类型从10赋值到1,发送队列,并打印输出。最后在main函数中调用这两个函数。-The message queue: define a message structure, contains the message type and the length o