diff --git a/scsh/aix/stdio_dep.c b/scsh/aix/stdio_dep.c index 35951b8..a041ee2 100644 --- a/scsh/aix/stdio_dep.c +++ b/scsh/aix/stdio_dep.c @@ -70,3 +70,16 @@ int fbufcount(FILE* fs) { return(fs->_cnt); } + +/* Returns true if there is no buffered data in stream FS +** (or there is no buffering, period.) +*/ + +int ibuf_empty(FILE *fs) {return fs->_cnt <= 0;} + + +/* Returns true if the buffer in stream FS is full +** (or there is no buffering, period). +*/ + +int obuf_full(FILE *fs) {return fs->_cnt <= 0;}