设置工作目录: #include <unistd.h> int chdir(const char *path); int fchdir(int fd); chdir() changes the current working directory of the calling process to t ...
分类:
其他好文 时间:
2017-01-22 16:43:23
阅读次数:
171
转载:http://blog.csdn.net/a_ran/article/details/43562429 int truncate(const char *path, off_t length); int ftruncate(int fd, off_t length); 将文件大小改变为参数le ...
分类:
系统相关 时间:
2017-01-20 17:25:42
阅读次数:
219
项目简介 本次编程实战主要是围绕嵌入式linux v4l2采集框架展开,包括以下几个部分: 首先是采集部分 #include "includes.h" int fd_cam; struct cam_buffer *buffers=NULL; unsigned int n_buffers=0; int ...
分类:
系统相关 时间:
2017-01-20 16:06:51
阅读次数:
214
ICMP协议 ICMP(Internet Control Message,网际控制报文协议)是为网关和目标主机而提供的一种差错控制机制,使它们在遇到差错时能把错误报告给报文源发方。 ICMP协议是IP层的一个协议,但是由于差错报告在发送给报文源发方时可能也要经过若干子网,因此牵涉到路由选择等问题,所 ...
分类:
编程语言 时间:
2017-01-13 23:56:27
阅读次数:
403
1.管道的打开以及关闭操作 上边这段程序是管道的打开和关闭的实例,首先定义管道的文件描述符数组fd[2],可以理解为管道的两端,分别是读出端fd[0]和写入端fd[1]端。 用函数write()向管道写入端写入数据, write(fd[1], "create the pipe successfull ...
分类:
其他好文 时间:
2017-01-07 12:08:25
阅读次数:
281
1.对磁盘进行分区,分区类型为fd.(fdisk/dev/sdb)Disk/dev/sdb:21.5GB,21474836480bytes255heads,63sectors/track,2610cylindersUnits=cylindersof16065*512=8225280bytesSectorsize(logical/physical):512bytes/512bytesI/Osize(minimum/optimal):512bytes/512bytesDiskiden..
分类:
其他好文 时间:
2016-12-27 16:22:24
阅读次数:
206
首先,fdisk建立不同分区,且设为fd格式 其次, -C:创建磁盘阵列 -l:磁盘阵列RAID5 -n:利用5个磁盘建立 这样就建立了一个磁盘阵列/dev/md0 然后对此磁盘阵列进行格式化 之后挂载就可以使用这个磁盘阵列了 如果有任一个分区损坏了,先是设为此分区故障 然后再移除损坏分区 然后再添 ...
分类:
其他好文 时间:
2016-12-20 23:21:52
阅读次数:
189
第一步:recv_packet(fd, &pack, &buflen, 0);第二步:send_packet(cltpool[i], &pack, buflen, 0); 但是这个buflen是不对的。 ...
分类:
系统相关 时间:
2016-12-16 19:42:11
阅读次数:
303
1. http://www.cnblogs.com/scope-beyound/p/3628217.html 2. 其中 TP 即 Thread-Pool 的缩写。与 ACE_WFMO_Reactor 的完全多线程并行处理不同,TP_Reactor 仅实现了部分的并行,这是由于 select 系统调 ...
分类:
其他好文 时间:
2016-12-16 18:51:21
阅读次数:
164
来源:https://zhidao.baidu.com/question/383828330.html?qbl=relate_question_2&word=excel%20%B1%ED%CA%FD%BE%DD%D4%F5%C3%B4%D0%B4%C8%EBorancle 操作步骤如下: 准备数据: ...
分类:
数据库 时间:
2016-12-15 20:20:29
阅读次数:
346