Ignore:
Timestamp:
Mar 16, 2011, 12:30:51 AM (14 years ago)
Author:
bird
Message:

0.6: Backported fpathconf and pathconf reimplementation. Fixes #44.

Location:
branches/libc-0.6/src/emx/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/include/InnoTekLIBC/backend.h

    r3102 r3695  
    157157 */
    158158void __libc_Back_fsSync(void);
     159
     160/**
     161 * Query filesystem configuration information by path.
     162 *
     163 * @returns 0 on success.
     164 * @returns Negative error code (errno.h) on failure.
     165 * @param   pszPath     Path to query info about.
     166 * @param   iName       Which path config variable to query.
     167 * @param   plValue     Where to return the value.
     168 * @sa      __libc_Back_ioPathConf, fpathconf, pathconf, sysconf.
     169 */
     170int __libc_Back_fsPathConf(const char *pszPath, int iName, long *plValue);
    159171
    160172/**
     
    507519 */
    508520int __libc_Back_ioFHToPath(int fh, char *pszPath, size_t cchPath);
     521
     522/**
     523 * Query filesystem configuration information by file handle.
     524 *
     525 * @returns 0 on success.
     526 * @returns Negative error code (errno.h) on failure.
     527 * @param   fh          The handle to query config info about.
     528 * @param   iName       Which path config variable to query.
     529 * @param   plValue     Where to return the configuration value.
     530 * @sa      __libc_Back_fsPathConf, fpathconf, pathconf, sysconf.
     531 */
     532int __libc_Back_ioPathConf(int fh, int iName, long *plValue);
    509533
    510534/** @} */
  • branches/libc-0.6/src/emx/include/emx/io.h

    r2522 r3695  
    322322    /** Does the file system provide sufficient EA support for UNIX attributes? */
    323323    unsigned            fUnixEAs : 1;
     324    /** _PC_CHOWN_RESTRICTED - Is chown and chgrp restricted the typical unix way. */
     325    unsigned            fChOwnRestricted : 1;
     326    /** _PC_NO_TRUNC - Indicates whether too long names will cause errors or be truncated. */
     327    unsigned            fNoNameTrunc : 1;
     328    /** _PC_FILESIZEBITS - The bitsize of the type required to store the max file size. */
     329    unsigned            cFileSizeBits : 7;
     330    /** _PC_PATH_MAX - The maximum path length. */
     331    unsigned short      cchMaxPath;
     332    /** _PC_NAME_MAX - The maximum path length. */
     333    unsigned short      cchMaxName;
     334    /** _PC_SYMLINK_MAX - The maximum symlink length. */
     335    unsigned short      cchMaxSymlink;
     336    /** _PC_LINK_MAX - The maximum number of hard links per file. */
     337    unsigned short      cMaxLinks;
     338    /** _PC_MAX_CANON - The maximum number of bytes in a terminal canonical input queue. */
     339    unsigned short      cchMaxTermCanon;
     340    /** _PC_MAX_INPUT - The maximum number of bytes in a canonical input queue. */
     341    unsigned short      cchMaxTermInput;
     342    /** _PC_PIPE_BUF  - The maximum number of bytes that is guaranteed to be atomic when writing to a pipe. */
     343    unsigned            cbPipeBuf;
     344    /** _PC_ALLOC_SIZE_MIN - The (smallest) block allocation size of the file system.  */
     345    unsigned            cbBlock;
     346    /** _PC_REC_XFER_ALIGN - The recommended buffer alignment for transfers. */
     347    unsigned short      uXferAlign;
     348    /** _PC_REC_INCR_XFER_SIZE - The increments to walk between the min and max transfer sizes. */
     349    unsigned short      cbXferIncr;
     350    /** _PC_REC_MAX_XFER_SIZE  - The maximum recommended transfer size. */
     351    unsigned long       cbXferMax;
     352    /** _PC_REC_MIN_XFER_SIZE  - The minimum recommended transfer size. */
     353    unsigned long       cbXferMin;
    324354    /** Device number of the device the filesystem resides on.
    325355     * On OS/2 the device number is derived from the driveletter. */
Note: See TracChangeset for help on using the changeset viewer.