version 1.11, 2006/05/27 02:58:02 |
version 1.12, 2006/05/27 05:49:14 |
|
|
} |
} |
|
|
/* |
/* |
* Find the name of an RCS file, given a file name `fname'. If an RCS |
|
* file is found, the name is copied to the `len' sized buffer `out'. |
|
* Returns 0 if RCS file was found, -1 otherwise. |
|
*/ |
|
int |
|
rcs_statfile(char *fname, char *out, size_t len, int flags) |
|
{ |
|
int fd; |
|
|
|
fd = rcs_choosefile(fname, out, len); |
|
if (fd == -1 && !(flags & RCS_CREATE)) { |
|
if (strcmp(__progname, "rcsclean") != 0 && |
|
strcmp(__progname, "ci") != 0) |
|
warnx("%s", out); |
|
return (-1); |
|
} |
|
|
|
return (fd); |
|
} |
|
|
|
/* |
|
* Allocate an RCSNUM and store in <rev>. |
* Allocate an RCSNUM and store in <rev>. |
*/ |
*/ |
void |
void |