看板 LinuxDev 關於我們 聯絡資訊
小弟在閱讀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)