- 博客(6)
- 资源 (15)
- 收藏
- 关注
转载 openwrt的结构 与 编写 HelloWorld程序
这次讲讲openwrt的结构.1. 代码上来看有几个重要目录package, target, build_root, bin, dl....---build_dir/host目录是建立工具链时的临时目录---build_dir/toolchain-*是对应硬件的工具链的目录---staging_dir/toolchain-* 则是工具链的安装位置
2015-07-20 19:10:50 830
转载 OpenWrt的主Makefile工作过程
原文地址:OpenWrt的主Makefile工作过程 作者:apple_guet OpenWrt是一个典型的嵌入式Linux工程,了解OpenWrt的Makefile工作过程对提高嵌入式Linux工程的开发能力有极其重要意义。 OpenWrt的主Makefile文件只有100行,可以简单分为三部分,1~17行为前导部分,19~31为首次执行部分,
2015-07-17 15:54:12 761
转载 lua和c的交互
extern "C" {#include "lua.h"#include "lualib.h"#include "lauxlib.h"} #include #include using namespace std; int main(){ //Lua示例代码 char *szLua_code = "r = st
2015-07-16 17:07:58 532
转载 Linux中link,unlink,close,fclose详解
IEEE、万方文献及国内外专利下载,请关注微信公众号IEEE每一个文件,都可以通过一个struct stat的结构体来获得文件信息,其中一个成员st_nlink代表文件的链接数。 当通过shell的touch命令或者在程序中open一个带有O_CREAT的不存在的文件时,文件的链接数为1。 通常open一个已存在的文件不会影响文件的链接数。open的作用只是使调用进...
2015-07-14 10:46:55 1945
转载 关于sem_unlink什么时候删除信号量
sem_unlink在man手册里有这么一段话:sem_unlink() removes the named semaphore referred to by name. The semaphore name is removed immediately. The semaphore isdestroyed once all other processes that have th
2015-07-14 09:55:44 1617
转载 pthread_cleanup_push()/pthread_cleanup_pop()的详解
刚练习线程的条件变量时碰到了这两个函数,关于这两个函数书上讲的比较模糊,所以在网上找到了一篇我感觉讲的很好的一篇文章,就是关于线程的终止,大概如下:一般来说,Posix的线程终止有两种情况:正常终止和非正常终止。线程主动调用pthread_exit()或者从线程函数中return都将使线程正常退出,这是可预见的退出方式;非正常终止是线程在其他线程的干预下,或者由于自身运行出错(比如
2015-07-13 13:10:39 470
基于FPGA的视频采集
2011-04-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人