搜索资源列表
UNIX环境下的日期程序(求时间的函数)
- 该函数不仅可求出某个时间前(后)一段时长的日期与时间,而且可得出这个日期是星期几,给程序设计带来不少便利,也方便了费用的计算与核实,读者可直接调用该函数。 -This function can be derived not only some time ago (after) a long time the date and time, but can come to this date is a few weeks to bring a lot of procedures to facil
testsleepmyown
- 自己实现的sleep函数,通过alarm定时.由于mysleep是个子函数,对其调用者需考虑几种情况,即调用者在调用mysleep之前设置的闹钟时间未被超过和设置的闹钟时间被超过(同未设置闹钟),且要考虑调用者是否有未决信号及其是否屏蔽SIGALRM信号,因为这将影响mysleep函数的调用。-of achieving his sleep function, through the alarm regularly. As mysleep function, is making its calle
linuxtcpchat
- linux下的聊天程序,server端和client端下载后直接编译就可运行。其他为必需的调运函数,也必须调用并运行。-under linux chat procedures, server and client-side download operation can be directly translated. Other necessary for the transportation function, you must call and run.
guandaotongxin
- 1、 了解系统调用pipe()的功能和实际原理 2、 编写一段程序,使用管道实现父子进程之间的通信 a) 使用系统调用fork()创建一个子进程 b) 子进程调用函数write()向父进程发送自己的进程ID和字符串” s sending a message to parent.\\n”。 c) 父进程调用函数read()通过管道读出子进程发来的消息,将消息输出屏幕,然后终止 -1, the understanding of the system call pipe () fu
fork_textcanjian
- 1、 了解系统调用fork()、execl()、exit()、getpid()和waitpid()的功能和实现过程 2、 编写一段程序实现以下功能: a) 使用系统调用fork()创建两个子进程 b) 父进程重复显示字符串”parent:”,并使用函数getpid()显示自己的进程ID。 c) 两个子进程分别重复显示字符串”child:”,并使用函数getpid()显示自己的进程ID 3、 编写一段程序实现以下功能: a) 使用系统调用fork()创建一个子进程 b)
6
- 编写一个函数,输入n为偶数时,调用函数求1/2+1/4+…+1/n,当输入n为奇数时,调用函数 1/1+1/3+...+1/n(利用指针函数)
IO多路复用 SELECT函数
- IO的多路复用(Select函数) 注:为了解决创建子进程带来的系统资源消耗而采用多路I/O模型 一般来说当我们在向文件读写时,进程有可能读写出阻塞,如果我们不希望阻塞,我们的一个选择是用select系统调用。只要我们设置好select的各个参数那么文件可以读写的时候select通知我们说可以读写,在我们调用select时进程会一直阻塞到以下一种情况发生 1) 有文件可以读 2) 有文件可以写 3) 超过所设置的时间
serial
- linux环境下使用串口进行通信,C语言编写,使用系统调用函数打开、关闭、读写ttyS0-linux environment using serial communication, C language, using the system call function to open, close, read and write ttyS0
LinuxSystemCallcode
- Linux系统调用列表 系统调用的实验代码 Linux系统函数《英文》-Linux system calls a list of system calls Experimental code Linux system function " English"
test
- 实现一个简单的linux回调函数,并且在C++中调用C,初学者可以学习一下-Linux implement a simple callback function, and in C++ to call C, beginners can learn about
linuxPC
- 本文主要是通过对系统调用函数的分析来使读者熟悉linux下的编程。-This is mainly through the analysis of the system calls the function to make the reader familiar with programming under linux.
waveplay.tar
- 这是一个用C编写的WAV音乐播放程序,应用了很多系统调用函数,对于熟悉掌握系统调用程序,非常的好用。-it is a c program to play wav music. very good c program for linux ,if you like it ,please download it.
include
- fedora linux 库函数即系统调用函数-fedora linux system call source code
guard-2
- 个人编写的一个十分好用的函数,可以设置程序成为后台守护进程, 调用十分简单,在程序中调用函数deamon即可,以下是函数原型 int daemon(int nochdir, int noclose) 其中 nochdir 为是否修改当前目录-Individual written a very useful function, you can set the program to become a background daemon, called very sim
System-Call
- Solaris 所有的系统调用函数描述,包括详细的使用说明.-Solaris system call function descr iption.
Linux_C_userguide
- Linux下的C函数库,包含Linux下C编程的调用函数说明-Linux C library
json
- 将数据转成json格式,程序已经编译过,使用多次,直接下载,调用函数即可完成转换。(The data into JSON format, the program has been compiled, use many times, directly download, call the function to complete the conversion)
mod.tar
- #define mod(x,y) x%y 宏定义实现函数功能(Macro definition realizes function function)
LinuxBookCode
- 一些简单的系统调用函数实例,比如read、write等(Some simple system call function instances)
2014220303020_yang_lab3
- 1。学习所提供的表达式语法的LR分析 了解calc1。L,calc1。Y,calc2。L,Y calc2。 在Eclipse中创建项目并试运行calc3。L,Y calc3。 2。为学习提供lrgram.txt语法 它与rdgram.txt比较 三.学习和了解makefile文件(可选) 4。写的lrgram LR解析器 (1)解析器生成AST。 野牛的规范文件:lrparser。Y Flex的规范文件:lrlex。l AST相关代码:AST和AST (2)其他功能(如主)