diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
| commit | 393f1b414746a7f1977971dd7659dd2b47092b11 (patch) | |
| tree | 81d0ca1ee70ab86a7d79c1991abe5c387b655fb2 /src/fifo.cpp | |
| parent | c259f95bd0e58b247940a339bb9b4b401b4e9438 (diff) | |
| parent | 7e25a863325dc3e9762397e700030969e093b087 (diff) | |
| download | libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.gz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.bz2 libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.xz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.zip | |
Wow! Merged the branch, streams are updated, and there's no more FString, run
the fixstrings.sh script in the support directory to (hopefully) automatically
update your projects.
Diffstat (limited to 'src/fifo.cpp')
| -rw-r--r-- | src/fifo.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fifo.cpp b/src/fifo.cpp index d1fa960..b0cf1c7 100644 --- a/src/fifo.cpp +++ b/src/fifo.cpp | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (C) 2007-2010 Xagasoft, All rights reserved. | 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. |
| 3 | * | 3 | * |
| 4 | * This file is part of the libbu++ library and is released under the | 4 | * This file is part of the libbu++ library and is released under the |
| 5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
| @@ -16,7 +16,7 @@ | |||
| 16 | 16 | ||
| 17 | namespace Bu { subExceptionDef( FifoException ) } | 17 | namespace Bu { subExceptionDef( FifoException ) } |
| 18 | 18 | ||
| 19 | Bu::Fifo::Fifo( const Bu::FString &sName, int iFlags, mode_t mAcc ) : | 19 | Bu::Fifo::Fifo( const Bu::String &sName, int iFlags, mode_t mAcc ) : |
| 20 | iFlags( iFlags ), | 20 | iFlags( iFlags ), |
| 21 | iIn( -1 ), | 21 | iIn( -1 ), |
| 22 | iOut( -1 ) | 22 | iOut( -1 ) |
| @@ -67,7 +67,7 @@ void Bu::Fifo::close() | |||
| 67 | } | 67 | } |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | size_t Bu::Fifo::read( void *pBuf, size_t nBytes ) | 70 | Bu::size Bu::Fifo::read( void *pBuf, Bu::size nBytes ) |
| 71 | { | 71 | { |
| 72 | if( iIn < 0 ) | 72 | if( iIn < 0 ) |
| 73 | throw FifoException("Fifo not open for reading."); | 73 | throw FifoException("Fifo not open for reading."); |
| @@ -75,7 +75,7 @@ size_t Bu::Fifo::read( void *pBuf, size_t nBytes ) | |||
| 75 | return TEMP_FAILURE_RETRY( ::read( iIn, pBuf, nBytes ) ); | 75 | return TEMP_FAILURE_RETRY( ::read( iIn, pBuf, nBytes ) ); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | size_t Bu::Fifo::write( const void *pBuf, size_t nBytes ) | 78 | Bu::size Bu::Fifo::write( const void *pBuf, Bu::size nBytes ) |
| 79 | { | 79 | { |
| 80 | if( iOut < 0 ) | 80 | if( iOut < 0 ) |
| 81 | throw FifoException("Fifo not open for writing."); | 81 | throw FifoException("Fifo not open for writing."); |
| @@ -83,20 +83,20 @@ size_t Bu::Fifo::write( const void *pBuf, size_t nBytes ) | |||
| 83 | return TEMP_FAILURE_RETRY( ::write( iOut, pBuf, nBytes ) ); | 83 | return TEMP_FAILURE_RETRY( ::write( iOut, pBuf, nBytes ) ); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | long Bu::Fifo::tell() | 86 | Bu::size Bu::Fifo::tell() |
| 87 | { | 87 | { |
| 88 | return -1; | 88 | return -1; |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | void Bu::Fifo::seek( long ) | 91 | void Bu::Fifo::seek( Bu::size ) |
| 92 | { | 92 | { |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | void Bu::Fifo::setPos( long ) | 95 | void Bu::Fifo::setPos( Bu::size ) |
| 96 | { | 96 | { |
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | void Bu::Fifo::setPosEnd( long ) | 99 | void Bu::Fifo::setPosEnd( Bu::size ) |
| 100 | { | 100 | { |
| 101 | } | 101 | } |
| 102 | 102 | ||
