MIO_ftruncate64 Subroutine

Purpose

Change the length of regular files through the MIO library.

Library

Modular I/O library (libmio.a)

Syntax

#include <libmio.h>

int MIO_ftruncate64 (FileDescriptor, Length)

int FileDescriptor;

int64 Length;

Description

This subroutine is an entry point of the MIO library. Use this subroutine to instrument your application with the MIO library. You can replace the ftruncate64 kernel I/O subroutine with this equivalent MIO subroutine. See the Modular I/O in AIX® Version 7.1 Performance management for the MIO library implementation.

Use this subroutine to change the length of the open file specified by the FileDescriptor parameter through Modular I/O (MIO) library. The FileDescriptor parameter results from the MIO_open64 subroutine.

Parameters

The parameters are those of the corresponding standard POSIX system call ftruncate64.

Return Values

The return values are those of the corresponding standard POSIX system call ftruncate64.

Error Codes

The error codes are those of the corresponding standard POSIX system call ftruncate64.

Location

/usr/lib/libmio.a