diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2023-04-23 13:53:31 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2023-04-23 13:53:31 +0100 |
| commit | e6a19726a02fdcf9c8238d31caf8e6e35a5c0e55 (patch) | |
| tree | 48c88327821402885a1ea16fc62d64fdde425fac /socket.go | |
| parent | 6bd892a366f6c5fdece730e757bba38021b66aa4 (diff) | |
Diffstat (limited to 'socket.go')
| -rw-r--r-- | socket.go | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -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) -} |
