MIO_write Subroutine

Purpose

Write to a file through the MIO library.

Library

Modular I/O library (libmio.a)

Syntax

#include <libmio.h>
 
int MIO_write(FileDescriptor,
Buffer, NBytes)
int  FileDescriptor;
void * Buffer;
int  NBytes;
     

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 write kernel I/O subroutine with this equivalent MIO subroutine. See theModular I/O in AIX® Version 7.1 Performance management for the MIO library implementation.

Use this subroutine to write the number of bytes of data specified by the NBytes parameter from the buffer to the file associated with the FileDescriptor parameter through the Modular I/O (MIO) library. The Buffer parameter points to the buffer. The FileDescriptor parameter results from the MIO_open64 subroutine.

Parameters

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

Return Values

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

Error Codes

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

Location

/usr/lib/libmio.a