# 2.11BSD#431 - /usr/src/usr.bin/patch/common.h

##### Variables

    Argc              X
    Argc_last         X
    Argv              X
    Argv_last         X
    TMPINNAME         X
    TMPOUTNAME        X
    TMPPATNAME        X
    TMPREJNAME        X
    bestguess         X
    buf               X
    canonicalize      X
    debug             X
    diff_type         X
    do_defines        X
    else_defined      X
    end_defined       X
    filearg           X
    filec             X
    filemode          X
    filestat          X
    force             X
    if_defined        X
    last_offset       X
    maxfuzz           X
    noreverse         X
    not_defined       X
    ok_to_create_file X
    origext           X
    origprae          X
    out_of_mem        X
    outname           X
    rejname           X
    reverse           X
    revision          X
    skip_rest_of_patchX
    strippath         X
    toutkeep          X
    trejkeep          X
    using_plan_a      X
    verbose           X

##### Macros

    BUFFERSIZE        X
    CHECKOUT          X
    CONTEXT_DIFF      X
    Close             X
    Ctl               X
    DEBUGGING         X
    ED_DIFF           X
    FALSE             X
    Fclose            X
    Fflush            X
    Fseek             X
    Fstat             X
    GET               X
    INITHUNKMAX       X
    Lseek             X
    MAXFILEC          X
    MAXHUNKSIZE       X
    MAXLINELEN        X
    Mktemp            X
    NEW_CONTEXT_DIFF  X
    NORMAL_DIFF       X
    Null              X
    Nullch            X
    Nullfp            X
    Nulline           X
    ORIGEXT           X
    Pclose            X
    RCSSUFFIX         X
    REJEXT            X
    SCCSPREFIX        X
    Signal            X
    Sprintf           X
    Strcat            X
    Strcpy            X
    TRUE              X
    Unlink            X
    strEQ             X
    strNE             X
    strnEQ            X
    strnNE            X

