{"name": "reopen_fd_to_null", "code": "int __fastcall reopen_fd_to_null ( int @@a1@@ ) { int @@result@@ ; int @@fd@@ ; @@result@@ = open64 ( String , Number ) ; @@fd@@ = @@result@@ ; if ( @@result@@ >= Number ) { dup2 ( @@result@@ , @@a1@@ ) ; @@result@@ = @@fd@@ ; if ( @@fd@@ != @@a1@@ ) @@result@@ = close ( @@fd@@ ) ; } return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "fd", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]}
{"name": "become_daemon", "code": "int __fastcall become_daemon ( const char * @@a1@@ ) { __pid_t @@v2@@ ; @@v2@@ = fork ( ) ; if ( @@v2@@ < Number ) exit ( Number ) ; if ( @@v2@@ > Number ) exit ( Number ) ; if ( @@a1@@ && ( unsigned __int8 ) ga_open_pidfile ( @@a1@@ ) != Number ) { g_log ( Number L , Number L , String ) ; exit ( Number ) ; } umask ( Number ) ; if ( setsid ( ) < Number || chdir ( String ) < Number ) { if ( @@a1@@ ) unlink ( @@a1@@ ) ; g_log ( Number L , Number L , String ) ; exit ( Number ) ; } reopen_fd_to_null ( Number ) ; reopen_fd_to_null ( Number ) ; return reopen_fd_to_null ( Number ) ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "const char"}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "__pid_t", "s": 4}, "location": "s8"}]}