The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

bwrite (3)
  • >> bwrite (3) ( FreeBSD man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    
    
    bread , bwrite
    
     - read and write blocks of a UFS file system
    
     
    

    LIBRARY

    Lb libufs
    
     
    

    SYNOPSIS

       #include <sys/param.h>
       #include <sys/mount.h>
       #include <ufs/ufs/ufsmount.h>
       #include <ufs/ufs/dinode.h>
       #include <ufs/ffs/fs.h>
       #include <libufs.h>
    ssize_t bread (struct uufsd *disk ufs2_daddr_t blockno void *data size_t size);
    ssize_t Fo bwrite Fa struct uufsd *disk ufs2_daddr_t blockno Fa const void *data size_t size Fc  

    DESCRIPTION

    The bread ();
    and bwrite ();
    functions provide a block read and write API for libufs(3) consumers. They operate on a userland UFS disk structure, and perform the read and write at a given block address, which uses the current d_bsize value of the structure.  

    RETURN VALUES

    The bread ();
    and bwrite ();
    functions return the amount read or written, or -1 in case of any error, including short read.  

    ERRORS

    The function bread ();
    may fail and set errno for any of the errors specified for the library functions ufs_disk_write3 or pread(2). Additionally, it may follow the libufs(3) error methodologies in situations where the amount of data read is not equal to the amount requested, or in case of device error.

    The function bwrite ();
    may fail and set errno for any of the errors specified for the library function pwrite(2). Additionally, it may follow the libufs(3) error methodologies in situations where the amount of data written is not equal to the amount requested, or in case of a device error.  

    SEE ALSO

    libufs(3), ufs_disk_write3  

    HISTORY

    These functions first appeared as part of libufs(3) in Fx 5.0 .  

    AUTHORS

    An Juli Mallett Aq jmallett@FreeBSD.org


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO
    HISTORY
    AUTHORS


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру