[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, 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.

Implementation Specifics

The fp_close kernel service is part of Base Operating System (BOS) Runtime.

Related Information

The close subroutine.

Logical File System Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]