github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/containers/compilers/rump/go/stub/mainstub.c (about)

     1  
     2  int kludge_argc = 1;
     3  char *kludge_argv[] = { "foo", 0, 0};
     4  
     5  extern unsigned int rumpns_kludge_dns_addrs[16];
     6  extern unsigned int rumpns_kludge_dns_addr_count;
     7  
     8  int main(int argc, char *argv[]) {
     9      printf("got this: %d\n", rumpns_kludge_dns_addr_count);
    10  	gomaincaller(rumpns_kludge_dns_addr_count * 4, rumpns_kludge_dns_addrs, argc, argv);
    11  	return 0;
    12  }