VirtualBox

Changeset 39612 in vbox for trunk/include/iprt/dir.h


Ignore:
Timestamp:
Dec 14, 2011 2:19:55 PM (13 years ago)
Author:
vboxsync
Message:

IPRT/*: add _NO_SYMLINKS flags to certain functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/dir.h

    r36579 r39612  
    5151RTDECL(bool) RTDirExists(const char *pszPath);
    5252
     53/** @name RTDirCreate  flags.
     54 * @{ */
     55/** Don't allow symbolic links as part of the path. */
     56#define RTDIRCREATE_FLAGS_NO_SYMLINKS  RT_BIT(0)
     57/** @} */
     58
    5359/**
    5460 * Creates a directory.
     
    5763 * @param   pszPath     Path to the directory to create.
    5864 * @param   fMode       The mode of the new directory.
    59  */
    60 RTDECL(int) RTDirCreate(const char *pszPath, RTFMODE fMode);
     65 * @param   fCreate     Create flags, RTDIRCREATE_FLAGS_*.
     66 */
     67RTDECL(int) RTDirCreate(const char *pszPath, RTFMODE fMode, uint32_t fCreate);
    6168
    6269/**
     
    295302RTDECL(int) RTDirOpen(PRTDIR *ppDir, const char *pszPath);
    296303
     304/** @name RTDirOpenFiltered  flags.
     305 * @{ */
     306/** Don't allow symbolic links as part of the path. */
     307#define RTDIROPENFILTERED_FLAGS_NO_SYMLINKS  RT_BIT(0)
     308/** @} */
     309
    297310/**
    298311 * Opens a directory filtering the entries using dos style wildcards.
     
    303316 * @param   enmFilter   The kind of filter to apply. Setting this to RTDIRFILTER_NONE makes
    304317 *                      this function behave like RTDirOpen.
    305  */
    306 RTDECL(int) RTDirOpenFiltered(PRTDIR *ppDir, const char *pszPath, RTDIRFILTER enmFilter);
     318 * @param   fOpen       Open flags, RTDIROPENFILTERED_FLAGS_*.
     319 */
     320RTDECL(int) RTDirOpenFiltered(PRTDIR *ppDir, const char *pszPath, RTDIRFILTER enmFilter, uint32_t fOpen);
    307321
    308322/**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette