version 1.68, 2008/02/11 20:33:10 |
version 1.69, 2008/02/27 22:34:04 |
|
|
* specified using <template> (see mkstemp.3). NB. This function will modify |
* specified using <template> (see mkstemp.3). NB. This function will modify |
* <template>, as per mkstemp |
* <template>, as per mkstemp |
*/ |
*/ |
void |
int |
cvs_buf_write_stmp(BUF *b, char *template, struct timeval *tv) |
cvs_buf_write_stmp(BUF *b, char *template, struct timeval *tv) |
{ |
{ |
int fd; |
int fd; |
|
|
fatal("cvs_buf_write_stmp: futimes failed"); |
fatal("cvs_buf_write_stmp: futimes failed"); |
} |
} |
|
|
(void)close(fd); |
|
|
|
cvs_worklist_add(template, &temp_files); |
cvs_worklist_add(template, &temp_files); |
|
|
|
if (lseek(fd, SEEK_SET, 0) < 0) |
|
fatal("cvs_buf_write_stmp: lseek: %s", strerror(errno)); |
|
|
|
return (fd); |
} |
} |
|
|
/* |
/* |