---
name: "rfio_perror"
section: "3"
platform: "linux"
package: "libdpm-dev"
version: "1.10.0-2+b3"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/rfio_perror"
---

# rfio\_perror(3)

print error message corresponding to the last RFIO function failure

## NAME

rfio\_perror - print error message corresponding to the last RFIO function failure

## SYNOPSIS

**#include \<sys/types.h\>**\
 **#include "rfio\_api.h"**

**void rfio\_perror (const char \****umsg***);**

**int rfio\_serrno ();**

**char \*rfio\_serror ();**

## DESCRIPTION

**rfio\_serrno** gets error code corresponding to the last RFIO function failure (local or remote). **rfio\_serror** gets error message corresponding to the last RFIO function failure (local or remote). **rfio\_perror** produces a message on standard error describing the last RFIO error. The message is prefixed with *umsg* followed by a colon and a blank.

## RETURN VALUE

**rfio\_serrno** returns the last error code: **errno**, **serrno** or **rfio\_errno**. **rfio\_serror** returns a pointer to the error string.

## AUTHOR

**LCG Grid Deployment** Team
