anchor.diff:  #include "rtapi.h"
   #include "rtapi_app.h"
   #include "rtapi_string.h"
  +#include "rtapi_errno.h"
   #include "hal.h"
   
   static int comp_id;
  
positive.code:         print >>f, "    } else {"
          print >>f, "        hal_ready(comp_id);"
          print >>f, "    }"
          print >>f, "    return r;";
          print >>f, "}"
  
          print >>f
  
negative.code:             print >>f, "    return export(prefix, arg);"
              print >>f, "}"   
          if not options.get("singleton") and not options.get("count_function") :
              print >>f, "static int default_count=%s, count=0;" \
                  % options.get("default_count", 1)
              print >>f, "char *names[16] = {0,};"
              if not options.get("userspace"):
                  print >>f, "RTAPI_MP_INT(count, \"number of %s\");" % comp_name
                  print >>f, "RTAPI_MP_ARRAY_STRING(names, 16, \"names of %s\");" % comp_name
  
          if has_personality:
              print >>f, "static int personality[16] = {0,};"
  