iounit man page on Plan9

Man page or keyword search:  
man Server   549 pages
apropos Keyword Search (all sections)
Output format
Plan9 logo
[printable version]

IOUNIT(2)							     IOUNIT(2)

NAME
       iounit - return size of atomic I/O unit for file descriptor

SYNOPSIS
       #include <u.h>
       #include <libc.h>

       int iounit(int fd)

DESCRIPTION
       Reads  and  writes  of files are transmitted using the 9P protocol (see
       intro(5)) and in general, operations involving large  amounts  of  data
       must  be	 broken into smaller pieces by the operating system.  The `I/O
       unit' associated with each file descriptor records the maximum size, in
       bytes, that may be read or written without breaking up the transfer.

       The  iounit  routine uses the dup(3) interface to discover the I/O unit
       size for the file descriptor fd and returns its	value.	 Certain  file
       descriptors,  particularly  those  associated with devices, may have no
       specific I/O unit, in which case iounit will return 0.

SOURCE
       /sys/src/libc/9sys

SEE ALSO
       dup(3), read(5)

DIAGNOSTICS
       Returns zero if any error occurs or if the I/O unit size of the	fd  is
       unspecified or unknown.

								     IOUNIT(2)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net