##### typedef's

    LINENUM           X
    MEM               X
    bool              X

       1: /* $Header: common.h,v 2.0.1.2 88/06/22 20:44:53 lwall Locked $
       2:  *
       3:  * $Log:	common.h,v $
       4:  * Revision 2.0.1.2  88/06/22  20:44:53  lwall
       5:  * patch12: sprintf was declared wrong
       6:  *
       7:  * Revision 2.0.1.1  88/06/03  15:01:56  lwall
       8:  * patch10: support for shorter extensions.
       9:  *
      10:  * Revision 2.0  86/09/17  15:36:39  lwall
      11:  * Baseline for netwide release.
      12:  *
      13:  */
      14:
      15: #define DEBUGGING
      16:
      17: #include "config.h"
      18:
      19: /* shut lint up about the following when return value ignored */
      20:
      21: #define Signal (void)signal
      22: #define Unlink (void)unlink
      23: #define Lseek (void)lseek
      24: #define Fseek (void)fseek
      25: #define Fstat (void)fstat
      26: #define Pclose (void)pclose
      27: #define Close (void)close
      28: #define Fclose (void)fclose
      29: #define Fflush (void)fflush
      30: #define Sprintf (void)sprintf
      31: #define Mktemp (void)mktemp
      32: #define Strcpy (void)strcpy
      33: #define Strcat (void)strcat
      34:
      35: #include <stdio.h>
      36: #include <assert.h>
      37: #include <sys/types.h>
      38: #include <sys/stat.h>
      39: #include <ctype.h>
      40: #include <signal.h>
      41:
      42: /* constants */
      43:
      44: #define TRUE (1)
      45: #define FALSE (0)
      46:
      47: #define MAXHUNKSIZE 100000      /* is this enough lines? */
      48: #define INITHUNKMAX 125         /* initial dynamic allocation size */
      49: #define MAXLINELEN 1024
      50: #define BUFFERSIZE 1024
      51: #define SCCSPREFIX "s."
      52: #define GET "get -e %s"
      53: #define RCSSUFFIX ",v"
      54: #define CHECKOUT "co -l %s"
      55:
      56: #ifdef FLEXFILENAMES
      57: #define ORIGEXT ".orig"
      58: #define REJEXT ".rej"
      59: #else
      60: #define ORIGEXT "~"
      61: #define REJEXT "#"
      62: #endif
      63:
      64: /* handy definitions */
      65:
      66: #define Null(t) ((t)0)
      67: #define Nullch Null(char *)
      68: #define Nullfp Null(FILE *)
      69: #define Nulline Null(LINENUM)
      70:
      71: #define Ctl(ch) ((ch) & 037)
      72:
      73: #define strNE(s1,s2) (strcmp(s1, s2))
      74: #define strEQ(s1,s2) (!strcmp(s1, s2))
      75: #define strnNE(s1,s2,l) (strncmp(s1, s2, l))
      76: #define strnEQ(s1,s2,l) (!strncmp(s1, s2, l))
      77:
      78: /* typedefs */
      79:
      80: typedef char bool;
      81: typedef long LINENUM;           /* must be signed */
      82: typedef unsigned MEM;           /* what to feed malloc */
      83:
      84: /* globals */
      85:
      86: EXT int Argc;               /* guess */
      87: EXT char **Argv;
      88: EXT int Argc_last;          /* for restarting plan_b */
      89: EXT char **Argv_last;
      90:
      91: EXT struct stat filestat;       /* file statistics area */
      92: EXT int filemode INIT(0644);
      93:
      94: EXT char buf[MAXLINELEN];       /* general purpose buffer */
      95: EXT FILE *ofp INIT(Nullfp);     /* output file pointer */
      96: EXT FILE *rejfp INIT(Nullfp);       /* reject file pointer */
      97:
      98: EXT bool using_plan_a INIT(TRUE);   /* try to keep everything in memory */
      99: EXT bool out_of_mem INIT(FALSE);    /* ran out of memory in plan a */
     100:
     101: #define MAXFILEC 2
     102: EXT int filec INIT(0);          /* how many file arguments? */
     103: EXT char *filearg[MAXFILEC];
     104: EXT bool ok_to_create_file INIT(FALSE);
     105: EXT char *bestguess INIT(Nullch);   /* guess at correct filename */
     106:
     107: EXT char *outname INIT(Nullch);
     108: EXT char rejname[128];
     109:
     110: EXT char *origext INIT(Nullch);
     111: EXT char *origprae INIT(Nullch);
     112:
     113: EXT char TMPOUTNAME[] INIT("/tmp/patchoXXXXXX");
     114: EXT char TMPINNAME[] INIT("/tmp/patchiXXXXXX"); /* might want /usr/tmp here */
     115: EXT char TMPREJNAME[] INIT("/tmp/patchrXXXXXX");
     116: EXT char TMPPATNAME[] INIT("/tmp/patchpXXXXXX");
     117: EXT bool toutkeep INIT(FALSE);
     118: EXT bool trejkeep INIT(FALSE);
     119:
     120: EXT LINENUM last_offset INIT(0);
     121: #ifdef DEBUGGING
     122: EXT int debug INIT(0);
     123: #endif
     124: EXT LINENUM maxfuzz INIT(2);
     125: EXT bool force INIT(FALSE);
     126: EXT bool verbose INIT(TRUE);
     127: EXT bool reverse INIT(FALSE);
     128: EXT bool noreverse INIT(FALSE);
     129: EXT bool skip_rest_of_patch INIT(FALSE);
     130: EXT int strippath INIT(957);
     131: EXT bool canonicalize INIT(FALSE);
     132:
     133: #define CONTEXT_DIFF 1
     134: #define NORMAL_DIFF 2
     135: #define ED_DIFF 3
     136: #define NEW_CONTEXT_DIFF 4
     137: EXT int diff_type INIT(0);
     138:
     139: EXT bool do_defines INIT(FALSE);    /* patch using ifdef, ifndef, etc. */
     140: EXT char if_defined[128];       /* #ifdef xyzzy */
     141: EXT char not_defined[128];      /* #ifndef xyzzy */
     142: EXT char else_defined[] INIT("#else\n");/* #else */
     143: EXT char end_defined[128];      /* #endif xyzzy */
     144:
     145: EXT char *revision INIT(Nullch);    /* prerequisite revision, if any */
     146:
     147: char *malloc();
     148: char *realloc();
     149: char *strcpy();
     150: char *strcat();
     151: long atol();
     152: long lseek();
     153: char *mktemp();
     154: #ifdef CHARSPRINTF
     155: char *sprintf();
     156: #else
     157: int sprintf();
     158: #endif

