Hash :
75d58430
Author :
Date :
2008-12-18T22:56:14
Add a file reading routine along with an io buffer type In particular, the gitfo_read_file() routine can be used to slurp the complete file contents into an gitfo_buf structure. The buffer content will be allocated by malloc() and may be released by the gitfo_free_buf() routine. The io buffer type can be initialised on the stack with the GITFO_BUF_INIT macro. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
#ifndef INCLUDE_common_h__
#define INCLUDE_common_h__
#include "cc-compat.h"
#include "util.h"
#include "errors.h"
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "git/common.h"
#define GIT_PATH_MAX 4096
#endif /* INCLUDE_common_h__ */