Lines Matching defs:finfo

33 onoff_fileproc (void *callerdat, struct file_info *finfo)
35 fileattr_get0 (finfo->file, "_watched");
36 fileattr_set (finfo->file, "_watched", turning_on ? "" : NULL);
129 dummy_fileproc (void *callerdat, struct file_info *finfo)
145 ncheck_fileproc (void *callerdat, struct file_info *finfo)
197 notify_do (notif_type, filename, finfo->update_dir, getcaller (), val,
198 watches, finfo->repository);
298 static int find_editors_and_output (struct file_info *finfo)
302 them = fileattr_get0 (finfo->file, "_editors");
306 editors_output (finfo->fullname, them);
322 struct file_info finfo;
335 finfo.file = filename;
336 finfo.fullname = short_pathname;
337 finfo.update_dir = dir_name (short_pathname);
338 base_register (&finfo, ((Entnode *) node->data)->version);
339 free ((char *)finfo.update_dir);
346 edit_fileproc (void *callerdat, struct file_info *finfo)
362 vers = Version_TS (finfo, NULL, NULL, NULL, 1, 0);
366 error (0, 0, "no such file %s; ignored", finfo->fullname);
374 char *editors = fileattr_get0 (finfo->file, "_editors");
383 editors_output (finfo->fullname, editors);
387 finfo->fullname);
401 fprintf (fp, "E%s\t%s -0000\t%s\t%s\t", finfo->file,
413 if (finfo->update_dir[0] == '\0')
416 error (0, errno, "cannot close %s/%s", finfo->update_dir,
430 server_edit_file (finfo);
433 edit_file (NULL, finfo->entries, finfo->fullname, finfo->file);
600 static int unedit_fileproc (void *callerdat, struct file_info *finfo);
603 unedit_fileproc (void *callerdat, struct file_info *finfo)
613 basefilename = Xasprintf ("%s/%s", CVSADM_BASE, finfo->file);
622 if (xcmp (finfo->file, basefilename) != 0)
624 printf ("%s has been modified; revert changes? ", finfo->fullname);
634 rename_file (basefilename, finfo->file);
644 fprintf (fp, "U%s\t%s -0000\t%s\t%s\t\n", finfo->file,
649 if (finfo->update_dir[0] == '\0')
652 error (0, errno, "cannot close %s/%s", finfo->update_dir,
673 baserev = base_get (finfo);
674 node = findnode_fn (finfo->entries, finfo->file);
687 error (0, 0, "%s not mentioned in %s", finfo->fullname,
692 if (unlink_file (finfo->file) < 0)
693 error (0, errno, "cannot remove %s", finfo->fullname);
701 Register (finfo->entries, finfo->file, baserev, entdata->timestamp,
706 base_deregister (finfo);
709 xchmod (finfo->file, 0);
1178 editors_fileproc (void *callerdat, struct file_info *finfo)
1180 return find_editors_and_output (finfo);