Open zzh442856860 opened 7 years ago
chk_list.h
static inline chk_list_entry chk_list_end(chk_list l) { return NULL; //这个end,不是l->tail? 为何是NULL? }
chk_util.h
({ long int __result;\ do __result = (long int)(expression);\ while(__result == -1L&& errno == EINTR);\ __result;}) //这个地方,单独一个__result干什么的? 不是return ??
1) 只是用来标记结束, 不是获取最后一个节点。 2) 网上搜一下 c语言 expression 和 statement的区别
chk_list.h
static inline chk_list_entry chk_list_end(chk_list l) { return NULL; //这个end,不是l->tail? 为何是NULL? }
chk_util.h
ifndef TEMP_FAILURE_RETRY
define TEMP_FAILURE_RETRY(expression)\
endif