/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1990-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
/*
* checkout()
*/
#include "vcs_cmd.h"
#include "vcs_rscs.h"
{
int len;
{
/*
if (lookup_tag(NULL, rp->fd, ap, vp->version, vp->domain, &tp, 0))
*/
return (-1);
{
char* s;
{
*s = '\0';
s++;
}
}
}
else
/* get the base */
{
goto ERR_EXIT;
}
{
return (0);
}
/* get the delta */
if (((dbuf = (char *) malloc(len)) == NULL) || sfseek(rp->fd, tp->del, 0) != tp->del || sfread(rp->fd, dbuf, len) != len || !(fdel = sfnew(NULL, dbuf, len, -1, SF_STRING|SF_READ)))
{
goto ERR_EXIT;
}
/* get sizes */
if (sfread(fdel, magic,4)!=4 || sfgetc(fdel)<0 || (nsrc = sfgetu(fdel))<0 || (ntar = sfgetu(fdel))<0)
{
goto ERR_EXIT;
}
/* set buffer for target */
{
goto ERR_EXIT;
}
/* do the update */
{
goto ERR_EXIT;
}
return (0);
return (-1);
}