-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathprocess_darwin.go
40 lines (34 loc) · 957 Bytes
/
process_darwin.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package kiwi
import (
_ "errors"
_ "fmt"
_ "path/filepath"
_ "reflect"
_ "unsafe"
)
// Platform specific fields to be embedded into
// the Process struct.
type ProcPlatAttribs struct {
}
// GetProcessByPID returns the process with the given PID.
func GetProcessByPID(PID int) (Process, error) {
panic("OSX is not supported")
return Process{}, nil
}
// GetProcessByFileName returns the process with the given file name.
// If multiple processes have the same filename, the first process
// enumerated by this function is returned.
func GetProcessByFileName(fileName string) (Process, error) {
panic("OSX is not supported")
return Process{}, nil
}
// The platform specific read function.
func (p *Process) read(addr uintptr, ptr interface{}) error {
panic("OSX is not supported")
return nil
}
// The platform specific write function.
func (p *Process) write(addr uintptr, ptr interface{}) error {
panic("OSX is not supported")
return nil
}