fb_show_bmp.c 1 #include <unistd.h> 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <fcntl.h> 5 #include <string.h> 6 #include <linux/fb.h> 7 #i ...
分类:
系统相关 时间:
2019-11-27 11:56:03
阅读次数:
139
#include <stdio.h>#include <unistd.h>#include <stdbool.h>#include <fcntl.h>#include <sys/epoll.h> #include <main.h> struct event_ext{ int fd; bool epo ...
分类:
其他好文 时间:
2019-11-23 12:25:46
阅读次数:
69
1、类似的函数有:cin、getchar、fgetc 等 2、问题: 最后的"\n"都不取出来... 2.1、对策:(ZC:下面是 我自己使用后的感受) (1)fflush(stdin) ==> 没反应... _flushall();也没反应 (2)int _kbhit( void ); ==> 结 ...
分类:
编程语言 时间:
2019-11-19 14:17:25
阅读次数:
105
前一篇中,我们讨论了模型的压缩,将标准tensorflow格式的模型文件转换成tflite格式,极大的缩小了模型的大小。 本篇我们将介绍如何使用标准C/C++来调用tflite格式的模型。 接下来依次介绍下: 一、BUILD文件修改: # Description: # TensorFlow Lite ...
分类:
其他好文 时间:
2019-11-07 17:39:56
阅读次数:
119
1 /* 2 * epoll基于非阻塞I/O事件驱动 3 */ 4 #include <stdio.h> 5 #include <sys/socket.h> 6 #include <sys/epoll.h> 7 #include <arpa/inet.h> 8 #include <fcntl.h> ...
分类:
其他好文 时间:
2019-11-05 21:32:22
阅读次数:
93
之前读过unix网络编程,现在在看nginx源码,很多套接字选项不记得了,因此每遇到一个套接字选项就在此文章中进行补充。 1.获取和设置套接字选项的方法: getsockopt,setsockopt函数 fcntl函数 ioctl函数 2.4种函数简介: I.getsockopt,setsockop ...
分类:
其他好文 时间:
2019-11-04 21:35:00
阅读次数:
134
修改前 修改后 6.0 Recovery 模式横屏修改方法 修改相关文件 bootable\recovery\minui\Android.mk bootable\recovery\minui\mt_graphic_rotate.cpp bootable\recovery\minui\mt_graph ...
分类:
其他好文 时间:
2019-09-16 19:12:01
阅读次数:
100
此模块只有在unix系统上才有,windows没有。文档地址:https://docs.python.org/3.7/library/fcntl.htmlhttps://www.docs4dev.com/docs/zh/python/3.7.2rc1/all/library-fcntl.html多进程示例程序importfcntlimportosimporttimefrommultiprocess
分类:
编程语言 时间:
2019-09-04 23:10:24
阅读次数:
151
高级IO: 五种IO模型:阻塞IO; 非阻塞IO; 信号驱动IO;异步IO;多路转接IO IO操作分为两个过程:等待/数据拷贝 阻塞IO: 发起IO调用后,若不具备IO条件,则等待IO条件具备,拷贝数据后返回 非阻塞IO: 发起IO调用后,若不具备IO条件,则立即报错返回,若具备IO条件则立即拷贝数 ...
分类:
其他好文 时间:
2019-08-23 00:10:56
阅读次数:
89
一。libevent概念 Libevent 是一个用C语言编写的、轻量级的开源高性能事件通知库,主要有以下几个亮点:事件驱动( event-driven),高性能;轻量级,专注于网络,不如 ACE 那么臃肿庞大;源代码相当精炼、易读;跨平台,支持 Windows、 Linux、 *BSD 和 Mac ...
分类:
其他好文 时间:
2019-08-07 22:10:06
阅读次数:
136