// Package gosdd provides simple wrappers around useful functions // provided by systemd. // // On systems that are not Linux, or if the nosystemd build tag is set, // safe defaults are returned: zero or nil values, and no error will be // returned. // // Reference // // https://www.freedesktop.org/software/systemd/man/sd_listen_fds.html // is the documentation for the C API. package gosdd import "os" // 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) }