SO_LINGER: 只針對 socket 的 close() 發揮作用。 case 1 (default): linger->l_onoff = 0; –> linger->l_linger no effect; case 2: linger->l_onoff !=0; linger->l_linger = 0 ; close() immediately… 更多 →
Waiting for the windcotton5415 wrote 1 month ago: SO_LINGER: 只針對 socket 的 close() 發揮作用。 case 1 (default): linger->l_onoff = 0; –> linger- … more →
cotton5415 wrote 1 month ago: set millisecond to 1 cost cpu 98% on Model Name: MacBook Model Identifier: MacBook1,1 Processor Name … more →
cotton5415 wrote 1 year ago: Reference: Technical Q&A QA1123: Getting List of All Processes on Mac OS X … more →
cotton5415 wrote 1 year ago: FILE * fp = fopen(“myfile.txt”,”w+a”) ; int fd= -1; if ( fp != NULL ) dup2(f … more →
cotton5415 wrote 1 year ago: GTK+ has no the concept of Z-order with widgets, and is not able to track whether a Window is being … more →
cotton5415 wrote 1 year ago: include opengl video http://www.cs.fsu.edu/~baker/devices/lxr/http/source/xawtv-3.95/x11/blit.c … more →
cotton5415 wrote 1 year ago: ref: http://www.rocklyte.com/news_20030917.html … more →
cotton5415 wrote 1 year ago: http://www.gtk.org/documentation.html … more →
cotton5415 wrote 1 year ago: it’s a branch of imageMagick 5.xxxx reference: http://www.graphicsmagick.org/www/api.html … more →
cotton5415 wrote 1 year ago: to build static library % gcc -c libtest.c -o libtest.o % ar rcs libtest.a libtest.o to build dynami … more →
cotton5415 wrote 1 year ago: install debian 4.r3 (2.6.18-6-686) and gtk+2.0 for developing GUI on EEE PC. write down a helloptg a … more →
cotton5415 wrote 1 year ago: Introduction: http://debian.linux.org.tw/~kevpeng/ … more →
cotton5415 wrote 1 year ago: ref: http://www.wretch.cc/blog/glCheng&article_id=7085161 … more →
cotton5415 wrote 1 year ago: because the called function declared as the non-void (ex: int add(int a,int b) ) but in the called f … more →
cotton5415 wrote 2 years ago: example: libabc.a is an user make library, in this lib, use a function pow in linux lib -lm. in make … more →
cotton5415 wrote 2 years ago: problem compiling error: mmi_gfx_macro.h:21: parse error before `{‘ mmi_gfx_macro.h:21: stray … more →
cotton5415 wrote 2 years ago: solve IR controller blocking problem int init_irdev(const char *fname) { unsigned long val; unsigned … more →
cotton5415 wrote 2 years ago: backup your source list $ sudo cp /etc/apt/sources.list /etc/apt/sources.list.`date +%F` add new sou … more →
cotton5415 wrote 2 years ago: Reference from http://cboard.cprogramming.com/archive/index.php/t-326.html shmserver.c #include #inc … more →