Changeset 47762 in vbox for trunk/include/iprt
- Timestamp:
- Aug 15, 2013 1:04:51 PM (11 years ago)
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/file.h
r47735 r47762 601 601 602 602 /** 603 * Converts file opening modes (used by fopen, for example) to IPRT 604 * compatible flags, which then can be used with RTFileOpen* APIs. 605 * 606 * @return IPRT status code. 607 * @param pszMode Mode string to convert. 608 * @param puMode Where to store the converted mode flags 609 * on success. 610 */ 611 RTDECL(int) RTFileModeToFlags(const char *pszMode, uint64_t *puMode); 612 613 /** 614 * Converts file opening modes along with a separate disposition command 615 * to IPRT compatible flags, which then can be used with RTFileOpen* APIs. 616 * 617 * Access modes: 618 * "r" - Read 619 * "r+" - Read / Write 620 * "w" - Write 621 * "w+" - Write / Read 622 * 623 * Disposition modes: 624 * "ca" - Create a new file, always, overwrite existing 625 * "ce" - Create a new file if not exist, fail if exist 626 * "oc" - Open existing, create if not exist 627 * "oe" - Open existing, fail if not exist 628 * "ot" - Open and truncate existing, fail of not exist 629 * 630 * Sharing modes: 631 * Not implemented yet. 632 * 633 * @return IPRT status code. 634 * @param pszAccess Access mode string to convert. 635 * @param pszDisposition Disposition mode string to convert. 636 * @param pszSharing Sharing mode string to convert. Not 637 * implemented yet. 638 * @param puMode Where to store the converted mode flags 639 * on success. 640 */ 641 RTDECL(int) RTFileModeToFlagsEx(const char *pszAccess, const char *pszDisposition, const char *pszSharing, uint64_t *puMode); 642 643 /** 603 644 * Moves a file. 604 645 * -
trunk/include/iprt/mangling.h
r47572 r47762 539 539 # define RTFileIsValid RT_MANGLER(RTFileIsValid) 540 540 # define RTFileLock RT_MANGLER(RTFileLock) 541 # define RTFileModeToFlags RT_MANGLER(RTFileModeToFlags) 542 # define RTFileModeToFlagsEx RT_MANGLER(RTFileModeToFlagsEx) 541 543 # define RTFileMove RT_MANGLER(RTFileMove) 542 544 # define RTFileOpen RT_MANGLER(RTFileOpen)
Note:
See TracChangeset
for help on using the changeset viewer.