#### Defined variables

Argc defined in line 86; used 13 times

- in /usr/src/usr.bin/patch/patch.c line 139, 264, 371-375(5), 389-393(2), 400, 409, 440, 449

Argc_last defined in line 88; used 2 times

- in /usr/src/usr.bin/patch/patch.c line 264, 371

Argv defined in line 87; used 19 times

- in /usr/src/usr.bin/patch/patch.c line 140, 265, 372-376(4), 388-393(4), 400-401(2), 409-410(2), 439-440(2), 448-449(2), 469

Argv_last defined in line 89; used 2 times

- in /usr/src/usr.bin/patch/patch.c line 265, 372

TMPINNAME defined in line 114; used 7 times

- in /usr/src/usr.bin/patch/inp.c line 224-225(2), 274-275(2), 304
- in /usr/src/usr.bin/patch/patch.c line 134, 815

TMPOUTNAME defined in line 113; used 11 times

- in /usr/src/usr.bin/patch/patch.c line 133, 157, 279-281(2), 817
- in /usr/src/usr.bin/patch/pch.c line 1073-1078(4), 1116-1118(2)

TMPPATNAME defined in line 116; used 5 times

- in /usr/src/usr.bin/patch/patch.c line 136, 822
- in /usr/src/usr.bin/patch/pch.c line 83-89(3)

TMPREJNAME defined in line 115; used 4 times

- in /usr/src/usr.bin/patch/patch.c line 135, 166, 315, 820

bestguess defined in line 105; used 14 times

- in /usr/src/usr.bin/patch/pch.c line 175-182(4), 192, 335-342(5), 350-357(4)

buf defined in line 94; used 126 times

- in /usr/src/usr.bin/patch/inp.c line 95-112(10), 199, 226-229(4), 244
- in /usr/src/usr.bin/patch/patch.c line 216-218(2)
- in /usr/src/usr.bin/patch/pch.c line 86-87(3), 179-187(4), 235(2), 250, 399-401(3), 447-449(3), 457-461(3), 472, 478-480(2), 494-502(3), 527, 562, 568, 588, 599-601(5), 611, 623, 637, 645, 730-737(5), 758-764(3), 771-778(4), 787-796(5), 803-810(4), 842, 860, 867-868(2), 1076-1099(12)
- in /usr/src/usr.bin/patch/util.c line 27-28(3), 87-88(3), 113-114(3), 197-228(21), 308-309(2), 316

canonicalize defined in line 131; used 3 times

- in /usr/src/usr.bin/patch/patch.c line 430, 767
- in /usr/src/usr.bin/patch/pch.c line 599

debug defined in line 122; used 10 times

- in /usr/src/usr.bin/patch/patch.c line 465, 501, 509, 732
- in /usr/src/usr.bin/patch/pch.c line 715, 823
- in /usr/src/usr.bin/patch/util.c line 21, 61, 72, 338

diff_type defined in line 137; used 23 times

- in /usr/src/usr.bin/patch/patch.c line 160, 347, 396, 419, 433, 532-533(2)
- in /usr/src/usr.bin/patch/pch.c line 152-153(2), 165-167(3), 280(2), 290(2), 304(2), 430(2), 619, 686, 693

do_defines defined in line 139; used 2 times

- in /usr/src/usr.bin/patch/patch.c line 407, 581

else_defined defined in line 142; used 4 times

- in /usr/src/usr.bin/patch/patch.c line 597, 611, 647, 674

