void gre_io_get_error_codes( gre_io_t *handle, gre_io_error_t *errorcodes )
This gets the error codes if greio experiences an error.
Parameters:
handle A valid handle created with gre_io_open()
errorcodes A valid gre_io_error_t structure to be filled out