mirror of
https://github.com/golang/sys.git
synced 2026-01-29 07:02:06 +03:00
s/CachestatArgpack/Cachestat_t/g
This commit is contained in:
@@ -5828,5 +5828,5 @@ type SchedAttr C.struct_sched_attr
|
||||
|
||||
const SizeofSchedAttr = C.sizeof_struct_sched_attr
|
||||
|
||||
type CachestatArgpack C.struct_cachestat
|
||||
type Cachestat_t C.struct_cachestat
|
||||
type CachestatRange C.struct_cachestat_range
|
||||
|
||||
@@ -2483,4 +2483,4 @@ func SchedGetAttr(pid int, flags uint) (*SchedAttr, error) {
|
||||
return attr, nil
|
||||
}
|
||||
|
||||
//sys Cachestat(fd uint, crange *CachestatRange, cstat *CachestatArgpack, flags uint) (err error)
|
||||
//sys Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error)
|
||||
|
||||
@@ -2198,7 +2198,7 @@ func schedGetattr(pid int, attr *SchedAttr, size uint, flags uint) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func Cachestat(fd uint, crange *CachestatRange, cstat *CachestatArgpack, flags uint) (err error) {
|
||||
func Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error) {
|
||||
_, _, e1 := Syscall6(SYS_CACHESTAT, uintptr(fd), uintptr(unsafe.Pointer(crange)), uintptr(unsafe.Pointer(cstat)), uintptr(flags), 0, 0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
|
||||
@@ -5884,7 +5884,7 @@ type SchedAttr struct {
|
||||
|
||||
const SizeofSchedAttr = 0x38
|
||||
|
||||
type CachestatArgpack struct {
|
||||
type Cachestat_t struct {
|
||||
Cache uint64
|
||||
Dirty uint64
|
||||
Writeback uint64
|
||||
|
||||
Reference in New Issue
Block a user