version 1.299, 2010/09/02 00:21:41 |
version 1.300, 2010/09/03 08:37:52 |
|
|
rfp->rf_path = xstrdup(path); |
rfp->rf_path = xstrdup(path); |
rfp->rf_flags = flags | RCS_SLOCK | RCS_SYNCED; |
rfp->rf_flags = flags | RCS_SLOCK | RCS_SYNCED; |
rfp->rf_mode = fmode; |
rfp->rf_mode = fmode; |
rfp->fd = fd; |
rfp->rf_fd = fd; |
rfp->rf_dead = 0; |
rfp->rf_dead = 0; |
|
|
TAILQ_INIT(&(rfp->rf_delta)); |
TAILQ_INIT(&(rfp->rf_delta)); |
|
|
|
|
pdp->rp_pttype = RCS_TOK_ERR; |
pdp->rp_pttype = RCS_TOK_ERR; |
|
|
if ((pdp->rp_file = fdopen(rfp->fd, "r")) == NULL) |
if ((pdp->rp_file = fdopen(rfp->rf_fd, "r")) == NULL) |
fatal("fdopen: `%s'", rfp->rf_path); |
fatal("fdopen: `%s'", rfp->rf_path); |
|
|
pdp->rp_buf = xmalloc((size_t)RCS_BUFSIZE); |
pdp->rp_buf = xmalloc((size_t)RCS_BUFSIZE); |
|
|
|
|
if (rfp->rf_flags & RCS_PARSE_FULLY) { |
if (rfp->rf_flags & RCS_PARSE_FULLY) { |
rcs_parse_deltatexts(rfp, NULL); |
rcs_parse_deltatexts(rfp, NULL); |
(void)close(rfp->fd); |
(void)close(rfp->rf_fd); |
rfp->fd = -1; |
rfp->rf_fd = -1; |
} |
} |
|
|
rfp->rf_flags |= RCS_SYNCED; |
rfp->rf_flags |= RCS_SYNCED; |