<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[shh110的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/shh110</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; shh110]]></copyright><item><title><![CDATA[epoll精髓]]></title><link>https://blog.csdn.net/shh110/article/details/6940047</link><guid>https://blog.csdn.net/shh110/article/details/6940047</guid><author>shh110</author><pubDate>Sun, 06 Nov 2011 09:54:34 +0800</pubDate><description><![CDATA[epoll精髓
在linux的网络编程中，很长的时间都在使用select来做事件触发。在linux新的内核中，有了一种替换它的机制，就是epoll。
相比于select，epoll最大的好处在于它不会随着监听fd数目的增长而降低效率。因为在内核中的select实现中，它是采用轮询来处理的，轮询的fd数目越多，自然耗时越多。并且，在linux/posix_types.h头文件有这样的声明：
#]]></description><category></category></item><item><title><![CDATA[海量数据处理常用思路和方法]]></title><link>https://blog.csdn.net/shh110/article/details/6914980</link><guid>https://blog.csdn.net/shh110/article/details/6914980</guid><author>shh110</author><pubDate>Fri, 28 Oct 2011 16:27:51 +0800</pubDate><description><![CDATA[大数据量的问题是很多面试笔试中经常出现的问题，比如 google、淘宝、百度、 腾讯 这样的一些涉及到海量数据的公司经常会问到。
下面的方法是我对海量数据的处理方法进行了一个一般性的总结，当然这些方法可能并不能完全覆盖所有的问题，但是这样的一些方法也基本可以处理绝大多数遇到的问题。下面的一些问题基本直接来源于公司的面试笔试题目，方法不一定最优，如果你有更好的处理方法，欢迎与我讨论。
1.Blo]]></description><category></category></item><item><title><![CDATA[mmap]]></title><link>https://blog.csdn.net/shh110/article/details/6914868</link><guid>https://blog.csdn.net/shh110/article/details/6914868</guid><author>shh110</author><pubDate>Fri, 28 Oct 2011 16:07:09 +0800</pubDate><description><![CDATA[#include 
#include 

int main(int argc, char** argv)
{
  int fd;
  
  fd=open(argv[1],O_CREAT|O_RDWR|O_TRUNC,0777);
  lseek(fd,100,SEEK_SET);
  write(fd,"",1);
  close( fd );
  
  return 0]]></description><category></category></item><item><title><![CDATA[EOF feof()]]></title><link>https://blog.csdn.net/shh110/article/details/6624044</link><guid>https://blog.csdn.net/shh110/article/details/6624044</guid><author>shh110</author><pubDate>Fri, 28 Oct 2011 09:37:59 +0800</pubDate><description><![CDATA[>> 关于文件结束符EOF

EOF 是 End Of File 的缩写。

在 C 语言中，它是在标准库中定义的一个宏。

人们经常误认为 EOF 是从文件中读取的一个字符。其实，EOF 不是一个字符，它被定义为是
int 类型的一个
 
说的标准. 正解.
>> 关于文件结束符EOF

EOF 是 End Of File 的缩写。

在 C 语言中，它是在标准库中定]]></description><category></category></item><item><title><![CDATA[sth about interview]]></title><link>https://blog.csdn.net/shh110/article/details/6785651</link><guid>https://blog.csdn.net/shh110/article/details/6785651</guid><author>shh110</author><pubDate>Fri, 28 Oct 2011 09:37:40 +0800</pubDate><description><![CDATA[1 . 用预处理指令#define 声明一个常数，用以表明1年中有多少秒（忽略闰年问题）
         #define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL
1) #define 语法的基本知识（例如：不能以分号结束，括号的使用，等等）
2)懂得预处理器将为你计算常数表达式的值，因此，直接写出你是如何计算一年中有多少秒而不是计算出实际的值，是更清]]></description><category></category></item><item><title><![CDATA[Linux设备驱动程序学习（0）（ZZ）]]></title><link>https://blog.csdn.net/shh110/article/details/6913124</link><guid>https://blog.csdn.net/shh110/article/details/6913124</guid><author>shh110</author><pubDate>Fri, 28 Oct 2011 09:36:39 +0800</pubDate><description><![CDATA[Linux设备驱动程序学习（0）
－Hello, world！模块

 



一个学习Linux设备驱动程序都会碰到的第一个例程：







#includelinux/init.h>
#include 
linux/module.h>
MODULE_LICENSE("Dual BSD/GPL");

