# 2.11BSD#431 - /usr/src/bin/tcsh/sh.h

##### Functions

    sigret_t          X

##### Variables

    HIST              X
    HISTSUB           X
    Histlist          X
    OLDSTD            X
    PromptBuf         X
    SHDIAG            X
    SHIN              X
    SHOUT             X
    STR_BSHELL        X
    STR_SHELLPATH     X
    STR_WORD_CHARS    X
    STR_environ       X
    Vdp               X
    Vexpath           X
    Vsav              X
    Vt                X
    alhistp           X
    alhistt           X
    aliases           X
    alvec             X
    arginp            X
    bname             X
    bslash_quote      X
    cantell           X
    child             X
    chkstop           X
    chktim            X
    didcch            X
    didfds            X
    doldol            X
    doneinp           X
    editing           X
    evalp             X
    evalvec           X
    eventno           X
    exiterr           X
    ffile             X
    gflag             X
    gid               X
    gointr            X
    haderr            X
    havhash           X
    intact            X
    intty             X
    is1atty           X
    is2atty           X
    isdiagatty        X
    isoutatty         X
    justpr            X
    lap               X
    lastev            X
    lineloc           X
    loginsh           X
    neednote          X
    noexec            X
    onelflg           X
    opgrp             X
    paraml            X
    pargcp            X
    pargs             X
    pjobs             X
    pnleft            X
    reslab            X
    ru0               X
    setintr           X
    shpgrp            X
    shtemp            X
    shtimes           X
    shvhed            X
    time0             X
    timflg            X
    tpgrp             X
    uid               X
    whyles            X
    word_chars        X

##### Macros

    ASCII             X
    ATTRIBUTES        X
    BOLD              X
    BSDJOBS           X
    BUFSIZ            X
    CHAR              X
    DOALL             X
    DODOL             X
    DOEXCL            X
    FOLDSTD           X
    FORKSLEEP         X
    FSHDIAG           X
    FSHIN             X
    FSHOUT            X
    FSHTTY            X
    F_AMPERSAND       X
    F_APPEND          X
    F_NICE            X
    F_NOFORK          X
    F_NOHUP           X
    F_NOINTERRUPT     X
    F_OVERWRITE       X
    F_PIPEIN          X
    F_PIPEOUT         X
    F_READ            X
    F_REPEAT          X
    F_SAVE            X
    F_STDERR          X
    F_TIME            X
    F_VER             X
    G_APPEND          X
    G_ERROR           X
    G_IGNORE          X
    LITERAL           X
    MAILINTVL         X
    MAXHOSTNAMELEN    X
    MAXNAMLEN         X
    MAXPATHLEN        X
    MAXVARLEN         X
    META              X
    NODE_AND          X
    NODE_COMMAND      X
    NODE_LIST         X
    NODE_OR           X
    NODE_PAREN        X
    NODE_PIPE         X
    NOSTR             X
    POSIX             X
    QUOTE             X
    SAVE              X
    SIGN_EXTEND_CHAR  X
    STANDOUT          X
    Strcat            X
    Strchr            X
    Strcmp            X
    Strcpy            X
    Strend            X
    Strlen            X
    Strncat           X
    Strncmp           X
    Strncpy           X
    Strrchr           X
    Strsave           X
    Strspl            X
    Strstr            X
    TRIM              X
    T_BREAK           X
    T_BRKSW           X
    T_CASE            X
    T_DEFAULT         X
    T_ELSE            X
    T_END             X
    T_ENDIF           X
    T_ENDSW           X
    T_EXIT            X
    T_FOREACH         X
    T_GOTO            X
    T_IF              X
    T_LABEL           X
    T_LET             X
    T_SET             X
    T_SWITCH          X
    T_TEST            X
    T_THEN            X
    T_WHILE           X
    UNDER             X
    WORD_CHARS        X
    _BSD              X
    _BSD_INCLUDES     X
    _GNU_STDLIB_H     X
    __P               X
    _h_sh             X
    adrof             X
    blk2short         X
    btell             X
    calloc            X
    const             X
    dirent            X
    eq                X
    fblocks           X
    fbobp             X
    fbuf              X
    feobp             X
    free              X
    fseekp            X
    getexit           X
    getpgrp           X
    malloc            X
    realloc           X
    reset             X
    resexit           X
    setexit           X
    setname           X
    setpgrp           X
    short2blk         X
    short2qstr        X
    short2str         X
    sigret_t          X
    str2short         X
    strchr            X
    strrchr           X
    t_dcar            X
    t_dcdr            X
    t_dlef            X
    t_drit            X
    v_left            X
    v_parent          X
    v_right           X
    value             X
    volatile          X
    xcalloc           X
    xexit             X
    xfree             X
    xmalloc           X
    xrealloc          X

##### struct's

    Bin               X
    Hist              X
    biltins           X
    command           X
    mesg              X
    srch              X
    varent            X
    whyle             X
    wordent           X

