作者king19880326 (OK的啦~我都可以接受)
看板LinuxDev
标题[问题] 请问apue的第14页有关define的问题 @@
时间Tue Dec 2 03:57:21 2008
小弟在阅读apue(advanced programming in the unix environment 2e)
时看到下面两行:
extern int *__errno_location(void);
#define errno (*__errno_location());
书上说是与thread的errno有关
我想请问这两行的意思到底是??
感谢感谢 <(__)>
ps. errno 是在 <errno.h>里
稍微加注一下我的问题, 书上说每个thread有自己的errno
我想请问thread应该是共享记忆体,那为甚麽用函式来实做就会使得每一个
thread有自己的errno??
感谢感谢<(__)>
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.243.43
※ 编辑: king19880326 来自: 140.112.243.43 (12/02 14:11)