github.com/Ptt-official-app/go-bbs@v0.12.0/cache/systemvshm_linux.go (about)

     1  // +build linux
     2  
     3  package cache
     4  
     5  type keyT uint32
     6  type uidT uint32
     7  type gidT uint32
     8  type sizeT uint64
     9  type shmattT uint64
    10  
    11  type ShmidDs struct {
    12  	x struct {
    13  		_key            keyT
    14  		uid             uidT
    15  		gid             gidT
    16  		cuid            uidT
    17  		cgid            gidT  // 20
    18  		mode            int16 // 22
    19  		_Pad1           uint16
    20  		_seq            int16  // 26
    21  		_Pad2           uint16 // 32
    22  		_GlibcReserved1 uint64
    23  		_GlibcReserved2 uint64
    24  	} // the length is 48bytes
    25  	ShmSegsz    sizeT
    26  	shmAtime    int64
    27  	shmDtime    int64
    28  	shmCtime    int64
    29  	ShmCpid     int32
    30  	ShmLpid     int32
    31  	ShmNattach  shmattT
    32  	shmInternal int64
    33  }