最近碰到小问题汇总

记录、备份之

Cygwin 中 ctags 问题

前两天在 cygwin 用 ctags 生成 tags 时发现,”ctag -R .” 这条命令用法不对,怎么也想不明白哪里不对了。’ctags –version’ 查一下才知道,这个 ctags 根本不是 Exuberant Ctag[......]

继续阅读……

SOCKET 编程 select 模式

算是看《UNIX网络编程》相关部分的一点笔记。

select函数可以使进程通知内核对哪些描述符感兴趣,以及超时时长。
其函数原型为

#include <sys/select.h>
#include <sys/time.h>
int select (int maxfdp1, fd_set * readset, fd_set * writeset, \
       fd_set * exceptset, const struct timeval * timeout);

参数:
maxfdp1 最大描述符的个数,是要被测试的最大描述符加1(因为描述[......]

继续阅读……