]>
git.saurik.com Git - apple/system_cmds.git/blob - dirhelper.tproj/client.c
   2 #include <mach/mach_error.h> 
   3 #include <servers/bootstrap.h> 
  11 #define DIRHELPER_BOOTSTRAP_NAME "com.apple.bsd.dirhelper" 
  13 int main(int argc 
__attribute__((unused
)), char *argv
[] __attribute__((unused
))) 
  18         kr 
= bootstrap_look_up(bootstrap_port
, DIRHELPER_BOOTSTRAP_NAME
, &mp
); 
  19         if (kr 
!= KERN_SUCCESS
) { 
  20                 fprintf(stderr
, "bootstrap_look_up(): %s\n", bootstrap_strerror(kr
)); 
  24         kr 
= __dirhelper_create_user_local(mp
); 
  25         if (kr 
!= KERN_SUCCESS
) { 
  26                 fprintf(stderr
, "dirhelper_create_user_local(): %s\n", mach_error_string(kr
));