/* plugin.c - loaded with dlopen() at runtime, so it never appears in ldd(1). */ #include int plugin_scan(const char *path) { FILE *f = fopen(path, "r"); int lines = 0; char buf[512]; if (!f) return -1; while (fgets(buf, sizeof buf, f)) lines++; fclose(f); return lines; }