diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/iobuf.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index de9b690f4..cfdcfa928 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2000-11-30 Werner Koch <[email protected]> + + * iobuf.h (iobuf_translate_file_handle): Add prototype. + 2000-11-11 Paul Eggert <[email protected]> * iobuf.h (iobuf_get_filelength): Now returns off_t, not u32. diff --git a/include/iobuf.h b/include/iobuf.h index 3a6e4f09d..3c222689b 100644 --- a/include/iobuf.h +++ b/include/iobuf.h @@ -125,6 +125,9 @@ void iobuf_set_block_mode( IOBUF a, size_t n ); void iobuf_set_partial_block_mode( IOBUF a, size_t len ); int iobuf_in_block_mode( IOBUF a ); +int iobuf_translate_file_handle ( int fd, int for_write ); + + /* get a byte form the iobuf; must check for eof prior to this function * this function returns values in the range 0 .. 255 or -1 to indicate EOF * iobuf_get_noeof() does not return -1 to indicate EOF, but masks the |