##### typedef's

    Char              X
    bool              X
    memalign_t        X
    sigret_t          X

       1: /* $Header: src/sys/tcsh-6.00/RCS/sh.h,v 3.1.1 1996/03/21 19:07:20 christos Exp $ */
       2: /*
       3:  * sh.h: Catch it all globals and includes file!
       4:  */
       5: /*-
       6:  * Copyright (c) 1980, 1991 The Regents of the University of California.
       7:  * All rights reserved.
       8:  *
       9:  * Redistribution and use in source and binary forms, with or without
      10:  * modification, are permitted provided that the following conditions
      11:  * are met:
      12:  * 1. Redistributions of source code must retain the above copyright
      13:  *    notice, this list of conditions and the following disclaimer.
      14:  * 2. Redistributions in binary form must reproduce the above copyright
      15:  *    notice, this list of conditions and the following disclaimer in the
      16:  *    documentation and/or other materials provided with the distribution.
      17:  * 3. All advertising materials mentioning features or use of this software
      18:  *    must display the following acknowledgement:
      19:  *	This product includes software developed by the University of
      20:  *	California, Berkeley and its contributors.
      21:  * 4. Neither the name of the University nor the names of its contributors
      22:  *    may be used to endorse or promote products derived from this software
      23:  *    without specific prior written permission.
      24:  *
      25:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
      26:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
      27:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
      28:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
      29:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
      30:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
      31:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
      32:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
      33:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
      34:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
      35:  * SUCH DAMAGE.
      36:  */
      37: #ifndef _h_sh
      38: #define _h_sh
      39:
      40:
      41: /*
      42:  * Sanity
      43:  */
      44: #if defined(_POSIX_SOURCE) && !defined(POSIX)
      45: # define POSIX
      46: #endif
      47:
      48: #if defined(POSIXJOBS) && !defined(BSDJOBS)
      49: # define BSDJOBS
      50: #endif
      51:
      52: #ifdef SHORT_STRINGS
      53: typedef short Char;
      54: # define SAVE(a) (Strsave(str2short(a)))
      55: #else
      56: typedef char Char;
      57: # define SAVE(a) (strsave(a))
      58: #endif
      59:
      60: /*
      61:  * If your comp_r complains, then you can either
      62:  * throw it away and get gcc or, use the following define
      63:  * and get rid of the typedef.
      64:  * [The 4.2/3BSD vax comp_r does not like that]
      65:  */
      66: #ifdef SIGVOID
      67: # if defined(vax) && !defined(__GNUC__)
      68: #  define sigret_t void
      69: # else
      70: typedef void sigret_t;
      71: # endif
      72: #else
      73: typedef int sigret_t;
      74: #endif				/* SIGVOID */
      75:
      76: /*
      77:  * Fundamental definitions which may vary from system to system.
      78:  *
      79:  *	BUFSIZ		The i/o buffering size; also limits word size
      80:  *	MAILINTVL	How often to mailcheck; more often is more expensive
      81:  */
      82: #ifndef BUFSIZ
      83: #define BUFSIZ  1024        /* default buffer size */
      84: #endif				/* BUFSIZ */
      85:
      86: #define FORKSLEEP   10  /* delay loop on non-interactive fork failure */
      87: #define MAILINTVL   600 /* 10 minutes */
      88:
      89: /*
      90:  * The shell moves std in/out/diag and the old std input away from units
      91:  * 0, 1, and 2 so that it is easy to set up these standards for invoked
      92:  * commands.
      93:  */
      94: #define FSHTTY  15      /* /dev/tty when manip pgrps */
      95: #define FSHIN   16      /* Preferred desc for shell input */
      96: #define FSHOUT  17      /* ... shell output */
      97: #define FSHDIAG 18      /* ... shell diagnostics */
      98: #define FOLDSTD 19      /* ... old std input */
      99:
     100: #ifdef PROF
     101: #define xexit(n)    done(n)
     102: #endif
     103:
     104: #include <sys/types.h>
     105: #ifdef _SEQUENT_
     106: # include <sys/procstats.h>
     107: #endif /* _SEQUENT_ */
     108: #if defined(POSIX) || SVID > 0
     109: # include <sys/times.h>
     110: #endif				/* POSIX || SVID > 0 */
     111:
     112: #ifdef NLS
     113: # include <locale.h>
     114: #endif
     115:
     116: #include <sys/param.h>
     117: #include <sys/stat.h>
     118:
     119: #ifdef BSDTIMES
     120: # include <sys/time.h>
     121: # include <sys/resource.h>
     122: #endif				/* BSDTIMES */
     123:
     124: #ifndef POSIX
     125: # ifdef TERMIO
     126: #  ifdef _IBMR2
     127:  /* Aix redefines NOFLSH when _BSD_INCLUDES is defined! */
     128: #   undef _BSD
     129: #   undef _BSD_INCLUDES
     130: #  endif				/* _IBMR2 */
     131: #  include <termio.h>
     132: #  ifdef _IBMR2
     133:  /* but we need it.  */
     134: #   define _BSD
     135: #   define _BSD_INCLUDES
     136: #  endif				/* _IBMR2 */
     137: # else
     138: #  include <sgtty.h>
     139: # endif				/* TERMIO */
     140: #else               /* POSIX */
     141: # include <termios.h>
     142: #endif				/* POSIX */
     143:
     144: #ifdef POSIX
     145: /*
     146:  * We should be using setpgid and setpgid
     147:  * by now, but in some systems we use the
     148:  * old routines...
     149:  */
     150: # define getpgrp __getpgrp
     151: # define setpgrp __setpgrp
     152: # include <unistd.h>
     153: # undef getpgrp
     154: # undef setpgrp
     155: extern int getpgrp();
     156: extern int setpgrp();
     157:
     158: /*
     159:  * the gcc+protoize version of <stdlib.h>
     160:  * redefines malloc(), so we define the following
     161:  * to avoid it.
     162:  */
     163: # define _GNU_STDLIB_H
     164: # define malloc __malloc
     165: # define free __free
     166: # define calloc __calloc
     167: # define realloc __realloc
     168: # include <stdlib.h>
     169: # undef malloc
     170: # undef free
     171: # undef calloc
     172: # undef realloc
     173: # include <limits.h>
     174: #endif				/* POSIX */
     175:
     176: #if SVID > 0
     177: # if !defined(pyr) || !defined(aiws)
     178: #  include <time.h>
     179: # endif				/* !aiws || !pyr */
     180: #endif				/* SVID > 0 */
     181:
     182: #if !(defined(sun) && defined(TERMIO))
     183: # include <sys/ioctl.h>
     184: #endif
     185:
     186: #if !defined(FIOCLEX) && defined(sun)
     187: # include <sys/filio.h>
     188: #endif				/* !FIOCLEX && sun */
     189:
     190:
     191: #include <sys/file.h>
     192:
     193: #if !defined(O_RDONLY) || !defined(O_NDELAY)
     194: # include <fcntl.h>
     195: #endif
     196:
     197: #include <errno.h>
     198:
     199: #include <setjmp.h>
     200:
     201: #if __STDC__
     202: # include <stdarg.h>
     203: #else
     204: # include <varargs.h>
     205: #endif
     206:
     207: #ifdef DIRENT
     208: # include <dirent.h>
     209: #else
     210: # include <sys/dir.h>
     211: # define dirent direct
     212: #endif				/* DIRENT */
     213: #ifdef hpux
     214: # include <stdio.h> /* So the fgetpwent() prototypes work */
     215: #endif
     216: #include <pwd.h>
     217: #ifdef BSD
     218: # include <strings.h>
     219: # define strchr(a, b) index(a, b)
     220: # define strrchr(a, b) rindex(a, b)
     221: #else
     222: # include <string.h>
     223: #endif				/* BSD */
     224:
     225: typedef int bool;
     226:
     227: #include "sh.types.h"
     228:
     229: #ifndef lint
     230: typedef ptr_t memalign_t;
     231: #else
     232: typedef union {
     233:     char    am_ch, *am_char_p;
     234:     short   am_sh, *am_short_p;
     235:     int     am_in, *am_int_p;
     236:     long    am_lo, *am_long_p;
     237:     float   am_fl, *am_float_p;
     238:     double  am_do, *am_double_p;
     239: }      *memalign_t;
     240:
     241: # define malloc     lint_malloc
     242: # define free       lint_free
     243: # define realloc    lint_realloc
     244: # define calloc     lint_calloc
     245: #endif
     246:
     247: #ifdef SYSMALLOC
     248: # define xmalloc(i)     Malloc(i)
     249: # define xrealloc(p, i) Realloc(p, i)
     250: # define xcalloc(n, s)  Calloc(n, s)
     251: # define xfree(p)       Free(p)
     252: #else
     253: # define xmalloc(i)     malloc(i)
     254: # define xrealloc(p, i) realloc(p, i)
     255: # define xcalloc(n, s)  calloc(n, s)
     256: # define xfree(p)       free(p)
     257: #endif /* SYSMALLOC */
     258: #include "sh.char.h"
     259: #include "sh.err.h"
     260: #include "sh.dir.h"
     261: #include "sh.proc.h"
     262:
     263: #include "pathnames.h"
     264:
     265:
     266: /*
     267:  * C shell
     268:  *
     269:  * Bill Joy, UC Berkeley
     270:  * October, 1978; May 1980
     271:  *
     272:  * Jim Kulp, IIASA, Laxenburg Austria
     273:  * April, 1980
     274:  */
     275:
     276: #define SIGN_EXTEND_CHAR(a) \
     277:     ((a) & 0x80 ? ((int) (a)) | 0xffffff00 : ((int) a) & 0x000000ff)
     278:
     279:
     280:
     281: #if !defined(MAXNAMLEN) && defined(_D_NAME_MAX)
     282: # define MAXNAMLEN _D_NAME_MAX
     283: #endif				/* MAXNAMLEN */
     284:
     285: #ifndef MAXHOSTNAMELEN
     286: # define MAXHOSTNAMELEN 255
     287: #endif				/* MAXHOSTNAMELEN */
     288:
     289:
     290:
     291: #define eq(a, b)    (Strcmp(a, b) == 0)
     292:
     293: /* globone() flags */
     294: #define G_ERROR     0   /* default action: error if multiple words */
     295: #define G_IGNORE    1   /* ignore the rest of the words		   */
     296: #define G_APPEND    2   /* make a sentence by cat'ing the words    */
     297:
     298: /*
     299:  * Global flags
     300:  */
     301: bool    chkstop;        /* Warned of stopped jobs... allow exit */
     302:
     303: #ifndef FIOCLEX
     304: bool    didcch;         /* Have closed unused fd's for child */
     305: #endif
     306:
     307: bool    didfds;         /* Have setup i/o fd's for child */
     308: bool    doneinp;        /* EOF indicator after reset from readc */
     309: bool    exiterr;        /* Exit if error or non-zero exit status */
     310: bool    child;          /* Child shell ... errors cause exit */
     311: bool    haderr;         /* Reset was because of an error */
     312: bool    intty;          /* Input is a tty */
     313: bool    intact;         /* We are interactive... therefore prompt */
     314: bool    justpr;         /* Just print because of :p hist mod */
     315: bool    loginsh;        /* We are a loginsh -> .login/.logout */
     316: bool    neednote;       /* Need to pnotify() */
     317: bool    noexec;         /* Don't execute, just syntax check */
     318: bool    pjobs;          /* want to print jobs if interrupted */
     319: bool    setintr;        /* Set interrupts on/off -> Wait intr... */
     320: bool    timflg;         /* Time the next waited for command */
     321: bool    havhash;        /* path hashing is available */
     322: bool    editing;        /* doing filename expansion and line editing */
     323: bool    bslash_quote;       /* PWP: tcsh-style quoting?  (in sh.c) */
     324: bool    isoutatty;      /* is SHOUT a tty */
     325: bool    isdiagatty;     /* is SHDIAG a tty */
     326: bool    is1atty;        /* is file descriptor 1 a tty (didfds mode) */
     327: bool    is2atty;        /* is file descriptor 2 a tty (didfds mode) */
     328:
     329: /*
     330:  * Global i/o info
     331:  */
     332: Char   *arginp;         /* Argument input for sh -c and internal `xx` */
     333: int     onelflg;        /* 2 -> need line for -t, 1 -> exit on read */
     334: Char   *ffile;          /* Name of shell file for $0 */
     335:
     336: extern char *seterr;        /* Error message from scanner/parser */
     337: extern int errno;       /* Error from C library routines */
     338: Char   *shtemp;         /* Temp name for << shell files in /tmp */
     339:
     340: #ifdef BSDTIMES
     341: struct timeval time0;       /* Time at which the shell started */
     342: struct rusage ru0;
     343: #else
     344: # ifdef _SEQUENT_
     345: tmval_t time0;      /* Time at which the shell started */
     346: struct pro_stats ru0;
     347: # else              /* _SEQUENT_ */
     348: #  ifndef POSIX
     349: time_t  time0;          /* time at which shell started */
     350: #  else             /* POSIX */
     351: clock_t time0;          /* time at which shell started */
     352: #  endif			/* POSIX */
     353: struct tms shtimes;     /* shell and child times for process timing */
     354: # endif				/* _SEQUENT_ */
     355: #endif				/* BSDTIMES */
     356:
     357: /*
     358:  * Miscellany
     359:  */
     360: Char   *doldol;         /* Character pid for $$ */
     361: int     uid;            /* Invokers uid */
     362: int     gid;            /* Invokers gid */
     363: time_t  chktim;         /* Time mail last checked */
     364: int     shpgrp;         /* Pgrp of shell */
     365: int     tpgrp;          /* Terminal process group */
     366:
     367: /* If tpgrp is -1, leave tty alone! */
     368: int     opgrp;          /* Initial pgrp and tty pgrp */
     369:
     370: Char    PromptBuf[256];     /* buffer for the actual printed prompt. this
     371: 				 * is used in tenex.c and sh.c for pegets.c */
     372:
     373: /*
     374:  * These are declared here because they want to be
     375:  * initialized in sh.init.c (to allow them to be made readonly)
     376:  */
     377:
     378: extern struct biltins {
     379:     char   *bname;
     380:     void    (*bfunct) ();
     381:     short   minargs, maxargs;
     382: }       bfunc[];
     383: extern int nbfunc;
     384:
     385: extern struct srch {
     386:     char   *s_name;
     387:     short   s_value;
     388: }       srchn[];
     389: extern int nsrchn;
     390:
     391: /*
     392:  * To be able to redirect i/o for builtins easily, the shell moves the i/o
     393:  * descriptors it uses away from 0,1,2.
     394:  * Ideally these should be in units which are closed across exec's
     395:  * (this saves work) but for version 6, this is not usually possible.
     396:  * The desired initial values for these descriptors are defined in
     397:  * sh.local.h.
     398:  */
     399: short   SHIN;           /* Cur_ shell input (script) */
     400: short   SHOUT;          /* Shell output */
     401: short   SHDIAG;         /* Diagnostic output... shell errs go here */
     402: short   OLDSTD;         /* Old standard input (def for cmds) */
     403:
     404: /*
     405:  * Error control
     406:  *
     407:  * Errors in scanning and parsing set up an error message to be printed
     408:  * at the end and complete.  Other errors always cause a reset.
     409:  * Because of source commands and .cshrc we need nested error catches.
     410:  */
     411:
     412: jmp_buf reslab;
     413:
     414: /* bugfix by Jak Kirman @ Brown U.: remove the (void) cast here, see sh.c */
     415: #define setexit()   (setjmp(reslab))
     416: #define reset()     longjmp(reslab, 1)
     417:  /* Should use structure assignment here */
     418: #define getexit(a)  copy((char *)(a), (char *)reslab, sizeof reslab)
     419: #define resexit(a)  copy((char *)reslab, ((char *)(a)), sizeof reslab)
     420:
     421: Char   *gointr;         /* Label for an onintr transfer */
     422:
     423: sigret_t (*parintr) ();     /* Parents interrupt catch */
     424: sigret_t (*parterm) ();     /* Parents terminate catch */
     425:
     426: /*
     427:  * Lexical definitions.
     428:  *
     429:  * All lexical space is allocated dynamically.
     430:  * The eighth/sizteenth bit of characters is used to prevent recognition,
     431:  * and eventually stripped.
     432:  */
     433: #define     META        0200
     434: #define     ASCII       0177
     435: #ifdef SHORT_STRINGS
     436: # define    QUOTE       0100000 /* 16nth char bit used for 'ing */
     437: # define    TRIM        0077777 /* Mask to strip quote bit */
     438: # define    UNDER       0040000 /* Underline flag */
     439: # define    BOLD        0020000 /* Bold flag */
     440: # define    STANDOUT    0010000 /* Standout flag */
     441: # define    LITERAL     0004000 /* Literal character flag */
     442: # define    ATTRIBUTES  0074000 /* The bits used for attributes */
     443: # define    CHAR        0000377 /* Mask to mask out the character */
     444: #else
     445: # define    QUOTE       0200    /* Eighth char bit used for 'ing */
     446: # define    TRIM        0177    /* Mask to strip quote bit */
     447: # define    UNDER       0000000 /* No extra bits to do both */
     448: # define    BOLD        0000000 /* Bold flag */
     449: # define    STANDOUT    META    /* Standout flag */
     450: # define    LITERAL     0000000 /* Literal character flag */
     451: # define    ATTRIBUTES  0200    /* The bits used for attributes */
     452: # define    CHAR        0000177 /* Mask to mask out the character */
     453: #endif
     454:
     455: int     AsciiOnly;      /* If set only 7 bits is expected in characters */
     456:
     457: /*
     458:  * Each level of input has a buffered input structure.
     459:  * There are one or more blocks of buffered input for each level,
     460:  * exactly one if the input is seekable and tell is available.
     461:  * In other cases, the shell buffers enough blocks to keep all loops
     462:  * in the buffer.
     463:  */
     464: struct Bin {
     465:     off_t   Bfseekp;        /* Seek pointer */
     466:     off_t   Bfbobp;     /* Seekp of beginning of buffers */
     467:     off_t   Bfeobp;     /* Seekp of end of buffers */
     468:     short   Bfblocks;       /* Number of buffer blocks */
     469:     Char  **Bfbuf;      /* The array of buffer blocks */
     470: }       B;
     471:
     472: #define fseekp  B.Bfseekp
     473: #define fbobp   B.Bfbobp
     474: #define feobp   B.Bfeobp
     475: #define fblocks B.Bfblocks
     476: #define fbuf    B.Bfbuf
     477:
     478: #define btell() fseekp
     479:
     480: /*
     481:  * The shell finds commands in loops by reseeking the input
     482:  * For whiles, in particular, it reseeks to the beginning of the
     483:  * line the while was on; hence the while placement restrictions.
     484:  */
     485: off_t   lineloc;
     486:
     487: bool    cantell;        /* Is current source tellable ? */
     488:
     489: /*
     490:  * Input lines are parsed into doubly linked circular
     491:  * lists of words of the following form.
     492:  */
     493: struct wordent {
     494:     Char   *word;
     495:     struct wordent *prev;
     496:     struct wordent *next;
     497: };
     498:
     499: /*
     500:  * During word building, both in the initial lexical phase and
     501:  * when expanding $ variable substitutions, expansion by `!' and `$'
     502:  * must be inhibited when reading ahead in routines which are themselves
     503:  * processing `!' and `$' expansion or after characters such as `\' or in
     504:  * quotations.  The following flags are passed to the getC routines
     505:  * telling them which of these substitutions are appropriate for the
     506:  * next character to be returned.
     507:  */
     508: #define DODOL   1
     509: #define DOEXCL  2
     510: #define DOALL   DODOL|DOEXCL
     511:
     512: /*
     513:  * Labuf implements a general buffer for lookahead during lexical operations.
     514:  * Text which is to be placed in the input stream can be stuck here.
     515:  * We stick parsed ahead $ constructs during initial input,
     516:  * process id's from `$$', and modified variable values (from qualifiers
     517:  * during expansion in sh.dol.c) here.
     518:  */
     519: Char   *lap;
     520:
     521: /*
     522:  * Parser structure
     523:  *
     524:  * Each command is parsed to a tree of command structures and
     525:  * flags are set bottom up during this process, to be propagated down
     526:  * as needed during the semantics/exeuction pass (sh.sem.c).
     527:  */
     528: struct command {
     529:     short   t_dtyp;     /* Type of node 		 */
     530: #define NODE_COMMAND    1   /* t_dcom <t_dlef >t_drit	 */
     531: #define NODE_PAREN  2   /* ( t_dspr ) <t_dlef >t_drit	 */
     532: #define NODE_PIPE   3   /* t_dlef | t_drit		 */
     533: #define NODE_LIST   4   /* t_dlef ; t_drit		 */
     534: #define NODE_OR     5   /* t_dlef || t_drit		 */
     535: #define NODE_AND    6   /* t_dlef && t_drit		 */
     536:     short   t_dflg;     /* Flags, e.g. F_AMPERSAND|... 	 */
     537: /* save these when re-doing 	 */
     538: #ifndef apollo
     539: #define F_SAVE  (F_NICE|F_TIME|F_NOHUP)
     540: #else
     541: #define F_SAVE  (F_NICE|F_TIME|F_NOHUP|F_VER)
     542: #endif
     543: #define F_AMPERSAND (1<<0)  /* executes in background	 */
     544: #define F_APPEND    (1<<1)  /* output is redirected >>	 */
     545: #define F_PIPEIN    (1<<2)  /* input is a pipe		 */
     546: #define F_PIPEOUT   (1<<3)  /* output is a pipe		 */
     547: #define F_NOFORK    (1<<4)  /* don't fork, last ()ized cmd	 */
     548: #define F_NOINTERRUPT   (1<<5)  /* should be immune from intr's */
     549: /* spare */
     550: #define F_STDERR    (1<<7)  /* redirect unit 2 with unit 1	 */
     551: #define F_OVERWRITE (1<<8)  /* output was !			 */
     552: #define F_READ      (1<<9)  /* input redirection is <<	 */
     553: #define F_REPEAT    (1<<10) /* reexec aft if, repeat,...	 */
     554: #define F_NICE      (1<<11) /* t_nice is meaningful 	 */
     555: #define F_NOHUP     (1<<12) /* nohup this command 		 */
     556: #define F_TIME      (1<<13) /* time this command 		 */
     557: #ifdef apollo
     558: #define F_VER       (1<<14) /* execute command under SYSTYPE */
     559: #endif
     560:     union {
     561:     Char   *T_dlef;     /* Input redirect word 		 */
     562:     struct command *T_dcar; /* Left part of list/pipe 	 */
     563:     }       L;
     564:     union {
     565:     Char   *T_drit;     /* Output redirect word 	 */
     566:     struct command *T_dcdr; /* Right part of list/pipe 	 */
     567:     }       R;
     568: #define t_dlef  L.T_dlef
     569: #define t_dcar  L.T_dcar
     570: #define t_drit  R.T_drit
     571: #define t_dcdr  R.T_dcdr
     572:     Char  **t_dcom;     /* Command/argument vector 	 */
     573:     struct command *t_dspr; /* Pointer to ()'d subtree 	 */
     574:     short   t_nice;
     575: #ifdef F_VER
     576:     short   t_systype;
     577: #endif
     578: };
     579:
     580:
     581: /*
     582:  * The keywords for the parser
     583:  */
     584: #define T_BREAK     0
     585: #define T_BRKSW     1
     586: #define T_CASE      2
     587: #define T_DEFAULT   3
     588: #define T_ELSE      4
     589: #define T_END       5
     590: #define T_ENDIF     6
     591: #define T_ENDSW     7
     592: #define T_EXIT      8
     593: #define T_FOREACH   9
     594: #define T_GOTO      10
     595: #define T_IF        11
     596: #define T_LABEL     12
     597: #define T_LET       13
     598: #define T_SET       14
     599: #define T_SWITCH    15
     600: #define T_TEST      16
     601: #define T_THEN      17
     602: #define T_WHILE     18
     603:
     604: /*
     605:  * Structure defining the existing while/foreach loops at this
     606:  * source level.  Loops are implemented by seeking back in the
     607:  * input.  For foreach (fe), the word list is attached here.
     608:  */
     609: struct whyle {
     610:     off_t   w_start;        /* Point to restart loop */
     611:     off_t   w_end;      /* End of loop (0 if unknown) */
     612:     Char  **w_fe, **w_fe0;  /* Cur_/initial wordlist for fe */
     613:     Char   *w_fename;       /* Name for fe */
     614:     struct whyle *w_next;   /* Next (more outer) loop */
     615: }      *whyles;
     616:
     617: /*
     618:  * Variable structure
     619:  *
     620:  * Aliases and variables are stored in AVL balanced binary trees.
     621:  */
     622: struct varent {
     623:     Char  **vec;        /* Array of words which is the value */
     624:     Char   *v_name;     /* Name of variable/alias */
     625:     struct varent *v_link[3];   /* The links, see below */
     626:     int     v_bal;      /* Balance factor */
     627: }       shvhed, aliases;
     628:
     629: #define v_left      v_link[0]
     630: #define v_right     v_link[1]
     631: #define v_parent    v_link[2]
     632:
     633: struct varent *adrof1();
     634:
     635: #define adrof(v)    adrof1(v, &shvhed)
     636: #define value(v)    value1(v, &shvhed)
     637:
     638: /*
     639:  * The following are for interfacing redo substitution in
     640:  * aliases to the lexical routines.
     641:  */
     642: struct wordent *alhistp;    /* Argument list (first) */
     643: struct wordent *alhistt;    /* Node after last in arg list */
     644: Char  **alvec;          /* The (remnants of) alias vector */
     645:
     646: /*
     647:  * Filename/command name expansion variables
     648:  */
     649: short   gflag;          /* After tglob -> is globbing needed? */
     650:
     651: #define MAXVARLEN 30        /* Maximum number of char in a variable name */
     652:
     653: #ifndef MAXPATHLEN
     654: # define MAXPATHLEN 2048
     655: #endif				/* MAXPATHLEN */
     656:
     657: #ifndef MAXNAMLEN
     658: # define MAXNAMLEN 512
     659: #endif				/* MAXNAMLEN */
     660:
     661: /*
     662:  * Variables for filename expansion
     663:  */
     664: extern Char **gargv;        /* Pointer to the (stack) arglist */
     665: extern long gargc;      /* Number args in gargv */
     666:
     667: /*
     668:  * Variables for command expansion.
     669:  */
     670: extern Char **pargv;        /* Pointer to the argv list space */
     671: extern long pargc;      /* Count of arguments in pargv */
     672: Char   *pargs;          /* Pointer to start current word */
     673: long    pnleft;         /* Number of chars left in pargs */
     674: Char   *pargcp;         /* Cur_ index into pargs */
     675:
     676: /*
     677:  * History list
     678:  *
     679:  * Each history list entry contains an embedded wordlist
     680:  * from the scanner, a number for the event, and a reference count
     681:  * to aid in discarding old entries.
     682:  *
     683:  * Essentially "invisible" entries are put on the history list
     684:  * when history substitution includes modifiers, and thrown away
     685:  * at the next discarding since their event numbers are very negative.
     686:  */
     687: struct Hist {
     688:     struct wordent Hlex;
     689:     int     Hnum;
     690:     int     Href;
     691:     long    Htime;
     692:     Char   *histline;
     693:     struct Hist *Hnext;
     694: }       Histlist;
     695:
     696: struct wordent paraml;      /* Cur_ lexical word list */
     697: int     eventno;        /* Next events number */
     698: int     lastev;         /* Last event reference (default) */
     699:
     700: Char    HIST;           /* history invocation character */
     701: Char    HISTSUB;        /* auto-substitute character */
     702:
     703: /*
     704:  * strings.h:
     705:  */
     706: #ifndef SHORT_STRINGS
     707: #define Strchr(a, b)        strchr(a, b)
     708: #define Strrchr(a, b)   strrchr(a, b)
     709: #define Strcat(a, b)        strcat(a, b)
     710: #define Strncat(a, b, c)    strncat(a, b, c)
     711: #define Strcpy(a, b)        strcpy(a, b)
     712: #define Strncpy(a, b, c)    strncpy(a, b, c)
     713: #define Strlen(a)       strlen(a)
     714: #define Strcmp(a, b)        strcmp(a, b)
     715: #define Strncmp(a, b, c)    strncmp(a, b, c)
     716:
     717: #define Strspl(a, b)        strspl(a, b)
     718: #define Strsave(a)      strsave(a)
     719: #define Strend(a)       strend(a)
     720: #define Strstr(a, b)        strstr(a, b)
     721:
     722: #define str2short(a)        (a)
     723: #define blk2short(a)        saveblk(a)
     724: #define short2blk(a)        saveblk(a)
     725: #define short2str(a)        (a)
     726: #define short2qstr(a)       (a)
     727: #else
     728: #define Strchr(a, b)    s_strchr(a, b)
     729: #define Strrchr(a, b)       s_strrchr(a, b)
     730: #define Strcat(a, b)        s_strcat(a, b)
     731: #define Strncat(a, b, c)    s_scat(a, b, c)
     732: #define Strcpy(a, b)        s_strcpy(a, b)
     733: #define Strncpy(a, b, c)    s_scpy(a, b, c)
     734: #define Strlen(a)       s_strlen(a)
     735: #define Strcmp(a, b)        s_strcmp(a, b)
     736: #define Strncmp(a, b, c)    s_scmp(a, b, c)
     737:
     738: #define Strspl(a, b)        s_strspl(a, b)
     739: #define Strsave(a)      s_strsave(a)
     740: #define Strend(a)       s_strend(a)
     741: #define Strstr(a, b)        s_strstr(a, b)
     742: #endif
     743:
     744: #define NOSTR   ((Char *) 0)
     745: /*
     746:  * setname is a macro to save space (see sh.err.c)
     747:  */
     748: char   *bname;
     749:
     750: #define setname(a)  (bname = (a))
     751:
     752: #ifdef VFORK
     753: Char   *Vsav;
     754: Char   *Vdp;
     755: Char   *Vexpath;
     756: char  **Vt;
     757:
     758: #endif				/* VFORK */
     759:
     760: Char  **evalvec;
     761: Char   *evalp;
     762:
     763: extern struct mesg {
     764:     char   *iname;      /* name from /usr/include */
     765:     char   *pname;      /* print name */
     766: }       mesg[];
     767:
     768: /* word_chars is set by default to WORD_CHARS but can be overridden by
     769:    the worchars variable--if unset, reverts to WORD_CHARS */
     770:
     771: Char   *word_chars;
     772:
     773: #define WORD_CHARS "*?_-.[]~="  /* default chars besides alnums in words */
     774:
     775: Char   *STR_SHELLPATH;
     776:
     777: #ifdef _PATH_BSHELL
     778: Char   *STR_BSHELL;
     779: #endif
     780: Char   *STR_WORD_CHARS;
     781: Char  **STR_environ;
     782:
     783: /*
     784:  * ANSIisms...
     785:  */
     786: #ifndef __P
     787: # if __STDC__
     788: #  define __P(a) a
     789: # else
     790: #  define __P(a) ()
     791: #  define const
     792: #  define volatile
     793: # endif
     794: #endif
     795:
     796: #include "tc.h"
     797: #include "sh.decls.h"
     798:
     799: #endif				/* _h_sh */

