搜索资源列表
12
- 实现一个简单的shell,实现步骤:(1)在虚拟的shell界面上出现命令提示符($或#); (2)获取用户指令:获取用户在命令提示符后面输入的命令及其参数,并注意命令输入的最大长度; (3)解析指令:对用户输入的命令进行解析,解析出命令名和参数; (4)寻找命令文件:每个命令的执行都必须依靠对应的可执行文件,这些文件的存放路径存放在用户的PATH环境变量里; (5)执行命令:可通过fork( )系统调用创建一个进程来完成执行命令的任务,具体的命令执行用execv( )函
USB-serial-driver
- 这个结构是定义一个USB串行驱动。它提供了所有的的信息USB系列核心代码的需要。如果函数指针定义,然后当TTY端口功能一致的时候USB系列核心代码会叫他们是所谓的天圆。如果他们不被调用,则为通用串行函数来代替。-This structure is defines a USB Serial driver. It provides all of the information that the USB serial core code needs. If the function pointer
x_ray_8.0
- linux下实现查看进程的变量,调用函数,修改内存-linux to vxworks
CPUfreq
- 该程序模块中xllp_CPUfreq.s,xllp_freq.c,xllp_intc.s,xllp_freq.h四个文件是修改CPU频率的主要代码,使用前可以将这些文件和xllp目录下的文件编译在一起,以便可以在程序的任何地方调用它们,修改和读取CPU频率主要依靠调用xllp_freq.c文件中的两个函数完成:XLLPSetCoreRunFrequency,xllpGetCurrentFreqSetting。-The program module xllp_CPUfreq.s, xllp_fre
linux-kernel-diagram
- linux内核图解,对内核的数据结构、函数调用关系,采用图解的方式给出了详细描述。-linux kernel diagram,includes data struction, functions.
gzip
- gzip的一个实现,使用zlib调用,可做函数体-a gzip aaaaa
pThread
- 在Linux上实现的调用API的线程控制函数,包括线程的生成以及释放-Call the API on Linux thread control functions, including the generation and release of the thread
findfd
- 目前linux的系统调用中没有可以有效获得当前进程打开的所有文件标识符的函数。所以我实现了nextfd,findfd系统调用,使用bitmap高效率实现。-Linux system calls can access the function of all open files in the current process identifier. So I achieve a nextfd of findfd system calls, the use of bitmap high efficie
gpio_f.c.tar
- 嵌入式具体引脚驱动程序,应用程序可以调用ioctl函数控制引脚电平的高低-Embedded specific pin drivers, applications can call ioctl function to control the pin high and low
zlog-latest-stable.tar
- zlog是一个高可靠性、性能、线程安全、灵活、概念清晰的纯C日志函数库。 事实上,在C的世界里面没有特别好的日志函数库(就像JAVA里面的的log4j,或者C++的 log4cxx)。C程序员都喜欢用自己的轮子。printf就是个挺好的轮子,但没办法通过配置改变 日志的格式或者输出文件。syslog是个系统级别的轮子,不过速度慢,而且功能比较单调。 所以我写了zlog。 zlog在效率、功能、安全性上大大超过了log4c,并且是用c写成的,具有比较好的通用性。 zlog有
lru
- c++实现LRU算法,自己封装了一个类,数函数已经有demo的相关调用。但愿对你有帮助-the algorithm of LRU by c++
wav
- 利用visual stdio2005的mfc,api函数调用 来播放音频文件-The visual stdio2005 mfc, api function call to play audio files
Touchscreen
- 电阻触屏驱动四线电阻触摸屏代码,代码比较简单,调用有几个函数即可-Resistive touch screen drive four-wire resistive touch screen code, the code is relatively simple, the call has several functions can be
a
- 发送程序与msg1.c类似。在main函数中,删除msg_to_receive声明,代之以buffer[BUFSIZ]。移除消息队列删除代码,并且在running循环中做出如下更改。现在我们调用msgsnd来将输入的文本发送到队列中。 -The sending program msg1.c similar. Delete msg_to_receive statement in the main function, replaced by the buffer [BUFSIZ]. Remove
time
- 内核中的时钟函数编程,通过该时钟函数可以正常的来显示时钟并且可以快速的调用时钟来进行编程-Kernel clock function programming, through the normal function of the clock to show the clock and the clock can quickly be programmed to call
exec_test
- linux进程exec函数族的使用,在使用fork()函数新建子进程后,调用exec函数使子进程执行一段特定的程序-linux process exec family of functions are used, the use of fork () function after the new child process, the child process calls exec function allows the implementation of a specific program
seri
- 基于ARM开发板的linux下的串口编程,做好两个API函数,可供应用程序直接调用,设置方便简单,感兴趣的也可以研究函数内部详细设置过程。-ARM-based development board serial programming under linux, do two API functions are available directly calling application, easy to set up, you can also set up a detailed study of
sqlite-linuxC
- sqlite linuxc API函数调用-sqlite linuxc API functions call
HelloJni.tar
- 1、每个被加载的模块,无论是可执行程序还是共享库,均有自己独立的PLT和GOT表。所以拦截这个模块的对外调用的GOT,不影响其他模块。 2、本文只实现了拦截模块的调出到其他模块的动作,其他模块的调入没有涉及到(可能还涉及到比较复杂的重定位操作)。 3、system_server是system用户,不是有权限写所有名字的Property,这里用了persist.sys.开头的属性名,而persist.sys.开头的属性会保存至磁盘,因此性能会差点儿。 4、ioctl虽然实质声明是
VMA
- 虚拟内存管理实验。 在Linux环境下编写一个内核模块,分别实现如下几个函数: static void mtest_dump_vma_list(void):依次列出当前进程所占用的虚拟内存空间各段的读、写或执行权限。 static void mtest_find_vma(unsigned long addr):查找出虚拟地址addr所在的vma,并通过printk打印该段的起始地址、终止地址和段标志等信息。 static void