Closes a file.
#include <sys/types.h>
#include <sys/errno.h>
int
fp_close ( fp)
struct file *fp;
fp | Points to a file structure returned by the fp_open, fp_getf, or fp_opendev kernel service. |
The fp_close kernel service is a common service for closing files used by both the file system and routines outside the file system.
The fp_close kernel service can be called from the process environment only.
0 | Indicates a successful operation. |
If an error occurs, one of the values from the /usr/include/sys/error.h file is returned.
The close subroutine.
Logical File System Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.