end_defined defined in line 143; used 3 times

- in /usr/src/usr.bin/patch/patch.c line 416, 655, 684

filearg defined in line 103; used 22 times

- in /usr/src/usr.bin/patch/patch.c line 132, 147, 153, 170, 335-337(3), 383
- in /usr/src/usr.bin/patch/pch.c line 172-175(2), 183-185(2), 192, 223, 324-333(5), 339-340(2), 1074

filec defined in line 102; used 4 times

- in /usr/src/usr.bin/patch/patch.c line 334, 359, 381-383(2)

filemode defined in line 92; used 6 times

- in /usr/src/usr.bin/patch/inp.c line 119-120(2)
- in /usr/src/usr.bin/patch/patch.c line 281-284(2)
- in /usr/src/usr.bin/patch/pch.c line 1118-1121(2)

filestat defined in line 91; used 25 times

- in /usr/src/usr.bin/patch/inp.c line 88, 94-112(7), 119-122(2)
- in /usr/src/usr.bin/patch/pch.c line 94-95(2)
- in /usr/src/usr.bin/patch/util.c line 41-43(3), 51-52(3), 350(2), 358-362(5)

force defined in line 125; used 5 times

- in /usr/src/usr.bin/patch/inp.c line 189, 234
- in /usr/src/usr.bin/patch/patch.c line 188, 422
- in /usr/src/usr.bin/patch/pch.c line 173

if_defined defined in line 140; used 3 times

- in /usr/src/usr.bin/patch/patch.c line 414, 615, 670

last_offset defined in line 120; used 12 times

- in /usr/src/usr.bin/patch/patch.c line 236, 255-257(3), 345, 481, 502-504(2), 510-512(2), 528-529(2)

maxfuzz defined in line 124; used 3 times

- in /usr/src/usr.bin/patch/patch.c line 183-184(2), 427

noreverse defined in line 128; used 2 times

- in /usr/src/usr.bin/patch/patch.c line 203, 436

not_defined defined in line 141; used 3 times

- in /usr/src/usr.bin/patch/patch.c line 415, 593, 636

ok_to_create_file defined in line 104; used 6 times

- in /usr/src/usr.bin/patch/inp.c line 88
- in /usr/src/usr.bin/patch/pch.c line 225, 293, 317-321(3)

origext defined in line 110; used 3 times

- in /usr/src/usr.bin/patch/patch.c line 388
- in /usr/src/usr.bin/patch/util.c line 39(2)

origprae defined in line 111; used 3 times

- in /usr/src/usr.bin/patch/patch.c line 392
- in /usr/src/usr.bin/patch/util.c line 34-35(2)

out_of_mem defined in line 99; used 16 times

- in /usr/src/usr.bin/patch/inp.c line 131-133(2)
- in /usr/src/usr.bin/patch/patch.c line 178, 263, 335
- in /usr/src/usr.bin/patch/pch.c line 136, 498, 563, 612, 624, 646, 765, 779, 797, 811
- in /usr/src/usr.bin/patch/util.c line 136

outname defined in line 107; used 11 times

- in /usr/src/usr.bin/patch/patch.c line 152-153(2), 279-284(2), 291, 340-342(3), 439
- in /usr/src/usr.bin/patch/pch.c line 1116-1121(2)

rejname defined in line 108; used 10 times

- in /usr/src/usr.bin/patch/patch.c line 290-298(4), 305-315(4), 370, 448

reverse defined in line 127; used 13 times

- in /usr/src/usr.bin/patch/patch.c line 196-206(6), 214-215(2), 221(2), 354, 452
- in /usr/src/usr.bin/patch/pch.c line 819

revision defined in line 145; used 22 times

- in /usr/src/usr.bin/patch/inp.c line 187, 193-198(2), 205, 219, 227-232(2), 238-243(2), 250, 319-325(4)
- in /usr/src/usr.bin/patch/patch.c line 349-351(3)
- in /usr/src/usr.bin/patch/pch.c line 272-277(5)

skip_rest_of_patch defined in line 129; used 18 times