#### Defined functions

sigret_t defined in line 424; never used

#### Defined variables

HIST defined in line 700; used 20 times

- in /usr/src/bin/tcsh/ed.chared.c line 301, 474, 497-502(2)
- in /usr/src/bin/tcsh/sh.c line 161, 1022, 1084, 1127
- in /usr/src/bin/tcsh/sh.lex.c line 296, 317, 350, 426, 1092-1093(2), 1129, 1145
- in /usr/src/bin/tcsh/sh.set.c line 139, 559
- in /usr/src/bin/tcsh/tc.func.c line 110
- in /usr/src/bin/tcsh/tw.parse.c line 409

HISTSUB defined in line 701; used 9 times

- in /usr/src/bin/tcsh/sh.c line 162
- in /usr/src/bin/tcsh/sh.lex.c line 155, 658-659(2), 691, 1092
- in /usr/src/bin/tcsh/sh.set.c line 140, 560
- in /usr/src/bin/tcsh/tw.parse.c line 410

Histlist defined in line 694; used 13 times

- in /usr/src/bin/tcsh/ed.chared.c line 261, 730, 780, 844, 933, 995, 1163
- in /usr/src/bin/tcsh/sh.hist.c line 79, 112-113(2), 168
- in /usr/src/bin/tcsh/sh.lex.c line 1189, 1207

OLDSTD defined in line 402; used 12 times

- in /usr/src/bin/tcsh/sh.c line 686-687(2), 1642, 1650
- in /usr/src/bin/tcsh/sh.dol.c line 418
- in /usr/src/bin/tcsh/sh.exec.c line 182
- in /usr/src/bin/tcsh/sh.misc.c line 252, 275
- in /usr/src/bin/tcsh/sh.sem.c line 305, 360, 521, 668

PromptBuf defined in line 370; used 8 times

- in /usr/src/bin/tcsh/ed.inputl.c line 168, 223
- in /usr/src/bin/tcsh/ed.refresh.c line 158, 169, 880
- in /usr/src/bin/tcsh/tc.prompt.c line 71-72(2), 396

SHDIAG defined in line 401; used 23 times

- in /usr/src/bin/tcsh/sh.c line 629, 1641, 1648-1649(2)
- in /usr/src/bin/tcsh/sh.exec.c line 181-184(2)
- in /usr/src/bin/tcsh/sh.func.c line 1671, 1694, 1704, 1721-1724(2)
- in /usr/src/bin/tcsh/sh.glob.c line 677
- in /usr/src/bin/tcsh/sh.misc.c line 252, 274-277(2)
- in /usr/src/bin/tcsh/sh.print.c line 211
- in /usr/src/bin/tcsh/sh.sem.c line 304, 359, 524-525(2), 646, 695, 737

SHIN defined in line 399; used 110 times

- in /usr/src/bin/tcsh/ed.init.c line 222-227(3), 258, 265-280(6), 354, 616-624(3), 768-771(2), 777, 787, 811, 825, 882-885(2), 900-910(5), 925, 940-964(9), 1011-1015(2), 1057-1060(2), 1068, 1083-1090(3)
- in /usr/src/bin/tcsh/ed.inputl.c line 92, 200, 481, 498-502(3)
- in /usr/src/bin/tcsh/sh.c line 227, 589-598(4), 605, 614, 881, 1078-1079(3), 1122(2), 1639-1650(4)
- in /usr/src/bin/tcsh/sh.exec.c line 179
- in /usr/src/bin/tcsh/sh.file.c line 104, 112-116(2), 123-138(5), 167-172(3), 652
- in /usr/src/bin/tcsh/sh.func.c line 422, 1669, 1692, 1702, 1719-1722(2)
- in /usr/src/bin/tcsh/sh.lex.c line 1353-1360(3), 1413, 1420, 1469, 1494-1498(3), 1586, 1598-1603(2)
- in /usr/src/bin/tcsh/sh.misc.c line 252, 272
- in /usr/src/bin/tcsh/sh.sem.c line 302, 354, 526-527(2), 644
- in /usr/src/bin/tcsh/tc.func.c line 480, 781-784(2)
- in /usr/src/bin/tcsh/tw.parse.c line 998

SHOUT defined in line 400; used 51 times

- in /usr/src/bin/tcsh/ed.screen.c line 1312, 1326
- in /usr/src/bin/tcsh/sh.c line 620, 628, 637, 1157-1163(3), 1640, 1646-1647(2)
- in /usr/src/bin/tcsh/sh.dir.c line 1100-1101(2), 1121
- in /usr/src/bin/tcsh/sh.exec.c line 180-183(2)
- in /usr/src/bin/tcsh/sh.file.c line 154-160(4), 171, 191-198(4), 207-214(4), 295, 364-370(3), 378
- in /usr/src/bin/tcsh/sh.func.c line 1670, 1693, 1703, 1720-1723(2)
- in /usr/src/bin/tcsh/sh.misc.c line 252, 273-276(2)
- in /usr/src/bin/tcsh/sh.print.c line 213
- in /usr/src/bin/tcsh/sh.sem.c line 303, 358, 522-523(2), 645, 694, 722
- in /usr/src/bin/tcsh/tw.help.c line 131

STR_BSHELL defined in line 778; used 2 times

- in /usr/src/bin/tcsh/sh.c line 149
- in /usr/src/bin/tcsh/sh.exec.c line 356

STR_SHELLPATH defined in line 775; used 4 times

- in /usr/src/bin/tcsh/sh.c line 152-155(2), 405
- in /usr/src/bin/tcsh/sh.exec.c line 352

STR_WORD_CHARS defined in line 780; used 3 times

- in /usr/src/bin/tcsh/sh.c line 159-163(2)
- in /usr/src/bin/tcsh/sh.set.c line 565

STR_environ defined in line 781; used 16 times

- in /usr/src/bin/tcsh/sh.c line 157-158(2)
- in /usr/src/bin/tcsh/sh.func.c line 1031, 1087, 1097, 1149, 1165, 1172-1174(3), 1183, 1194-1195(3)
- in /usr/src/bin/tcsh/tw.init.c line 254, 265

Vdp defined in line 754; used 5 times

- in /usr/src/bin/tcsh/sh.exec.c line 234-238(2)
- in /usr/src/bin/tcsh/sh.sem.c line 313, 371-372(2)

Vexpath defined in line 755; used 6 times

- in /usr/src/bin/tcsh/sh.exec.c line 134, 266, 397
- in /usr/src/bin/tcsh/sh.sem.c line 314, 373-374(2)

Vsav defined in line 753; used 5 times

- in /usr/src/bin/tcsh/sh.exec.c line 209, 253
- in /usr/src/bin/tcsh/sh.sem.c line 313, 369-370(2)

Vt defined in line 756; used 7 times

- in /usr/src/bin/tcsh/sh.exec.c line 301, 318, 372-376(2)
- in /usr/src/bin/tcsh/sh.sem.c line 315, 375-376(2)

alhistp defined in line 642; used 8 times

- in /usr/src/bin/tcsh/sh.lex.c line 651, 1094-1095(2), 1107-1108(2), 1154
- in /usr/src/bin/tcsh/sh.parse.c line 165-169(2)

alhistt defined in line 643; used 3 times

- in /usr/src/bin/tcsh/sh.lex.c line 652
- in /usr/src/bin/tcsh/sh.parse.c line 166-169(2)

aliases defined in line 627; used 15 times

- in /usr/src/bin/tcsh/sh.exec.c line 349, 617
- in /usr/src/bin/tcsh/sh.func.c line 222-224(2), 233, 242
- in /usr/src/bin/tcsh/sh.parse.c line 162
- in /usr/src/bin/tcsh/tc.func.c line 380, 536, 571, 608, 1159, 1209
- in /usr/src/bin/tcsh/tw.help.c line 88
- in /usr/src/bin/tcsh/tw.init.c line 163

alvec defined in line 644; used 7 times

- in /usr/src/bin/tcsh/sh.lex.c line 1283-1290(5)
- in /usr/src/bin/tcsh/sh.parse.c line 167-170(2)

arginp defined in line 332; used 17 times

- in /usr/src/bin/tcsh/sh.c line 474, 483-485(3), 668, 799, 820, 853, 1018, 1078, 1123
- in /usr/src/bin/tcsh/sh.glob.c line 686
- in /usr/src/bin/tcsh/sh.lex.c line 1318-1325(4), 1596

bname defined in line 748; used 13 times

- in line 379, 750
- in /usr/src/bin/tcsh/sh.err.c line 432
- in /usr/src/bin/tcsh/sh.exec.c line 651
- in /usr/src/bin/tcsh/sh.func.c line 82, 88-91(2), 113-114(2), 132, 1578
- in /usr/src/bin/tcsh/tw.init.c line 152-153(2)

bslash_quote defined in line 323; used 4 times

- in /usr/src/bin/tcsh/sh.c line 164
- in /usr/src/bin/tcsh/sh.lex.c line 320
- in /usr/src/bin/tcsh/sh.set.c line 192, 569

cantell defined in line 487; used 7 times

- in /usr/src/bin/tcsh/sh.c line 1023, 1129
- in /usr/src/bin/tcsh/sh.lex.c line 1410, 1533, 1554, 1595, 1604

child defined in line 310; used 16 times

- in /usr/src/bin/tcsh/sh.c line 579, 623, 882, 1208
- in /usr/src/bin/tcsh/sh.err.c line 457
- in /usr/src/bin/tcsh/sh.proc.c line 354, 1658, 1692
- in /usr/src/bin/tcsh/sh.sem.c line 295, 350, 412
- in /usr/src/bin/tcsh/tc.alloc.c line 191, 489, 504, 520
- in /usr/src/bin/tcsh/tc.func.c line 482

chkstop defined in line 301; used 10 times

- in /usr/src/bin/tcsh/sh.c line 1393-1394(2)
- in /usr/src/bin/tcsh/sh.exec.c line 409
- in /usr/src/bin/tcsh/sh.func.c line 271, 284, 409
- in /usr/src/bin/tcsh/sh.lex.c line 1386
- in /usr/src/bin/tcsh/sh.proc.c line 1212-1213(2), 1524

chktim defined in line 363; never used
didcch defined in line 304; used 10 times

- in /usr/src/bin/tcsh/sh.c line 1644
- in /usr/src/bin/tcsh/sh.exec.c line 416
- in /usr/src/bin/tcsh/sh.func.c line 1667, 1706, 1716
- in /usr/src/bin/tcsh/sh.misc.c line 269-271(2)
- in /usr/src/bin/tcsh/sh.sem.c line 300, 356, 529

didfds defined in line 307; used 27 times

- in /usr/src/bin/tcsh/sh.c line 1035, 1155-1156(2), 1164, 1637
- in /usr/src/bin/tcsh/sh.dir.c line 1098-1099(2), 1122
- in /usr/src/bin/tcsh/sh.err.c line 453
- in /usr/src/bin/tcsh/sh.func.c line 1665, 1708, 1718
- in /usr/src/bin/tcsh/sh.misc.c line 291
- in /usr/src/bin/tcsh/sh.print.c line 156-157(2), 169-170(2), 211-216(3)
- in /usr/src/bin/tcsh/sh.sem.c line 298, 353, 481, 531, 589, 635, 745

doldol defined in line 360; used 3 times

- in /usr/src/bin/tcsh/sh.c line 407-408(2)
- in /usr/src/bin/tcsh/sh.dol.c line 410

doneinp defined in line 308; used 6 times

- in /usr/src/bin/tcsh/sh.c line 1373, 1389-1390(2)
- in /usr/src/bin/tcsh/sh.func.c line 1714
- in /usr/src/bin/tcsh/sh.lex.c line 1307, 1390

editing defined in line 322; used 11 times

- in /usr/src/bin/tcsh/ed.init.c line 574
- in /usr/src/bin/tcsh/sh.c line 383-387(2), 617, 768
- in /usr/src/bin/tcsh/sh.lex.c line 1454, 1520
- in /usr/src/bin/tcsh/sh.set.c line 185, 567
- in /usr/src/bin/tcsh/tc.func.c line 478
- in /usr/src/bin/tcsh/tc.prompt.c line 395

evalp defined in line 761; used 11 times

- in /usr/src/bin/tcsh/sh.c line 1019, 1081, 1124
- in /usr/src/bin/tcsh/sh.func.c line 1664, 1701, 1713
- in /usr/src/bin/tcsh/sh.lex.c line 1296-1303(4), 1310

evalvec defined in line 760; used 15 times

- in /usr/src/bin/tcsh/sh.c line 1019, 1080, 1124, 1397
- in /usr/src/bin/tcsh/sh.func.c line 409, 1663, 1700, 1712
- in /usr/src/bin/tcsh/sh.lex.c line 1299-1314(7)

eventno defined in line 697; used 10 times

- in /usr/src/bin/tcsh/ed.chared.c line 330
- in /usr/src/bin/tcsh/sh.hist.c line 80-84(2)
- in /usr/src/bin/tcsh/sh.lex.c line 645, 1096, 1107, 1154, 1191
- in /usr/src/bin/tcsh/tc.prompt.c line 100, 386

exiterr defined in line 309; used 5 times

- in /usr/src/bin/tcsh/sh.c line 488, 504
- in /usr/src/bin/tcsh/sh.err.c line 457
- in /usr/src/bin/tcsh/sh.exec.c line 424
- in /usr/src/bin/tcsh/sh.proc.c line 617

ffile defined in line 334; used 4 times

- in /usr/src/bin/tcsh/sh.c line 583
- in /usr/src/bin/tcsh/sh.dol.c line 467-473(3)

gflag defined in line 649; used 37 times

- in /usr/src/bin/tcsh/sh.dol.c line 680, 714-717(2)
- in /usr/src/bin/tcsh/sh.exec.c line 117-118(2), 147-150(2)
- in /usr/src/bin/tcsh/sh.func.c line 446, 924-925(2), 1678-1679(2)
- in /usr/src/bin/tcsh/sh.glob.c line 443-455(4), 469, 475, 508, 516-518(2), 566, 572
- in /usr/src/bin/tcsh/sh.proc.c line 1387-1388(2)
- in /usr/src/bin/tcsh/sh.set.c line 506-508(2)
- in /usr/src/bin/tcsh/tc.func.c line 186-188(2), 1164-1165(2)
- in /usr/src/bin/tcsh/tc.os.c line 451-452(2), 894-895(2)
- in /usr/src/bin/tcsh/tw.parse.c line 374-375(2)

gid defined in line 362; used 3 times

- in /usr/src/bin/tcsh/sh.c line 170, 344, 621

gointr defined in line 421; used 16 times

- in /usr/src/bin/tcsh/sh.c line 1018, 1079, 1125, 1301-1302(2)
- in /usr/src/bin/tcsh/sh.func.c line 152-153(2), 167, 175-178(2)
- in /usr/src/bin/tcsh/sh.proc.c line 601(2), 1654(2)
- in /usr/src/bin/tcsh/sh.sem.c line 410(2)

haderr defined in line 311; used 20 times

- in /usr/src/bin/tcsh/sh.c line 784, 1370, 1378, 1429-1431(2)
- in /usr/src/bin/tcsh/sh.err.c line 421
- in /usr/src/bin/tcsh/sh.exec.c line 435-437(2)
- in /usr/src/bin/tcsh/sh.parse.c line 79
- in /usr/src/bin/tcsh/sh.print.c line 156, 169, 210
- in /usr/src/bin/tcsh/sh.sem.c line 297, 352
- in /usr/src/bin/tcsh/tc.func.c line 454, 463, 682-683(2)
- in /usr/src/bin/tcsh/tw.parse.c line 381-382(2)

