随笔分类 -  unix编程

格式化IO接口(sscanf,sprintf,fprintf,fscanf,fgets)
只有注册用户登录后才能阅读该文。

posted @ 2016-10-14 15:11 Cynthia&Sky

本地socket实现IPC
该文被密码保护。

posted @ 2015-09-11 10:49 Cynthia&Sky

IPC 共享内存
只有注册用户登录后才能阅读该文。

posted @ 2015-09-10 16:23 Cynthia&Sky

Secure OS简单说明
该文被密码保护。

posted @ 2015-09-10 11:23 Cynthia&Sky

调试常用命令
该文被密码保护。

posted @ 2015-07-31 10:10 Cynthia&Sky

模拟按键转发和接收按键消息
该文被密码保护。

posted @ 2015-05-12 11:02 Cynthia&Sky

设备IP地址和MAC地址 (system和popen的差异)
该文被密码保护。

posted @ 2015-04-25 15:36 Cynthia&Sky

查看动态链接库依赖关系的命令
摘要:linux下查看动态链接库依赖关系的命令 x86:ldd *.soarm:arm-linux-readelf -d *.so实际例子:以项目中用到的库librtsp.so分析:lijun@ubuntu:~/workspace$ arm-hisiv100nptl-linux-ld -d librtsp... 阅读全文

posted @ 2014-06-24 19:48 Cynthia&Sky

查看内存(dumpsys,meminfo,procrank)
该文被密码保护。

posted @ 2014-03-13 11:49 Cynthia&Sky

vi 使用介绍
摘要:参考 >文本编辑器有很多,比如图形模式的gedit、kwrite、OpenOffice ,文本模式下的编辑器有vi、vim(vi的增强版本)和nano,vi和vim是我们在Linux中最常用的编辑器vi 的三种命令模式Command(命令)模式,用于输入命令;Insert(插入)模式,用于插入文本;Visual(可视)模式,用于视化的的高亮并选定正文;文件的保存和退出Command 模式是vi或vim的默认模式,如果我们处于其它命令模式时,要通过ESC键切换过来。当我们按ESC键后,接着再输入:号时,vi会在屏幕的最下方等待我们输入命令;:w 保存;:w filename 另存为file 阅读全文

posted @ 2014-02-19 20:42 Cynthia&Sky

shell编程实例
该文被密码保护。

posted @ 2014-02-19 19:52 Cynthia&Sky

unix驱动学习相关
该文被密码保护。

posted @ 2014-01-08 11:46 Cynthia&Sky

字符串转数字 简单代码实现
摘要:代码如下:#include #define u8 unsigned charstatic const int MAC_LENGTH = 6;static u8 char1Tonum(u8 ch){ if((ch>='0')&&(ch='a')&&(ch='A')&&(ch<='F')) return ch - 'A' + 10; else return 0xff;}//简单的把字符串转为数字 (比如把MAC地址转为6个数字)static u8 char2T 阅读全文

posted @ 2013-10-23 14:32 Cynthia&Sky

Linux下调试段错误 (gdb,core,ulimit)
摘要:Linux环境下经常遇到某个进程挂掉而找不到原因,我们可以通过生成core file文件加上gdb来定位。(1)首先 在makefile中要增加编译调试选项 -g,才可以利用下面的gdb来调试gcc udp_server.c -o udp_server.elf -g -lpthread-g选项的作用是在可执行文件中加入源代码的信息,比如可执行文件中第几条机器指令对应源代码的第几行,但并不是把整个源文件嵌入到可执行文件中,所以在调试时必须保证gdb能找到源文件。(2)如何产生core file?我们可以使用ulimit这条命令对core file文件的大小进行设定。在用这个命令的时候主要是为了产 阅读全文

posted @ 2013-10-17 20:35 Cynthia&Sky

printf打印缓冲机制
该文被密码保护。

posted @ 2013-10-17 19:31 Cynthia&Sky

unix内核 基本知识
该文被密码保护。

posted @ 2013-09-16 17:22 Cynthia&Sky

编译android内核以及make ARCH=arm menuconfig操作
该文被密码保护。

posted @ 2013-08-09 11:39 Cynthia&Sky

怎么查看linux系统是32位还是64位
摘要:1.#uname -a如果有x86_64就是64位的,没有就是32位的这是64位的 # uname -a Linux desktop 2.6.35-23-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux这是32位的 #uname -a Linux backup 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux 注意:ixxx的全是32位的,有X86—64的全是64位2.#file / 阅读全文

posted @ 2013-07-26 20:13 Cynthia&Sky

Ubuntu的shell之bash和dash
该文被密码保护。

posted @ 2013-07-05 11:31 Cynthia&Sky

unix常用命令总结(find,grep,xargs等)
该文被密码保护。

posted @ 2013-06-20 15:00 Cynthia&Sky

导航