---
name: "rfio_fflush"
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_fflush"
---

# rfio\_fflush(3)

flush a file

## NAME

rfio\_fflush - flush a file

## SYNOPSIS

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

**int rfio\_fflush (FILE \****fp***);**

## DESCRIPTION

**rfio\_fflush** forces a write of all buffered data for the file whose descriptor **fp** is the one returned by **rfio\_fopen.** The file remains open.

## RETURN VALUE

This routine returns 0 if successful, -1 if the operation failed and **serrno** is set appropriately.

## ERRORS

- **EBADF**

  *fp* is not a valid file descriptor.

- **SEBADVERSION**

  Version ID mismatch.

## SEE ALSO

**[rfio\_fopen(3)](/rfio_fopen/3.md)**

## AUTHOR

**LCG Grid Deployment** Team