havhash defined in line 321; used 8 times

- in /usr/src/bin/tcsh/sh.c line 820
- in /usr/src/bin/tcsh/sh.exec.c line 211, 224, 457, 493, 537-541(2)
- in /usr/src/bin/tcsh/tc.os.c line 179

intact defined in line 313; used 5 times

- in /usr/src/bin/tcsh/sh.c line 512, 619-620(2), 637
- in /usr/src/bin/tcsh/sh.func.c line 409

intty defined in line 312; used 34 times

- in /usr/src/bin/tcsh/sh.c line 614-620(3), 637, 853, 878, 1016, 1079, 1125, 1310, 1397, 1427, 1452, 1513
- in /usr/src/bin/tcsh/sh.func.c line 150, 190, 409, 421, 461, 479, 494, 667
- in /usr/src/bin/tcsh/sh.lex.c line 155, 271, 358, 1446, 1454, 1520, 1596
- in /usr/src/bin/tcsh/sh.proc.c line 223-226(2), 232, 239-242(2)

is1atty defined in line 326; used 6 times

- in /usr/src/bin/tcsh/sh.print.c line 157, 170
- in /usr/src/bin/tcsh/sh.sem.c line 713-723(3), 734

is2atty defined in line 327; used 4 times

- in /usr/src/bin/tcsh/sh.print.c line 156, 169
- in /usr/src/bin/tcsh/sh.sem.c line 734-738(2)

isdiagatty defined in line 325; used 10 times

- in /usr/src/bin/tcsh/sh.c line 629, 1649
- in /usr/src/bin/tcsh/sh.exec.c line 184
- in /usr/src/bin/tcsh/sh.misc.c line 277
- in /usr/src/bin/tcsh/sh.print.c line 156, 169
- in /usr/src/bin/tcsh/sh.sem.c line 308, 363, 525, 738

isoutatty defined in line 324; used 10 times

- in /usr/src/bin/tcsh/sh.c line 628, 1647
- in /usr/src/bin/tcsh/sh.exec.c line 183
- in /usr/src/bin/tcsh/sh.misc.c line 276
- in /usr/src/bin/tcsh/sh.print.c line 157, 170
- in /usr/src/bin/tcsh/sh.sem.c line 307, 362, 523, 723

justpr defined in line 314; used 5 times

- in /usr/src/bin/tcsh/ed.chared.c line 1850, 1856
- in /usr/src/bin/tcsh/sh.c line 1350, 1468
- in /usr/src/bin/tcsh/sh.lex.c line 724

lap defined in line 519; used 12 times

- in /usr/src/bin/tcsh/sh.dol.c line 336-339(3)
- in /usr/src/bin/tcsh/sh.lex.c line 389-391(3), 611-621(6)

lastev defined in line 698; used 6 times

- in /usr/src/bin/tcsh/sh.lex.c line 645, 1107-1109(2), 1159, 1185, 1192

lineloc defined in line 485; used 1 times

- in /usr/src/bin/tcsh/sh.lex.c line 148

loginsh defined in line 315; used 17 times

- in /usr/src/bin/tcsh/sh.c line 175-178(2), 191, 272, 429, 637, 802, 813, 827, 844, 879, 1177, 1583, 1665
- in /usr/src/bin/tcsh/sh.func.c line 286, 1594
- in /usr/src/bin/tcsh/sh.lex.c line 1380

neednote defined in line 316; used 3 times

- in /usr/src/bin/tcsh/sh.c line 1395
- in /usr/src/bin/tcsh/sh.proc.c line 436, 454

noexec defined in line 317; used 7 times

- in /usr/src/bin/tcsh/sh.c line 521
- in /usr/src/bin/tcsh/sh.dol.c line 102, 126, 752
- in /usr/src/bin/tcsh/sh.sem.c line 123-126(2), 282

onelflg defined in line 333; used 14 times

- in /usr/src/bin/tcsh/sh.c line 533, 799, 820, 1020, 1078, 1123
- in /usr/src/bin/tcsh/sh.lex.c line 292-293(2), 346-347(2), 1318, 1394-1395(2), 1596

opgrp defined in line 368; used 5 times

- in /usr/src/bin/tcsh/sh.c line 660, 705, 908-909(2)
- in /usr/src/bin/tcsh/sh.func.c line 1615

paraml defined in line 696; used 21 times

- in /usr/src/bin/tcsh/sh.c line 1347-1348(4), 1366, 1427-1430(2), 1453, 1475-1479(2), 1486, 1493-1497(3), 1510
- in /usr/src/bin/tcsh/sh.glob.c line 672, 689-693(4)
- in /usr/src/bin/tcsh/sh.lex.c line 1118

pargcp defined in line 674; used 4 times

- in /usr/src/bin/tcsh/sh.glob.c line 603, 609, 772, 786

pargs defined in line 672; used 4 times

- in /usr/src/bin/tcsh/sh.glob.c line 603, 609, 784-786(2)

pjobs defined in line 318; used 4 times

- in /usr/src/bin/tcsh/sh.c line 1272-1273(2)
- in /usr/src/bin/tcsh/sh.proc.c line 634, 659

pnleft defined in line 673; used 3 times

- in /usr/src/bin/tcsh/sh.glob.c line 605, 770, 787

reslab defined in line 412; used 6 times

- in line 415-419(6)

ru0 defined in line 346; used 6 times

- in /usr/src/bin/tcsh/sh.time.c line 78-86(4), 112, 120

setintr defined in line 319; used 61 times

- in /usr/src/bin/tcsh/sh.c line 462, 638, 661, 775-776(2), 788, 795, 810, 873, 1061, 1090, 1104, 1181, 1266, 1289, 1355, 1438
- in /usr/src/bin/tcsh/sh.exec.c line 409
- in /usr/src/bin/tcsh/sh.func.c line 150, 157-162(2), 192, 271, 284, 512, 519, 579, 587, 597, 915, 1002, 1025
- in /usr/src/bin/tcsh/sh.hist.c line 136
- in /usr/src/bin/tcsh/sh.proc.c line 223-226(2), 232, 239-242(2), 510, 600, 639, 1245, 1267, 1379-1383(2), 1464, 1652, 1673, 1693-1694(2)
- in /usr/src/bin/tcsh/sh.sem.c line 296, 351, 406, 413-414(2)
- in /usr/src/bin/tcsh/sh.set.c line 834
- in /usr/src/bin/tcsh/tc.func.c line 212, 253
- in /usr/src/bin/tcsh/tc.os.c line 423-427(2), 488

shpgrp defined in line 364; used 13 times

- in /usr/src/bin/tcsh/sh.c line 659, 694, 705-708(4), 718-722(2), 734-735(2), 747
- in /usr/src/bin/tcsh/sh.func.c line 1621-1622(2)

shtemp defined in line 338; used 2 times

- in /usr/src/bin/tcsh/sh.c line 408
- in /usr/src/bin/tcsh/sh.dol.c line 701

shtimes defined in line 353; used 4 times

- in /usr/src/bin/tcsh/sh.proc.c line 187, 329-331(3)

shvhed defined in line 627; used 12 times

- in line 635-636(2)
- in /usr/src/bin/tcsh/sh.c line 401, 643, 949
- in /usr/src/bin/tcsh/sh.dir.c line 149
- in /usr/src/bin/tcsh/sh.func.c line 209
- in /usr/src/bin/tcsh/sh.set.c line 124, 496, 557, 597
- in /usr/src/bin/tcsh/tw.init.c line 191

time0 defined in line 349; used 9 times

- in line 351
- in /usr/src/bin/tcsh/sh.c line 1577-1579(2)
- in /usr/src/bin/tcsh/sh.time.c line 77, 85-88(2), 112, 120, 135

timflg defined in line 320; used 2 times

- in /usr/src/bin/tcsh/sh.c line 1303
- in /usr/src/bin/tcsh/sh.err.c line 422

tpgrp defined in line 365; used 36 times

- in /usr/src/bin/tcsh/sh.c line 660, 693-694(2), 707, 756-758(2), 771, 907, 1505(2)
- in /usr/src/bin/tcsh/sh.err.c line 468-469(2)
- in /usr/src/bin/tcsh/sh.func.c line 342(2), 1612
- in /usr/src/bin/tcsh/sh.lex.c line 1370-1375(4)
- in /usr/src/bin/tcsh/sh.proc.c line 574-575(2), 1653, 1714, 1782-1784(2), 1860-1861(2)
- in /usr/src/bin/tcsh/sh.sem.c line 306, 361, 408, 443, 662
- in /usr/src/bin/tcsh/tc.func.c line 250(2), 679(2)

uid defined in line 361; used 10 times

- in /usr/src/bin/tcsh/sh.c line 169, 272, 341, 621, 649
- in /usr/src/bin/tcsh/sh.exp.c line 578
- in /usr/src/bin/tcsh/tc.os.c line 960, 970-974(2)
- in /usr/src/bin/tcsh/tc.prompt.c line 96

whyles defined in line 615; used 37 times

- in /usr/src/bin/tcsh/sh.c line 1017, 1079, 1125, 1452, 1513
- in /usr/src/bin/tcsh/sh.func.c line 363, 399, 455-456(2), 471-472(3), 491-492(2), 511, 525, 531-533(2), 540, 549-550(2), 558-563(4), 863-868(3), 877-878(2), 888
- in /usr/src/bin/tcsh/sh.lex.c line 1535, 1558, 1565
- in /usr/src/bin/tcsh/tc.func.c line 536, 571, 608

word_chars defined in line 771; used 3 times

- in /usr/src/bin/tcsh/sh.c line 163
- in /usr/src/bin/tcsh/sh.set.c line 150, 565

#### Defined struct's

Bin defined in line 464; used 2 times

- in /usr/src/bin/tcsh/sh.c line 1024(2)

Hist defined in line 687; used 44 times

- in line 693(2)
- in /usr/src/bin/tcsh/ed.chared.c line 261(2), 721(2), 769(2), 825(2), 917(2), 986(2), 1156(2)
- in /usr/src/bin/tcsh/sh.hist.c line 48-50(6), 60(2), 87(2), 93-95(4), 119(2), 173(2), 195(2)
- in /usr/src/bin/tcsh/sh.lex.c line 59(2), 1086(2), 1200-1205(4)

biltins defined in line 378; used 20 times

- in /usr/src/bin/tcsh/sh.exec.c line 611(2)
- in /usr/src/bin/tcsh/sh.func.c line 71-79(10), 127(2)
- in /usr/src/bin/tcsh/sh.init.c line 51(2)
- in /usr/src/bin/tcsh/sh.sem.c line 79(2)
- in /usr/src/bin/tcsh/tw.init.c line 149(2)

command defined in line 528; used 110 times

- in line 562-566(4), 573(2)
- in /usr/src/bin/tcsh/sh.c line 1332(2), 1340(2)
- in /usr/src/bin/tcsh/sh.dol.c line 97(2)
- in /usr/src/bin/tcsh/sh.exec.c line 102(2), 407(2)
- in /usr/src/bin/tcsh/sh.exp.c line 458(2), 600(2)
- in /usr/src/bin/tcsh/sh.func.c line 62(2), 73(2), 126(2), 294(2), 333(2), 569(2)
- in /usr/src/bin/tcsh/sh.glob.c line 638(2), 673(2)
- in /usr/src/bin/tcsh/sh.parse.c line 52-57(12), 219(2), 238(2), 244(2), 280(2), 288(2), 306(2), 312(2), 331(2), 347(2), 353(2), 371(2), 388(2), 394(2), 410(2), 428(2), 434(2), 452(2), 479(2), 486(2), 553(2), 660(2)
- in /usr/src/bin/tcsh/sh.proc.c line 145(2), 743(2), 820(2), 1630(2)
- in /usr/src/bin/tcsh/sh.sem.c line 61(2), 70(2), 628(2)
- in /usr/src/bin/tcsh/tc.func.c line 205(2), 639(2)
- in /usr/src/bin/tcsh/tc.sched.c line 191(2)

mesg defined in line 763; used 2 times

- in /usr/src/bin/tcsh/sh.init.c line 199(2)

srch defined in line 385; used 6 times

- in /usr/src/bin/tcsh/sh.func.c line 615(2), 639(2)
- in /usr/src/bin/tcsh/sh.init.c line 172(2)

varent defined in line 622; used 142 times

- in line 625(2), 633(2)
- in /usr/src/bin/tcsh/ed.inputl.c line 74-75(4)
- in /usr/src/bin/tcsh/sh.c line 1555(2)
- in /usr/src/bin/tcsh/sh.dir.c line 442(2)
- in /usr/src/bin/tcsh/sh.dol.c line 371(2), 389(2)
- in /usr/src/bin/tcsh/sh.exec.c line 105(2), 290(2), 452(2), 527(2), 663(2)
- in /usr/src/bin/tcsh/sh.file.c line 716(2)
- in /usr/src/bin/tcsh/sh.func.c line 216(2)
- in /usr/src/bin/tcsh/sh.parse.c line 147(2)
- in /usr/src/bin/tcsh/sh.set.c line 52-59(10), 223(2), 229-234(4), 316(2), 445-447(4), 453-458(6), 469-472(4), 502(2), 525-527(4), 540(4), 577-579(4), 595(2), 604-606(4), 655(2), 711-719(8), 734-740(6), 829-831(4)
- in /usr/src/bin/tcsh/sh.time.c line 308(2)
- in /usr/src/bin/tcsh/tc.func.c line 366(2), 714(2)
- in /usr/src/bin/tcsh/tc.who.c line 160(2), 437(2), 567(2)
- in /usr/src/bin/tcsh/tw.init.c line 160-161(4), 185-189(6), 215-218(6)
- in /usr/src/bin/tcsh/tw.parse.c line 462(2), 609(2), 936(2), 1165(2), 1455(2)

whyle defined in line 609; used 20 times

- in line 614(2)
- in /usr/src/bin/tcsh/sh.c line 1017(2)
- in /usr/src/bin/tcsh/sh.func.c line 355(2), 430(2), 450(2), 486-487(4), 878-879(4)
- in /usr/src/bin/tcsh/sh.lex.c line 1556(2)

wordent defined in line 493; used 266 times

- in line 495-496(4), 642-643(4), 688(2), 696(2)
- in /usr/src/bin/tcsh/ed.chared.c line 262(2), 1157(2), 1170(2)
- in /usr/src/bin/tcsh/sh.exec.c line 608-612(4)
- in /usr/src/bin/tcsh/sh.exp.c line 598-601(6), 607-608(4)
- in /usr/src/bin/tcsh/sh.glob.c line 672(2)
- in /usr/src/bin/tcsh/sh.hist.c line 58(2), 90(2)
- in /usr/src/bin/tcsh/sh.lex.c line 63-68(10), 94(2), 139-141(4), 166-168(4), 191-193(4), 207-217(10), 230-232(4), 633(2), 706-708(4), 835-849(14), 1082(2), 1210(2)
- in /usr/src/bin/tcsh/sh.parse.c line 48-57(42), 71(2), 91(2), 104-107(6), 144-148(6), 193-197(6), 221(2), 240-243(4), 308-311(4), 349-352(4), 390-393(4), 430-433(4), 481-485(6)
- in /usr/src/bin/tcsh/tc.func.c line 55-56(6), 81-84(4), 133(2), 206(2), 223-228(4), 234(2), 365(2), 638(2), 648(2), 657(2), 736-739(6), 833-835(4), 906-909(4), 926(4), 934-944(12), 957(4), 966-971(6), 994(2)
- in /usr/src/bin/tcsh/tc.sched.c line 190(2), 233(2)

#### Defined typedef's

Char defined in line 53; used 1418 times

