Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

generate_sen.sh 324B

123456789101112131415
  1. #!/bin/sh -e
  2. #
  3. # Copyright (c) 2015-2018 The strace developers.
  4. # All rights reserved.
  5. #
  6. # SPDX-License-Identifier: LGPL-2.1-or-later
  7. [ "x${D:-0}" != x1 ] || set -x
  8. echo 'enum {'
  9. echo 'SEN_printargs = 0,'
  10. sed -r -n '/printargs/! s/.*SEN\(([^)]+)\).*/\1/p' |
  11. LC_COLLATE=C sort -u |
  12. sed 's/.*/SEN_&,/'
  13. echo '};'