static int hello_init(voi]]></description><category></category></item><item><title><![CDATA[EOF 与 feof()]]></title><link>https://blog.csdn.net/shh110/article/details/6624018</link><guid>https://blog.csdn.net/shh110/article/details/6624018</guid><author>shh110</author><pubDate>Thu, 21 Jul 2011 19:32:20 +0800</pubDate><description><![CDATA[当读取文本文件到末尾  后 返回的是 -1     因为文本文件是ASCII形式的 所以 -1 不在其中 可以用来判断是否到末尾但对于2 进制文件 就无法用-1来判断是不是文件尾了  所以应该用  feof（）但使用feof的时候有个注意的地方ch=getc(fin);while]]></description><category></category></item><item><title><![CDATA[一个动态内存管理模块的实现]]></title><link>https://blog.csdn.net/shh110/article/details/6623981</link><guid>https://blog.csdn.net/shh110/article/details/6623981</guid><author>shh110</author><pubDate>Thu, 21 Jul 2011 19:09:20 +0800</pubDate><description><![CDATA[摘要：介绍一个动态内存管理模块，可以有效地检测C程序中内存泄漏和写内存越界等错误，适用于具有标准C语言开发环境的各种平台。关键词：C语言 动态内存 内存泄漏 写越界引言当前，绝大多数嵌入式平台上的软件都采用C语言编写。除了代码简洁、运行高效之外，灵活操作内存的能力更是C语言的重要]]></description><category></category></item><item><title><![CDATA[内存区划分；内存分配；堆、栈概念分析]]></title><link>https://blog.csdn.net/shh110/article/details/6623956</link><guid>https://blog.csdn.net/shh110/article/details/6623956</guid><author>shh110</author><pubDate>Thu, 21 Jul 2011 18:54:39 +0800</pubDate><description><![CDATA[一. 在c中分为这几个存储区1.栈 - 由编译器自动分配释放2.堆 - 一般由程序员分配释放，若程序员不释放，程序结束时可能由OS回收3.全局区（静态区），全局变量和静态变量的存储是放在一块的，初始化的全局变量和静态变量在一块区域，未初始化的全局变量和未初始化的静态变量在相邻的另]]></description><category></category></item><item><title><![CDATA[ZZ参数个数可变的宏定义]]></title><link>https://blog.csdn.net/shh110/article/details/6623948</link><guid>https://blog.csdn.net/shh110/article/details/6623948</guid><author>shh110</author><pubDate>Thu, 21 Jul 2011 18:49:51 +0800</pubDate><description><![CDATA[宏定义支持参数个数未知的情况，在打印调试信息时很管用。定义：#ifdef DEBUG#define print_dbg(...) printf(__VA_ARGS__)#else#define print_dbg(...) #endif使用：print_dbg（“Total is]]></description><category></category></item><item><title><![CDATA[蔡勒（Zeller）公式：w=y+[y/4]+[c/4]-2c+[26(m+1)/10]+d-1]]></title><link>https://blog.csdn.net/shh110/article/details/6522491</link><guid>https://blog.csdn.net/shh110/article/details/6522491</guid><author>shh110</author><pubDate>Sun, 24 Apr 2011 21:30:00 +0800</pubDate><description><![CDATA[蔡勒（Zeller）公式：w=y+[y/4]+[c/4]-2c+[26(m+1)/10]+d-1 公式中的符号含义如下，w：星期；c：世纪-1；y：年（两位数）；m：月（m大于等于3，小于等于14，即在蔡勒公式中，某年的1、2月要看作上一年的13、14月来计算，比如2003年1月1日要看作2002年的13月1日来计算）；d：日；[ ]代表取整，即只要整数部分。(C是世纪数减一，y是年份后两位，]]></description><category></category></item><item><title><![CDATA[规范代码]]></title><link>https://blog.csdn.net/shh110/article/details/6522257</link><guid>https://blog.csdn.net/shh110/article/details/6522257</guid><author>shh110</author><pubDate>Wed, 20 Apr 2011 20:19:00 +0800</pubDate><description><![CDATA[indent -npro -kr -i4 -ts4 -sob -ss -bl -bli 0 -l80 XX.C使用这条语句规范写好的XX.C文件]]></description><category></category></item><item><title><![CDATA[综述写法（转）]]></title><link>https://blog.csdn.net/shh110/article/details/6521946</link><guid>https://blog.csdn.net/shh110/article/details/6521946</guid><author>shh110</author><pubDate>Fri, 15 Apr 2011 19:21:00 +0800</pubDate><description><![CDATA[ 1 综述的定义和特点  综述是查阅了某一专题在一段时期内的相当数量的文献资料,经过分析研究,选取有关情报信息,进行归纳整理,作出综合性描述的文章.  综述的特点: ①综合性:综述要"纵横交错",既要以某一专题的发展为纵线,反映当前课题的进展;又要从本单位,省内,国内到国外,进行横的比较.只有如此,文章才会占有大量素材,经过综合分析,归纳整理,消化鉴别,使材料更精练,更明确,更]]></description><category></category></item><item><title><![CDATA[数独（转）]]></title><link>https://blog.csdn.net/shh110/article/details/6521658</link><guid>https://blog.csdn.net/shh110/article/details/6521658</guid><author>shh110</author><pubDate>Sun, 10 Apr 2011 19:02:00 +0800</pubDate><description><![CDATA[#include#include#include#include#define LS 4 //拉斯维加斯算法计算的数目int shudu[9][9]; //数独棋盘int shudutemp[9][9],shudutemp1[9][9],shudutemp2[9][9]; //保存数度棋盘，以便恢复原状int p,q; //记录回溯解数独的起始位置int isok=]]></description><category></category></item><item><title><![CDATA[`basename $0` 与$0区别]]></title><link>https://blog.csdn.net/shh110/article/details/6521586</link><guid>https://blog.csdn.net/shh110/article/details/6521586</guid><author>shh110</author><pubDate>Sat, 09 Apr 2011 11:49:00 +0800</pubDate><description><![CDATA[`basename $0`值显示当前脚本或命令的名字$0显示会包括当前脚本或命令的路径`basename $1`和$1相同]]></description><category></category></item><item><title><![CDATA[数组名与指针典型面试题的分析(转)]]></title><link>https://blog.csdn.net/shh110/article/details/6521437</link><guid>https://blog.csdn.net/shh110/article/details/6521437</guid><author>shh110</author><pubDate>Wed, 06 Apr 2011 18:45:00 +0800</pubDate><description><![CDATA[这类题目，总的来说，实际上可以归纳为如下几点：1、 有一个一维数组int a1[10]，定义一个指针，指向一维数组名。        2、 有一个一维数组int a2[10]，定义一个指针，指向一维数组名的地址。        3、 有一个二维数组int a3[3][4]，定义一个指针，指向二维数组名。        4、 有一个二维数组int a4[3][4]，定义一个指针，指向]]></description><category></category></item><item><title><![CDATA[C语言中printf格式化输出函数（转载）]]></title><link>https://blog.csdn.net/shh110/article/details/6521048</link><guid>https://blog.csdn.net/shh110/article/details/6521048</guid><author>shh110</author><pubDate>Tue, 29 Mar 2011 19:08:00 +0800</pubDate><description><![CDATA[用 法:　　int printf(const char *format,[argument]);　　format 参数输出的格式，定义格式为：　　%[flags][width][.perc] [F|N|h|l]type　　规定数据输出方式，具体如下：　　1.type 含义如下：　　d 有符号10进制整数　　i 有符号10进制整数　　o 有符号8进制整数　　u 无]]></description><category></category></item><item><title><![CDATA[int getchar(void);]]></title><link>https://blog.csdn.net/shh110/article/details/6520999</link><guid>https://blog.csdn.net/shh110/article/details/6520999</guid><author>shh110</author><pubDate>Mon, 28 Mar 2011 20:40:00 +0800</pubDate><description><![CDATA[                        getchar（由标准输入设备内读进一字符）                                         相关函数                         fopen，fread，fscanf，getc                                 ]]></description><category></category></item><item><title><![CDATA[段和页区别]]></title><link>https://blog.csdn.net/shh110/article/details/6520991</link><guid>https://blog.csdn.net/shh110/article/details/6520991</guid><author>shh110</author><pubDate>Mon, 28 Mar 2011 18:20:00 +0800</pubDate><description><![CDATA[1、页是信息的物理单位，分页是为实现离散分配方式，以消减内存的外零头，提高内存的利用率；或者说，分页仅仅是由于系统管理的需要，而不是用户的需要。段是信息的逻辑单位，它含有一组其意义相对完整的信息。分段的目的是为了能更好的满足用户的需要。分页的作业地址空间是维一的，即单一的线性空间，程序员只须利用一个记忆符，即可表示一地址。 2、 分段的作业地址空间是二维的，程序员在标识一个地址时，既需]]></description><category></category></item><item><title><![CDATA[编译2.6.38内核]]></title><link>https://blog.csdn.net/shh110/article/details/6520972</link><guid>https://blog.csdn.net/shh110/article/details/6520972</guid><author>shh110</author><pubDate>Mon, 28 Mar 2011 15:15:00 +0800</pubDate><description><![CDATA[说明：      1.操作系统：SUSE Linux 10 SP3      2.操作系统内核版本：linux-2.6.16.60      3.编译内核版本：linux-2.6.38内核下载地址：      linux-2.6.38 :http://www.kernel.org/pub/linux/kernel/v2.6/知识储备：关于内核文件和内核镜像文]]></description><category></category></item></channel></rss>