Deleted Added
full compact
lock.c (107487) lock.c (109660)
1/*
2 * Copyright (c) 1992, Brian Berliner and Jeff Polk
3 * Copyright (c) 1989-1992, Brian Berliner
4 *
5 * You may distribute under the terms of the GNU General Public License as
6 * specified in the README file that comes with the CVS source distribution.
7 *
8 * Set Lock
9 *
10 * Lock file support for CVS.
11 *
1/*
2 * Copyright (c) 1992, Brian Berliner and Jeff Polk
3 * Copyright (c) 1989-1992, Brian Berliner
4 *
5 * You may distribute under the terms of the GNU General Public License as
6 * specified in the README file that comes with the CVS source distribution.
7 *
8 * Set Lock
9 *
10 * Lock file support for CVS.
11 *
12 * $FreeBSD: head/contrib/cvs/src/lock.c 107487 2002-12-02 03:17:49Z peter $
12 * $FreeBSD: head/contrib/cvs/src/lock.c 109660 2003-01-21 22:01:38Z peter $
13 */
14
15/* The node Concurrency in doc/cvs.texinfo has a brief introduction to
16 how CVS locks function, and some of the user-visible consequences of
17 their existence. Here is a summary of why they exist (and therefore,
18 the consequences of hacking CVS to read a repository without creating
19 locks):
20

--- 906 unchanged lines hidden (view full) ---

927 int err;
928 /*
929 * Run the recursion processor to find all the dirs to lock and lock all
930 * the dirs
931 */
932 lock_tree_list = getlist ();
933 err = start_recursion ((FILEPROC) NULL, lock_filesdoneproc,
934 (DIRENTPROC) NULL, (DIRLEAVEPROC) NULL, NULL, argc,
13 */
14
15/* The node Concurrency in doc/cvs.texinfo has a brief introduction to
16 how CVS locks function, and some of the user-visible consequences of
17 their existence. Here is a summary of why they exist (and therefore,
18 the consequences of hacking CVS to read a repository without creating
19 locks):
20

--- 906 unchanged lines hidden (view full) ---

927 int err;
928 /*
929 * Run the recursion processor to find all the dirs to lock and lock all
930 * the dirs
931 */
932 lock_tree_list = getlist ();
933 err = start_recursion ((FILEPROC) NULL, lock_filesdoneproc,
934 (DIRENTPROC) NULL, (DIRLEAVEPROC) NULL, NULL, argc,
935 argv, local, which, aflag, LOCK_NONE,
935 argv, local, which, aflag, CVS_LOCK_NONE,
936 (char *) NULL, 0);
937 sortlist (lock_tree_list, fsortcmp);
938 if (Writer_Lock (lock_tree_list) != 0)
939 error (1, 0, "lock failed - giving up");
940}
941
942/* Lock a single directory in REPOSITORY. It is OK to call this if
943 a lock has been set with lock_dir_for_write; the new lock will replace

--- 27 unchanged lines hidden ---
936 (char *) NULL, 0);
937 sortlist (lock_tree_list, fsortcmp);
938 if (Writer_Lock (lock_tree_list) != 0)
939 error (1, 0, "lock failed - giving up");
940}
941
942/* Lock a single directory in REPOSITORY. It is OK to call this if
943 a lock has been set with lock_dir_for_write; the new lock will replace

--- 27 unchanged lines hidden ---