Changes

Jump to navigation Jump to search
74 bytes added ,  13:10, 18 August 2017
Line 1: Line 1: −
'''libcriu''' is a C API for CRIU, which is a simple wrapper around our [[RPC]]. Although you can use [[RPC]] directly, libcriu is a wrapper providing the interface that is much easier to use from C code. Note that [[RPC]] is supported in the first place, and if you want the most recent set of features you should probably use [[RPC]] directly.
+
'''libcriu''' is a C API for CRIU, a simple wrapper around our [[RPC]]. Although you can use [[RPC]] directly, libcriu is a wrapper providing the interface that is much easier to use from C code. Note that [[RPC]] is supported in the first place, and if you want the most recent set of features you should probably use [[RPC]] directly.
    
== Introduction ==
 
== Introduction ==
Line 6: Line 6:     
To create a library <code>lib/libcriu.so</code>, run <code>make</code> in the main directory.
 
To create a library <code>lib/libcriu.so</code>, run <code>make</code> in the main directory.
  −
{{Warning|The library is not thread- and fork- safe}}
      
== Preparation ==
 
== Preparation ==
Line 36: Line 34:  
void criu_set_log_file(char *log_file);
 
void criu_set_log_file(char *log_file);
 
</source>
 
</source>
 +
 +
{{Note|This set of calls is not thread safe! For thread safety the same calls with _local suffix should be used}}
    
If no pid is set on dump, CRIU will dump the calling process itself.
 
If no pid is set on dump, CRIU will dump the calling process itself.
Line 134: Line 134:     
[[Category: API]]
 
[[Category: API]]
 +
[[Category: Outdated]]

Navigation menu