2007-02-10から1日間の記事一覧

動的共有オブジェクトの作成方法

C

コンパイル gcc -fPIC -shared -o a.so a.c リンク 普通にリンクすればよい。 動的ロード void *dlopen(const char *path, int mode); シンボルのポインタ取得 void *dlsym(void *handle); アンロード int dlclose(void *handle); エラー取得 char *dlerror(…

Apacheモジュールメモ

モジュール作成 apxs -g -n helloworld cd helloworld make make install/etc/httpd/conf.d/helloworld.conf を以下のように作成 LoadModule helloworld_module modules/mod_helloworld.so <Location /helloworld> SetHandler helloworld </Location>以下のようにした場合は、.hw で終わるファ…