Changeset 86035 in vbox
- Timestamp:
- Sep 6, 2020 8:31:16 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 140245
- Location:
- trunk
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/mangling.h
r85949 r86035 2920 2920 # define RTZipXarFsStreamFromIoStream RT_MANGLER(RTZipXarFsStreamFromIoStream) 2921 2921 # define RTZipTarFsStreamForFile RT_MANGLER(RTZipTarFsStreamForFile) 2922 # define RTZipCpioFsStreamFromIoStream RT_MANGLER(RTZipCpioFsStreamFromIoStream) 2922 2923 2923 2924 /* sort/merge into the above later: */ -
trunk/include/iprt/zip.h
r85121 r86035 501 501 RTDECL(int) RTZipXarFsStreamFromIoStream(RTVFSIOSTREAM hVfsIosIn, uint32_t fFlags, PRTVFSFSSTREAM phVfsFss); 502 502 503 /** 504 * Opens a CPIO filesystem stream. 505 * 506 * This is used to extract, list or check a CPIO archive. 507 * 508 * @returns IPRT status code. 509 * 510 * @param hVfsIosIn The input stream. The reference is not 511 * consumed, instead another one is retained. 512 * @param fFlags Flags, MBZ. 513 * @param phVfsFss Where to return the handle to the CPIO 514 * filesystem stream. 515 */ 516 RTDECL(int) RTZipCpioFsStreamFromIoStream(RTVFSIOSTREAM hVfsIosIn, uint32_t fFlags, PRTVFSFSSTREAM phVfsFss); 517 503 518 /** @} */ 504 519 -
trunk/src/VBox/Runtime/Makefile.kmk
r85875 r86035 682 682 common/vfs/vfsstdpipe.cpp \ 683 683 common/vfs/vfsprintf.cpp \ 684 common/zip/cpiovfs.cpp \ 684 685 common/zip/tar.cpp \ 685 686 common/zip/tarcmd.cpp \ -
trunk/src/VBox/Runtime/common/zip/tarcmd.cpp
r84761 r86035 75 75 RTZIPTARCMDFORMAT_TAR, 76 76 /** XAR. */ 77 RTZIPTARCMDFORMAT_XAR 77 RTZIPTARCMDFORMAT_XAR, 78 /** CPIO. */ 79 RTZIPTARCMDFORMAT_CPIO, 78 80 } RTZIPTARCMDFORMAT; 79 81 … … 818 820 rc = VERR_NOT_SUPPORTED; 819 821 #endif 822 else if (pOpts->enmFormat == RTZIPTARCMDFORMAT_CPIO) 823 rc = RTZipCpioFsStreamFromIoStream(hVfsIos, 0/*fFlags*/, phVfsFss); 820 824 else /** @todo make RTZipTarFsStreamFromIoStream fail if not tar file! */ 821 825 rc = RTZipTarFsStreamFromIoStream(hVfsIos, 0/*fFlags*/, phVfsFss); … … 1606 1610 " pax (tar POSIX.1-2001),\n" 1607 1611 " xar\n" 1608 " Note! Because XAR/TAR detection isn't implemented yet, it\n" 1612 " cpio\n" 1613 " Note! Because XAR/TAR/CPIO detection isn't implemented yet, it\n" 1609 1614 " is necessary to specifcy --format=xar when reading a\n" 1610 " XAR file. Otherwise this option is only for creation.\n" 1615 " XAR file or --format=cpio for a CPIO file.\n" 1616 " Otherwise this option is only for creation.\n" 1611 1617 "\n"); 1612 1618 RTPrintf("IPRT Options:\n" … … 1861 1867 else if (!strcmp(ValueUnion.psz, "xar")) 1862 1868 Opts.enmFormat = RTZIPTARCMDFORMAT_XAR; 1869 else if (!strcmp(ValueUnion.psz, "cpio")) 1870 Opts.enmFormat = RTZIPTARCMDFORMAT_CPIO; 1863 1871 else 1864 1872 return RTMsgErrorExit(RTEXITCODE_SYNTAX, "Unknown archive format: '%s'", ValueUnion.psz);
Note:
See TracChangeset
for help on using the changeset viewer.