Print this page
PSARC 2008/766 native zones p2v
6667924 physical to virtual utility for native zones


 541 extern FILE *zonecfg_open_scratch(const char *, boolean_t);
 542 extern int zonecfg_lock_scratch(FILE *);
 543 extern void zonecfg_close_scratch(FILE *);
 544 extern int zonecfg_get_scratch(FILE *, char *, size_t, char *, size_t, char *,
 545     size_t);
 546 extern int zonecfg_find_scratch(FILE *, const char *, const char *, char *,
 547     size_t);
 548 extern int zonecfg_reverse_scratch(FILE *, const char *, char *, size_t,
 549     char *, size_t);
 550 extern int zonecfg_add_scratch(FILE *, const char *, const char *,
 551     const char *);
 552 extern int zonecfg_delete_scratch(FILE *, const char *);
 553 extern boolean_t zonecfg_is_scratch(const char *);
 554 
 555 /*
 556  * zoneadmd support functions.  Shared between zoneadm and brand hook code.
 557  */
 558 extern void zonecfg_init_lock_file(const char *, char **);
 559 extern void zonecfg_release_lock_file(const char *, int);
 560 extern int zonecfg_grab_lock_file(const char *, int *);

 561 extern int zonecfg_ping_zoneadmd(const char *);
 562 extern int zonecfg_call_zoneadmd(const char *, zone_cmd_arg_t *, char *,
 563     boolean_t);
 564 
 565 #ifdef __cplusplus
 566 }
 567 #endif
 568 
 569 #endif  /* _LIBZONECFG_H */


 541 extern FILE *zonecfg_open_scratch(const char *, boolean_t);
 542 extern int zonecfg_lock_scratch(FILE *);
 543 extern void zonecfg_close_scratch(FILE *);
 544 extern int zonecfg_get_scratch(FILE *, char *, size_t, char *, size_t, char *,
 545     size_t);
 546 extern int zonecfg_find_scratch(FILE *, const char *, const char *, char *,
 547     size_t);
 548 extern int zonecfg_reverse_scratch(FILE *, const char *, char *, size_t,
 549     char *, size_t);
 550 extern int zonecfg_add_scratch(FILE *, const char *, const char *,
 551     const char *);
 552 extern int zonecfg_delete_scratch(FILE *, const char *);
 553 extern boolean_t zonecfg_is_scratch(const char *);
 554 
 555 /*
 556  * zoneadmd support functions.  Shared between zoneadm and brand hook code.
 557  */
 558 extern void zonecfg_init_lock_file(const char *, char **);
 559 extern void zonecfg_release_lock_file(const char *, int);
 560 extern int zonecfg_grab_lock_file(const char *, int *);
 561 extern boolean_t zonecfg_lock_file_held(int *);
 562 extern int zonecfg_ping_zoneadmd(const char *);
 563 extern int zonecfg_call_zoneadmd(const char *, zone_cmd_arg_t *, char *,
 564     boolean_t);
 565 
 566 #ifdef __cplusplus
 567 }
 568 #endif
 569 
 570 #endif  /* _LIBZONECFG_H */