diff options
author | Andinus <andinus@nand.sh> | 2020-04-15 19:55:00 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-04-15 19:55:00 +0530 |
commit | 66b19e6e7ed9dba21142af56c2d43ec76dd846e6 (patch) | |
tree | 8a98f207073be5a512cd4670fb290220bf61a4b8 /pledge_other.go | |
parent | bc9703246e571c39f9cdb2739b7a4b54ebf4bad2 (diff) | |
download | lynx-66b19e6e7ed9dba21142af56c2d43ec76dd846e6.tar.gz |
Add Pledge wrappers
Diffstat (limited to 'pledge_other.go')
-rw-r--r-- | pledge_other.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pledge_other.go b/pledge_other.go new file mode 100644 index 0000000..cc2f076 --- /dev/null +++ b/pledge_other.go @@ -0,0 +1,21 @@ +// +build !openbsd + +package lynx + +// Pledge is just a wrapper to unix.Pledge. It returns nil on +// unsupported systems. +func Pledge(_, _ string) error { + return nil +} + +// PledgePromises is just a wrapper to unix.PledgePromises. It returns +// nil on unsupported systems. +func PledgePromises(_ string) error { + return nil +} + +// PledgeExecpromises is just a wrapper to unix.PledgeExecpromises. It +// returns nil on unsupported systems. +func PledgeExecpromises(_ string) error { + return nil +} |