home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stlpt453.zip / STLport-4.5.3 / src / fstream_impl.h < prev    next >
C/C++ Source or Header  |  2001-04-13  |  1KB  |  55 lines

  1. /*
  2.  * Copyright (c) 1999
  3.  * Silicon Graphics Computer Systems, Inc.
  4.  *
  5.  * Copyright (c) 1999 
  6.  * Boris Fomitchev
  7.  *
  8.  * This material is provided "as is", with absolutely no warranty expressed
  9.  * or implied. Any use is at your own risk.
  10.  *
  11.  * Permission to use or copy this software for any purpose is hereby granted 
  12.  * without fee, provided the above notices are retained on all copies.
  13.  * Permission to modify the code and to distribute modified code is granted,
  14.  * provided the above notices are retained, and a notice that the code was
  15.  * modified is included with the above copyright notice.
  16.  *
  17.  */ 
  18.  
  19. #ifndef FSTREAM_IMPL_H
  20. # define FSTREAM_IMPL_H
  21.  
  22. #include <stl/_stdio_file.h>
  23.  
  24. # ifdef _STLP_HAS_NO_NAMESPACES
  25. #  define __SGI_BEGIN_NAMESPACE
  26. #  define __SGI_END_NAMESPACE
  27. #  define _SgI
  28. # else
  29. #  define __SGI_BEGIN_NAMESPACE namespace _SgI {
  30. #  define __SGI_END_NAMESPACE }
  31. # endif
  32.  
  33. __SGI_BEGIN_NAMESPACE
  34.  
  35. # ifndef _STLP_HAS_NO_NAMESPACES
  36. using _STLP_STD::streamoff;
  37. using _STLP_STD::ios_base;
  38. using _STLP_STD::streamsize;
  39. using _STLP_STD::streamoff;
  40. using _STLP_STD::char_traits;
  41. # ifndef _STLP_USE_UNIX_IO
  42. using _STLP_VENDOR_CSTD::FILE;
  43. using _STLP_VENDOR_CSTD::ftell;
  44. # endif
  45.  
  46. using _STLP_STD::_FILE_fd;
  47. # endif
  48.  
  49. extern bool __is_regular_file(_STLP_fd fd);
  50. extern streamoff __file_size(_STLP_fd fd);
  51.  
  52. __SGI_END_NAMESPACE
  53.  
  54. #endif /* FSTREAM_IMPL_H */
  55.