github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/test/fmt.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 r_any[int32]
     5  
     6  foo$fmt0(a ptr[in, fmt[dec, int32[1:10]]]) r_any
     7  foo$fmt1(a ptr[in, fmt[hex, flags[flags_any]]])
     8  foo$fmt2(a ptr[in, fmt[oct, len[b]]], b ptr[in, array[int8]])
     9  foo$fmt3(a ptr[in, fmt[dec, proc[10, 20]]])
    10  foo$fmt4(a ptr[in, fmt[dec, r_any]])
    11  foo$fmt5(a ptr[in, struct$fmt0])
    12  
    13  struct$fmt0 {
    14  	f0	fmt[dec, int8]
    15  }
    16  
    17  flags_any = 0, 1, 2