version 1.40, 2017/06/01 08:08:24 |
version 1.41, 2017/08/28 19:33:20 |
|
|
void cvs_init_local(void); |
void cvs_init_local(void); |
|
|
static void init_mkdir(const char *, mode_t); |
static void init_mkdir(const char *, mode_t); |
static void init_mkfile(char *, const char **); |
static void init_mkfile(char *, char **); |
|
|
struct cvsroot_file { |
struct cvsroot_file { |
char *cf_path; |
char *cf_path; |
const char **cf_content; |
char **cf_content; |
}; |
}; |
|
|
static const struct cvsroot_file cvsroot_files[] = { |
static const struct cvsroot_file cvsroot_files[] = { |
|
|
} |
} |
|
|
static void |
static void |
init_mkfile(char *path, const char **content) |
init_mkfile(char *path, char **content) |
{ |
{ |
BUF *b; |
BUF *b; |
size_t len; |
size_t len; |
int fd, openflags, rcsflags; |
int fd, openflags, rcsflags; |
char rpath[PATH_MAX]; |
char rpath[PATH_MAX]; |
const char **p; |
char **p; |
RCSFILE *file; |
RCSFILE *file; |
|
|
openflags = O_WRONLY | O_CREAT | O_EXCL; |
openflags = O_WRONLY | O_CREAT | O_EXCL; |