Exemplo n.º 1
0
sg_size_t File::size() {
	return simcall_file_get_size(p_inferior);
}
Exemplo n.º 2
0
/** \ingroup msg_file_management
 * \brief Return the size of a file
 *
 * \param fd is the file descriptor (#msg_file_t)
 * \return the size of the file (as a #sg_size_t)
 */
sg_size_t MSG_file_get_size(msg_file_t fd){
  msg_file_priv_t priv = MSG_file_priv(fd);
  return simcall_file_get_size(priv->simdata->smx_file);
}