Subversion Repositories HelenOS

Rev

Rev 4722 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4722 Rev 4731
Line 137... Line 137...
137
 
137
 
138
int data_reply( void * data, size_t data_length ){
138
int data_reply( void * data, size_t data_length ){
139
    size_t          length;
139
    size_t          length;
140
    ipc_callid_t    callid;
140
    ipc_callid_t    callid;
141
 
141
 
142
    if(( ! ipc_data_read_receive( & callid, & length ))
142
    if( ! ipc_data_read_receive( & callid, & length )){
143
    || ( length < data_length )){
-
 
144
        return EINVAL;
143
        return EINVAL;
145
    }
144
    }
-
 
145
    if( length < data_length ){
-
 
146
        ipc_data_read_finalize( callid, data, length );
-
 
147
        return EOVERFLOW;
-
 
148
    }
146
    return ipc_data_read_finalize( callid, data, data_length );
149
    return ipc_data_read_finalize( callid, data, data_length );
147
}
150
}
148
 
151
 
149
/** @}
152
/** @}
150
 */
153
 */