/[hurdextras]/libfuse/main.c
ViewVC logotype

Diff of /libfuse/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by stesie, Sat Dec 3 23:16:17 2005 UTC revision 1.13 by tschwinge, Tue Dec 6 14:25:03 2005 UTC
# Line 294  fuse_mount(const char *mountpoint, const Line 294  fuse_mount(const char *mountpoint, const
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);

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26