Any reason why we use __syscall(SYS_close, ...) vs close()? struct if_nameindex *if_nameindex() { size_t n; void *p = 0; int s = socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC, 0); if (s>=0) { for (n=0; (p=do_nameindex(s, n)) == (void *)-1; n++); __syscall(SYS_close, s); } errno = ENOBUFS; return p; }
Nadav, It looks like you imported this file from musl with this commit - c4df1043285b7597709f5199d619658909a22794? Waldek -- You received this message because you are subscribed to the Google Groups "OSv Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/f7f26e7f-9b5b-4a53-83ee-543d4b726112n%40googlegroups.com.