Deleted Added
full compact
cvs.h (102843) cvs.h (107487)
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 kit.
7 */
8
9/*
10 * basic information used in all source files
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 kit.
7 */
8
9/*
10 * basic information used in all source files
11 *
12 * $FreeBSD: head/contrib/cvs/src/cvs.h 102843 2002-09-02 05:57:14Z peter $
12 * $FreeBSD: head/contrib/cvs/src/cvs.h 107487 2002-12-02 03:17:49Z peter $
13 */
14
15
13 */
14
15
16#include "config.h" /* this is stuff found via autoconf */
16#ifdef HAVE_CONFIG_H
17# include <config.h> /* this is stuff found via autoconf */
18#endif /* CONFIG_H */
17#include "options.h" /* these are some larger questions which
18 can't easily be automatically checked
19 for */
20
21/* Changed from if __STDC__ to ifdef __STDC__ because of Sun's acc compiler */
22
23#ifdef __STDC__
24#define PTR void *

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

60#endif
61
62#ifdef SERVER_SUPPORT
63/* If the system doesn't provide strerror, it won't be declared in
64 string.h. */
65char *strerror ();
66#endif
67
19#include "options.h" /* these are some larger questions which
20 can't easily be automatically checked
21 for */
22
23/* Changed from if __STDC__ to ifdef __STDC__ because of Sun's acc compiler */
24
25#ifdef __STDC__
26#define PTR void *

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

62#endif
63
64#ifdef SERVER_SUPPORT
65/* If the system doesn't provide strerror, it won't be declared in
66 string.h. */
67char *strerror ();
68#endif
69
68#include <fnmatch.h> /* This is supposed to be available on Posix systems */
70#ifdef HAVE_FNMATCH
71# include <fnmatch.h> /* This is supposed to be available on Posix systems */
72#else /* HAVE_FNMATCH */
73# include "fnmatch.h" /* Our substitute */
74#endif /* HAVE_FNMATCH */
69
70#include <ctype.h>
71#include <pwd.h>
72#include <signal.h>
73
74#ifdef HAVE_ERRNO_H
75#include <errno.h>
76#else

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

357 R_SKIP_ALL /* don't process files or dirs */
358};
359#ifdef ENUMS_CAN_BE_TROUBLE
360typedef int Dtype;
361#else
362typedef enum direnter_type Dtype;
363#endif
364
75
76#include <ctype.h>
77#include <pwd.h>
78#include <signal.h>
79
80#ifdef HAVE_ERRNO_H
81#include <errno.h>
82#else

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

363 R_SKIP_ALL /* don't process files or dirs */
364};
365#ifdef ENUMS_CAN_BE_TROUBLE
366typedef int Dtype;
367#else
368typedef enum direnter_type Dtype;
369#endif
370
371/* Recursion processor lock types */
372#define LOCK_NONE 0
373#define LOCK_READ 1
374#define LOCK_WRITE 2
375
365extern char *program_name, *program_path, *command_name;
366extern char *Tmpdir, *Editor;
367extern int cvsadmin_root;
368extern char *CurDir;
369extern int really_quiet, quiet;
370extern int use_editor;
371extern int cvswrite;
372extern mode_t cvsumask;

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

423extern int RCS_exec_rcsdiff PROTO ((RCSNode *rcsfile,
424 char *opts, char *options,
425 char *rev1, char *rev2,
426 char *label1, char *label2,
427 char *workfile));
428extern int diff_exec PROTO ((char *file1, char *file2,
429 char *label1, char *label2,
430 char *options, char *out));
376extern char *program_name, *program_path, *command_name;
377extern char *Tmpdir, *Editor;
378extern int cvsadmin_root;
379extern char *CurDir;
380extern int really_quiet, quiet;
381extern int use_editor;
382extern int cvswrite;
383extern mode_t cvsumask;

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

434extern int RCS_exec_rcsdiff PROTO ((RCSNode *rcsfile,
435 char *opts, char *options,
436 char *rev1, char *rev2,
437 char *label1, char *label2,
438 char *workfile));
439extern int diff_exec PROTO ((char *file1, char *file2,
440 char *label1, char *label2,
441 char *options, char *out));
431extern int diff_execv PROTO ((char *file1, char *file2,
432 char *label1, char *label2,
433 char *options, char *out));
434
435
436
437#include "error.h"
438
439DBM *open_module PROTO((void));
440FILE *open_file PROTO((const char *, const char *));
441List *Find_Directories PROTO((char *repository, int which, List *entries));
442void Entries_Close PROTO((List *entries));

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

489int isdevice PROTO ((const char *));
490int isreadable PROTO((const char *file));
491int iswritable PROTO((const char *file));
492int isaccessible PROTO((const char *file, const int mode));
493int isabsolute PROTO((const char *filename));
494char *xreadlink PROTO((const char *link));
495char *last_component PROTO((char *path));
496char *get_homedir PROTO ((void));
442
443
444#include "error.h"
445
446DBM *open_module PROTO((void));
447FILE *open_file PROTO((const char *, const char *));
448List *Find_Directories PROTO((char *repository, int which, List *entries));
449void Entries_Close PROTO((List *entries));

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

