martin@ found the problem: gdbmtool.h defines ARG_MAX to 3. gdbmtool.c includes gdbmtool.h and later sys/ioctl.h, which includes sys/ttycom.h, which includes sys/syslimits.h, which defines ARG_MAX to 256*1024. Is this a namespace problem in NetBSD? Thomas