File: transport_unixcred_netbsd.go

package info (click to toggle)
golang-dbus 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports, bookworm-proposed-updates, forky, sid, trixie
  • size: 592 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 222 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package dbus

import "io"

func (t *unixTransport) SendNullByte() error {
	n, _, err := t.UnixConn.WriteMsgUnix([]byte{0}, nil, nil)
	if err != nil {
		return err
	}
	if n != 1 {
		return io.ErrShortWrite
	}
	return nil
}