Bumps [github.com/checkpoint-restore/go-criu/v7](https://github.com/checkpoint-restore/go-criu) from 7.1.0 to 7.2.0. - [Release notes](https://github.com/checkpoint-restore/go-criu/releases) - [Commits](https://github.com/checkpoint-restore/go-criu/compare/v7.1.0...v7.2.0) --- updated-dependencies: - dependency-name: github.com/checkpoint-restore/go-criu/v7 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
		
			
				
	
	
		
			31 lines
		
	
	
		
			651 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			651 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright 2022 The Go Authors. All rights reserved.
 | 
						|
// Use of this source code is governed by a BSD-style
 | 
						|
// license that can be found in the LICENSE file.
 | 
						|
 | 
						|
//go:build hurd
 | 
						|
 | 
						|
package unix
 | 
						|
 | 
						|
/*
 | 
						|
#include <stdint.h>
 | 
						|
int ioctl(int, unsigned long int, uintptr_t);
 | 
						|
*/
 | 
						|
import "C"
 | 
						|
import "unsafe"
 | 
						|
 | 
						|
func ioctl(fd int, req uint, arg uintptr) (err error) {
 | 
						|
	r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg))
 | 
						|
	if r0 == -1 && er != nil {
 | 
						|
		err = er
 | 
						|
	}
 | 
						|
	return
 | 
						|
}
 | 
						|
 | 
						|
func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) {
 | 
						|
	r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(uintptr(arg)))
 | 
						|
	if r0 == -1 && er != nil {
 | 
						|
		err = er
 | 
						|
	}
 | 
						|
	return
 | 
						|
}
 |