发布时间:2013-04-26 22:00:06
/** more3.c ** ------------------------------------------------------------A version of more0.c that knows about the number of lines on theterminal ismore3.c.This program shows how to use ioctl to read the number ofrows from the driver. ** --------------------------------------------.........【阅读全文】
发布时间:2013-04-26 19:05:36
一些常见的错误的值,print出来的只有值,对应的错误列表,我在linux内核中找到了,分享出来。对比查看会相对方便。#define EPERM 1 /* Operation not permitted */#define ENOENT 2 /* No such file or directory */#define ESRCH 3 /* No such pr.........【阅读全文】
发布时间:2013-04-26 12:34:58
Sunday算法是Daniel M.Sunday于1990年提出的一种比BM算法搜索速度更快的算法。其核心思想是:在匹配过程中,模式串并不被要求一定要按从左向右进行比较还是从右向左进行比较,它在发现不匹配时,算法能跳过尽可能多的字符以进行下一步的匹配,从而提高了匹配效率。Sunday算法思想跟BM算.........【阅读全文】
发布时间:2013-04-26 12:30:00
/** mesg1.c ** ------------------------------------------------------------A version of mesg is:mesg1.c.Students doing this project will discover that write runs with set group id tty. Discussing why that is donecan be a useful review of the idea and purpose of theset user and set grou.........【阅读全文】
发布时间:2013-04-26 12:20:26
** ------------------------------------------------------------ ** ** * Enhanced version of write2.c * * This version accepts a username on the command line * then searches the utmp file for the first line on which * that user is found. This program skips the line for the * calling pro.........【阅读全文】