native_fexecve function
Execute the file FD refers to, overlaying the running program image. ARGV and ENVP are passed to the new program, as for `execve'.
Implementation
int native_fexecve(
int fd,
ffi.Pointer<ffi.Pointer<Utf8>> __argv,
ffi.Pointer<ffi.Pointer<Utf8>> __envp,
) {
_fexecve ??= Libc().dylib.lookupFunction<
ffi.Int32 Function(ffi.Int32, ffi.Pointer<ffi.Pointer<Utf8>>,
ffi.Pointer<ffi.Pointer<Utf8>>),
_dart_fexecve>('fexecve');
return _fexecve!(
fd,
__argv,
__envp,
);
}