496int isdevice PROTO ((const char *));
497int isreadable PROTO((const char *file));
498int iswritable PROTO((const char *file));
499int isaccessible PROTO((const char *file, const int mode));
500int isabsolute PROTO((const char *filename));
501char *xreadlink PROTO((const char *link));
502char *last_component PROTO((char *path));
503char *get_homedir PROTO ((void));
504char *strcat_filename_onto_homedir PROTO ((const char *, const char *));
497char *cvs_temp_name PROTO ((void));
498FILE *cvs_temp_file PROTO ((char **filename));
499void parseopts PROTO ((const char *root));
500
501int numdots PROTO((const char *s));
502char *increment_revnum PROTO ((const char *));
503int compare_revnums PROTO ((const char *, const char *));
504int unlink_file PROTO((const char *f));

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

641 int local_specified, int run_module_prog, int build_dirs,
642 char *extra_arg));
643void history_write PROTO((int type, char *update_dir, char *revs, char *name,
644 char *repository));
645int start_recursion PROTO((FILEPROC fileproc, FILESDONEPROC filesdoneproc,
646 DIRENTPROC direntproc, DIRLEAVEPROC dirleaveproc,
647 void *callerdat,
648 int argc, char *argv[], int local, int which,
505char *cvs_temp_name PROTO ((void));
506FILE *cvs_temp_file PROTO ((char **filename));
507void parseopts PROTO ((const char *root));
508
509int numdots PROTO((const char *s));
510char *increment_revnum PROTO ((const char *));
511int compare_revnums PROTO ((const char *, const char *));
512int unlink_file PROTO((const char *f));

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

649 int local_specified, int run_module_prog, int build_dirs,
650 char *extra_arg));
651void history_write PROTO((int type, char *update_dir, char *revs, char *name,
652 char *repository));
653int start_recursion PROTO((FILEPROC fileproc, FILESDONEPROC filesdoneproc,
654 DIRENTPROC direntproc, DIRLEAVEPROC dirleaveproc,
655 void *callerdat,
656 int argc, char *argv[], int local, int which,
649 int aflag, int readlock, char *update_preload,
657 int aflag, int locktype, char *update_preload,
650 int dosrcs));
651void SIG_beginCrSect PROTO((void));
652void SIG_endCrSect PROTO((void));
653int SIG_inCrSect PROTO((void));
654void read_cvsrc PROTO((int *argc, char ***argv, char *cmdname));
655
656char *make_message_rcslegal PROTO((char *message));
657extern int file_has_markers PROTO ((const struct file_info *));

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

855extern int admin PROTO ((int argc, char **argv));
856extern int checkout PROTO ((int argc, char **argv));
857extern int commit PROTO ((int argc, char **argv));
858extern int diff PROTO ((int argc, char **argv));
859extern int history PROTO ((int argc, char **argv));
860extern int import PROTO ((int argc, char **argv));
861extern int cvslog PROTO ((int argc, char **argv));
862#ifdef AUTH_CLIENT_SUPPORT
658 int dosrcs));
659void SIG_beginCrSect PROTO((void));
660void SIG_endCrSect PROTO((void));
661int SIG_inCrSect PROTO((void));
662void read_cvsrc PROTO((int *argc, char ***argv, char *cmdname));
663
664char *make_message_rcslegal PROTO((char *message));
665extern int file_has_markers PROTO ((const struct file_info *));

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

863extern int admin PROTO ((int argc, char **argv));
864extern int checkout PROTO ((int argc, char **argv));
865extern int commit PROTO ((int argc, char **argv));
866extern int diff PROTO ((int argc, char **argv));
867extern int history PROTO ((int argc, char **argv));
868extern int import PROTO ((int argc, char **argv));
869extern int cvslog PROTO ((int argc, char **argv));
870#ifdef AUTH_CLIENT_SUPPORT
871/* Some systems (namely Mac OS X) have conflicting definitions for these
872 * functions. Avoid them.
873 */
874#ifdef HAVE_LOGIN
875# define login cvs_login
876#endif /* HAVE_LOGIN */
877#ifdef HAVE_LOGOUT
878# define logout cvs_logout
879#endif /* HAVE_LOGOUT */
863extern int login PROTO((int argc, char **argv));
880extern int login PROTO((int argc, char **argv));
864int logout PROTO((int argc, char **argv));
881extern int logout PROTO((int argc, char **argv));
865#endif /* AUTH_CLIENT_SUPPORT */
866extern int patch PROTO((int argc, char **argv));
867extern int release PROTO((int argc, char **argv));
868extern int cvsremove PROTO((int argc, char **argv));
869extern int rtag PROTO((int argc, char **argv));
870extern int cvsstatus PROTO((int argc, char **argv));
871extern int cvstag PROTO((int argc, char **argv));
872extern int version PROTO((int argc, char **argv));

--- 27 unchanged lines hidden ---
882#endif /* AUTH_CLIENT_SUPPORT */
883extern int patch PROTO((int argc, char **argv));
884extern int release PROTO((int argc, char **argv));
885extern int cvsremove PROTO((int argc, char **argv));
886extern int rtag PROTO((int argc, char **argv));
887extern int cvsstatus PROTO((int argc, char **argv));
888extern int cvstag PROTO((int argc, char **argv));
889extern int version PROTO((int argc, char **argv));

--- 27 unchanged lines hidden ---