1761600567d73b23324ae0251e871c15d6849ffd8Elliott HughesA simple C++ wrapper for Unix file I/O.
2761600567d73b23324ae0251e871c15d6849ffd8Elliott Hughes
3761600567d73b23324ae0251e871c15d6849ffd8Elliott HughesThis is intended to be lightweight and easy to use, similar to Java's
4761600567d73b23324ae0251e871c15d6849ffd8Elliott HughesRandomAccessFile and related classes. The usual C++ idioms of RAII and "you
5761600567d73b23324ae0251e871c15d6849ffd8Elliott Hughesdon't pay for what you don't use" apply.
6761600567d73b23324ae0251e871c15d6849ffd8Elliott Hughes
7761600567d73b23324ae0251e871c15d6849ffd8Elliott HughesIn particular, the basic RandomAccessFile interface is kept small and simple so
8761600567d73b23324ae0251e871c15d6849ffd8Elliott Hughesit's trivial to add new implementations.
9761600567d73b23324ae0251e871c15d6849ffd8Elliott Hughes
10761600567d73b23324ae0251e871c15d6849ffd8Elliott HughesThis code will not log, because it can't know whether that's appropriate in
11761600567d73b23324ae0251e871c15d6849ffd8Elliott Hughesyour application.
12761600567d73b23324ae0251e871c15d6849ffd8Elliott Hughes
13761600567d73b23324ae0251e871c15d6849ffd8Elliott HughesThis code will, in general, return -errno on failure. If an operation consisted
14761600567d73b23324ae0251e871c15d6849ffd8Elliott Hughesof multiple sub-operations, it will return the errno corresponding to the most
15761600567d73b23324ae0251e871c15d6849ffd8Elliott Hughesrelevant operation.
16