summaryrefslogtreecommitdiff
path: root/src/buffer.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2002-05-23Fixed up the header includes for the new layout.Robert James Kaes1-5/+7
Changed one line of code to make it explicit how the pointers are to be updated.
2002-05-14Moved the definition of the struct buffer_s into the buffer.c file and outRobert James Kaes1-8/+26
of the buffer.h file. This also required the removal of the BUFFER_SIZE macro, and replace it with the buffer_size() function.
2001-12-19Changed the calls to write() to send() so that we can use send(...,Robert James Kaes1-2/+2
MSG_NOSIGNAL) and not get signals sent to the process. (easier for debugging and the system doesn't need to worry about signals.)
2001-11-26Fixed a problem with not buffering more than 2K (which is obviously aRobert James Kaes1-3/+6
problem. :)
2001-11-25makenewline() now copies the data into the structure rather than justRobert James Kaes1-24/+17
storing the pointer to the data. add_to_buffer() is now exported. Renamed writebuff() and readbuff() to write_buffer() and read_buffer().
2001-11-22Reformated text.Robert James Kaes1-17/+32
2001-11-05Removed the buffer_size() function and turned it into BUFFER_SIZE() macro.Robert James Kaes1-57/+54
Moved the struct buffer_s into the header file. Added more assert() calls to better document the assumptions the functions make. Removed incorrect code in remove_from_buffer() which was never actually called anyway.
2001-10-25Lowered the size of the read buffer to 2K since Ethernet seems to workRobert James Kaes1-4/+5
with 1400 byte segments.
2001-10-24Error message cleanup to make the information more informative.Robert James Kaes1-9/+5
2001-10-18Fixed a problem where a full buffer on the read side would cause theRobert James Kaes1-2/+2
connection to be closed.
2001-09-15Removed the log message when unable to allocate memory.Robert James Kaes1-5/+2
2001-09-14When logging an error indicate the file descriptor and the error number.Robert James Kaes1-6/+6
2001-09-11Switched the memory allocation for the large strings to heap based insteadRobert James Kaes1-7/+17
of stack based.
2001-09-11Style stuff.Robert James Kaes1-3/+2
2001-09-08Changed all the mallocs and callocs to use the new safemalloc andRobert James Kaes1-4/+4
safecalloc.
2001-09-07Error message cleanup.Robert James Kaes1-5/+10
2001-05-27Changed the types for various variables. Some the functions had theRobert James Kaes1-15/+15
variable types changed as well.
2001-05-23Added ASSERT statements.Robert James Kaes1-2/+23
2000-09-11Cleaned up the source so that the internal structure is no exposed by theRobert James Kaes1-142/+85
buffer.h header.
2000-03-31Added the working_* fields as a scratch pad for readline().Robert James Kaes1-1/+7
2000-02-16This commit was generated by cvs2svn to compensate for changes in r2,Steven Young1-0/+308
which included commits to RCS files with non-trunk default branches.