summaryrefslogtreecommitdiff
path: root/src/utils.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2008-12-01Reformat code to GNU coding styleMukund Sivaraman1-4/+5
This is a commit which simply ran all C source code files through GNU indent. No other modifications were made.
2008-05-24Updated copyright, license notices in source codeMukund Sivaraman1-13/+16
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-2/+2
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.
2005-07-12* Updated Copyright Email AddressesRobert James Kaes1-2/+2
Updated the copyright email addresses for Robert James Kaes. The users.sourceforge.net address should always exist.
2003-03-13Moved the send_http_error_message() and indicate_http_error()Robert James Kaes1-4/+1
functions into the htmlerror.c file, and recoded them to use the new variable substitution system. [Steven Young]
2002-12-04Removed the "bool_t" type since it conflicts with the newer C standards.Robert James Kaes1-3/+4
The type was just replaced by "unsigned int" types.
2002-11-21# Changed the return type for pidfile_create() to int from void.Robert James Kaes1-2/+2
2002-06-15Removed the rotate_log_files() function since I'm moving to an Apache style ↵Robert James Kaes1-3/+1
where the _user_ needs to move the log file themselves, and tinyproxy will continue to write to the original name. This allows more flexibility for users to determine their own log rotation scheme.
2002-05-31Added a boolean "truncate_file" flag for the create_file_safely() function.Robert James Kaes1-2/+2
2002-05-23Moved most of the function into separate files: the heap debuggingRobert James Kaes1-50/+5
functions are in "heap.c"; the daemon functions are in "daemon.c"; and, the string/text functions are in "text.c".
2002-05-17Set the pointer to NULL after it's been freed()Robert James Kaes1-3/+3
2002-04-18Added the debuggin_strdup() function and the associated safestrdup()Robert James Kaes1-1/+5
macro. Also, added asserts to the other debugging_* functions.
2002-04-18Moved the log rotation code out of the signal handler and into it's ownRobert James Kaes1-1/+2
function. The signal handler now simply sets a flag which is monitored inside the thread_main_loop() function. The log rotation code has also been tightened to handle any error conditions better. Credit to Petr Lampa for suggesting that system functions inside of a signal handler is bad magic.
2002-04-15Changed the error boolean flag into a pointer to an error string and anRobert James Kaes1-2/+3
error code. We're storing this information because tinyproxy doesn't output the error information until _after_ the client has sent it's information.
2001-11-25Added a new error code.Robert James Kaes1-1/+2
2001-11-23Added the chomp() function (to replace the trim() function reqs.c)Robert James Kaes1-1/+9
2001-11-22Reformated text.Robert James Kaes1-7/+10
2001-10-25Some code clean up due to the creation of the conns.{c,h} files which nowRobert James Kaes1-1/+3
store the creation/destruction and definition of the connection structure.
2001-09-15Added the send_http_message() function to handle sending messages back toRobert James Kaes1-1/+5
the client. It's used by httperr() and showstats().
2001-09-11Added the debugging realloc() function.Robert James Kaes1-1/+4
2001-09-08Added the debugging_(malloc|calloc|free) functions to help track memoryRobert James Kaes1-1/+19
usage. There are also now defines for safe(malloc|calloc|free) which allow for debugging code to be enabled or not.
2001-08-30Removed the xstrstr() function since it is no longer used. reqs.c was theRobert James Kaes1-4/+1
only place it was called from, and strstr() will do the same work.
2001-08-27Split the headers from the message body. Also now include proper headersRobert James Kaes1-2/+2
like Date, Server, Content-Length, etc. Also, fixed the type for an error message to be const char*.
2001-05-27Changed all references to log() to log_message().Robert James Kaes1-1/+6
2000-09-26Moved the safefree() macro to the tinyproxy.h header.Robert James Kaes1-3/+1
2000-09-12Removed the xmalloc() and xstrdup() functions.Robert James Kaes1-11/+10
Added the pidfile_create() function. Added the OpenBSD style strlcat() and strlcpy() functions.
2000-02-16This commit was generated by cvs2svn to compensate for changes in r2,Steven Young1-0/+38
which included commits to RCS files with non-trunk default branches.