Chinaunix首页 | 论坛 | 博客
  • 博客访问: 39219
  • 博文数量: 29
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 285
  • 用 户 组: 普通用户
  • 注册时间: 2014-12-08 13:03
个人简介

海纳百川有容乃大,壁立千仞无欲则刚。

文章分类
文章存档

2015年(17)

2014年(12)

我的朋友

发布时间:2014-12-20 12:13:31

文件所有者ID是文件的性质,有效用户ID是进程的性质1. 进程的有效用户ID是超级用户(值为0),则允许访问2. 进程的有效用户ID等于文件所有者ID(该进程拥有此文件),那么若适当的访问权限位被设置,则允许访问。3. 进程的有效组ID或进程的附加组ID 等于文件组ID,那么若适当的访问权限位被设置,则允许访问。4. 进程的.........【阅读全文】

阅读(293) | 评论(0) | 转发(0)

发布时间:2014-12-16 17:56:20

extern int makethread( void * ( * ) ( void * ), void * );extern作用:函数的声明中带有关键字extern,仅仅是暗示这个函数可能在别的源文件里定义,没有其它作用 makethread函数有两个参数,第一个参数是一个函数指针,该函数指针指向一个返回为void* 且带有一个void*的形式参数。     &n.........【阅读全文】

阅读(431) | 评论(0) | 转发(0)

发布时间:2014-12-15 10:02:25

在学习条件变量一节时,想在机器上试一下。结果发现 pthread_cond_wait 竟然不阻塞。。。之后猜想难道是主线程不会阻塞,于是又在线程函数中调用 phtread_cond_wait,知道发现以下错误才找到答案。。。/tmp/cciM4NrQ.o: In function `main':condvar.c:(.text+0xe3): undefined reference to `pthread_create'collect2.........【阅读全文】

阅读(507) | 评论(0) | 转发(0)

发布时间:2014-12-12 10:14:48

http://www.apuebook.com/errata2e.htmlWelcome to the web site dedicated to the support of the second edition of Advanced Programming in the UNIX? Environment.The following errors were fixed in the second printing.Page 413, third paragraph. If a signal is related to an expi.........【阅读全文】

阅读(567) | 评论(0) | 转发(0)

发布时间:2014-12-10 09:46:55

以下对restrict的解释大部分都看懂了,但是对文章出现的 preload 实在不理解,compiler preload 会做了什么样的工作呢?先记下,以后会有搞懂的时候。One of the new features in the recently approved C standard C99, is the restrict pointer qualifier. This qualifier can be applied to a data pointer to indicat.........【阅读全文】

阅读(388) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册