The OpenNET Project / Index page

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

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

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

falloc.c (3)
  • >> falloc.c (3) ( Linux man: Библиотечные вызовы )
  •  

    NAME

    rpmdb/falloc.c - The entire file space is thus divided into blocks with a 'struct fablock' at the header of each. 
     
    

    SYNOPSIS


    #include 'system.h'
    #include 'rpmio_internal.h'
    #include 'rpmmessages.h'
    #include 'rpmerr.h'
    #include 'falloc.h'
    #include 'debug.h'
     

    Data Structures


    struct faFileHeader

    struct faFooter

    struct faHeader
     

    Defines


    #define FA_MAGIC 0x02050920
     

    Functions


    ssize_t Pread (FD_t fd, void *buf, size_t count, _libio_off_t offset)
    pread(2) clone.
    ssize_t Pwrite (FD_t fd, const void *buf, size_t count, _libio_off_t offset)
    pwrite(2) clone.
    FD_t fadOpen (const char *path, int flags, mode_t perms)

    unsigned int fadAlloc (FD_t fd, unsigned int size)

    void fadFree (FD_t fd, unsigned int offset)

    int fadSanity (FD_t fd, int offset, const struct faHeader *fh, int printit)

    int fadFirstOffset (FD_t fd)

    int fadNextOffset (FD_t fd, unsigned int lastoff)
     

    Variables


    FDIO_s fadio_s

    FDIO_t fadio = &fadio_s
     

    DETAILED DESCRIPTION

    The entire file space is thus divided into blocks with a 'struct fablock' at the header of each.


     The size fields doubly link this block list.

    There is an additional free list weaved through the block list, which keeps new allocations fast.

    Much of this was inspired by Knuth vol 1.

    Definition in file falloc.c.  

    FUNCTION DOCUMENTATION

     

    int fadSanity (FD_t fd, int offset, const struct faHeader * fh, int printit) [static]

    Definition at line 421 of file falloc.c.

    References RPMMESS_DEBUG, and rpmMessage.

    Referenced by fadNextOffset().  

    ssize_t Pread (FD_t fd, void * buf, size_t count, _libio_off_t offset) [static]

    pread(2) clone.

    Definition at line 58 of file falloc.c.

    References _libio_off_t, Fread(), Fseek(), and SEEK_SET.

    Referenced by fadAlloc(), fadFree(), fadNextOffset(), and fadOpen().  

    ssize_t Pwrite (FD_t fd, const void * buf, size_t count, _libio_off_t offset) [static]

    pwrite(2) clone.

    Definition at line 73 of file falloc.c.

    References _libio_off_t, Fseek(), Fwrite(), and SEEK_SET.

    Referenced by fadAlloc(), and fadFree().  

    VARIABLE DOCUMENTATION

     

    FDIO_t fadio = &fadio_s

    Definition at line 51 of file falloc.c.  

    struct FDIO_s fadio_s [static]

    Initial value:

     {
      NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
      fadOpen, NULL, NULL,  NULL, NULL, NULL, NULL, NULL, NULL
    }
    

    Definition at line 46 of file falloc.c.  

    AUTHOR

    Generated automatically by Doxygen for rpm from the source code.


     

    Index

    NAME
    SYNOPSIS
    Data Structures
    Defines
    Functions
    Variables
    DETAILED DESCRIPTION
    FUNCTION DOCUMENTATION
    int fadSanity (FD_t fd, int offset, const struct faHeader * fh, int printit) [static]
    ssize_t Pread (FD_t fd, void * buf, size_t count, _libio_off_t offset) [static]
    ssize_t Pwrite (FD_t fd, const void * buf, size_t count, _libio_off_t offset) [static]
    VARIABLE DOCUMENTATION
    FDIO_t fadio = &fadio_s
    struct FDIO_s fadio_s [static]
    AUTHOR


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




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

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