---
name: "gfs_pio_eof"
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_eof"
---

# gfs\_pio\_eof(3)

check file status

## NAME

gfs\_pio\_eof - check file status

## SYNOPSIS

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

**int gfs\_pio\_eof (GFS\_File** *gf***);**

## DESCRIPTION

The function **gfs\_pio\_eof()** tests the end-of-file indicator for the file pointed to by *gf*.

## RETURN VALUES

- **zero**

  The end-of-file indicator is not set.

- **non-zero**

  The end-of-file indicator is set.

## SEE ALSO

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