version 1.108, 2005/07/29 13:56:00 |
version 1.109, 2005/07/29 17:04:42 |
|
|
* created. |
* created. |
* Returns the created file on success, or NULL on failure. |
* Returns the created file on success, or NULL on failure. |
*/ |
*/ |
CVSFILE* |
CVSFILE * |
cvs_file_create(CVSFILE *parent, const char *path, u_int type, mode_t mode) |
cvs_file_create(CVSFILE *parent, const char *path, u_int type, mode_t mode) |
{ |
{ |
int fd, l; |
int fd, l; |
|
|
* Returns the copied file on success, or NULL on failure. The returned |
* Returns the copied file on success, or NULL on failure. The returned |
* structure should be freed using cvs_file_free(). |
* structure should be freed using cvs_file_free(). |
*/ |
*/ |
CVSFILE* |
CVSFILE * |
cvs_file_copy(CVSFILE *orig) |
cvs_file_copy(CVSFILE *orig) |
{ |
{ |
char path[MAXPATHLEN]; |
char path[MAXPATHLEN]; |
|
|
* The file's pathname <path> must be relative to the base of <hier>. |
* The file's pathname <path> must be relative to the base of <hier>. |
* Returns the entry on success, or NULL on failure. |
* Returns the entry on success, or NULL on failure. |
*/ |
*/ |
CVSFILE* |
CVSFILE * |
cvs_file_find(CVSFILE *hier, const char *path) |
cvs_file_find(CVSFILE *hier, const char *path) |
{ |
{ |
char *pp, *sp, pbuf[MAXPATHLEN]; |
char *pp, *sp, pbuf[MAXPATHLEN]; |
|
|
* |
* |
* Allocate a CVSFILE structure and initialize its internals. |
* Allocate a CVSFILE structure and initialize its internals. |
*/ |
*/ |
CVSFILE* |
CVSFILE * |
cvs_file_alloc(const char *path, u_int type) |
cvs_file_alloc(const char *path, u_int type) |
{ |
{ |
CVSFILE *cfp; |
CVSFILE *cfp; |
|
|
* Returns a pointer to the created file structure on success, or NULL on |
* Returns a pointer to the created file structure on success, or NULL on |
* failure. |
* failure. |
*/ |
*/ |
static CVSFILE* |
static CVSFILE * |
cvs_file_lget(const char *path, int flags, CVSFILE *parent, struct cvs_ent *ent) |
cvs_file_lget(const char *path, int flags, CVSFILE *parent, struct cvs_ent *ent) |
{ |
{ |
int ret; |
int ret; |