摘要: /** This demo shows how to use semaphore between threads.**/#include #include #include #include #include /** Global shared resource*/struct shared_res... 阅读全文
posted @ 2015-08-07 16:30 qingxueyunfeng 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Shared memory based mapping file#include #include #include #include typedef struct { char name[4]; int age;} people;int main(int argc, char **argv){ i... 阅读全文
posted @ 2015-08-07 16:27 qingxueyunfeng 阅读(292) 评论(0) 推荐(0) 编辑
摘要: Client:#include #include #include #include #include #include #include #define MSG_SERVER "/msgqueue"#define BUF_LEN 20000int main(int argc,char** argv... 阅读全文
posted @ 2015-08-07 16:22 qingxueyunfeng 阅读(583) 评论(0) 推荐(0) 编辑
摘要: #include #include #include void new_op(int,siginfo_t*,void*);int main(int argc,char**argv){ struct sigaction act; union sigval mysigval; int i; int si... 阅读全文
posted @ 2015-08-07 15:45 qingxueyunfeng 阅读(216) 评论(0) 推荐(0) 编辑
摘要: (1) Unamed pipe #include <unistd.h>#include <sys/types.h>#include <errno.h>int main(char **argv, int agrc){ int pipe_fd[2]; pid_t pid; char r_buf[100] 阅读全文
posted @ 2015-08-07 15:38 qingxueyunfeng 阅读(222) 评论(0) 推荐(0) 编辑
摘要: CMD: adb root && adb shell tcpdump -vv -s 0 -w /data/location.pcap adb pull /data/location.pcap ./ launch wireshark to pen the location.pcap file. 阅读全文
posted @ 2015-04-15 09:58 qingxueyunfeng 阅读(126) 评论(0) 推荐(0) 编辑