Added a boolean "truncate_file" flag for the create_file_safely() function.

This commit is contained in:
Robert James Kaes 2002-05-31 18:27:13 +00:00
parent 833186b7be
commit 02f3bdf5ff

View File

@ -1,4 +1,4 @@
/* $Id: utils.h,v 1.18 2002-05-23 18:28:12 rjkaes Exp $ /* $Id: utils.h,v 1.19 2002-05-31 18:27:13 rjkaes Exp $
* *
* See 'utils.h' for a detailed description. * See 'utils.h' for a detailed description.
* *
@ -30,7 +30,7 @@ extern int send_http_error_message(struct conn_s *connptr);
extern int indicate_http_error(struct conn_s* connptr, int number, const char *string); extern int indicate_http_error(struct conn_s* connptr, int number, const char *string);
extern void pidfile_create(const char *path); extern void pidfile_create(const char *path);
extern int create_file_safely(const char *filename); extern int create_file_safely(const char *filename, bool_t truncate_file);
extern void rotate_log_files(void); extern void rotate_log_files(void);