The OpenNET Project / Index page

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

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

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

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

    NAME

    lib/fs.c -  
     
    

    SYNOPSIS


    #include 'system.h'
    #include 'rpmlib.h'
    #include 'rpmmacro.h'
    #include 'debug.h'
     

    Data Structures


    struct fsinfo
     

    Defines


    #define MNT_DEV_PREFIX '/mnt/'

    #define MNT_DEV_PREFIX_LENGTH (sizeof(MNT_DEV_PREFIX)-1)
     

    Functions


    void freeFilesystems (void)
    Release storage used by file system usage cache.
    int getFilesystemList (void)
    Get information for mounted file systems.
    int rpmGetFilesystemList (const char ***listptr, int *num)
    Return (cached) file system mount points.
    int rpmGetFilesystemUsage (const char **fileList, int_32 *fssizes, int numFiles, uint_32 **usagesPtr, int flags)
    Determine per-file system usage for a list of files.  

    Variables


    fsinfo * filesystems = NULL

    const char ** fsnames = NULL

    int numFilesystems = 0
     

    DETAILED DESCRIPTION

    Definition in file fs.c.  

    DEFINE DOCUMENTATION

     

    #define MNT_DEV_PREFIX '/mnt/'

    Definition at line 11 of file fs.c.  

    #define MNT_DEV_PREFIX_LENGTH (sizeof(MNT_DEV_PREFIX)-1)

    Definition at line 12 of file fs.c.  

    FUNCTION DOCUMENTATION

     

    void freeFilesystems (void)

    Release storage used by file system usage cache.

    Definition at line 29 of file fs.c.

    References _free(), fsnames, fsinfo::mntPoint, and numFilesystems.

    Referenced by getFilesystemList(), and main().  

    int getFilesystemList (void) [static]

    Get information for mounted file systems.

    Todo: determine rdonly for non-linux file systems.

    Returns: 0 on success, 1 on error

    Definition at line 142 of file fs.c.

    References _, _free(), errno, freeFilesystems(), fsnames, getmntent(), fsinfo::mntPoint, MOUNTED, numFilesystems, our_mntent::our_mntdir, RPMERR_MTAB, RPMERR_STAT, rpmError, xcalloc(), xrealloc(), and xstrdup().

    Referenced by rpmGetFilesystemList(), and rpmGetFilesystemUsage().  

    int rpmGetFilesystemList (const char *** listptr, int * num)

    Return (cached) file system mount points.

    Return values:

    listptr
    addess of file system names (or NULL)
    num
    address of number of file systems (or NULL)

    Returns: 0 on success, 1 on error

    Definition at line 241 of file fs.c.

    References fsnames, getFilesystemList(), and numFilesystems.

    Referenced by fsnamesTag(), fssizesTag(), and rpmRunTransactions().  

    int rpmGetFilesystemUsage (const char ** fileList, int_32 * fssizes, int numFiles, uint_32 ** usagesPtr, int flags)

    Determine per-file system usage for a list of files.

    Parameters:

    fileList
    array of absolute file names
    fssizes
    array of file sizes
    numFiles
    number of files in list

    Return values:

    usagesPtr
    address of per-file system usage array (or NULL)

    Parameters:

    flags
    (unused)

    Returns: 0 on success, 1 on error

    Definition at line 253 of file fs.c.

    References _, _free(), alloca(), fsinfo::dev, errno, fsnames, getFilesystemList(), int_32, numFilesystems, RPMERR_BADDEV, RPMERR_STAT, rpmError, rpmGetPath(), uint_32, and xcalloc().

    Referenced by fssizesTag().  

    VARIABLE DOCUMENTATION

     

    struct fsinfo* filesystems = NULL [static]

    Definition at line 23 of file fs.c.  

    const char** fsnames = NULL [static]

    Definition at line 25 of file fs.c.

    Referenced by freeFilesystems(), getFilesystemList(), rpmGetFilesystemList(), and rpmGetFilesystemUsage().  

    int numFilesystems = 0 [static]

    Definition at line 27 of file fs.c.

    Referenced by freeFilesystems(), getFilesystemList(), rpmGetFilesystemList(), and rpmGetFilesystemUsage().  

    AUTHOR

    Generated automatically by Doxygen for rpm from the source code.


     

    Index

    NAME
    SYNOPSIS
    Data Structures
    Defines
    Functions
    Variables
    DETAILED DESCRIPTION
    DEFINE DOCUMENTATION
    #define MNT_DEV_PREFIX '/mnt/'
    #define MNT_DEV_PREFIX_LENGTH (sizeof(MNT_DEV_PREFIX)-1)
    FUNCTION DOCUMENTATION
    void freeFilesystems (void)
    int getFilesystemList (void) [static]
    int rpmGetFilesystemList (const char *** listptr, int * num)
    int rpmGetFilesystemUsage (const char ** fileList, int_32 * fssizes, int numFiles, uint_32 ** usagesPtr, int flags)
    VARIABLE DOCUMENTATION
    struct fsinfo* filesystems = NULL [static]
    const char** fsnames = NULL [static]
    int numFilesystems = 0 [static]
    AUTHOR


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




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

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