- in line 56, 332-338(3), 360, 370, 421, 519, 644, 664, 670-674(3), 700-701(2), 753-761(5), 771-469(6), 494, 561-565(2), 572, 612-613(2), 623-624(2), 692, 744
- in /usr/src/bin/tcsh/ed.chared.c line 53-64(19), 82, 98, 116, 128-130(2), 150-152(2), 167-169(2), 197, 224-226(2), 256-260(3), 266-269(4), 448-451(2), 490, 537, 578, 610, 640, 662, 771, 880, 887, 943, 1003, 1155, 1201, 1243, 1328, 1369, 1385, 1401, 1417, 1446, 1472, 1497, 1588-1591(3), 1609, 1628, 1655, 1682, 1706, 1849, 1965, 2005, 2013
- in /usr/src/bin/tcsh/ed.defns.c line 1482, 1504, 1530
- in /usr/src/bin/tcsh/ed.init.c line 997
- in /usr/src/bin/tcsh/ed.inputl.c line 59-61(2), 72-77(3), 395, 410-414(2), 449, 538
- in /usr/src/bin/tcsh/ed.refresh.c line 51, 57-61(8), 68, 152-154(2), 284, 302-307(3), 348-351(2), 381, 417-422(4), 867, 982
- in /usr/src/bin/tcsh/ed.screen.c line 521-522(2), 541-548(8), 626, 804, 988, 1004-1005(2), 1065, 1357, 1371
- in /usr/src/bin/tcsh/ed.xmap.c line 114-115(2), 123-131(6), 142-149(8), 180-181(2), 193-196(3), 213, 241-242(2), 260, 281, 289-290(2), 341, 351, 368, 457, 471, 491, 579-580(2), 605
- in /usr/src/bin/tcsh/glob.c line 92-108(18), 158, 172, 198, 219-221(2), 234-236(2), 272-275(2), 380, 409-413(2), 430, 436, 489, 497, 516, 554, 561, 581, 600, 662-665(2), 698-702(2)
- in /usr/src/bin/tcsh/sh.c line 90-94(3), 117-122(3), 129, 275, 298, 333, 480, 838, 917-921(3), 931(2), 957-962(2), 1018-1019(2), 1144, 1232, 1258, 1281, 1523-1527(3), 1556, 1602-1604(2), 1685-1692(4)
- in /usr/src/bin/tcsh/sh.dir.c line 48-53(6), 69-72(2), 139, 145(3), 159-162(2), 189, 202, 238, 266-268(2), 281-287(3), 358-360(2), 402-409(4), 416(2), 437-441(3), 479-481(3), 528-531(2), 585, 604-608(2), 634, 691-696(4), 703-706(2), 714, 805-807(2), 823-824(2), 889-891(2), 907-908(2), 942, 961, 970-976(3), 991(2), 1030, 1089
- in /usr/src/bin/tcsh/sh.dol.c line 59, 73-86(9), 99-100(2), 120-124(3), 145, 162-164(2), 214-215(2), 370-375(2), 388-395(3), 523, 585, 626-628(2), 690-697(5)
- in /usr/src/bin/tcsh/sh.err.c line 391
- in /usr/src/bin/tcsh/sh.exec.c line 65, 94-98(4), 104-108(2), 285-295(5), 320, 378, 431, 453, 512, 523-526(3), 584-588(2), 614-615(2), 662
- in /usr/src/bin/tcsh/sh.exp.c line 66-87(22), 94, 117, 140, 163, 186, 209-213(3), 255-260(3), 301-306(3), 331-336(3), 344, 368-373(3), 381, 415-421(3), 457-459(2), 596, 627, 676, 690, 699-700(2)
- in /usr/src/bin/tcsh/sh.file.c line 70-86(27), 182-185(2), 201, 226, 243, 252-259(4), 290, 330-336(4), 387, 420-422(2), 435, 455, 478-488(5), 527-529(3), 587, 593, 612, 627-629(2), 643, 654-656(2), 714-717(2)
- in /usr/src/bin/tcsh/sh.func.c line 65-69(4), 75, 143-146(3), 214-217(2), 240, 255, 269, 293-297(2), 353-356(2), 380-382(2), 407, 427-429(2), 468, 568, 613, 648-649(2), 656-660(4), 753-758(2), 844-848(4), 894, 901, 909-912(3), 1017-1023(3), 1076-1080(3), 1093(2), 1137, 1149-1152(4), 1164, 1173, 1181-1185(4), 1205-1207(2), 1325, 1345, 1374, 1382, 1475, 1489, 1528-1532(2), 1557, 1640-1646(4), 1655
- in /usr/src/bin/tcsh/sh.glob.c line 64-65(2), 83-96(17), 130-135(3), 157-165(6), 221, 232-233(2), 244-253(6), 268-269(2), 280-281(2), 297-301(3), 322-323(2), 360-366(3), 394-396(2), 434-440(3), 494-498(3), 530(2), 537-540(2), 549-551(2), 560-562(2), 586-592(4), 601(2), 633-641(3), 768, 781-782(2), 792-796(3), 850-852(2), 860-864(4), 872
- in /usr/src/bin/tcsh/sh.hist.c line 45-46(2), 62, 69, 130, 143
- in /usr/src/bin/tcsh/sh.lex.c line 55-67(7), 87-91(3), 100, 109, 125-131(3), 243-248(4), 382, 438-439(2), 607-612(3), 624-631(4), 710-715(3), 771, 802, 809, 867-874(4), 940-945(3), 989, 1087, 1139, 1172, 1202, 1208-1209(2), 1254, 1263, 1306, 1314-1318(2), 1325, 1407, 1435-1437(3), 1444(2), 1464, 1472, 1600-1602(4)
- in /usr/src/bin/tcsh/sh.misc.c line 90-92(2), 103, 115, 124-129(4), 136-138(2), 147-149(2), 158-164(6), 212-218(5), 224-226(2), 374-377(2), 386, 401-406(5), 425-429(3), 440, 449
- in /usr/src/bin/tcsh/sh.parse.c line 176, 488, 554(2), 662
- in /usr/src/bin/tcsh/sh.print.c line 48
- in /usr/src/bin/tcsh/sh.proc.c line 148-149(2), 423, 582, 732-734(2), 822, 879, 1206, 1234, 1258, 1279, 1296, 1309, 1321, 1366, 1375, 1532, 1558, 1608
- in /usr/src/bin/tcsh/sh.sem.c line 375, 599, 632
- in /usr/src/bin/tcsh/sh.set.c line 47-58(14), 67-71(4), 110, 137, 154, 167, 203-205(2), 219-221(2), 231, 245-248(3), 332-336(3), 347-354(6), 374-381(3), 420, 442-444(2), 455, 471, 490-492(4), 501-504(2), 524, 552, 576, 593, 646, 653-656(2), 674-676(2)
- in /usr/src/bin/tcsh/sh.time.c line 145-147(2)
- in /usr/src/bin/tcsh/tc.bind.c line 50-54(7), 154-161(3), 200-204(2), 345-354(7), 441, 454, 474, 489-491(2), 568-574(5), 597-601(2), 674, 751-757(3), 776, 864
- in /usr/src/bin/tcsh/tc.const.c line 44-256(177)
- in /usr/src/bin/tcsh/tc.func.c line 53-57(3), 77-79(2), 85-86(2), 130-135(3), 145, 163, 177, 201-207(3), 261, 281, 292, 320, 331, 340, 363, 591, 636, 715, 742-747(3), 837-841(3), 910-916(4), 923-927(4), 935-945(5), 958-961(4), 975(2), 1005-1007(2), 1043-1044(2), 1058-1060(2), 1117-1121(3), 1147-1152(3), 1183, 1205-1206(2)
- in /usr/src/bin/tcsh/tc.os.c line 68-84(8), 111, 132, 171, 195, 207, 286, 330, 411-415(2), 519, 577-579(2), 878, 891, 913, 927-929(2), 957
- in /usr/src/bin/tcsh/tc.prompt.c line 57-66(5), 177, 208
- in /usr/src/bin/tcsh/tc.sched.c line 53, 68-73(2), 192-193(2)
- in /usr/src/bin/tcsh/tc.str.c line 47-52(2), 58(2), 68, 86-92(3), 99(2), 105-109(3), 120, 160, 189-193(3), 200-205(3), 221-223(2), 235-240(3), 261-263(2), 273-278(3), 290, 300, 320, 347-367(10), 375-376(2), 382-384(2), 393-399(4)
- in /usr/src/bin/tcsh/tc.vers.c line 47-50(2)
- in /usr/src/bin/tcsh/tc.who.c line 161, 564
- in /usr/src/bin/tcsh/tw.help.c line 52-53(4), 61-73(7), 117-123(4), 167-168(2), 187-189(2)
- in /usr/src/bin/tcsh/tw.init.c line 93, 100-107(3), 114, 123, 139-140(2), 213, 219, 251, 257-261(3), 276-281(4)
- in /usr/src/bin/tcsh/tw.parse.c line 56(2), 70, 76-94(27), 112, 118-120(3), 239-241(3), 266, 368, 401-406(3), 428, 442-444(2), 460-463(2), 479-483(3), 555, 561, 587, 595, 608-610(2), 617-621(2), 663, 682, 826, 834, 841, 855(2), 861, 921, 937, 980, 1017, 1043-1046(3), 1081, 1100-1102(2), 1116, 1122, 1152-1156(3), 1204-1208(3), 1233-1243(4), 1297-1304(3), 1327, 1379, 1402, 1422, 1439, 1453-1454(2)
- in /usr/src/bin/tcsh/tw.spell.c line 46, 52-58(4), 120, 143-150(7), 159

bool defined in line 225; used 158 times

- in line 301-327(23), 487
- in /usr/src/bin/tcsh/ed.chared.c line 264-265(2), 919, 988, 1083, 1850
- in /usr/src/bin/tcsh/ed.defns.c line 1458-1460(3)
- in /usr/src/bin/tcsh/ed.init.c line 133-136(2)
- in /usr/src/bin/tcsh/ed.inputl.c line 54-56(3)
- in /usr/src/bin/tcsh/ed.screen.c line 421, 767
- in /usr/src/bin/tcsh/sh.c line 52-54(3), 95-112(12), 118-120(4), 976, 999, 1021-1023(2), 1256, 1335, 1526, 1560
- in /usr/src/bin/tcsh/sh.dir.c line 283, 697-699(2)
- in /usr/src/bin/tcsh/sh.dol.c line 217-218(2), 393, 698
- in /usr/src/bin/tcsh/sh.exec.c line 106, 528, 585, 613, 664
- in /usr/src/bin/tcsh/sh.exp.c line 66-75(10), 95, 118, 141, 164, 187, 210, 258, 304, 334, 371, 418
- in /usr/src/bin/tcsh/sh.file.c line 94
- in /usr/src/bin/tcsh/sh.func.c line 55-57(3), 471
- in /usr/src/bin/tcsh/sh.glob.c line 90, 589, 634-639(2)
- in /usr/src/bin/tcsh/sh.hist.c line 44, 91, 177
- in /usr/src/bin/tcsh/sh.lex.c line 59, 67-68(2), 118, 128, 249, 442, 714, 839-842(2), 871, 1003, 1090, 1203, 1270
- in /usr/src/bin/tcsh/sh.parse.c line 149, 490
- in /usr/src/bin/tcsh/sh.print.c line 126
- in /usr/src/bin/tcsh/sh.proc.c line 958, 1520, 1634
- in /usr/src/bin/tcsh/sh.sem.c line 74-78(2), 395
- in /usr/src/bin/tcsh/sh.set.c line 48, 72, 249, 554
- in /usr/src/bin/tcsh/tc.disc.c line 50
- in /usr/src/bin/tcsh/tc.func.c line 49-55(4), 316, 444, 845, 907, 1154
- in /usr/src/bin/tcsh/tc.sched.c line 74
- in /usr/src/bin/tcsh/tw.parse.c line 53, 72, 79-83(2), 288, 404
- in /usr/src/bin/tcsh/tw.spell.c line 59

memalign_t defined in line 230; used 19 times

- in line 239
- in /usr/src/bin/tcsh/tc.alloc.c line 164, 200, 216-221(3), 319, 336-338(2), 383, 420, 430-432(2), 480, 492-495(2), 507-510(2), 530

sigret_t defined in line 70; used 23 times

- in line 73-68(2)
- in /usr/src/bin/tcsh/ed.init.c line 185, 921
- in /usr/src/bin/tcsh/sh.c line 119, 419-421(2), 695, 1215, 1243
- in /usr/src/bin/tcsh/sh.func.c line 1592
- in /usr/src/bin/tcsh/sh.proc.c line 160
- in /usr/src/bin/tcsh/sh.sem.c line 59, 594
- in /usr/src/bin/tcsh/tc.func.c line 489
- in /usr/src/bin/tcsh/tc.os.c line 510
- in /usr/src/bin/tcsh/tc.sig.c line 74, 246-250(2), 391
- in /usr/src/bin/tcsh/tw.help.c line 51, 67, 142

#### Defined macros

ASCII defined in line 434; used 10 times

- in /usr/src/bin/tcsh/ed.chared.c line 540, 642
- in /usr/src/bin/tcsh/ed.defns.c line 1503
- in /usr/src/bin/tcsh/ed.refresh.c line 112
- in /usr/src/bin/tcsh/sh.file.c line 662
- in /usr/src/bin/tcsh/sh.print.c line 140
- in /usr/src/bin/tcsh/tc.bind.c line 108, 787, 807, 824

ATTRIBUTES defined in line 451; used 2 times

- in /usr/src/bin/tcsh/ed.screen.c line 810
- in /usr/src/bin/tcsh/sh.print.c line 134

BOLD defined in line 448; used 11 times

- in /usr/src/bin/tcsh/ed.screen.c line 813(2), 820-824(4), 838
- in /usr/src/bin/tcsh/tc.prompt.c line 337, 346
- in /usr/src/bin/tcsh/tc.who.c line 479, 488

BSDJOBS defined in line 49; used 21 times

- in line 48
- in /usr/src/bin/tcsh/sh.c line 692, 906, 1481
- in /usr/src/bin/tcsh/sh.err.c line 467
- in /usr/src/bin/tcsh/sh.func.c line 1598, 1611
- in /usr/src/bin/tcsh/sh.lex.c line 1369
- in /usr/src/bin/tcsh/sh.proc.c line 218, 297, 440, 573, 1311, 1404, 1436, 1450, 1505, 1704, 1800
- in /usr/src/bin/tcsh/tc.const.c line 167
- in /usr/src/bin/tcsh/tc.func.c line 826

BUFSIZ defined in line 83; used 1 times

- in line 82

CHAR defined in line 452; used 28 times

- in /usr/src/bin/tcsh/ed.inputl.c line 471
- in /usr/src/bin/tcsh/ed.refresh.c line 68, 883, 922, 984
- in /usr/src/bin/tcsh/ed.screen.c line 1009-1012(4)
- in /usr/src/bin/tcsh/glob.c line 73, 347-351(2), 366
- in /usr/src/bin/tcsh/sh.print.c line 135, 161, 185
- in /usr/src/bin/tcsh/tc.bind.c line 79, 364-365(2), 495-501(3), 538, 558-560(2), 583-588(3)

DOALL defined in line 510; used 5 times

- in /usr/src/bin/tcsh/sh.lex.c line 255, 263, 301-306(2), 356

DODOL defined in line 508; used 8 times

- in line 510
- in /usr/src/bin/tcsh/sh.dol.c line 170, 222, 252, 518, 775
- in /usr/src/bin/tcsh/sh.lex.c line 422, 543

DOEXCL defined in line 509; used 13 times

- in line 510
- in /usr/src/bin/tcsh/sh.lex.c line 356, 426, 445, 452-454(2), 495, 508, 543, 561, 574-576(2), 590

FOLDSTD defined in line 98; used 3 times

- in /usr/src/bin/tcsh/sh.c line 1642, 1650
- in /usr/src/bin/tcsh/sh.sem.c line 521

FORKSLEEP defined in line 86; used 1 times

- in /usr/src/bin/tcsh/sh.proc.c line 1674

FSHDIAG defined in line 97; used 6 times

- in /usr/src/bin/tcsh/sh.c line 598, 682-683(2), 1641, 1648
- in /usr/src/bin/tcsh/sh.sem.c line 524

FSHIN defined in line 95; used 4 times

- in /usr/src/bin/tcsh/sh.c line 589-592(2), 1639, 1645

FSHOUT defined in line 96; used 6 times

- in /usr/src/bin/tcsh/sh.c line 595, 684-685(2), 1640, 1646
- in /usr/src/bin/tcsh/sh.sem.c line 522

FSHTTY defined in line 94; used 18 times

- in /usr/src/bin/tcsh/ed.init.c line 605-609(2)
- in /usr/src/bin/tcsh/sh.c line 750-752(2), 909-910(2), 1674-1676(2)
- in /usr/src/bin/tcsh/sh.err.c line 469
- in /usr/src/bin/tcsh/sh.func.c line 1614, 1622-1625(2)
- in /usr/src/bin/tcsh/sh.lex.c line 1371-1373(2)
- in /usr/src/bin/tcsh/sh.misc.c line 253
- in /usr/src/bin/tcsh/sh.proc.c line 575, 1507, 1839

F_AMPERSAND defined in line 543; used 13 times

- in /usr/src/bin/tcsh/sh.func.c line 86-87(2)
- in /usr/src/bin/tcsh/sh.parse.c line 282-287(2)
- in /usr/src/bin/tcsh/sh.proc.c line 750
- in /usr/src/bin/tcsh/sh.sem.c line 100, 212, 220, 494, 539-542(2), 555-556(2)

F_APPEND defined in line 544; used 4 times

- in /usr/src/bin/tcsh/sh.parse.c line 585
- in /usr/src/bin/tcsh/sh.proc.c line 869
- in /usr/src/bin/tcsh/sh.sem.c line 696, 705

F_NICE defined in line 554; used 8 times

- in line 539-541(2)
- in /usr/src/bin/tcsh/sh.proc.c line 1730
- in /usr/src/bin/tcsh/sh.sem.c line 146, 153, 209-212(2), 457

F_NOFORK defined in line 547; used 6 times

- in /usr/src/bin/tcsh/sh.glob.c line 697
- in /usr/src/bin/tcsh/sh.parse.c line 558
- in /usr/src/bin/tcsh/sh.sem.c line 210, 542, 561, 577

F_NOHUP defined in line 555; used 6 times

- in line 539-541(2)
- in /usr/src/bin/tcsh/sh.proc.c line 1728
- in /usr/src/bin/tcsh/sh.sem.c line 159, 212, 455

F_NOINTERRUPT defined in line 548; used 14 times

