summaryrefslogtreecommitdiffhomepage
path: root/src/buffer.c
AgeCommit message (Collapse)Author
2009-08-07Rename tinyproxy.[ch] to main.[ch]Mukund Sivaraman
2009-08-04buffer: add explicit cast in read_buffer().Michael Adam
Michael
2009-08-04buffer: add explicit cast in new_buffer().Michael Adam
Michael
2009-08-04buffer: untangle assignment and check.Michael Adam
Michael
2009-08-04buffer: add two explicit casts to reduce compiler warnings in makenewline().Michael Adam
Michael
2009-08-04buffer: untangle assignment from check in makenewline().Michael Adam
For better debuggability. Michael
2008-12-08Convert tabs to spacesMukund Sivaraman
2008-12-08Break at 80 columnsMukund Sivaraman
2008-12-01Reformat code to GNU coding styleMukund Sivaraman
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 Sivaraman
2008-05-24Updated copyright, license notices in source codeMukund Sivaraman
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 Kaes
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 Kaes
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 Kaes
cleanly with a C++ compiler. (Tested using GCC 3.3)
2002-05-24Fixed a tonne of spelling mistakes.Robert James Kaes
2002-05-23Fixed up the header includes for the new layout.Robert James Kaes
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 Kaes
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 Kaes
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 Kaes
problem. :)
2001-11-25makenewline() now copies the data into the structure rather than justRobert James Kaes
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 Kaes
2001-11-05Removed the buffer_size() function and turned it into BUFFER_SIZE() macro.Robert James Kaes
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 Kaes
with 1400 byte segments.
2001-10-24Error message cleanup to make the information more informative.Robert James Kaes
2001-10-18Fixed a problem where a full buffer on the read side would cause theRobert James Kaes
connection to be closed.
2001-09-15Removed the log message when unable to allocate memory.Robert James Kaes
2001-09-14When logging an error indicate the file descriptor and the error number.Robert James Kaes
2001-09-11Switched the memory allocation for the large strings to heap based insteadRobert James Kaes
of stack based.
2001-09-11Style stuff.Robert James Kaes
2001-09-08Changed all the mallocs and callocs to use the new safemalloc andRobert James Kaes
safecalloc.
2001-09-07Error message cleanup.Robert James Kaes
2001-05-27Changed the types for various variables. Some the functions had theRobert James Kaes
variable types changed as well.
2001-05-23Added ASSERT statements.Robert James Kaes
2000-09-11Cleaned up the source so that the internal structure is no exposed by theRobert James Kaes
buffer.h header.
2000-03-31Added the working_* fields as a scratch pad for readline().Robert James Kaes
2000-02-16This commit was generated by cvs2svn to compensate for changes in r2,Steven Young
which included commits to RCS files with non-trunk default branches.