- in /usr/src/usr.bin/patch/patch.c line 156, 169, 185, 209, 219, 227-230(2), 237, 273-278(2), 307, 355, 458
- in /usr/src/usr.bin/patch/pch.c line 193, 1072, 1092-1097(2), 1109

strippath defined in line 130; used 7 times

- in /usr/src/usr.bin/patch/patch.c line 445
- in /usr/src/usr.bin/patch/pch.c line 317-321(3), 342-347(3)

toutkeep defined in line 117; used 3 times

- in /usr/src/usr.bin/patch/patch.c line 280, 816
- in /usr/src/usr.bin/patch/pch.c line 1117

trejkeep defined in line 118; used 2 times

- in /usr/src/usr.bin/patch/patch.c line 316, 819

using_plan_a defined in line 98; used 8 times

- in /usr/src/usr.bin/patch/inp.c line 41, 53, 74, 221, 288
- in /usr/src/usr.bin/patch/patch.c line 263
- in /usr/src/usr.bin/patch/pch.c line 134
- in /usr/src/usr.bin/patch/util.c line 135

verbose defined in line 126; used 21 times

- in /usr/src/usr.bin/patch/inp.c line 72, 89, 98, 109, 190, 203, 235, 248
- in /usr/src/usr.bin/patch/patch.c line 240, 246-251(2), 455
- in /usr/src/usr.bin/patch/pch.c line 146-155(3), 162, 169, 190, 395, 688, 1075

#### Defined typedef's

LINENUM defined in line 81; used 84 times

- in line 120-69(3)
- in /usr/src/usr.bin/patch/inp.c line 32-33(2), 86, 283, 291-292(2)
- in /usr/src/usr.bin/patch/patch.c line 102, 121-124(4), 477-486(7), 525-531(6), 571-575(4), 582, 714-716(2), 745, 758-764(6)
- in /usr/src/usr.bin/patch/pch.c line 41-48(8), 54-60(7), 71, 433-436(4), 443-444(2), 507, 513, 571, 577, 726, 736-739(2), 747-750(2), 881-882(2), 980, 988, 996, 1004, 1012, 1020, 1030, 1039, 1048, 1055

MEM defined in line 82; used 11 times

- in /usr/src/usr.bin/patch/inp.c line 139, 168, 255-256(2)
- in /usr/src/usr.bin/patch/pch.c line 107-112(3), 128-130(3)
- in /usr/src/usr.bin/patch/util.c line 133

bool defined in line 80; used 37 times

- in line 98-104(3), 117-118(2), 125-131(6), 139
- in /usr/src/usr.bin/patch/inp.c line 80, 219, 312
- in /usr/src/usr.bin/patch/patch.c line 110-111(2), 496-497(2), 581, 756, 783
- in /usr/src/usr.bin/patch/pch.c line 142, 209-212(4), 223, 412, 437-440(3), 875, 883, 1068
- in /usr/src/usr.bin/patch/util.c line 195, 284

#### Defined macros

BUFFERSIZE defined in line 50; used 9 times

- in /usr/src/usr.bin/patch/inp.c line 253-261(5), 267(2), 301-303(2)

CHECKOUT defined in line 54; used 1 times

- in /usr/src/usr.bin/patch/inp.c line 97

CONTEXT_DIFF defined in line 133; used 6 times

- in /usr/src/usr.bin/patch/patch.c line 396
- in /usr/src/usr.bin/patch/pch.c line 165, 290, 301, 430, 686

Close defined in line 27; used 10 times

- in /usr/src/usr.bin/patch/inp.c line 54, 148-153(2), 273
- in /usr/src/usr.bin/patch/util.c line 30, 90-91(2), 116-117(2), 212

Ctl defined in line 71; never used
DEBUGGING defined in line 15; used 12 times

- in line 121
- in /usr/src/usr.bin/patch/patch.c line 463, 500, 508, 627, 731
- in /usr/src/usr.bin/patch/pch.c line 714, 822
- in /usr/src/usr.bin/patch/util.c line 20, 60, 71, 337

