Changeset 21759 for branches/gcc-kmk/tools/common/kFile.cpp
- Timestamp:
- Oct 29, 2011, 4:27:13 PM (14 years ago)
- File:
-
- 1 edited
-
branches/gcc-kmk/tools/common/kFile.cpp (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/tools/common/kFile.cpp
r8003 r21759 19 19 * Header Files * 20 20 *******************************************************************************/ 21 #ifdef __EMX__ 22 #define __OS2DEF__ 23 #define OS2EMX_PLAIN_CHAR 24 #endif 21 25 #include <os2.h> 22 26 … … 45 49 * @remark 46 50 */ 47 KBOOL kFile::refreshFileStatus() 51 KBOOL kFile::refreshFileStatus() throw (kError) 48 52 { 49 53 if (fStdDev) … … 68 72 * @returns Success indicator. 69 73 */ 70 KBOOL kFile::position() 74 KBOOL kFile::position() throw (kError) 71 75 { 72 76 /* … … 254 258 * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no) 255 259 */ 256 kFile::kFile(const char *pszFilename, KBOOL fReadOnly/*=TRUE*/) 260 kFile::kFile(const char *pszFilename, KBOOL fReadOnly/*=TRUE*/) throw (kError) 257 261 : fReadOnly(fReadOnly), 258 262 fStatusClean(FALSE), … … 332 336 * @param cbBuffer Amount of bytes to read. 333 337 */ 334 int kFile::read(void *pvBuffer, long cbBuffer) 338 int kFile::read(void *pvBuffer, long cbBuffer) throw (kError) 335 339 { 336 340 ULONG cbRead; … … 427 431 * @param off Absolute file offset. 428 432 */ 429 int kFile::readAt(void *pvBuffer, long cbBuffer, long off) 433 int kFile::readAt(void *pvBuffer, long cbBuffer, long off) throw (kError) 430 434 { 431 435 if (set(off)) … … 477 481 * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no) 478 482 */ 479 int kFile::readln(char *pszBuffer, long cchBuffer) throw(kError)483 int kFile::readln(char *pszBuffer, long cchBuffer) 480 484 { 481 485 long cbRead; … … 558 562 * @param cbBuffer Amount of bytes to write. 559 563 */ 560 int kFile::write(const void *pv, long cb) 564 int kFile::write(const void *pv, long cb) throw (kError) 561 565 { 562 566 if (fReadOnly) … … 678 682 * @param off Absolute file offset. 679 683 */ 680 int kFile::writeAt(const void *pvBuffer, long cbBuffer, long off) 684 int kFile::writeAt(const void *pvBuffer, long cbBuffer, long off) throw (kError) 681 685 { 682 686 if (set(off)) … … 788 792 * @param off Relative reposition. 789 793 */ 790 int kFile::move(long off) 794 int kFile::move(long off) throw (kError) 791 795 { 792 796 if ((off + offVirtual) & 0x80000000UL) /* above 2GB or negative */ … … 814 818 * @param off New file position. 815 819 */ 816 int kFile::set(long off) 820 int kFile::set(long off) throw (kError) 817 821 { 818 822 if (off < 0) … … 839 843 * @remark Will only throw error if refreshFileStatus failes. 840 844 */ 841 int kFile::end() 845 int kFile::end() throw (kError) 842 846 { 843 847 if (!refreshFileStatus()) … … 872 876 * @remark Will only throw error if refreshFileStatus failes. 873 877 */ 874 long kFile::getSize() 878 long kFile::getSize() throw (kError) 875 879 { 876 880 if (!refreshFileStatus()) … … 886 890 * @remark Will only throw error if refreshFileStatus failes. 887 891 */ 888 long kFile::getPos() const 892 long kFile::getPos() const throw (kError) 889 893 { 890 894 return offVirtual; … … 898 902 * @remark Will only throw error if refreshFileStatus failes. 899 903 */ 900 KBOOL kFile::isEOF() 904 KBOOL kFile::isEOF() throw (kError) 901 905 { 902 906 #if 0 … … 954 958 * @remark May throw errors. 955 959 */ 956 void *kFile::mapFile(const char *pszFilename) 960 void *kFile::mapFile(const char *pszFilename) throw (kError) 957 961 { 958 962 kFile file(pszFilename); … … 968 972 * @author knut st. osmundsen (knut.stange.osmundsen@mynd.no) 969 973 */ 970 void kFile::mapFree(void *pvFileMapping) 974 void kFile::mapFree(void *pvFileMapping) throw (kError) 971 975 { 972 976 if (pvFileMapping)
Note:
See TracChangeset
for help on using the changeset viewer.
