pike.git / src / modules / Fuse / fuse.c

version» Context lines:

pike.git/src/modules/Fuse/fuse.c:945:    dinfo.sig.pf_lock.cmd = cmd;    dinfo.sig.pf_lock.lck = lck;    call_with_interpreter(low_dispatch, &dinfo);       return dinfo.ret;   }      static void low_dispatch(void *vinfo) {    struct dispatch_struct *dinfo = vinfo;    +  /* If we error in Pike code later, this will stand and ought to be +  * a better return value than most. */ +  dinfo->ret = -ENOSYS; +     switch (dinfo->id) {    case PF_GETATTR:    dinfo->ret = low_pf_getattr(dinfo->sig.pf_getattr.path,    dinfo->sig.pf_getattr.stbuf);    return;    case PF_READLINK:    dinfo->ret = low_pf_readlink(dinfo->sig.pf_readlink.path,    dinfo->sig.pf_readlink.buf,    dinfo->sig.pf_readlink.size);    return;