D:/opendownloadmanager/ODM-1.x/Bittorrent/libtorrent-0.12/src/file.cpp File Reference

#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <boost/static_assert.hpp>
#include <boost/filesystem/operations.hpp>
#include "libtorrent/file.hpp"
#include <sstream>

Go to the source code of this file.

Namespaces

namespace  libtorrent

Classes

struct  libtorrent::file::impl

Defines

#define _FILE_OFFSET_BITS   64
#define O_BINARY   0
#define O_RANDOM   0

Enumerations

enum  { mode_in = 1, mode_out = 2 }

Functions

 BOOST_STATIC_ASSERT (sizeof(lseek(0, 0, 0)) >=8)
mode_t map_open_mode (int m)
std::string utf8_native (std::string const &s)


Define Documentation

#define _FILE_OFFSET_BITS   64

Definition at line 27 of file file.cpp.

#define O_BINARY   0

Definition at line 45 of file file.cpp.

Referenced by Curl_file_connect(), file_upload(), and map_open_mode().

#define O_RANDOM   0

Definition at line 49 of file file.cpp.

Referenced by map_open_mode().


Enumeration Type Documentation

anonymous enum

Enumerator:
mode_in 
mode_out 

Definition at line 60 of file file.cpp.


Function Documentation

BOOST_STATIC_ASSERT ( sizeof(lseek(0, 0, 0)) >=  8  ) 

mode_t @265::map_open_mode ( int  m  )  [static]

Definition at line 62 of file file.cpp.

References mode_in, mode_out, O_BINARY, and O_RANDOM.

Referenced by libtorrent::file::impl::open().

std::string @265::utf8_native ( std::string const &  s  )  [static]

Definition at line 93 of file file.cpp.

Referenced by libtorrent::file::impl::open().


Generated on Sun May 25 00:19:42 2008 by  doxygen 1.5.6