1 /* vi: set sw=4 ts=4: */
3 Copyright (C) 2002 Tim Riker <Tim@Rikers.org>
4 everyone seems to claim it someplace. ;-)
11 int query_module(const char *name, int which, void *buf, size_t bufsize, size_t *ret);
13 int my_query_module(const char *name, int which, void **buf,
14 size_t *bufsize, size_t *ret)
18 my_ret = query_module(name, which, *buf, *bufsize, ret);
20 if (my_ret == -1 && errno == ENOSPC) {
21 *buf = xrealloc(*buf, *ret);
24 my_ret = query_module(name, which, *buf, *bufsize, ret);