Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

Hackish way to get a list of module exports under PLT

(define (get-provided-names-from-a-module path)
(syntax-property (expand (with-input-from-file (path->string path) read))
'module-variable-provides))

Adding DSO modules to Apache 2.0.53 on UNIX

For some reason all the Apache docs tell you to run apxs over a .so file. I never had any .so files, but I found this to work (if you have the .c file for your module).

/usr/local/apache2/bin/apxs -c mod_foo.c
/usr/local/apache2/bin/apxs -i -a -n foo mod_foo.la

It seems that the apxs compilation process puts the .so file in a folder called .libs/ which is invisible to a regular ls, but the above works too.
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS