Chinaunix首页 | 论坛 | 博客
  • 博客访问: 190347
  • 博文数量: 39
  • 博客积分: 1491
  • 博客等级: 上尉
  • 技术积分: 411
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-05 16:12
文章分类

全部博文(39)

文章存档

2011年(3)

2010年(6)

2009年(30)

我的朋友

分类: LINUX

2010-01-11 17:42:40

     Linux,errno默认是线程安全的,在头文件中的定义:

/* Function to get address of global 'errno' variable. */

extern int *__errno_location (void) __THROW __attribute__ ((__const__));



/* When using threads, errno is a per-thread value. */

# define errno (*__errno_location ())


阅读(1686) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~