---
name: "gfs_pio_error"
section: "3"
platform: "linux"
package: "libgfarm-dev"
version: "2.4.1-1.1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/gfs_pio_error"
---

# gfs\_pio\_error(3)

check file status

## NAME

gfs\_pio\_error - check file status

## SYNOPSIS

**#include \<gfarm/gfarm.h\>**

**char \*gfs\_pio\_error (GFS\_File** *gf***);**

## DESCRIPTION

The function **gfs\_pio\_error()** tests the error indicator for the file pointed to by *gf*, returning non-zero if it is set.

## RETURN VALUES

- **NULL**

  There is no error.

- **Others**

  An error occurred.  The reason is shown by its pointed strings.

## SEE ALSO

[**gfs\_pio\_create**(3)](/gfs_pio_create/3.md), [**gfs\_pio\_eof**(3)](/gfs_pio_eof/3.md), [**gfs\_pio\_open**(3)](/gfs_pio_open/3.md)
