- 博客(3)
- 资源 (4)
- 收藏
- 关注
原创 C的errno对应的含义
在系统 /usr/include/asm-generic 目录下有 errno.h 和 errno-base.h文件 #ifndef _ASM_GENERIC_ERRNO_BASE_H #define _ASM_GENERIC_ERRNO_BASE_H #define EPERM 1 /* Operation not permitted */
2013-09-27 14:54:21
1410
转载 localtime 和 localtime_r
#include #include #include #include using namespace std; int main(int argc, char *argv[]) { time_t tNow =time(NULL); time_t tEnd = tNow + 1800; //注意下面两行的区别 struct tm*
2013-09-22 19:42:06
492
原创 近期代码两次出core总结
近期修改智慧版后端对Searchhub、Suggestion异步连接时都出core。 其中sh只能怀疑是循环变量未初始化,for(int idx; i 针对sugg目前怀疑是sugge和后端数据源变量共享导致的问题,问题代码如下: (1)Sugg的状态变量仍采用ori_stat,而一旦suggestion处理完成,则再将其置回O_WAIT以便于后续处理sh或cache。这就触发了一个
2013-09-08 22:25:40
952
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