Inserting VZGOT development tree within GIT
[safe/jmp/vzgot] / lib / unicnt.h
1 /************************************************/
2 /*                                              */
3 /*      Copyright:                              */
4 /*       Jean-Marc Pigeon <jmp@safe.ca>  2009   */
5 /*                                              */
6 /************************************************/
7 /* This program is free software; you can       */
8 /* redistribute it and/or modify it under the   */
9 /* terms of the GNU General Public License as   */
10 /* published by the Free Software Foundation    */
11 /* version 2 of the License                     */
12 /*                                              */
13 /* This program is distributed in the hope that */
14 /* it will be useful, but WITHOUT ANY WARRANTY; */
15 /* without even the implied warranty of         */
16 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR  */
17 /* PURPOSE.  See the GNU General Public License */
18 /* for more details.                            */
19 /*                                              */
20 /* You should have received a copy of the GNU   */
21 /* General Public License along with this       */
22 /* program; if not, write to the Free Software  */
23 /* Foundation, Inc., 51 Franklin Street,        */
24 /* Fifth Floor, Boston, MA  02110-1301, USA.    */
25 /************************************************/
26 /*                                              */
27 /*      Define all routine to handle container  */
28 /*      struture and access.                    */
29 /*                                              */
30 /************************************************/
31 #ifndef UNICNT
32 #define UNICNT
33 extern int cnt_iscontgood(char *contname);
34 extern int cnt_pivot(int foreground,char *contname);
35 extern int cnt_setclonepid(char *contname,pid_t cpid);
36 extern pid_t cnt_getclonepid(char *contname);
37 extern int cnt_rmclonepid(char *contname);
38 extern int cnt_initscript(char *scriptname,const char *fmt,...);
39 extern char *cnt_getarch(char *contname);
40 extern char *cnt_getdist(char *contname);
41 extern void cnt_setstdio(int foreground,char *contname,char *outname);
42 extern int cnt_mstconsole(char *contname,pid_t cntpid);
43 #endif