Hi Paolo, > > +#ifdef EMSCRIPTEN > > +/* > > + * emscripten exposes copy_file_range declaration but doesn't provide the > > + * implementation in the final link. Define the stub here but avoid type > > + * conflict with the emscripten's header. > > + */ > > +ssize_t copy_file_range(int in_fd, off_t *in_off, int out_fd, > > + off_t *out_off, size_t len, unsigned int flags) > > +{ > > + errno = ENOSYS; > > + return -1; > > +} > > Please add a file stubs/emscripten.c with this function, and add it to > the build in stubs/meson.build. > > > +#ifdef EMSCRIPTEN > > + error_report("initgroups unsupported"); > > + exit(1); > > I think it's best to add a new function os-wasm.c in addition to > os-posix.c and os-win32.c, and disable all the functionality of > -run-with and -daemonize in vl.c via > > -#if defined(CONFIG_POSIX) > +#if defined(CONFIG_POSIX) && !defined(EMSCRIPTEN) > > (there are a couple occurrences).
Sure, I'll apply these reorganization in the next version of the series.