include/File.h
changeset 9 629f61203db1
parent 8 21a6c17f4e3e
     1.1 --- a/include/File.h	Mon Sep 28 23:39:08 2009 -0700
     1.2 +++ b/include/File.h	Tue Sep 29 15:46:42 2009 -0700
     1.3 @@ -30,8 +30,7 @@
     1.4      static const int kEOF = 10001;
     1.5      
     1.6      
     1.7 -    File (const char *filename, bool writeable =false, bool create =false)  throw(Error);
     1.8 -    File (const char *filename, int oflag, bool locked)  throw(Error);
     1.9 +    File (const char *filename, int oflag, bool locked =false)  throw(Error);
    1.10      ~File();
    1.11      
    1.12      off_t length() const  throw(Error);
    1.13 @@ -90,10 +89,6 @@
    1.14  private:
    1.15      static int _open (const char *filename, int posixMode)  throw(Error);
    1.16      static int _check (int result)  throw(Error);
    1.17 -#ifdef OSX /* On linux, these are the same type signature to gcc */
    1.18 -    static ssize_t _check (ssize_t result)  throw(Error)    {_check((int)result); return result;}
    1.19 -    static off_t _check (off_t result)  throw(Error)    {_check((int)result); return result;}
    1.20 -#endif
    1.21      static void _checkRead (ssize_t result, size_t expectedSize)  throw(Error);
    1.22      bool _lock (bool block);
    1.23      void _unlock();