VirtualBox

Changeset 79421 in vbox for trunk/include


Ignore:
Timestamp:
Jun 28, 2019 8:34:58 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131663
Message:

IPRT: Added a flag to RTDirCreate for ignoring the umask and added RTDirCreateFullPathEx so it can be used when creating paths. bugref:9151

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r78947 r79421  
    6666/** Ignore errors setting the not-content-indexed flag.  Windows only atm. */
    6767#define RTDIRCREATE_FLAGS_NOT_CONTENT_INDEXED_NOT_CRITICAL  RT_BIT(2)
     68/** Ignore umask when applying the mode. */
     69#define RTDIRCREATE_FLAGS_IGNORE_UMASK                      RT_BIT(3)
    6870/** Valid mask. */
    69 #define RTDIRCREATE_FLAGS_VALID_MASK                        UINT32_C(0x00000007)
     71#define RTDIRCREATE_FLAGS_VALID_MASK                        UINT32_C(0x0000000f)
    7072/** @} */
    7173
     
    8183
    8284/**
    83  * Creates a directory including all parent directories in the path
    84  * if they don't exist.
     85 * Creates a directory including all non-existing parent directories.
    8586 *
    8687 * @returns iprt status code.
     
    8990 */
    9091RTDECL(int) RTDirCreateFullPath(const char *pszPath, RTFMODE fMode);
     92
     93/**
     94 * Creates a directory including all non-existing parent directories.
     95 *
     96 * @returns iprt status code.
     97 * @param   pszPath     Path to the directory to create.
     98 * @param   fMode       The mode of the new directories.
     99 * @param   fCreate     Create flags, RTDIRCREATE_FLAGS_*.
     100 */
     101RTDECL(int) RTDirCreateFullPathEx(const char *pszPath, RTFMODE fMode, uint32_t fFlags);
    91102
    92103/**
  • trunk/include/iprt/mangling.h

    r78947 r79421  
    770770# define RTDirCreate                                    RT_MANGLER(RTDirCreate)
    771771# define RTDirCreateFullPath                            RT_MANGLER(RTDirCreateFullPath)
     772# define RTDirCreateFullPathEx                          RT_MANGLER(RTDirCreateFullPathEx)
    772773# define RTDirCreateTemp                                RT_MANGLER(RTDirCreateTemp)
    773774# define RTDirCreateTempSecure                          RT_MANGLER(RTDirCreateTempSecure)
Note: See TracChangeset for help on using the changeset viewer.

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