
linux
美了美了
java python
展开
-
什么是POSIX
POSIX 表示可移植操作系统接口(Portable Operating System Interface ,缩写为 POSIX ),POSIX标准定义了操作系统应该为应用程序提供的接口标准,是IEEE为要在各种UNIX操作系统上运行的软件而定义的一系列API标准的总称,其正式称呼为IEEE 1003,而国际标准名称为ISO/IEC 9945。POSIX标准意在期望获得源代码级别的软件可移植性转载 2016-01-11 21:50:36 · 2520 阅读 · 0 评论 -
epoll例子
#include #include #include #include #include #include #include #include #define TRACE_ERROR(str) do{ \ fprintf(stdout,"%s", str); \}while(0);static int SetNonblock(int socket){原创 2016-02-01 16:06:42 · 397 阅读 · 0 评论 -
pthread condition mutex
#include #include #include #define NUM_THREADS 3#define TCOUNT 10#define COUNT_LIMIT 12int count = 0;int thread_ids[3] = {0,1,2};pthread_mutex_t count_mutex;pthread_cond_t count_threshold_c原创 2016-02-02 15:00:02 · 405 阅读 · 0 评论 -
unix K&R编码风格
Chinese translated version of Documentation/CodingStyleIf you have any comment or update to the content, please post to LKML directly.However, if you have problem communicating in English you转载 2016-04-11 14:07:09 · 1420 阅读 · 0 评论 -
tcpdump抓包
tcpdump -i eth0 -t tcp 'port 38001' -w abc原创 2016-12-26 10:08:57 · 511 阅读 · 0 评论