extern c in sys.c and dump.c