diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1999-12-11 12:24:21 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1999-12-11 12:24:21 +0000 |
| commit | d81819680486521a84c8aecc540ed04ba315dec0 (patch) | |
| tree | 2a59869a343a5d43c01370f1083d67c2a02785a0 /contrib/cvs/src/cvs.h | |
| parent | 0008866e589b5dd29f5332c9bc0e208ba10a7772 (diff) | |
Notes
Diffstat (limited to 'contrib/cvs/src/cvs.h')
| -rw-r--r-- | contrib/cvs/src/cvs.h | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/contrib/cvs/src/cvs.h b/contrib/cvs/src/cvs.h index f8b1552d4a1d..8a1501c8db27 100644 --- a/contrib/cvs/src/cvs.h +++ b/contrib/cvs/src/cvs.h @@ -367,11 +367,16 @@ extern mode_t cvsumask; /* Access method specified in CVSroot. */ typedef enum { local_method, server_method, pserver_method, kserver_method, gserver_method, - ext_method + ext_method, fork_method } CVSmethod; extern char *method_names[]; /* change this in root.c if you change the enum above */ +/* This global variable holds the global -d option. It is NULL if -d + was not used, which means that we must get the CVSroot information + from the CVSROOT environment variable or from a CVS/Root file. */ +extern char *CVSroot_cmdline; + extern char *CVSroot_original; /* the active, complete CVSroot string */ extern int client_active; /* nonzero if we are doing remote access */ extern CVSmethod CVSroot_method; /* one of the enum values above */ @@ -379,6 +384,11 @@ extern char *CVSroot_username; /* the username or NULL if method == local */ extern char *CVSroot_hostname; /* the hostname or NULL if method == local */ extern char *CVSroot_directory; /* the directory name */ +/* These variables keep track of all of the CVSROOT directories that + have been seen by the client and the current one of those selected. */ +extern List *root_directories; +extern char *current_root; + extern char *emptydir_name PROTO ((void)); extern int trace; /* Show all commands */ @@ -387,11 +397,11 @@ extern int logoff; /* Don't write history entry */ extern int top_level_admin; -#ifdef AUTH_SERVER_SUPPORT -extern char *Pserver_Repos; /* used to check that same repos is - transmitted in pserver auth and in - CVS protocol. */ -#endif /* AUTH_SERVER_SUPPORT */ +#ifdef CLIENT_SUPPORT +extern List *dirs_sent_to_server; /* used to decide which "Argument + xxx" commands to send to each + server in multiroot mode. */ +#endif extern char hostname[]; @@ -432,6 +442,7 @@ void Subdir_Deregister PROTO((List *, const char *, const char *)); char *Make_Date PROTO((char *rawdate)); char *date_from_time_t PROTO ((time_t)); +void date_to_internet PROTO ((char *, char *)); char *Name_Repository PROTO((char *dir, char *update_dir)); char *Short_Repository PROTO((char *repository)); @@ -450,7 +461,7 @@ extern void check_numeric PROTO ((const char *, int, char **)); char *getcaller PROTO((void)); char *time_stamp PROTO((char *file)); -char *xmalloc PROTO((size_t bytes)); +void *xmalloc PROTO((size_t bytes)); void *xrealloc PROTO((void *ptr, size_t bytes)); void expand_string PROTO ((char **, size_t *, size_t)); char *xstrdup PROTO((const char *str)); @@ -502,6 +513,9 @@ void lock_tree_for_write PROTO ((int argc, char **argv, int local, int aflag)); /* See lock.c for description. */ extern void lock_dir_for_write PROTO ((char *)); + +/* LockDir setting from CVSROOT/config. */ +extern char *lock_dir; void Scratch_Entry PROTO((List * list, char *fname)); void ParseTag PROTO((char **tagp, char **datep, int *nonbranchp)); @@ -628,6 +642,7 @@ char *make_message_rcslegal PROTO((char *message)); extern int file_has_markers PROTO ((const struct file_info *)); extern void get_file PROTO ((const char *, const char *, const char *, char **, size_t *, size_t *)); +extern void resolve_symlink PROTO ((char **filename)); /* flags for run_exec(), the fast system() for CVS */ #define RUN_NORMAL 0x0000 /* no special behaviour */ @@ -648,7 +663,6 @@ int run_exec PROTO((const char *stin, const char *stout, const char *sterr, FILE *run_popen PROTO((const char *, const char *)); int piped_child PROTO((char **, int *, int *)); void close_on_exec PROTO((int)); -int filter_stream_through_program PROTO((int, int, char **, pid_t *)); pid_t waitpid PROTO((pid_t, int *, int)); |
