294 |
|
|
295 |
mach_port_t bootstrap, ul_node; |
mach_port_t bootstrap, ul_node; |
296 |
|
|
297 |
|
/* netfs initialization. */ |
298 |
|
|
299 |
task_get_bootstrap_port(mach_task_self(), &bootstrap); |
task_get_bootstrap_port(mach_task_self(), &bootstrap); |
|
if(bootstrap == MACH_PORT_NULL) |
|
|
{ |
|
|
/* no assigned bootstrap port, i.e. we got called as a |
|
|
* common program, not using settrans |
|
|
*/ |
|
|
fprintf(stderr, "program must be started as a translator.\n"); |
|
|
return EPERM; |
|
|
} |
|
300 |
|
|
|
/* we have got a bootstrap port, that is, we were set up |
|
|
* using settrans and may start with normal operation ... */ |
|
301 |
netfs_init(); |
netfs_init(); |
302 |
|
|
303 |
ul_node = netfs_startup(bootstrap, 0); |
ul_node = netfs_startup(bootstrap, 0); |