Ignore:
Timestamp:
Sep 13, 2023, 10:49:50 AM (21 months ago)
Author:
Izuru Yakumo
Message:

Ready to release 0.6.0

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/vendor/golang.org/x/sys/unix/ioctl_linux.go

    r67 r69  
    55package unix
    66
    7 import (
    8         "unsafe"
    9 )
     7import "unsafe"
    108
    119// IoctlRetInt performs an ioctl operation specified by req on a device
     
    218216        return ioctlPtr(fd, SIOCKCMUNATTACH, unsafe.Pointer(&info))
    219217}
     218
     219// IoctlLoopGetStatus64 gets the status of the loop device associated with the
     220// file descriptor fd using the LOOP_GET_STATUS64 operation.
     221func IoctlLoopGetStatus64(fd int) (*LoopInfo64, error) {
     222        var value LoopInfo64
     223        if err := ioctlPtr(fd, LOOP_GET_STATUS64, unsafe.Pointer(&value)); err != nil {
     224                return nil, err
     225        }
     226        return &value, nil
     227}
     228
     229// IoctlLoopSetStatus64 sets the status of the loop device associated with the
     230// file descriptor fd using the LOOP_SET_STATUS64 operation.
     231func IoctlLoopSetStatus64(fd int, value *LoopInfo64) error {
     232        return ioctlPtr(fd, LOOP_SET_STATUS64, unsafe.Pointer(value))
     233}
Note: See TracChangeset for help on using the changeset viewer.