Skip to content

{ Tag Archives } library

libevent備忘

方便的東西效率應該比select好…. void aaa(int fd, short event, void *arg){ } void bbb(int fd, short event, void *arg){ } void ccc(int fd, short event, void *arg){ struct timeval tv; timerclear(&tv); tv.tv_sec=1; event_add(&ev3, &tv); } void main (int argc, char * argv[]) { struct event ev1,ev2,ev3; struct timeval tv; int fd=XXXXX event_init(); event_set(&ev1, fd, EV_READ|EV_PERSIST, aaa, &ev1); event_add(&ev1, [...]

Also tagged , ,

/etc/ld.so.conf

竟然被這個檔案玩了一個下午….早說了我不喜歡 Mandrake 了…. faint…. ldconfig creates the necessary links and cache (for use by the run-time linker, ld.so) to the most recent shared libraries found in the direc-tories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/usr/lib and /lib).

Also tagged