summaryrefslogtreecommitdiff
path: root/socket.go
diff options
context:
space:
mode:
Diffstat (limited to 'socket.go')
-rw-r--r--socket.go15
1 files changed, 1 insertions, 14 deletions
diff --git a/socket.go b/socket.go
index 6603cdc..0509aa2 100644
--- a/socket.go
+++ b/socket.go
@@ -14,23 +14,10 @@
// is the documentation for the C API.
package gosdd
-import (
- "errors"
- "os"
-)
+import "errors"
// ErrNoSDSupport is a generic error that is returned when gosdd has no
// systemd support, either because the library is compiled on a system
// that is not Linux or because it was explicitly disabled with the
// ‘nosystemd’ build tag.
var ErrNoSDSupport = errors.New("no systemd support")
-
-// SDListenFDs is a wrapper around sd_listen_fds.
-func SDListenFDs(unsetenv bool) ([]*os.File, error) {
- return sdListenFDs(unsetenv)
-}
-
-// SDListenFDsWithNames is a wrapper around sd_listen_fds_with_names.
-func SDListenFDsWithNames(unsetenv bool) (map[string]*os.File, error) {
- return sdListenFDsWithNames(unsetenv)
-}