- in /usr/src/bin/tcsh/sh.parse.c line 282-287(2)
- in /usr/src/bin/tcsh/sh.proc.c line 1653, 1714
- in /usr/src/bin/tcsh/sh.sem.c line 409, 444, 533, 539-542(2), 550, 561, 569, 577, 662

F_OVERWRITE defined in line 551; used 2 times

- in /usr/src/bin/tcsh/sh.parse.c line 594
- in /usr/src/bin/tcsh/sh.sem.c line 704

F_PIPEIN defined in line 545; used 6 times

- in /usr/src/bin/tcsh/sh.proc.c line 864
- in /usr/src/bin/tcsh/sh.sem.c line 216, 481, 539-541(2), 656

F_PIPEOUT defined in line 546; used 9 times

- in /usr/src/bin/tcsh/sh.proc.c line 757, 868
- in /usr/src/bin/tcsh/sh.sem.c line 114, 212, 485, 500, 538-542(2), 715

F_READ defined in line 552; used 5 times

- in /usr/src/bin/tcsh/sh.parse.c line 614, 624
- in /usr/src/bin/tcsh/sh.proc.c line 865
- in /usr/src/bin/tcsh/sh.sem.c line 120, 637

F_REPEAT defined in line 553; used 5 times

- in /usr/src/bin/tcsh/sh.func.c line 336
- in /usr/src/bin/tcsh/sh.sem.c line 107, 220, 589, 635

F_SAVE defined in line 541; used 1 times

- in /usr/src/bin/tcsh/sh.func.c line 335

F_STDERR defined in line 550; used 6 times

- in /usr/src/bin/tcsh/sh.parse.c line 457, 587
- in /usr/src/bin/tcsh/sh.proc.c line 759, 870
- in /usr/src/bin/tcsh/sh.sem.c line 539, 732

F_TIME defined in line 556; used 5 times

- in line 539-541(2)
- in /usr/src/bin/tcsh/sh.proc.c line 751
- in /usr/src/bin/tcsh/sh.sem.c line 166, 210

F_VER defined in line 558; used 8 times

- in line 541, 575
- in /usr/src/bin/tcsh/sh.proc.c line 1736-1737(2)
- in /usr/src/bin/tcsh/sh.sem.c line 171, 177, 464-465(2)

G_APPEND defined in line 296; used 1 times

- in /usr/src/bin/tcsh/sh.set.c line 226

G_ERROR defined in line 294; used 8 times

- in /usr/src/bin/tcsh/sh.c line 1536
- in /usr/src/bin/tcsh/sh.dir.c line 446
- in /usr/src/bin/tcsh/sh.exp.c line 511, 591
- in /usr/src/bin/tcsh/sh.func.c line 370, 392, 1037
- in /usr/src/bin/tcsh/tc.os.c line 132

G_IGNORE defined in line 295; used 2 times

- in /usr/src/bin/tcsh/sh.sem.c line 647, 686

LITERAL defined in line 450; used 9 times

- in /usr/src/bin/tcsh/ed.refresh.c line 170, 178-181(2), 881
- in /usr/src/bin/tcsh/ed.screen.c line 1003, 1011
- in /usr/src/bin/tcsh/tc.prompt.c line 363, 371-374(2)

MAILINTVL defined in line 87; used 3 times

- in /usr/src/bin/tcsh/sh.c line 1568
- in /usr/src/bin/tcsh/tc.who.c line 162, 186

MAXHOSTNAMELEN defined in line 286; used 1 times

- in line 285

MAXNAMLEN defined in line 658; used 2 times

- in line 281, 657

MAXPATHLEN defined in line 654; used 7 times

- in line 653
- in /usr/src/bin/tcsh/glob.c line 160, 175, 201, 275, 304, 413

MAXVARLEN defined in line 651; used 11 times

- in /usr/src/bin/tcsh/sh.dol.c line 390, 492
- in /usr/src/bin/tcsh/sh.func.c line 440
- in /usr/src/bin/tcsh/sh.lex.c line 439, 494, 506, 537
- in /usr/src/bin/tcsh/sh.set.c line 89, 266
- in /usr/src/bin/tcsh/tw.init.c line 280, 286

META defined in line 433; used 19 times

- in line 449
- in /usr/src/bin/tcsh/ed.inputl.c line 421, 430
- in /usr/src/bin/tcsh/glob.c line 72, 140-146(7)
- in /usr/src/bin/tcsh/sh.print.c line 173-174(2)
- in /usr/src/bin/tcsh/sh.proc.c line 612
- in /usr/src/bin/tcsh/tc.bind.c line 105, 178, 335, 805, 822

NODE_AND defined in line 535; used 3 times

- in /usr/src/bin/tcsh/sh.parse.c line 278, 411
- in /usr/src/bin/tcsh/sh.sem.c line 572

NODE_COMMAND defined in line 530; used 5 times

- in /usr/src/bin/tcsh/sh.exp.c line 461
- in /usr/src/bin/tcsh/sh.glob.c line 647
- in /usr/src/bin/tcsh/sh.parse.c line 653
- in /usr/src/bin/tcsh/sh.sem.c line 137, 186

NODE_LIST defined in line 533; used 3 times

- in /usr/src/bin/tcsh/sh.parse.c line 277, 289, 332

NODE_OR defined in line 534; used 2 times

- in /usr/src/bin/tcsh/sh.parse.c line 279, 372

NODE_PAREN defined in line 531; used 4 times

- in /usr/src/bin/tcsh/sh.parse.c line 281, 647
- in /usr/src/bin/tcsh/sh.sem.c line 219, 514

NODE_PIPE defined in line 532; used 1 times

- in /usr/src/bin/tcsh/sh.parse.c line 459

NOSTR defined in line 744; used 36 times

- in /usr/src/bin/tcsh/ed.chared.c line 405
- in /usr/src/bin/tcsh/sh.c line 312-313(2), 1531
- in /usr/src/bin/tcsh/sh.dir.c line 165, 193, 207, 218, 365-366(2), 372, 512-517(2), 535-537(2), 568, 640-642(2)
- in /usr/src/bin/tcsh/sh.dol.c line 129, 713, 810
- in /usr/src/bin/tcsh/sh.exec.c line 353
- in /usr/src/bin/tcsh/sh.exp.c line 466
- in /usr/src/bin/tcsh/sh.func.c line 302, 313, 348, 365, 518, 608, 747, 864
- in /usr/src/bin/tcsh/sh.glob.c line 602, 785
- in /usr/src/bin/tcsh/tc.func.c line 610
- in /usr/src/bin/tcsh/tc.os.c line 134
- in /usr/src/bin/tcsh/tc.sched.c line 81

POSIX defined in line 45; used 52 times

- in line 44, 108, 124, 144, 348
- in /usr/src/bin/tcsh/ed.init.c line 47, 210, 220, 230, 256, 284, 444, 597, 614, 628, 634, 767, 938, 1039, 1052-1056(2), 1081-1082(2)
- in /usr/src/bin/tcsh/ed.inputl.c line 453, 490
- in /usr/src/bin/tcsh/sh.init.c line 291, 627
- in /usr/src/bin/tcsh/sh.lex.c line 1333, 1351, 1488
- in /usr/src/bin/tcsh/sh.misc.c line 171
- in /usr/src/bin/tcsh/sh.print.c line 88
- in /usr/src/bin/tcsh/sh.proc.c line 54, 63, 236, 361, 1160
- in /usr/src/bin/tcsh/sh.time.c line 62, 122, 268, 294, 330, 374, 390, 598, 606, 614
- in /usr/src/bin/tcsh/tc.disc.c line 54, 76, 99
- in /usr/src/bin/tcsh/tc.sig.c line 52, 61

QUOTE defined in line 445; used 53 times

- in /usr/src/bin/tcsh/glob.c line 70, 310-312(2), 391
- in /usr/src/bin/tcsh/sh.dol.c line 182, 259(2), 270-275(2), 301, 337, 344-348(2), 665, 784-786(2)
- in /usr/src/bin/tcsh/sh.exec.c line 626(2), 637, 643
- in /usr/src/bin/tcsh/sh.func.c line 981, 987-991(2)
- in /usr/src/bin/tcsh/sh.glob.c line 646(2)
- in /usr/src/bin/tcsh/sh.lex.c line 298, 318-323(2), 330, 352, 394, 448, 955
- in /usr/src/bin/tcsh/sh.print.c line 135-136(2)
- in /usr/src/bin/tcsh/sh.proc.c line 403, 415
- in /usr/src/bin/tcsh/sh.sem.c line 105(2)
- in /usr/src/bin/tcsh/tc.const.c line 99-101(2), 200
- in /usr/src/bin/tcsh/tc.func.c line 109, 291-292(2)
- in /usr/src/bin/tcsh/tc.str.c line 136
- in /usr/src/bin/tcsh/tw.parse.c line 182, 191, 198, 207, 217-219(2), 235

SAVE defined in line 57; used 20 times

- in /usr/src/bin/tcsh/sh.c line 149-159(4), 234-239(3), 305-310(2), 324-326(2), 403, 474, 583, 1700
- in /usr/src/bin/tcsh/sh.dir.c line 96
- in /usr/src/bin/tcsh/tc.os.c line 164
- in /usr/src/bin/tcsh/tc.str.c line 61
- in /usr/src/bin/tcsh/tc.vers.c line 394-396(2)

SIGN_EXTEND_CHAR defined in line 276; used 1 times

- in /usr/src/bin/tcsh/sh.dol.c line 422

STANDOUT defined in line 449; used 14 times

- in /usr/src/bin/tcsh/ed.screen.c line 815(2), 830-832(2), 842-846(4), 852
- in /usr/src/bin/tcsh/sh.print.c line 174
- in /usr/src/bin/tcsh/tc.prompt.c line 334, 343
- in /usr/src/bin/tcsh/tc.who.c line 476, 485

Strcat defined in line 730; used 19 times

- in /usr/src/bin/tcsh/ed.screen.c line 1391-1393(2), 1409-1411(2)
- in /usr/src/bin/tcsh/sh.c line 842, 1151
- in /usr/src/bin/tcsh/sh.dir.c line 722-723(2), 1095
- in /usr/src/bin/tcsh/sh.file.c line 351
- in /usr/src/bin/tcsh/sh.glob.c line 225
- in /usr/src/bin/tcsh/sh.lex.c line 620, 921, 932
- in /usr/src/bin/tcsh/sh.set.c line 685-688(2)
- in /usr/src/bin/tcsh/tw.parse.c line 273, 955, 1229

Strchr defined in line 728; used 17 times

- in /usr/src/bin/tcsh/ed.inputl.c line 194, 557
- in /usr/src/bin/tcsh/ed.screen.c line 1392, 1410
- in /usr/src/bin/tcsh/glob.c line 75, 336
- in /usr/src/bin/tcsh/sh.dir.c line 448
- in /usr/src/bin/tcsh/sh.file.c line 495, 678, 696
- in /usr/src/bin/tcsh/sh.glob.c line 260, 300
- in /usr/src/bin/tcsh/tw.parse.c line 511-516(2), 641-645(3)

Strcmp defined in line 735; used 24 times

- in line 291
- in /usr/src/bin/tcsh/ed.inputl.c line 188-192(3), 267-274(4), 284-285(2)
- in /usr/src/bin/tcsh/sh.func.c line 114, 625, 853-854(3)
- in /usr/src/bin/tcsh/sh.glob.c line 893
- in /usr/src/bin/tcsh/sh.set.c line 477, 533
- in /usr/src/bin/tcsh/tc.func.c line 764, 776, 1055, 1075
- in /usr/src/bin/tcsh/tc.os.c line 177
- in /usr/src/bin/tcsh/tw.init.c line 81

Strcpy defined in line 732; used 54 times

- in /usr/src/bin/tcsh/ed.chared.c line 412
- in /usr/src/bin/tcsh/ed.inputl.c line 190-193(2), 203
- in /usr/src/bin/tcsh/ed.screen.c line 1384, 1402
- in /usr/src/bin/tcsh/sh.c line 841, 1150, 1159, 1535, 1611, 1624
- in /usr/src/bin/tcsh/sh.dir.c line 288, 721, 781, 859, 957, 993, 999, 1050, 1094
- in /usr/src/bin/tcsh/sh.dol.c line 445
- in /usr/src/bin/tcsh/sh.file.c line 259, 339-349(3)
- in /usr/src/bin/tcsh/sh.glob.c line 224
- in /usr/src/bin/tcsh/sh.lex.c line 617-618(2), 744, 790, 804, 829
- in /usr/src/bin/tcsh/sh.proc.c line 895-900(2)
- in /usr/src/bin/tcsh/sh.sem.c line 106
- in /usr/src/bin/tcsh/tc.func.c line 917, 924-928(2), 936-941(2), 959
- in /usr/src/bin/tcsh/tc.prompt.c line 150, 221
- in /usr/src/bin/tcsh/tw.parse.c line 268, 808, 1057, 1136-1141(2), 1211, 1242, 1303
- in /usr/src/bin/tcsh/tw.spell.c line 156-161(2)

Strend defined in line 740; used 5 times

- in /usr/src/bin/tcsh/ed.chared.c line 414
- in /usr/src/bin/tcsh/sh.lex.c line 805, 922, 962, 973

Strlen defined in line 734; used 59 times

- in /usr/src/bin/tcsh/ed.chared.c line 582, 751, 803, 864, 969, 1039
- in /usr/src/bin/tcsh/ed.refresh.c line 245
- in /usr/src/bin/tcsh/ed.screen.c line 1387, 1405
- in /usr/src/bin/tcsh/sh.c line 483
- in /usr/src/bin/tcsh/sh.dir.c line 220-222(3), 242, 286, 323, 719(2), 934, 974-976(2), 991
- in /usr/src/bin/tcsh/sh.file.c line 298, 313, 392, 511, 528
- in /usr/src/bin/tcsh/sh.func.c line 724, 735
- in /usr/src/bin/tcsh/sh.glob.c line 114, 147
- in /usr/src/bin/tcsh/sh.lex.c line 611(2), 801, 915, 925-926(2)
- in /usr/src/bin/tcsh/sh.proc.c line 890
- in /usr/src/bin/tcsh/sh.set.c line 681(2)
- in /usr/src/bin/tcsh/tc.func.c line 167, 265, 913-915(2), 1097, 1125
- in /usr/src/bin/tcsh/tc.os.c line 123, 136, 880
- in /usr/src/bin/tcsh/tc.prompt.c line 227
- in /usr/src/bin/tcsh/tw.help.c line 120
- in /usr/src/bin/tcsh/tw.init.c line 134, 264
- in /usr/src/bin/tcsh/tw.parse.c line 276, 724, 848-850(2), 1336, 1349

Strncat defined in line 731; never used
Strncmp defined in line 736; used 7 times

- in /usr/src/bin/tcsh/ed.chared.c line 339, 889
- in /usr/src/bin/tcsh/sh.c line 278
- in /usr/src/bin/tcsh/sh.dir.c line 939
- in /usr/src/bin/tcsh/tc.func.c line 1125, 1131
- in /usr/src/bin/tcsh/tc.prompt.c line 227

Strncpy defined in line 733; used 6 times

- in /usr/src/bin/tcsh/ed.chared.c line 903
- in /usr/src/bin/tcsh/ed.refresh.c line 234
- in /usr/src/bin/tcsh/ed.screen.c line 1375, 1388, 1406
- in /usr/src/bin/tcsh/tw.parse.c line 315

Strrchr defined in line 729; used 9 times

- in /usr/src/bin/tcsh/sh.c line 275
- in /usr/src/bin/tcsh/sh.dir.c line 311, 964
- in /usr/src/bin/tcsh/sh.file.c line 424
- in /usr/src/bin/tcsh/tw.parse.c line 246, 642, 921, 1017, 1104

Strsave defined in line 739; used 98 times

- in line 54
- in /usr/src/bin/tcsh/ed.chared.c line 944, 1004
- in /usr/src/bin/tcsh/ed.init.c line 1018
- in /usr/src/bin/tcsh/ed.xmap.c line 317
- in /usr/src/bin/tcsh/sh.c line 282, 291, 301, 339-345(3), 382, 395, 405, 649-652(3), 938, 1695, 1725
- in /usr/src/bin/tcsh/sh.dir.c line 129, 147, 276, 350, 370, 454, 490, 498, 541, 725
- in /usr/src/bin/tcsh/sh.dol.c line 135
- in /usr/src/bin/tcsh/sh.err.c line 466
- in /usr/src/bin/tcsh/sh.exec.c line 132, 395
- in /usr/src/bin/tcsh/sh.exp.c line 476, 491, 510, 533, 591, 603, 614
- in /usr/src/bin/tcsh/sh.func.c line 175-178(2), 454, 562
- in /usr/src/bin/tcsh/sh.glob.c line 127, 149, 227, 277, 376, 387, 448, 458, 470, 483, 624, 784
- in /usr/src/bin/tcsh/sh.hist.c line 101
- in /usr/src/bin/tcsh/sh.lex.c line 222, 375, 859, 887, 934-936(2), 952, 961-968(3), 977-982(3)
- in /usr/src/bin/tcsh/sh.misc.c line 167
- in /usr/src/bin/tcsh/sh.parse.c line 607, 629, 639
- in /usr/src/bin/tcsh/sh.proc.c line 762
- in /usr/src/bin/tcsh/sh.sem.c line 129
- in /usr/src/bin/tcsh/sh.set.c line 129-131(2), 169, 176, 286, 296, 339, 406, 541, 648
- in /usr/src/bin/tcsh/tc.func.c line 224-229(2), 235, 481, 649, 658, 1095-1096(2), 1207
- in /usr/src/bin/tcsh/tc.sched.c line 234
- in /usr/src/bin/tcsh/tw.help.c line 102

Strspl defined in line 738; used 17 times

- in /usr/src/bin/tcsh/sh.c line 408, 962
- in /usr/src/bin/tcsh/sh.dir.c line 326
- in /usr/src/bin/tcsh/sh.exec.c line 207, 232, 536, 675, 681-682(2)
- in /usr/src/bin/tcsh/sh.func.c line 1160-1162(2), 1168-1169(2)
- in /usr/src/bin/tcsh/sh.glob.c line 378-380(2)
- in /usr/src/bin/tcsh/sh.parse.c line 178
- in /usr/src/bin/tcsh/tw.parse.c line 1472

Strstr defined in line 741; used 2 times

- in /usr/src/bin/tcsh/ed.screen.c line 1383, 1401

TRIM defined in line 446; used 47 times

- in /usr/src/bin/tcsh/sh.dol.c line 259, 337, 348, 401, 665, 730, 778, 820
- in /usr/src/bin/tcsh/sh.exec.c line 626
- in /usr/src/bin/tcsh/sh.glob.c line 555, 688, 735, 799, 829-834(3), 840
- in /usr/src/bin/tcsh/sh.misc.c line 433
- in /usr/src/bin/tcsh/sh.print.c line 134, 155
- in /usr/src/bin/tcsh/sh.sem.c line 105
- in /usr/src/bin/tcsh/tc.bind.c line 69-73(4)
- in /usr/src/bin/tcsh/tc.func.c line 110-114(3), 295
- in /usr/src/bin/tcsh/tw.parse.c line 431(2), 453(2), 565(2), 1381(2), 1394(2)
- in /usr/src/bin/tcsh/tw.spell.c line 122-128(6), 152(2)

T_BREAK defined in line 584; used 7 times

- in /usr/src/bin/tcsh/sh.func.c line 365, 518, 668, 695-700(2), 864
- in /usr/src/bin/tcsh/sh.init.c line 174

T_BRKSW defined in line 585; used 4 times

- in /usr/src/bin/tcsh/sh.func.c line 608, 705-710(2)
- in /usr/src/bin/tcsh/sh.init.c line 175

T_CASE defined in line 586; used 1 times

- in /usr/src/bin/tcsh/sh.init.c line 176

T_DEFAULT defined in line 587; used 1 times

- in /usr/src/bin/tcsh/sh.init.c line 177

T_ELSE defined in line 588; used 4 times

- in /usr/src/bin/tcsh/sh.func.c line 348, 683, 689
- in /usr/src/bin/tcsh/sh.init.c line 178

T_END defined in line 589; used 1 times

- in /usr/src/bin/tcsh/sh.init.c line 179

T_ENDIF defined in line 590; used 1 times

- in /usr/src/bin/tcsh/sh.init.c line 180

T_ENDSW defined in line 591; used 1 times

- in /usr/src/bin/tcsh/sh.init.c line 181

T_EXIT defined in line 592; used 1 times

- in /usr/src/bin/tcsh/sh.init.c line 182

T_FOREACH defined in line 593; used 2 times

- in /usr/src/bin/tcsh/sh.func.c line 460
- in /usr/src/bin/tcsh/sh.init.c line 183

T_GOTO defined in line 594; used 8 times

- in /usr/src/bin/tcsh/sh.c line 1302
- in /usr/src/bin/tcsh/sh.func.c line 362, 370, 664, 715-725(3)
- in /usr/src/bin/tcsh/sh.init.c line 184

T_IF defined in line 595; used 5 times

- in /usr/src/bin/tcsh/sh.func.c line 313, 676, 683, 689
- in /usr/src/bin/tcsh/sh.init.c line 185

T_LABEL defined in line 596; used 1 times

- in /usr/src/bin/tcsh/sh.init.c line 186

T_LET defined in line 597; used 1 times

- in /usr/src/bin/tcsh/sh.init.c line 173

T_SET defined in line 598; used 1 times

- in /usr/src/bin/tcsh/sh.init.c line 187

T_SWITCH defined in line 599; used 8 times

- in /usr/src/bin/tcsh/sh.func.c line 392, 705-710(2), 720, 726-731(2), 743
- in /usr/src/bin/tcsh/sh.init.c line 188

T_TEST defined in line 600; never used
T_THEN defined in line 601; never used
T_WHILE defined in line 602; used 2 times

- in /usr/src/bin/tcsh/sh.func.c line 493
- in /usr/src/bin/tcsh/sh.init.c line 189

UNDER defined in line 447; used 13 times

- in /usr/src/bin/tcsh/ed.screen.c line 814(2), 834-836(2), 856-860(4), 866
- in /usr/src/bin/tcsh/tc.prompt.c line 340, 349
- in /usr/src/bin/tcsh/tc.who.c line 482, 491

WORD_CHARS defined in line 773; used 1 times

- in /usr/src/bin/tcsh/sh.c line 159

_BSD defined in line 134; used 1 times

- in line 128

_BSD_INCLUDES defined in line 135; used 1 times

- in line 129

_GNU_STDLIB_H defined in line 163; never used
__P defined in line 790; used 304 times

- in line 786
- in /usr/src/bin/tcsh/ed.chared.c line 49-64(15)
- in /usr/src/bin/tcsh/ed.defns.c line 45-129(81)
- in /usr/src/bin/tcsh/ed.init.c line 141
- in /usr/src/bin/tcsh/ed.inputl.c line 61-62(2)
- in /usr/src/bin/tcsh/ed.refresh.c line 54-62(9)
- in /usr/src/bin/tcsh/ed.screen.c line 423-424(2)
- in /usr/src/bin/tcsh/ed.xmap.c line 127-131(5)
- in /usr/src/bin/tcsh/glob.c line 95-108(10), 268
- in /usr/src/bin/tcsh/sh.c line 117-122(6)
- in /usr/src/bin/tcsh/sh.dir.c line 48-53(6)
- in /usr/src/bin/tcsh/sh.dol.c line 79-89(11)
- in /usr/src/bin/tcsh/sh.exec.c line 96-98(3)
- in /usr/src/bin/tcsh/sh.exp.c line 66-82(15)
- in /usr/src/bin/tcsh/sh.file.c line 68-86(19)
- in /usr/src/bin/tcsh/sh.func.c line 61-69(9)
- in /usr/src/bin/tcsh/sh.glob.c line 83-90(8)
- in /usr/src/bin/tcsh/sh.hist.c line 48-50(3)
- in /usr/src/bin/tcsh/sh.lex.c line 55-68(14)
- in /usr/src/bin/tcsh/sh.misc.c line 45
- in /usr/src/bin/tcsh/sh.parse.c line 48-57(10)
- in /usr/src/bin/tcsh/sh.print.c line 52
- in /usr/src/bin/tcsh/sh.proc.c line 142-151(10)
- in /usr/src/bin/tcsh/sh.sem.c line 59-62(3)
- in /usr/src/bin/tcsh/sh.set.c line 50-59(10)
- in /usr/src/bin/tcsh/sh.time.c line 63-68(3)
- in /usr/src/bin/tcsh/tc.alloc.c line 142-143(2)
- in /usr/src/bin/tcsh/tc.bind.c line 47-59(13)
- in /usr/src/bin/tcsh/tc.func.c line 53-57(5)
- in /usr/src/bin/tcsh/tc.os.c line 734
- in /usr/src/bin/tcsh/tc.printf.c line 56-57(3)
- in /usr/src/bin/tcsh/tc.who.c line 103-105(2)
- in /usr/src/bin/tcsh/tw.help.c line 51-53(3)
- in /usr/src/bin/tcsh/tw.init.c line 77
- in /usr/src/bin/tcsh/tw.parse.c line 81-94(14), 1004

_h_sh defined in line 38; used 1 times

- in line 37

adrof defined in line 635; used 71 times

- in /usr/src/bin/tcsh/ed.inputl.c line 74-75(2), 256, 296
- in /usr/src/bin/tcsh/ed.screen.c line 1149-1152(2)
- in /usr/src/bin/tcsh/sh.c line 615, 766, 1182-1187(2), 1428, 1562
- in /usr/src/bin/tcsh/sh.dir.c line 279, 478, 536, 581, 778, 855-856(2), 1014, 1092
- in /usr/src/bin/tcsh/sh.dol.c line 446, 478, 497
- in /usr/src/bin/tcsh/sh.exec.c line 137, 352, 433, 452, 531, 666
- in /usr/src/bin/tcsh/sh.file.c line 377, 719
- in /usr/src/bin/tcsh/sh.glob.c line 405, 442, 506
- in /usr/src/bin/tcsh/sh.hist.c line 206
- in /usr/src/bin/tcsh/sh.lex.c line 1379
- in /usr/src/bin/tcsh/sh.proc.c line 313, 354, 413, 581, 614
- in /usr/src/bin/tcsh/sh.sem.c line 704
- in /usr/src/bin/tcsh/sh.set.c line 133, 234, 323, 556-570(7), 664
- in /usr/src/bin/tcsh/sh.time.c line 308
- in /usr/src/bin/tcsh/tc.func.c line 719, 751
- in /usr/src/bin/tcsh/tc.prompt.c line 113, 142
- in /usr/src/bin/tcsh/tc.who.c line 175, 437, 496, 569
- in /usr/src/bin/tcsh/tw.parse.c line 245, 465, 630, 936, 1171, 1250, 1455, 1462

blk2short defined in line 723; used 3 times

- in /usr/src/bin/tcsh/sh.c line 157, 643
- in /usr/src/bin/tcsh/sh.glob.c line 429

btell defined in line 478; used 8 times

- in /usr/src/bin/tcsh/sh.func.c line 366, 453, 525, 533, 865, 875
- in /usr/src/bin/tcsh/sh.lex.c line 148, 1574

calloc defined in line 244; used 2 times

- in line 171, 255

const defined in line 791; never used
dirent defined in line 211; never used
eq defined in line 291; used 95 times

- in /usr/src/bin/tcsh/sh.c line 167, 1530
- in /usr/src/bin/tcsh/sh.dir.c line 218, 241
- in /usr/src/bin/tcsh/sh.dol.c line 743
- in /usr/src/bin/tcsh/sh.exec.c line 229, 546, 651, 674
- in /usr/src/bin/tcsh/sh.exp.c line 102, 125, 148, 171, 194, 231-235(2), 269, 425, 435, 445, 456, 472
- in /usr/src/bin/tcsh/sh.func.c line 101, 169, 229(2), 304, 684, 715, 725-726(2), 934, 1038-1046(4), 1061-1067(5), 1103-1109(4), 1352, 1535
- in /usr/src/bin/tcsh/sh.parse.c line 124, 175, 267, 586, 593
- in /usr/src/bin/tcsh/sh.proc.c line 397, 578, 585, 601, 1079, 1104, 1215, 1351, 1536-1541(4), 1654
- in /usr/src/bin/tcsh/sh.sem.c line 138, 157, 164, 172, 410
- in /usr/src/bin/tcsh/sh.set.c line 102, 109, 132-136(2), 142-152(4), 166, 184-197(5), 322, 686
- in /usr/src/bin/tcsh/tc.os.c line 915-917(2)
- in /usr/src/bin/tcsh/tc.who.c line 352-361(7)

fblocks defined in line 475; used 9 times

- in /usr/src/bin/tcsh/sh.c line 1077, 1115
- in /usr/src/bin/tcsh/sh.lex.c line 1434-1436(2), 1444-1445(2), 1458, 1544, 1601

fbobp defined in line 473; used 5 times

- in /usr/src/bin/tcsh/sh.lex.c line 1411-1412(2), 1418, 1428, 1603

fbuf defined in line 476; used 18 times

- in /usr/src/bin/tcsh/sh.c line 1076, 1116-1117(2)
- in /usr/src/bin/tcsh/sh.lex.c line 1425-1428(2), 1439-1444(5), 1463, 1472, 1523, 1540-1541(3), 1600-1602(2)

feobp defined in line 474; used 16 times

- in /usr/src/bin/tcsh/sh.c line 1077, 1413
- in /usr/src/bin/tcsh/sh.func.c line 667
- in /usr/src/bin/tcsh/sh.lex.c line 1411-1418(4), 1426, 1449-1451(3), 1458, 1519, 1543, 1587, 1603

free defined in line 242; used 2 times

- in line 170, 256

fseekp defined in line 472; used 22 times

- in line 478
- in /usr/src/bin/tcsh/sh.c line 1077, 1413
- in /usr/src/bin/tcsh/sh.func.c line 667
- in /usr/src/bin/tcsh/sh.lex.c line 1411-1415(5), 1428-1433(3), 1449, 1458, 1523-1524(2), 1537-1542(2), 1553, 1578, 1587, 1603

getexit defined in line 418; used 9 times

- in /usr/src/bin/tcsh/sh.c line 1059, 1343
- in /usr/src/bin/tcsh/sh.func.c line 1696
- in /usr/src/bin/tcsh/sh.parse.c line 77
- in /usr/src/bin/tcsh/tc.func.c line 446, 642, 1178
- in /usr/src/bin/tcsh/tw.help.c line 91
- in /usr/src/bin/tcsh/tw.parse.c line 376

getpgrp defined in line 150; used 2 times

- in line 153-155(2)

malloc defined in line 241; used 2 times

- in line 169, 253

realloc defined in line 243; used 2 times

- in line 172, 254

reset defined in line 416; used 10 times

- in /usr/src/bin/tcsh/sh.c line 1308, 1376, 1469, 1476
- in /usr/src/bin/tcsh/sh.err.c line 471
- in /usr/src/bin/tcsh/sh.lex.c line 1308, 1384, 1391
- in /usr/src/bin/tcsh/sh.parse.c line 81, 190

resexit defined in line 419; used 11 times

- in /usr/src/bin/tcsh/sh.c line 1132, 1375, 1518
- in /usr/src/bin/tcsh/sh.func.c line 1730
- in /usr/src/bin/tcsh/sh.parse.c line 80, 86
- in /usr/src/bin/tcsh/tc.func.c line 462, 706, 1221
- in /usr/src/bin/tcsh/tw.help.c line 94
- in /usr/src/bin/tcsh/tw.parse.c line 379

setexit defined in line 415; used 10 times

- in /usr/src/bin/tcsh/sh.c line 783, 1100, 1349
- in /usr/src/bin/tcsh/sh.func.c line 1699
- in /usr/src/bin/tcsh/sh.parse.c line 78
- in /usr/src/bin/tcsh/tc.func.c line 456, 673, 1179
- in /usr/src/bin/tcsh/tw.help.c line 92
- in /usr/src/bin/tcsh/tw.parse.c line 377

setname defined in line 750; used 28 times

- in /usr/src/bin/tcsh/ed.screen.c line 563, 637, 1199
- in /usr/src/bin/tcsh/sh.dol.c line 132, 377, 733, 790
- in /usr/src/bin/tcsh/sh.exec.c line 121, 154, 264, 272
- in /usr/src/bin/tcsh/sh.func.c line 132, 230, 307, 826
- in /usr/src/bin/tcsh/sh.glob.c line 370, 410, 478
- in /usr/src/bin/tcsh/sh.misc.c line 443
- in /usr/src/bin/tcsh/sh.proc.c line 1353
- in /usr/src/bin/tcsh/sh.sem.c line 142, 174
- in /usr/src/bin/tcsh/sh.set.c line 587
- in /usr/src/bin/tcsh/tc.os.c line 351, 439, 893, 931, 965

setpgrp defined in line 151; used 2 times

- in line 154-156(2)

short2blk defined in line 724; used 6 times

- in /usr/src/bin/tcsh/sh.c line 158
- in /usr/src/bin/tcsh/sh.exec.c line 298, 368
- in /usr/src/bin/tcsh/sh.func.c line 1165, 1174, 1195

short2qstr defined in line 726; used 1 times

- in /usr/src/bin/tcsh/sh.glob.c line 407

short2str defined in line 725; used 201 times

