(command.CommandList children: [ (C {<Id.Lit_Colon ':'>} {<generate>} {<sig>} {<features>}) (command.Case to_match: {($ Id.VSub_Pound '#')} arms: [ (case_arm pat_list:[{<0>}] action:[] spids:[77 78 80 -1]) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [(C {<eval>} {($ Id.VSub_Number 1)}) (C {<shift>})] spids: [82 83 93 -1] ) ] redirects: [] ) (command.Simple words: [{<echo>} {(DQ <'#include <signal.h>\n'> <'int xxx;'>)}] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {($ Id.VSub_DollarName tmp) <.c>} ) ] more_env: [] do_fork: T ) (command.Simple words: [{($ Id.VSub_DollarName cc)} {<-c>} {($ Id.VSub_DollarName tmp) <.c>}] redirects: [ (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>}) (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {($ Id.VSub_DollarName tmp) <.e>} ) ] more_env: [] do_fork: T ) (C {<echo>} { (DQ <'#pragma prototyped\n'> <'#define sig_info\t_sig_info_\n'> <'\n'> <'#if defined(__STDPP__directive) && defined(__STDPP__hide)\n'> <'__STDPP__directive pragma pp:hide kill killpg\n'> <'#else\n'> <'#define kill\t______kill\n'> <'#define killpg\t______killpg\n'> <'#endif\n'> <'#include <signal.h>\n'> <'#if defined(__STDPP__directive) && defined(__STDPP__hide)\n'> <'__STDPP__directive pragma pp:nohide kill killpg\n'> <'#else\n'> <'#undef\tkill\n'> <'#undef\tkillpg\n'> <'#endif\n'> <'#ifndef sigmask\n'> <'#define sigmask(s)\t(1<<((s)-1))\n'> <'#endif'> ) } ) (command.Simple words: [ {<echo>} { (DQ <'#include <signal.h>\n'> <'#ifdef TYPE\n'> <'#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)\n'> <'typedef TYPE (*Sig_handler_t)(ARG);\n'> <'#else\n'> <'typedef TYPE (*Sig_handler_t)();\n'> <'#endif\n'> <'#endif\n'> <'Sig_handler_t f()\n'> <'{\n'> <'\tSig_handler_t\thandler;\n'> <'\thandler = signal(1, SIG_IGN);\n'> <'\treturn(handler);\n'> <'}'> ) } ] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {($ Id.VSub_DollarName tmp) <.c>} ) ] more_env: [] do_fork: T ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Simple words: [{($ Id.VSub_DollarName cc)} {<-c>} {($ Id.VSub_DollarName tmp) <.c>}] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) ] more_env: [] do_fork: T ) ] ) action: [(C {<Id.Lit_Colon ':'>})] spids: [171 183] ) ] else_action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'e='> name:e) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_Backtick '`'> child: (C {<wc>} {<-l>} {($ Id.VSub_DollarName tmp) <.e>}) right: <Id.Backtick_Right '`'> ) } spids: [189] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'i1='> name:i1) op: assign_op.Equal rhs: (rhs_word.Empty) spids: [202] ) (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'j1='> name:j1) op: assign_op.Equal rhs: (rhs_word.Empty) spids: [204] ) ] redirects: [] ) (command.ForEach iter_names: [i] iterable: (for_iter.Words words:[{<void>} {<int>}]) body: (command.DoGroup children: [ (command.ForEach iter_names: [j] iterable: (for_iter.Words words: [{<int> <Id.Lit_Comma ','> <Id.Lit_TDot ...>} {<Id.Lit_TDot ...>} {<int>}] ) body: (command.DoGroup children: [ (command.AndOr ops: [Id.Op_DPipe] children: [ (command.Simple words: [ {($ Id.VSub_DollarName cc)} {<-c>} {<-DTYPE> <Id.Lit_Equals '='> ($ Id.VSub_DollarName i)} {<-DARG> <Id.Lit_Equals '='> ($ Id.VSub_DollarName j)} {($ Id.VSub_DollarName tmp) <.c>} ] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {($ Id.VSub_DollarName tmp) <.e>} ) ] more_env: [] do_fork: T ) (command.ControlFlow token: <Id.ControlFlow_Continue continue> ) ] ) (command.Case to_match: { (command_sub left_token: <Id.Left_Backtick '`'> child: (C {<wc>} {<-l>} {($ Id.VSub_DollarName tmp) <.e>}) right: <Id.Backtick_Right '`'> ) } arms: [ (case_arm pat_list: [{($ Id.VSub_DollarName e)}] action: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'i1='> name:i1) op: assign_op.Equal rhs: (rhs_word.Empty) spids: [283] ) (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'j1='> name:j1) op: assign_op.Equal rhs: (rhs_word.Empty) spids: [285] ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (command.ControlFlow token: <Id.ControlFlow_Break break> arg_word: {<2>} ) ] spids: [280 281 292 -1] ) ] redirects: [] ) (command.Case to_match: {($ Id.VSub_DollarName i1)} arms: [ (case_arm pat_list: [{(DQ )}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'i1='> name:i1) op: assign_op.Equal rhs: {($ Id.VSub_DollarName i)} spids: [309] ) (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'j1='> name:j1) op: assign_op.Equal rhs: {($ Id.VSub_DollarName j)} spids: [312] ) ] redirects: [] ) ] spids: [305 307 315 -1] ) ] redirects: [] ) ] ) redirects: [] ) ] ) redirects: [] ) (command.Case to_match: {($ Id.VSub_DollarName i1)} arms: [ (case_arm pat_list: [{<Id.Lit_QMark '?'> <Id.Lit_Star '*'>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'i='> name:i) op: assign_op.Equal rhs: {($ Id.VSub_DollarName i1)} spids: [338] ) (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'j='> name:j) op: assign_op.Equal rhs: {($ Id.VSub_DollarName j1)} spids: [341] ) ] redirects: [] ) ] spids: [334 336 344 -1] ) ] redirects: [] ) (C {<echo>} { (DQ <'typedef '> ($ Id.VSub_DollarName i) <' (*Sig_handler_t)('> ($ Id.VSub_DollarName j) <');'> ) } ) ] redirects: [] ) (C {<echo>} { (SQ <'\n'> <'\n'> <'#define Handler_t\t\tSig_handler_t\n'> <'\n'> <'#define SIG_REG_PENDING\t\t(-1)\n'> <'#define SIG_REG_POP\t\t0\n'> <'#define SIG_REG_EXEC\t\t00001\n'> <'#define SIG_REG_PROC\t\t00002\n'> <'#define SIG_REG_TERM\t\t00004\n'> <'#define SIG_REG_ALL\t\t00777\n'> <'#define SIG_REG_SET\t\t01000\n'> <'\n'> <'typedef struct\n'> <'{\n'> <'\tchar**\t\tname;\n'> <'\tchar**\t\ttext;\n'> <'\tint\t\tsigmax;\n'> <'} Sig_info_t;\n'> <'\n'> <'extern int\t\tkill(pid_t, int);\n'> <'extern int\t\tkillpg(pid_t, int);\n'> <'\n'> <'#if _BLD_ast && defined(__EXPORT__)\n'> <'#define extern\t\textern __EXPORT__\n'> <'#endif\n'> <'#if !_BLD_ast && defined(__IMPORT__)\n'> <'#define extern\t\textern __IMPORT__\n'> <'#endif\n'> <'\n'> <'extern Sig_info_t\tsig_info;\n'> <'\n'> <'#undef\textern\n'> <'\n'> <'#if _lib_sigflag && _npt_sigflag\n'> <'extern int\t\tsigflag(int, int, int);\n'> <'#endif\n'> <'\n'> <'#if _BLD_ast && defined(__EXPORT__)\n'> <'#define extern\t\t__EXPORT__\n'> <'#endif\n'> <'\n'> <'#if !_lib_sigflag\n'> <'extern int\t\tsigflag(int, int, int);\n'> <'#endif\n'> <'extern int\t\tsigcritical(int);\n'> <'extern int\t\tsigunblock(int);\n'> <'\n'> <'#undef\textern'> ) } ) ] )