Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Latest commit

 

History

History
9 lines (6 loc) · 290 Bytes

File metadata and controls

9 lines (6 loc) · 290 Bytes

gendb

compiling:
gcc -fPIC -rdynamic -c -I/usr/include/postgresql fopenwrap.c
gcc -shared -o libfopenwrap.so fopenwrap.o -lc -ldl -lpq
gcc fopen.c -o fopentest
LD_LIBRARY_PATH=. LD_PRELOAD=libfopenwrap.so ./fopentest fopen.c