- 博客(9)
- 收藏
- 关注
转载 Linux下关闭触摸板和触摸杆
1,执行 xinput 查看有哪些输入设备# xinput list? Virtual core pointer id=2 [master pointer (3)]? ? Virtual core XTEST pointer id=4 [slave pointer (2)]? ? PixArt Lenovo...
2014-03-19 17:41:00
178
转载 我的vimrc配置
set nocompatibleset numberset wrap!filetype onset history=50filetype plugin on"set background=darkcolorscheme pablosyntax onset cursorlineset autoindentset smarti...
2014-03-18 22:54:00
142
转载 用gvim出现Gtk-WARNING **: Invalid input string的问题解决
打开~/.bashrc文件,最后加入如下:export LANG=zh_CN.UTF-8;export LC_CTYPE="zh_CN.UTF-8";export LC_NUMERIC="zh_CN.UTF-8";export LC_TIME="zh_CN.UTF-8";export LC_COLLATE="zh_CN.UTF-8";export LC_MONETARY="z...
2014-03-18 22:53:00
262
转载 putty中文乱码问题解决
打开putty主程序,选择window-〉Appearance-〉Font settings-〉Change Settings,选择Fixedsys字体,字符集选择CHINESE_GB2312。在window-〉Appearance-〉 Translation中,Received data assumed to be in which character set 中,把Use font ...
2014-03-18 22:52:00
143
转载 解决Source Insight删除半字问题
1:打开Source Insight,打开项目,选择基本 2:打开右边文件Utils.em,它是Source Insight启动时候执行的文件,里面都是宏,有兴趣的朋友可以自己添加一些宏命令进去,这里我们要添加一个宏,就是让Backspace删除一个字,在Utils.em末尾添加宏:macro SuperBackspace(){ hwnd = Get...
2014-03-18 22:45:00
338
转载 Linux netfilter分析一:netfilter相关数据结构
转载于:https://www.cnblogs.com/love-lp/articles/3604870.html
2014-03-17 13:27:00
134
转载 List链表操作
双向链表节点数据结构:1 struct list_head {2 struct list_head *next, *prev;3 };链表的初始化:1 static inline void INIT_LIST_HEAD(struct list_head *list)2 {3 list->next = list;...
2014-03-17 09:47:00
87
转载 Linux宏之INT_MAX,INT_MIN等等
为了移植性能的考虑,为了同一份代码在不同平台不同CPU下都能正确获得对应平台的各种数据大小范围,Linux下使用的宏是这样的:1 #define INT_MAX ((int)(~0U>>1))2 #define INT_MIN (-INT_MAX - 1)3 #define UINT_MAX (~0U)4 #define LONG_MAX...
2014-03-15 18:09:00
1160
转载 Linux宏之likely/unlikely
这两个宏在内核中定义如下:1 #define likely(x) __builtin_expect((x),1)2 #define unlikely(x) __builtin_expect((x),0)__builtin_expect() 是 GCC (version >= 2.96)提供给程序员使用的,目的是将“分支转移”的信息提供给编译器...
2014-03-14 11:25:00
163
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