diff options
author | 2021-09-08 20:05:26 +0100 | |
---|---|---|
committer | 2021-09-08 20:05:26 +0100 | |
commit | bdcc090851f37f1e81a53c1e695f897b1252cd22 (patch) | |
tree | 2d0926cdcf3088781842a83fd8ed50593006ccc2 /vendor/golang.org/x/sys/unix/syscall_illumos.go | |
parent | rework media processing a little bit (#191) (diff) | |
download | gotosocial-bdcc090851f37f1e81a53c1e695f897b1252cd22.tar.xz |
update bun library -> v1.0.4
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
Diffstat (limited to 'vendor/golang.org/x/sys/unix/syscall_illumos.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/syscall_illumos.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/syscall_illumos.go b/vendor/golang.org/x/sys/unix/syscall_illumos.go index 8c5357683..8d5f294c4 100644 --- a/vendor/golang.org/x/sys/unix/syscall_illumos.go +++ b/vendor/golang.org/x/sys/unix/syscall_illumos.go @@ -162,6 +162,14 @@ func (l *Lifreq) GetLifruInt() int { return *(*int)(unsafe.Pointer(&l.Lifru[0])) } +func (l *Lifreq) SetLifruUint(d uint) { + *(*uint)(unsafe.Pointer(&l.Lifru[0])) = d +} + +func (l *Lifreq) GetLifruUint() uint { + return *(*uint)(unsafe.Pointer(&l.Lifru[0])) +} + func IoctlLifreq(fd int, req uint, l *Lifreq) error { return ioctl(fd, req, uintptr(unsafe.Pointer(l))) } |