os: implement StartProcess

Signed-off-by: leongross <leon.gross@9elements.com>
This commit is contained in:
leongross
2024-11-07 09:45:47 +01:00
committed by GitHub
parent c02a8141c7
commit f9f439ad49
10 changed files with 295 additions and 36 deletions
+5
View File
@@ -233,6 +233,11 @@ func (w WaitStatus) Continued() bool { return false }
func (w WaitStatus) StopSignal() Signal { return 0 }
func (w WaitStatus) TrapCause() int { return 0 }
// since rusage is quite a big struct and we stub it out anyway no need to define it here
func Wait4(pid int, wstatus *WaitStatus, options int, rusage uintptr) (wpid int, err error) {
return 0, ENOSYS // TODO
}
func Getenv(key string) (value string, found bool) {
data := cstring(key)
raw := libc_getenv(&data[0])
+2
View File
@@ -1,3 +1,5 @@
//go:build linux || unix
package syscall
func Exec(argv0 string, argv []string, envv []string) (err error)