exec

package
v0.0.0-...-abfce65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

exec is a cheap knock-off of os/exec to be used by userland programs to spawn subprocesses with the wanix kernel. Perhaps with WASI support it will be unnecessary as the os/exec can be used directly instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Path string
	Args []string
	Env  []string
	Dir  string

	Stdout io.Writer
	Stderr io.Writer

	PID int
	// contains filtered or unexported fields
}

func Command

func Command(name string, arg ...string) *Cmd

func (*Cmd) CombinedOutput

func (c *Cmd) CombinedOutput() ([]byte, error)

func (*Cmd) Run

func (c *Cmd) Run() (int, error)

func (*Cmd) Start

func (c *Cmd) Start() error

func (*Cmd) StdinPipe

func (c *Cmd) StdinPipe() io.WriteCloser

func (*Cmd) Wait

func (c *Cmd) Wait() (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL