那些坑
rasishou
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
windows下的signal(),pthread_cancel()
windows下的signal()只支持有限的信号:// Signal types #define SIGINT 2 // interrupt #define SIGILL 4 // illegal instruction - invalid function image #define SIGFPE 8 // floating p...原创 2018-05-06 13:23:24 · 1020 阅读 · 0 评论 -
C++11 std::thread::id
C++11 std::thread::id其实是一个内部类:class thread{ ... class id{ ... }; ... };id里面有一个私有的类似typedef unsigned long int pthread_t;的数据成员。当初遇到id的时候以为它就是一个类似int的东西。在程序的某个地方需要一个数值的id,需要std::this_thre...原创 2018-05-06 13:45:12 · 3223 阅读 · 0 评论 -
crypt函数
getspnam函数可以根据用户名返回对应shadow文件中的信息,函数原型为struct spwd *getspnam(char *name);,头文件为shadow.h。返回的信息存储在spwd结构中,struct spwd { char *sp_namp; /* Login name. */ char *sp_pwdp; /* Encrypted password. */ long int ...原创 2018-05-06 20:59:09 · 1909 阅读 · 0 评论
分享