Lines Matching defs:vs
32 version_t vs;
44 vs.path = argv[1];
45 vs.version = NULL;
48 vs.version = argv[2];
50 vs.path = argv[3];
65 vs.tp = &tag;
66 if (search_tag(rf.fd, rf.ap, vs.version, 0, &(vs.tp), G_LINK, &list))
68 *n = sfsprintf(ret, *n, "E version %s not existed\n", vs.version);
71 (void) unlink(vs.path);
72 if ((vs.fd = sfopen(NULL, vs.path, "w")) == NULL)
75 *n = sfsprintf(ret, *n, "E %s cannot open for write\n", vs.path);
78 if (checkout(&rf, &vs) < 0)
80 sfclose(rf.fd); sfclose(vs.fd);
84 sfsync(vs.fd);
85 sfclose(rf.fd); sfclose(vs.fd);
86 st = &(vs.tp->stat);
87 (void) touch(vs.path, st->st_atime, st->st_mtime, 1);
88 (void) chmod(vs.path, st->st_mode);
89 (void) chown(vs.path, st->st_uid, st->st_gid);
90 *n = sfsprintf(ret, *n, "I %s(%s) checkout\n", vs.path, vs.tp->version);