ED_DIFF defined in line 135; used 5 times

- in /usr/src/usr.bin/patch/patch.c line 160, 419
- in /usr/src/usr.bin/patch/pch.c line 240, 280, 286

FALSE defined in line 45; used 53 times

- in line 99-104(2), 117-118(2), 125-131(5), 139
- in /usr/src/usr.bin/patch/inp.c line 129-134(3), 143, 150, 172, 221, 330
- in /usr/src/usr.bin/patch/patch.c line 178, 354-355(2), 455, 771-776(2), 792, 801
- in /usr/src/usr.bin/patch/pch.c line 148, 160, 183, 209-212(4), 225, 437-440(2), 451, 500, 565, 592-597(2), 614, 626, 648, 734, 767, 781, 799, 813, 844, 883, 911, 1068

Fclose defined in line 28; used 5 times

- in /usr/src/usr.bin/patch/inp.c line 272
- in /usr/src/usr.bin/patch/patch.c line 231, 286, 737
- in /usr/src/usr.bin/patch/pch.c line 88

Fflush defined in line 29; used 6 times

- in /usr/src/usr.bin/patch/pch.c line 833, 1113
- in /usr/src/usr.bin/patch/util.c line 166, 198, 204, 215

Fseek defined in line 24; used 5 times

- in /usr/src/usr.bin/patch/inp.c line 252
- in /usr/src/usr.bin/patch/pch.c line 226, 396, 406, 676

Fstat defined in line 25; used 1 times

- in /usr/src/usr.bin/patch/pch.c line 94

GET defined in line 52; used 1 times

- in /usr/src/usr.bin/patch/inp.c line 108

INITHUNKMAX defined in line 48; used 1 times

- in /usr/src/usr.bin/patch/pch.c line 52

Lseek defined in line 23; used 1 times

- in /usr/src/usr.bin/patch/inp.c line 301

MAXFILEC defined in line 101; used 3 times

- in line 103
- in /usr/src/usr.bin/patch/patch.c line 131, 381

MAXHUNKSIZE defined in line 47; used 2 times

- in /usr/src/usr.bin/patch/pch.c line 586, 756

MAXLINELEN defined in line 49; used 1 times

- in line 94

Mktemp defined in line 31; used 4 times

- in /usr/src/usr.bin/patch/patch.c line 133-136(4)

NEW_CONTEXT_DIFF defined in line 136; used 7 times

- in /usr/src/usr.bin/patch/patch.c line 532-533(2)
- in /usr/src/usr.bin/patch/pch.c line 166, 301, 430, 619, 693

NORMAL_DIFF defined in line 134; used 4 times

- in /usr/src/usr.bin/patch/patch.c line 433
- in /usr/src/usr.bin/patch/pch.c line 167, 304, 310

Null defined in line 66; used 23 times

- in line 67-69(3)
- in /usr/src/usr.bin/patch/inp.c line 44, 50, 166-170(2)
- in /usr/src/usr.bin/patch/pch.c line 49-50(2), 106-108(2), 126(2), 132(2), 895-904(6), 968-970(2)

Nullch defined in line 67; used 77 times

- in line 105-111(4), 145
- in /usr/src/usr.bin/patch/inp.c line 47-49(2), 58, 137-142(2), 187, 219, 226-232(3), 257, 264, 319
- in /usr/src/usr.bin/patch/patch.c line 132, 152, 335-342(4), 349-351(2)
- in /usr/src/usr.bin/patch/pch.c line 51, 82-86(2), 111, 126, 132, 172, 185, 216-223(7), 235, 277, 316-320(3), 337-346(5), 359-369(6), 400, 449, 459, 474-476(2), 732, 773, 789, 805, 859, 897-899(2), 908, 973, 1083, 1095
- in /usr/src/usr.bin/patch/util.c line 134, 333, 342, 364

Nullfp defined in line 68; used 10 times

