Changeset 66592 in vbox for trunk/include
- Timestamp:
- Apr 17, 2017 3:15:43 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 114619
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/file.h
r62559 r66592 694 694 * 695 695 * Access modes: 696 * "r" -Opens a file for reading.697 * "r+" -Opens a file for reading and writing.698 * "w" -Opens a file for writing.699 * "w+" -Opens a file for writing and reading.696 * - "r": Opens a file for reading. 697 * - "r+": Opens a file for reading and writing. 698 * - "w": Opens a file for writing. 699 * - "w+": Opens a file for writing and reading. 700 700 * 701 701 * Disposition modes: 702 * "ca" - Creates a new file, always. Overwrites an existing file. 703 * "ce" - Creates a new file if it does not exist. Fail if exist. 704 * "oa" - Opens an existing file and places the file pointer at 705 * the end of the file, if opened with write access. 706 * Create the file if it does not exist. 707 * "oc" - Opens an existing file or create it if it does not exist. 708 * "oe" - Opens an existing file or fail if it does not exist. 709 * "ot" - Opens and truncate an existing file or fail if it does not exist. 710 * 711 * @note Sharing modes are not implemented yet, so RTFILE_O_DENY_NONE will 712 * always be used. 702 * - "oe", "open": Opens an existing file or fail if it does not exist. 703 * - "oc", "open-create": Opens an existing file or create it if it does 704 * not exist. 705 * - "oa", "open-append": Opens an existing file and places the file 706 * pointer at the end of the file, if opened with write access. Create 707 * the file if it does not exist. 708 * - "ot", "open-truncate": Opens and truncate an existing file or fail if 709 * it does not exist. 710 * - "ce", "create": Creates a new file if it does not exist. Fail if 711 * exist. 712 * - "ca", "create-replace": Creates a new file, always. Overwrites an 713 * existing file. 714 * 715 * Sharing mode: 716 * - "nr": Deny read. 717 * - "nw": Deny write. 718 * - "nrw": Deny both read and write. 719 * - "d": Allow delete. 720 * - "", NULL: Deny none, except delete. 713 721 * 714 722 * @return IPRT status code. 715 * @param pszAccess Access mode string to convert. 716 * @param pszDisposition Disposition mode string to convert. 717 * @param pszSharing Sharing mode string to convert. Not 718 * implemented yet - completely ignored! 719 * @param pfMode Where to store the converted mode flags 720 * on success. 723 * @param pszAccess Access mode string to convert. 724 * @param pszDisposition Disposition mode string to convert. 725 * @param pszSharing Sharing mode string to convert. 726 * @param pfMode Where to store the converted mode flags on success. 721 727 */ 722 728 RTDECL(int) RTFileModeToFlagsEx(const char *pszAccess, const char *pszDisposition, const char *pszSharing, uint64_t *pfMode);
Note:
See TracChangeset
for help on using the changeset viewer.