- 博客(13)
- 资源 (18)
- 收藏
- 关注
转载 Linux 内核使用的 GNU C 扩展
Linux 内核代码使用了大量的 GNU C 扩展,以至于能够编译 Linux 内核的唯一编译器是 GNU CC,以前甚至出现过编译 Linux 内核要使用特殊的 GNU CC 版本的情况。本文是对 Linux 内核使用的 GNU C 扩展的一个汇总,希望当你读内核源码遇到不理解的语法和语义时,能从本文找到一个初步的解答,更详细的信息可以查看gcc.info。文中的例子取自 Lin
2008-02-27 20:18:00 714
原创 [ORIGINAL CREATION] unkown C++ skills
####The following 2 c++ template functions can detect array's dimension at compile time. But they will fail when dealing with variable length array(introduced by C99).templateint capacity_of_1Darr
2008-02-18 18:45:00 622
原创 [ORIGINAL CREATION] learning awk
####yes | head -20 | awk '{printf("HI%02d", NR)}' ####Delete array[expr] cases array[expr] not to exist. ####echo abc | mawk { gsub(//, "X") ; print }XaXbXcX'Cos if FS="""" (Empt
2008-02-14 15:58:00 527
原创 [ORIGINAL CREATION] BASH tips
####The BASH and Bourne shell has a poorly documented feature that its termination status is 128 plus the signal number.####2>&1 means descriptor 2 is a copy of descriptor 1. dup2(1, 2);
2008-02-14 14:41:00 638
原创 [ORIGINAL CREATION] tact and skill of sed
####sed '/cryincold/ p' text // Print lines match "cryincold"sed '/cryincold/! p' text // Print lines do NOT match "cryincold", pay attention to theexclamatory m
2008-02-14 13:15:00 640
原创 [ORIGINAL CREATION] tact and skill of VIM
####: read ! shell_command // VIM read in the output of shell_command ####:1,$ ! shell_command // output the whole text as input to shell_command and save the out
2008-02-14 12:17:00 806
原创 [ORIGINAL CREATION] learning make
####$(error error message)$(warning warning message)####The following short makefile can automatically parse the C programming files and generate the .d file describing the dependence on
2008-02-11 15:00:00 709
原创 [ORIGINAL CREATION] undown tact and skill in C programming
###*ptr++ 55555~~ i always forget ++ has a high priority than *.###The number-sign or "stringizing" operator (#) converts macro parameters (after expansion) to string constants#defi
2008-02-11 12:58:00 769
原创 [ORIGINAL CREATION] usful tips on Unix-like system
###ps -o pid,ppid,pgrp,session,tpgid,comm
2008-02-11 12:23:00 506
转载 [Excerpt]3 approaches using gdb to debug child process
我的博客: http://blog.ykyi.net 关注虚拟化,关注linuxGDB 是 linux 系统上常用的调试工具,本文介绍了使用 GDB 调试多进程程序的几种方法,并对各种方法进行比较。GDB 是 linux 系统上常用的 c/c++ 调试工具,功能十分强大。对于较为复杂的系统,比如多进程系统,如何使用 GDB 调试呢?考虑下面这个三进程系统:进程
2008-02-09 18:07:00 1101
原创 背呀背,背句子
If you can arrive late, then so can I: whats sauce for the goose is sauce for the gander. 你可以迟到, 那我也可以晚来: 一视同仁嘛. Birth is much, but breeding is more. 出身重要,教养更重要。We were pissed around for h
2008-02-03 10:10:00 767
Understanding the Linux kernel 3rd 深入理解Linux内核第三版 英文版
2012-04-30
Oracle9i&10g编程艺术_英文版
2009-03-14
高级BASH脚本编程英文版
2009-02-07
深入解析ATL(英文版)
2009-02-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人