- in line 95-96(2)
- in /usr/src/usr.bin/patch/inp.c line 222
- in /usr/src/usr.bin/patch/patch.c line 232, 287, 695, 706, 738
- in /usr/src/usr.bin/patch/pch.c line 84, 92

Nulline defined in line 69; used 14 times

- in /usr/src/usr.bin/patch/patch.c line 181, 188-191(2), 198, 220, 227, 243, 493, 516
- in /usr/src/usr.bin/patch/pch.c line 67-72(5)

ORIGEXT defined in line 60; used 1 times

- in /usr/src/usr.bin/patch/util.c line 39

Pclose defined in line 26; used 1 times

- in /usr/src/usr.bin/patch/pch.c line 1114

RCSSUFFIX defined in line 53; used 2 times

- in /usr/src/usr.bin/patch/inp.c line 95
- in /usr/src/usr.bin/patch/util.c line 359

REJEXT defined in line 61; used 1 times

- in /usr/src/usr.bin/patch/patch.c line 305

SCCSPREFIX defined in line 51; used 2 times

- in /usr/src/usr.bin/patch/inp.c line 105
- in /usr/src/usr.bin/patch/util.c line 361

Signal defined in line 21; used 4 times

- in /usr/src/usr.bin/patch/util.c line 263-264(2), 274-275(2)

Sprintf defined in line 30; used 14 times

- in /usr/src/usr.bin/patch/inp.c line 95-97(2), 105-108(2)
- in /usr/src/usr.bin/patch/patch.c line 414-416(3)
- in /usr/src/usr.bin/patch/pch.c line 763, 795, 1076-1078(2)
- in /usr/src/usr.bin/patch/util.c line 197, 356-361(2)

Strcat defined in line 33; used 4 times

- in /usr/src/usr.bin/patch/patch.c line 305
- in /usr/src/usr.bin/patch/util.c line 36-39(2), 359

Strcpy defined in line 32; used 7 times

- in /usr/src/usr.bin/patch/patch.c line 291, 448
- in /usr/src/usr.bin/patch/pch.c line 461, 868
- in /usr/src/usr.bin/patch/util.c line 35-38(2), 57

TRUE defined in line 44; used 45 times

- in line 98, 126
- in /usr/src/usr.bin/patch/inp.c line 53, 91, 207, 228, 320-327(3)
- in /usr/src/usr.bin/patch/patch.c line 209, 219, 280, 316, 407, 422, 430, 436, 452, 458, 778, 805
- in /usr/src/usr.bin/patch/pch.c line 136, 176, 192-197(4), 293, 342-347(3), 438, 464, 482, 491, 542, 603, 620, 639, 653, 839, 918, 975, 1117
- in /usr/src/usr.bin/patch/util.c line 136

Unlink defined in line 22; used 6 times

- in /usr/src/usr.bin/patch/patch.c line 815-822(4)
- in /usr/src/usr.bin/patch/pch.c line 1073
- in /usr/src/usr.bin/patch/util.c line 93

strEQ defined in line 74; used 5 times

- in /usr/src/usr.bin/patch/patch.c line 377
- in /usr/src/usr.bin/patch/pch.c line 82, 282, 1099
- in /usr/src/usr.bin/patch/util.c line 19

strNE defined in line 73; never used
strnEQ defined in line 76; used 13 times

- in /usr/src/usr.bin/patch/inp.c line 322-325(2)
- in /usr/src/usr.bin/patch/pch.c line 264-270(4), 289-291(2), 306(2), 480, 505
- in /usr/src/usr.bin/patch/util.c line 341

strnNE defined in line 75; used 2 times

- in /usr/src/usr.bin/patch/patch.c line 773
- in /usr/src/usr.bin/patch/pch.c line 449

#### Usage of this include

common.h used 5 times

- in /usr/src/usr.bin/patch/inp.c line 18
- in /usr/src/usr.bin/patch/patch.c line 91
- in /usr/src/usr.bin/patch/pch.c line 33
- in /usr/src/usr.bin/patch/util.c line 2
- in /usr/src/usr.bin/patch/version.c line 10

Last modified: 1988-06-30 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 2074 |