summaryrefslogtreecommitdiff
path: root/src/buffer.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2008-12-01Reformat code to GNU coding styleMukund Sivaraman1-187/+204
This is a commit which simply ran all C source code files through GNU indent. No other modifications were made.
2008-08-24Move buffer to the heap due to its sizeMukund Sivaraman1-7/+15
2008-05-24Updated copyright, license notices in source codeMukund Sivaraman1-14/+18
The notices have been changed to a more GNU look. Documentation comments have been separated from the copyright header. I've tried to keep all copyright notices intact. Some author contact details have been updated.
2005-08-15* [Indent] Ran Source Through indentRobert James Kaes1-169/+171
I re-indented the source code using indent with the following options: indent -kr -bad -bap -nut -i8 -l80 -psl -sob -ss -ncs There are now _no_ tabs in the source files, and all indentation is eight spaces. Lines are 80 characters long, and the procedure type is on it's own line. Read the indent manual for more information about what each option means.
2004-02-13Removed unnecessary casts (mostly dealing with memory allocation.) IRobert James Kaes1-4/+4
should never have added them in the first place. They don't really buy anything, and they can hide bugs.
2003-07-31Added appropriate casts from (void*) so that the code will compileRobert James Kaes1-4/+4
cleanly with a C++ compiler. (Tested using GCC 3.3)
2002-05-24Fixed a tonne of spelling mistakes.Robert James Kaes1-2/+2
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.