version 1.18, 2007/01/05 08:37:55 |
version 1.19, 2007/01/05 08:52:37 |
|
|
FILE *fp; |
FILE *fp; |
struct tm *t; |
struct tm *t; |
time_t now; |
time_t now; |
char *bfpath, *fdate; |
char *bfpath, *fdate, thishost[MAXHOSTNAMELEN]; |
|
|
if (cvs_noexec == 1) |
if (cvs_noexec == 1) |
return; |
return; |
|
|
|
|
fdate = asctime(t); |
fdate = asctime(t); |
|
|
|
if (gethostname(thishost, sizeof(thishost)) == -1) |
|
fatal("gethostname failed"); |
|
|
(void)fprintf(fp, "E%s\t%s GMT\t%s\t%s\t\n", |
(void)fprintf(fp, "E%s\t%s GMT\t%s\t%s\t\n", |
cf->file_name, fdate, current_cvsroot->cr_host, cf->file_wd); |
cf->file_name, fdate, thishost, cf->file_wd); |
|
|
if (edit_aflags & E_EDIT) |
if (edit_aflags & E_EDIT) |
(void)fprintf(fp, "E"); |
(void)fprintf(fp, "E"); |
|
|
struct stat st; |
struct stat st; |
struct tm *t; |
struct tm *t; |
time_t now; |
time_t now; |
char *bfpath, *fdate; |
char *bfpath, *fdate, thishost[MAXHOSTNAMELEN]; |
|
|
if (cvs_noexec == 1) |
if (cvs_noexec == 1) |
return; |
return; |
|
|
|
|
fdate = asctime(t); |
fdate = asctime(t); |
|
|
|
if (gethostname(thishost, sizeof(thishost)) == -1) |
|
fatal("gethostname failed"); |
|
|
(void)fprintf(fp, "U%s\t%s GMT\t%s\t%s\t\n", |
(void)fprintf(fp, "U%s\t%s GMT\t%s\t%s\t\n", |
cf->file_name, fdate, current_cvsroot->cr_host, cf->file_wd); |
cf->file_name, fdate, thishost, cf->file_wd); |
|
|
(void)fclose(fp); |
(void)fclose(fp); |
|
|