Subversion Repositories HelenOS

Rev

Rev 2569 | Rev 2589 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2569 Rev 2588
Line 57... Line 57...
57
 
57
 
58
    /*
58
    /*
59
     * Initialize the table of open files.
59
     * Initialize the table of open files.
60
     */
60
     */
61
    if (!vfs_conn_open_files_init()) {
61
    if (!vfs_conn_open_files_init()) {
62
        ipc_answer_fast(iid, ENOMEM, 0, 0);
62
        ipc_answer_fast_0(iid, ENOMEM);
63
        return;
63
        return;
64
    }
64
    }
65
 
65
 
66
    /*
66
    /*
67
     * The connection was opened via the IPC_CONNECT_ME_TO call.
67
     * The connection was opened via the IPC_CONNECT_ME_TO call.
68
     * This call needs to be answered.
68
     * This call needs to be answered.
69
     */
69
     */
70
    ipc_answer_fast(iid, EOK, 0, 0);
70
    ipc_answer_fast_0(iid, EOK);
71
 
71
 
72
    /*
72
    /*
73
     * Here we enter the main connection fibril loop.
73
     * Here we enter the main connection fibril loop.
74
     * The logic behind this loop and the protocol is that we'd like to keep
74
     * The logic behind this loop and the protocol is that we'd like to keep
75
     * each connection open until the client hangs up. When the client hangs
75
     * each connection open until the client hangs up. When the client hangs
Line 102... Line 102...
102
        case VFS_CLOSE:
102
        case VFS_CLOSE:
103
        case VFS_READ:
103
        case VFS_READ:
104
        case VFS_WRITE:
104
        case VFS_WRITE:
105
        case VFS_SEEK:
105
        case VFS_SEEK:
106
        default:
106
        default:
107
            ipc_answer_fast(callid, ENOTSUP, 0, 0);
107
            ipc_answer_fast_0(callid, ENOTSUP);
108
            break;
108
            break;
109
        }
109
        }
110
    }
110
    }
111
 
111
 
112
    /* TODO: cleanup after the client */
112
    /* TODO: cleanup after the client */