- in /usr/src/bin/tcsh/ed.chared.c line 909, 947, 1007
- in /usr/src/bin/tcsh/ed.refresh.c line 158-159(2), 228, 316-317(2), 330-331(2), 340-341(2), 362, 375, 591-601(10)
- in /usr/src/bin/tcsh/ed.screen.c line 654, 737, 752-756(2)
- in /usr/src/bin/tcsh/ed.xmap.c line 480, 545, 589-598(3)
- in /usr/src/bin/tcsh/sh.c line 843, 960-963(2), 1152, 1537, 1574, 1589
- in /usr/src/bin/tcsh/sh.dir.c line 82, 107, 178, 230, 242-244(2), 368, 381, 450, 466, 472, 487, 496, 502, 539, 558, 576, 656, 779, 857, 949, 958, 1096, 1112-1115(2)
- in /usr/src/bin/tcsh/sh.dol.c line 132, 377, 500-504(2), 701, 744, 758, 800, 822, 829
- in /usr/src/bin/tcsh/sh.exec.c line 121, 142, 154, 264, 299, 369, 465, 528, 594-597(2), 654, 664, 690
- in /usr/src/bin/tcsh/sh.exp.c line 505, 515-523(3), 529-531(2)
- in /usr/src/bin/tcsh/sh.file.c line 260, 266, 310, 346, 402, 408, 505
- in /usr/src/bin/tcsh/sh.func.c line 82, 88-91(2), 230, 260, 274-275(2), 307, 826, 1032, 1142-1147(2), 1384, 1414-1416(2)
- in /usr/src/bin/tcsh/sh.glob.c line 110, 370, 478, 890-891(2)
- in /usr/src/bin/tcsh/sh.hist.c line 223
- in /usr/src/bin/tcsh/sh.lex.c line 196, 960, 1196, 1247
- in /usr/src/bin/tcsh/sh.misc.c line 107, 443
- in /usr/src/bin/tcsh/sh.proc.c line 305, 368, 1067, 1344, 1353, 1414-1417(2), 1433, 1444, 1547
- in /usr/src/bin/tcsh/sh.sem.c line 648, 687
- in /usr/src/bin/tcsh/sh.set.c line 587, 848
- in /usr/src/bin/tcsh/sh.time.c line 360
- in /usr/src/bin/tcsh/tc.bind.c line 307, 479-483(2), 775, 835
- in /usr/src/bin/tcsh/tc.func.c line 271, 277, 290, 326, 347-348(2), 381, 426, 721, 820, 896, 1085, 1175
- in /usr/src/bin/tcsh/tc.os.c line 118, 125, 137, 215, 339, 437, 466, 473, 548, 586, 884, 893, 920, 931-935(2), 965-967(2)
- in /usr/src/bin/tcsh/tc.sched.c line 99, 133-137(2)
- in /usr/src/bin/tcsh/tc.str.c line 80
- in /usr/src/bin/tcsh/tc.who.c line 444
- in /usr/src/bin/tcsh/tw.help.c line 106, 124
- in /usr/src/bin/tcsh/tw.parse.c line 231-232(2), 670-676(4), 780, 1245, 1305, 1353-1357(2), 1407-1408(2), 1468, 1489
- in /usr/src/bin/tcsh/tw.spell.c line 160

sigret_t defined in line 68; never used
str2short defined in line 722; used 90 times

- in line 54
- in /usr/src/bin/tcsh/ed.init.c line 1018
- in /usr/src/bin/tcsh/ed.refresh.c line 247
- in /usr/src/bin/tcsh/ed.screen.c line 793-797(2), 1374
- in /usr/src/bin/tcsh/sh.c line 167, 306, 357-360(2), 371
- in /usr/src/bin/tcsh/sh.dir.c line 121-124(2), 454, 781, 859
- in /usr/src/bin/tcsh/sh.dol.c line 504
- in /usr/src/bin/tcsh/sh.exec.c line 482, 651
- in /usr/src/bin/tcsh/sh.file.c line 349, 446-449(2)
- in /usr/src/bin/tcsh/sh.func.c line 114, 625, 668, 1331
- in /usr/src/bin/tcsh/sh.proc.c line 1351
- in /usr/src/bin/tcsh/tc.func.c line 1096
- in /usr/src/bin/tcsh/tc.vers.c line 54-59(2), 65-73(3), 80-96(5), 102, 108-133(6), 139-151(4), 157-192(8), 199-204(2), 210, 218-220(2), 228, 234-239(2), 246-248(2), 257-269(5), 277-292(4), 307, 313
- in /usr/src/bin/tcsh/tc.who.c line 358-360(3)
- in /usr/src/bin/tcsh/tw.help.c line 99-101(2), 123
- in /usr/src/bin/tcsh/tw.init.c line 153
- in /usr/src/bin/tcsh/tw.parse.c line 1136-1141(2), 1476-1477(2), 1495

strchr defined in line 219; used 3 times

- in line 707
- in /usr/src/bin/tcsh/sh.sem.c line 140
- in /usr/src/bin/tcsh/tc.who.c line 534

strrchr defined in line 220; used 3 times

- in line 708
- in /usr/src/bin/tcsh/tc.func.c line 403, 411

t_dcar defined in line 569; used 19 times

- in /usr/src/bin/tcsh/sh.exp.c line 463
- in /usr/src/bin/tcsh/sh.parse.c line 291, 333-336(3), 373, 412, 460, 685
- in /usr/src/bin/tcsh/sh.proc.c line 846
- in /usr/src/bin/tcsh/sh.sem.c line 538-540(2), 549-555(4), 568-570(3)

t_dcdr defined in line 571; used 20 times

- in /usr/src/bin/tcsh/sh.exp.c line 463
- in /usr/src/bin/tcsh/sh.parse.c line 292, 334-336(3), 374, 413, 463, 685
- in /usr/src/bin/tcsh/sh.proc.c line 861
- in /usr/src/bin/tcsh/sh.sem.c line 541-545(2), 555-562(5), 575-578(3)

t_dlef defined in line 568; used 9 times

- in /usr/src/bin/tcsh/sh.glob.c line 649
- in /usr/src/bin/tcsh/sh.parse.c line 626-629(2), 672-677(2)
- in /usr/src/bin/tcsh/sh.proc.c line 864-866(2)
- in /usr/src/bin/tcsh/sh.sem.c line 122, 638

t_drit defined in line 570; used 8 times

- in /usr/src/bin/tcsh/sh.glob.c line 650
- in /usr/src/bin/tcsh/sh.parse.c line 604-607(2), 673-678(2)
- in /usr/src/bin/tcsh/sh.proc.c line 868-873(2)
- in /usr/src/bin/tcsh/sh.sem.c line 683

v_left defined in line 629; used 29 times

- in /usr/src/bin/tcsh/sh.set.c line 461(2), 476-479(2), 543, 584, 620-628(4), 699-701(2), 707-708(3), 764-769(2), 775, 794, 806-808(2), 842-843(2)
- in /usr/src/bin/tcsh/tw.init.c line 165-166(2), 194-195(2), 230-231(2)

v_parent defined in line 631; used 20 times

- in /usr/src/bin/tcsh/sh.set.c line 544, 633-636(2), 700-708(8), 750, 845, 862
- in /usr/src/bin/tcsh/tw.init.c line 168, 178, 197, 207, 236-239(2)

v_right defined in line 630; used 32 times

- in /usr/src/bin/tcsh/sh.set.c line 460, 481, 543, 619-624(4), 634, 701-707(5), 751, 761, 773-777(2), 797-802(2), 810, 856-857(2), 863
- in /usr/src/bin/tcsh/tw.init.c line 172-173(2), 179, 201-202(2), 208, 228-229(2), 237

value defined in line 636; used 62 times

- in /usr/src/bin/tcsh/sh.c line 814-818(3), 828, 841, 1148-1150(2), 1159, 1188, 1209, 1610
- in /usr/src/bin/tcsh/sh.dir.c line 202, 366, 495, 537, 716, 933, 1094
- in /usr/src/bin/tcsh/sh.exec.c line 352
- in /usr/src/bin/tcsh/sh.exp.c line 486-488(2)
- in /usr/src/bin/tcsh/sh.file.c line 344
- in /usr/src/bin/tcsh/sh.func.c line 1307-1318(5)
- in /usr/src/bin/tcsh/sh.hist.c line 67, 134, 166
- in /usr/src/bin/tcsh/sh.proc.c line 305, 368, 585, 1081, 1106
- in /usr/src/bin/tcsh/sh.sem.c line 571
- in /usr/src/bin/tcsh/sh.set.c line 137, 146-150(3), 157, 169, 189, 321
- in /usr/src/bin/tcsh/tc.func.c line 609, 754, 849-852(3), 1124
- in /usr/src/bin/tcsh/tc.os.c line 853
- in /usr/src/bin/tcsh/tc.prompt.c line 76-82(3), 179, 198, 219, 226, 249-254(2), 355
- in /usr/src/bin/tcsh/tw.parse.c line 982

volatile defined in line 792; never used
xcalloc defined in line 255; used 51 times

- in /usr/src/bin/tcsh/sh.c line 931
- in /usr/src/bin/tcsh/sh.dir.c line 128, 391, 543, 588
- in /usr/src/bin/tcsh/sh.exp.c line 608
- in /usr/src/bin/tcsh/sh.file.c line 527
- in /usr/src/bin/tcsh/sh.func.c line 450, 487
- in /usr/src/bin/tcsh/sh.lex.c line 850, 1436, 1444, 1600-1602(2)
- in /usr/src/bin/tcsh/sh.misc.c line 163, 217, 406
- in /usr/src/bin/tcsh/sh.parse.c line 280, 288, 331, 371, 410, 452, 553-554(2)
- in /usr/src/bin/tcsh/sh.proc.c line 748
- in /usr/src/bin/tcsh/tc.func.c line 223-228(2), 234, 648, 657, 916, 923-927(3), 934-945(6), 957-966(4), 975
- in /usr/src/bin/tcsh/tc.sched.c line 162, 233
- in /usr/src/bin/tcsh/tc.who.c line 125-126(2), 304

xexit defined in line 101; used 10 times

- in /usr/src/bin/tcsh/sh.c line 472, 1209, 1226
- in /usr/src/bin/tcsh/sh.dir.c line 95
- in /usr/src/bin/tcsh/sh.err.c line 458
- in /usr/src/bin/tcsh/sh.func.c line 262, 277
- in /usr/src/bin/tcsh/sh.proc.c line 300, 1834, 1845

xfree defined in line 256; used 164 times

- in /usr/src/bin/tcsh/ed.chared.c line 407, 413
- in /usr/src/bin/tcsh/ed.init.c line 1004
- in /usr/src/bin/tcsh/ed.screen.c line 528-529(2), 535-536(2)
- in /usr/src/bin/tcsh/ed.xmap.c line 314, 433-434(2)
- in /usr/src/bin/tcsh/glob.c line 651, 757-758(2)
- in /usr/src/bin/tcsh/sh.c line 965, 1116-1117(2), 1419, 1538
- in /usr/src/bin/tcsh/sh.dir.c line 327, 423, 453, 467-471(2), 489, 497, 503, 681-682(2), 724, 835, 919, 982, 994
- in /usr/src/bin/tcsh/sh.dol.c line 588, 638
- in /usr/src/bin/tcsh/sh.err.c line 444
- in /usr/src/bin/tcsh/sh.exec.c line 164-165(2), 240, 255, 268, 370, 394, 548, 554, 562, 677, 683-685(2)
- in /usr/src/bin/tcsh/sh.exp.c line 246-251(3), 294-295(2), 324-325(2), 361-362(2), 408-409(2), 432, 442, 532, 585
- in /usr/src/bin/tcsh/sh.file.c line 460-461(2)
- in /usr/src/bin/tcsh/sh.func.c line 154, 371, 393, 739, 886-887(2), 1071, 1083, 1132, 1161-1163(2), 1170-1175(2), 1197-1198(2)
- in /usr/src/bin/tcsh/sh.glob.c line 122, 148, 273, 308-311(2), 336, 379-381(2), 457, 464, 482, 489, 710
- in /usr/src/bin/tcsh/sh.hist.c line 124-125(2)
- in /usr/src/bin/tcsh/sh.lex.c line 237-238(2), 1441, 1540
- in /usr/src/bin/tcsh/sh.misc.c line 154-155(2), 380
- in /usr/src/bin/tcsh/sh.parse.c line 179, 187-188(2), 200-202(2), 670-678(6), 688
- in /usr/src/bin/tcsh/sh.proc.c line 498-502(2)
- in /usr/src/bin/tcsh/sh.sem.c line 369-373(3), 606, 614, 650-651(2), 689-690(2)
- in /usr/src/bin/tcsh/sh.set.c line 182, 225, 326-328(2), 341, 613, 640
- in /usr/src/bin/tcsh/tc.func.c line 218, 300, 644, 794-804(4), 922, 974, 984-987(2)
- in /usr/src/bin/tcsh/tc.os.c line 145-165(8)
- in /usr/src/bin/tcsh/tc.sched.c line 119, 226, 244
- in /usr/src/bin/tcsh/tw.help.c line 138
- in /usr/src/bin/tcsh/tw.init.c line 63, 82, 120
- in /usr/src/bin/tcsh/tw.parse.c line 671, 699, 1088-1089(2), 1480

xmalloc defined in line 253; used 51 times

- in /usr/src/bin/tcsh/ed.screen.c line 541-548(4)
- in /usr/src/bin/tcsh/ed.xmap.c line 447
- in /usr/src/bin/tcsh/sh.c line 1692
- in /usr/src/bin/tcsh/sh.dir.c line 145, 286, 416, 805, 823, 889, 907, 975, 991
- in /usr/src/bin/tcsh/sh.file.c line 528
- in /usr/src/bin/tcsh/sh.func.c line 1093
- in /usr/src/bin/tcsh/sh.glob.c line 165, 253, 530, 601, 864
- in /usr/src/bin/tcsh/sh.hist.c line 95
- in /usr/src/bin/tcsh/sh.lex.c line 168, 217
- in /usr/src/bin/tcsh/sh.misc.c line 85, 204
- in /usr/src/bin/tcsh/sh.set.c line 492, 540
- in /usr/src/bin/tcsh/tc.alloc.c line 327
- in /usr/src/bin/tcsh/tc.func.c line 1066, 1205
- in /usr/src/bin/tcsh/tc.os.c line 109-115(4), 123, 136, 687
- in /usr/src/bin/tcsh/tc.str.c line 58, 77, 99, 131, 171, 357, 375
- in /usr/src/bin/tcsh/tw.init.c line 107, 114, 139
- in /usr/src/bin/tcsh/tw.parse.c line 834, 855

xrealloc defined in line 254; used 13 times

- in /usr/src/bin/tcsh/sh.glob.c line 232, 268, 280, 322, 781, 860
- in /usr/src/bin/tcsh/tc.func.c line 1104
- in /usr/src/bin/tcsh/tc.str.c line 108, 140, 149, 179
- in /usr/src/bin/tcsh/tw.init.c line 123
- in /usr/src/bin/tcsh/tw.parse.c line 841

#### Usage of this include

sh.h used 45 times

- in /usr/src/bin/tcsh/ed.chared.c line 43
- in /usr/src/bin/tcsh/ed.defns.c line 42
- in /usr/src/bin/tcsh/ed.init.c line 42
- in /usr/src/bin/tcsh/ed.inputl.c line 43
- in /usr/src/bin/tcsh/ed.refresh.c line 43
- in /usr/src/bin/tcsh/ed.screen.c line 43
- in /usr/src/bin/tcsh/ed.xmap.c line 100
- in /usr/src/bin/tcsh/glob.c line 69
- in /usr/src/bin/tcsh/jpnerror.c line 3
- in /usr/src/bin/tcsh/sh.c line 49
- in /usr/src/bin/tcsh/sh.dir.c line 43
- in /usr/src/bin/tcsh/sh.dol.c line 43
- in /usr/src/bin/tcsh/sh.err.c line 45
- in /usr/src/bin/tcsh/sh.exec.c line 43
- in /usr/src/bin/tcsh/sh.exp.c line 43
- in /usr/src/bin/tcsh/sh.file.c line 44
- in /usr/src/bin/tcsh/sh.func.c line 44
- in /usr/src/bin/tcsh/sh.glob.c line 43
- in /usr/src/bin/tcsh/sh.hist.c line 42
- in /usr/src/bin/tcsh/sh.init.c line 43
- in /usr/src/bin/tcsh/sh.lex.c line 43
- in /usr/src/bin/tcsh/sh.misc.c line 43
- in /usr/src/bin/tcsh/sh.parse.c line 43
- in /usr/src/bin/tcsh/sh.print.c line 43
- in /usr/src/bin/tcsh/sh.proc.c line 43
- in /usr/src/bin/tcsh/sh.sem.c line 44
- in /usr/src/bin/tcsh/sh.set.c line 43
- in /usr/src/bin/tcsh/sh.time.c line 43
- in /usr/src/bin/tcsh/tc.alloc.c line 51
- in /usr/src/bin/tcsh/tc.bind.c line 43
- in /usr/src/bin/tcsh/tc.const.c line 42
- in /usr/src/bin/tcsh/tc.disc.c line 44
- in /usr/src/bin/tcsh/tc.func.c line 43
- in /usr/src/bin/tcsh/tc.os.c line 43
- in /usr/src/bin/tcsh/tc.printf.c line 45
- in /usr/src/bin/tcsh/tc.prompt.c line 43
- in /usr/src/bin/tcsh/tc.sched.c line 45
- in /usr/src/bin/tcsh/tc.sig.c line 43
- in /usr/src/bin/tcsh/tc.str.c line 45
- in /usr/src/bin/tcsh/tc.vers.c line 43
- in /usr/src/bin/tcsh/tc.who.c line 43
- in /usr/src/bin/tcsh/tw.help.c line 46
- in /usr/src/bin/tcsh/tw.init.c line 43
- in /usr/src/bin/tcsh/tw.parse.c line 46
- in /usr/src/bin/tcsh/tw.spell.c line 43

Last modified: 1996-03-22 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 2786 |