VirtualBox

Changeset 67253 in vbox for trunk/include


Ignore:
Timestamp:
Jun 2, 2017 5:16:05 PM (8 years ago)
Author:
vboxsync
Message:

IPRT/tarvfswriter.cpp: Added RTZipTarFsStreamSetOwner, RTZipTarFsStreamSetGroup, RTZipTarFsStreamSetPrefix, RTZipTarFsStreamSetFileMode, RTZipTarFsStreamSetDirMode, and RTZipTarFsStreamSetModTime for overriding attributes in the output archive.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r67228 r67253  
    24482448# define RTZipTarFsStreamFromIoStream                   RT_MANGLER(RTZipTarFsStreamFromIoStream)
    24492449# define RTZipTarFsStreamToIoStream                     RT_MANGLER(RTZipTarFsStreamToIoStream)
     2450# define RTZipTarFsStreamSetOwner                       RT_MANGLER(RTZipTarFsStreamSetOwner)
     2451# define RTZipTarFsStreamSetGroup                       RT_MANGLER(RTZipTarFsStreamSetGroup)
     2452# define RTZipTarFsStreamSetPrefix                      RT_MANGLER(RTZipTarFsStreamSetPrefix)
     2453# define RTZipTarFsStreamSetFileMode                    RT_MANGLER(RTZipTarFsStreamSetFileMode)
     2454# define RTZipTarFsStreamSetDirMode                     RT_MANGLER(RTZipTarFsStreamSetDirMode)
     2455# define RTZipTarFsStreamSetModTime                     RT_MANGLER(RTZipTarFsStreamSetModTime)
    24502456# define RTZipXarFsStreamFromIoStream                   RT_MANGLER(RTZipXarFsStreamFromIoStream)
    24512457
  • trunk/include/iprt/zip.h

    r67134 r67253  
    315315
    316316/**
     317 * Set the owner to store the archive entries with.
     318 *
     319 * @returns IPRT status code.
     320 * @param   hVfsFss             The handle to a TAR creator.
     321 * @param   uid                 The UID value to set.  Passing NIL_RTUID makes
     322 *                              it use the value found in RTFSOBJINFO.
     323 * @param   pszOwner            The owner name to store.  Passing NULL makes it
     324 *                              use the value found in RTFSOBJINFO.
     325 */
     326RTDECL(int) RTZipTarFsStreamSetOwner(RTVFSFSSTREAM hVfsFss, RTUID uid, const char *pszOwner);
     327
     328/**
     329 * Set the group to store the archive entries with.
     330 *
     331 * @returns IPRT status code.
     332 * @param   hVfsFss             The handle to a TAR creator.
     333 * @param   gid                 The GID value to set.  Passing NIL_RTUID makes
     334 *                              it use the value found in RTFSOBJINFO.
     335 * @param   pszGroup            The group name to store.  Passing NULL makes it
     336 *                              use the value found in RTFSOBJINFO.
     337 */
     338RTDECL(int) RTZipTarFsStreamSetGroup(RTVFSFSSTREAM hVfsFss, RTGID gid, const char *pszGroup);
     339
     340/**
     341 * Set path prefix to store the archive entries with.
     342 *
     343 * @returns IPRT status code.
     344 * @param   hVfsFss             The handle to a TAR creator.
     345 * @param   pszPrefix           The path prefix to join the names with.  Pass
     346 *                              NULL for no prefix.
     347 */
     348RTDECL(int) RTZipTarFsStreamSetPrefix(RTVFSFSSTREAM hVfsFss, const char *pszPrefix);
     349
     350/**
     351 * Set the AND and OR masks to apply to file (non-dir) modes in the archive.
     352 *
     353 * @returns IPRT status code.
     354 * @param   hVfsFss             The handle to a TAR creator.
     355 * @param   fAndMode            The bits to keep
     356 * @param   fOrMode             The bits to set.
     357 */
     358RTDECL(int) RTZipTarFsStreamSetFileMode(RTVFSFSSTREAM hVfsFss, RTFMODE fAndMode, RTFMODE fOrMode);
     359
     360/**
     361 * Set the AND and OR masks to apply to directory modes in the archive.
     362 *
     363 * @returns IPRT status code.
     364 * @param   hVfsFss             The handle to a TAR creator.
     365 * @param   fAndMode            The bits to keep
     366 * @param   fOrMode             The bits to set.
     367 */
     368RTDECL(int) RTZipTarFsStreamSetDirMode(RTVFSFSSTREAM hVfsFss, RTFMODE fAndMode, RTFMODE fOrMode);
     369
     370/**
     371 * Set the modification time to store the archive entires with.
     372 *
     373 * @returns IPRT status code.
     374 * @param   hVfsFss             The handle to a TAR creator.
     375 * @param   pModificationTime   The modification time to use.  Pass NULL to use
     376 *                              the value found in RTFSOBJINFO.
     377 */
     378RTDECL(int) RTZipTarFsStreamSetMTime(RTVFSFSSTREAM hVfsFss, PCRTTIMESPEC pModificationTime);
     379
     380
     381/**
    317382 * A mini TAR program.
    318383 *
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