[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

fp_close Kernel Service

Purpose

Closes a file.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
int fp_close ( fp)
struct file *fp;

Parameter

fp Points to a file structure returned by the fp_open, fp_getf, or fp_opendev kernel service.

Description

The fp_close kernel service is a common service for closing files used by both the file system and routines outside the file system.

Execution Environment

The fp_close kernel service can be called from the process environment only.

Return Values

0 Indicates a successful operation.

If an error occurs, one of the values from the /usr/include/sys/error.h file is returned.

Related Information

The close subroutine.

Logical File System Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]