github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/test/any.txt (about)

     1  # Copyright 2018 syzkaller project authors. All rights reserved.
     2  # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  resource anyres8[int8]
     5  resource anyres32[int32]
     6  resource anyres64[int64]
     7  
     8  foo$anyres(a0 ptr[out, anyres8], a1 ptr[out, anyres32], a2 ptr[out, anyres64])
     9  
    10  foo$any_in(a ptr[in, any0])
    11  foo$any_inout(a ptr[inout, any0])
    12  foo$any_filename(a ptr[in, any_filename])
    13  
    14  any0 {
    15  	f1	int8
    16  	f2	int32
    17  	f3	int16be
    18  	f4	int64
    19  	f5	anybitfields
    20  	f6	array[any1]
    21  } [align[8]]
    22  
    23  any1 {
    24  	f1	anyunion0
    25  	f2	anyunion1
    26  	f3	array[int8]
    27  } [packed, align[2]]
    28  
    29  anyunion0 [
    30  	res8	anyres8
    31  	res32	anyres32
    32  	res64	anyres64
    33  ]
    34  
    35  anyunion1 [
    36  	i8	int8
    37  	i32	int32
    38  ] [varlen]
    39  
    40  anybitfields {
    41  	f1	int8:2
    42  	f2	int8:3
    43  	f3	int8:1
    44  	f4	int16:1
    45  	f5	int16:10
    46  	f6	int16:3
    47  }
    48  
    49  any_filename [
    50  	complex		any0
    51  	filename	filename
    52  ] [varlen]