# 2.11BSD#431 - /usr/src/lib/libc/gen/malloc.c

##### Functions

    free              X
    malloc            X
    realloc           X

##### Macros

    ALIGN             X
    ASSERT            X
    BLOCK             X
    BUSY              X
    GRANULE           X
    INT               X
    NALIGN            X
    WORD              X
    clearbusy         X
    setbusy           X
    testbusy          X

##### unions's

    store             X

       1: /*	@(#)malloc.c	2.3	(2.11BSD) 1999/1/18 */
       2:
       3: #include <unistd.h>
       4:
       5: #ifdef debug
       6: #include <sys/types.h>
       7: #include <sys/uio.h>
       8:
       9: #define ASSERT(p) if(!(p))botch("p")
      10:
      11: /*
      12:  * Can't use 'printf' below because that can call malloc().  If the malloc
      13:  * arena is corrupt malloc() calls botch() which calls printf which calls malloc
      14:  * ... result is a recursive loop which underflows the stack.
      15: */
      16:
      17: static botch(s)
      18: char *s;
      19: {
      20:     struct  iovec   iov[3];
      21:     register struct iovec *v = iov;
      22:     char    *ab = "assertion botched: ";
      23:
      24:     v->iov_base = ab;
      25:     v->iov_len = strlen(ab);
      26:     v++;
      27:     v->iov_base = s;
      28:     v->iov_len = strlen(s);
      29:     v++;
      30:     v->iov_base = "\n";
      31:     v->iov_len = 1;
      32:
      33:     writev(STDOUT_FILENO, iov, 3);
      34:     abort();
      35: }
      36: #else
      37: #define ASSERT(p)
      38: #endif	/* debug */
      39:
      40: /*
      41:  * The origins of the following ifdef are lost.  The only comment attached
      42:  * to it, "avoid break bug", probably has something to do with a bug in
      43:  * an older PDP-11 kernel.  Maybe it's still a bug in the current kernel.
      44:  * We'll probably never know ...
      45:  */
      46: #ifdef pdp11
      47: #	define GRANULE 64
      48: #else
      49: #	define GRANULE 0
      50: #endif
      51:
      52: /*
      53:  * C storage allocator
      54:  *
      55:  * Uses circular first-fit strategy.  Works with a noncontiguous, but
      56:  * monotonically linked, arena.  Each block is preceded by a ptr to the
      57:  * pointer of the next following block.  Blocks are exact number of words
      58:  * long aligned to the data type requirements of ALIGN.
      59:  *
      60:  * Bit 0 (LSB) of pointers is used to indicate whether the block associated
      61:  * with the pointer is in use.  A 1 indicates a busy block and a 0 a free
      62:  * block (obviously pointers can't point at odd addresses).  Gaps in arena
      63:  * are merely noted as busy blocks.  The last block of the arena (pointed
      64:  * to by alloct) is empty and has a pointer to first.  Idle blocks are
      65:  * coalesced during space search
      66:  *
      67:  * Different implementations may need to redefine ALIGN, NALIGN, BLOCK,
      68:  * BUSY, INT where INT is integer type to which a pointer can be cast.
      69:  */
      70: #define INT     int
      71: #define ALIGN       int
      72: #define NALIGN      1
      73: #define WORD        sizeof(union store)
      74: #define BLOCK       1024    /* a multiple of WORD */
      75:
      76: #define BUSY        1
      77:
      78: #define testbusy(p) ((INT)(p)&BUSY)
      79: #define setbusy(p)  (union store *)((INT)(p)|BUSY)
      80: #define clearbusy(p)    (union store *)((INT)(p)&~BUSY)
      81:
      82: union store {
      83:     union store *ptr;
      84:     ALIGN       dummy[NALIGN];
      85:     int     calloc; /* calloc clears an array of integers */
      86: };
      87:
      88: static union store  allocs[2];  /* initial arena */
      89: static union store  *allocp;    /* search ptr */
      90: static union store  *alloct;    /* arena top */
      91: static union store  *allocx;    /* for benefit of realloc */
      92:
      93: extern char     *sbrk();
      94:
      95: char *
      96: malloc(nbytes)
      97:     unsigned nbytes;
      98: {
      99:     register union store *p, *q;
     100:     register nw;
     101:     static int temp;    /* coroutines assume no auto */
     102:
     103:     if (nbytes == 0)
     104:         return(NULL);
     105:     if (allocs[0].ptr == 0) {   /* first time */
     106:         allocs[0].ptr = setbusy(&allocs[1]);
     107:         allocs[1].ptr = setbusy(&allocs[0]);
     108:         alloct = &allocs[1];
     109:         allocp = &allocs[0];
     110:     }
     111:     nw = (nbytes+WORD+WORD-1)/WORD;
     112:     ASSERT(allocp >= allocs && allocp <= alloct);
     113:     ASSERT(allock());
     114:     for (p = allocp; ; ) {
     115:         for (temp = 0; ; ) {
     116:             if (!testbusy(p->ptr)) {
     117:                 while(!testbusy((q = p->ptr)->ptr)) {
     118:                     ASSERT(q > p && q < alloct);
     119:                     p->ptr = q->ptr;
     120:                 }
     121:                 if (q >= p+nw && p+nw >= p)
     122:                     goto found;
     123:             }
     124:             q = p;
     125:             p = clearbusy(p->ptr);
     126:             if (p > q)
     127:                 ASSERT(p <= alloct);
     128:             else if (q != alloct || p != allocs) {
     129:                 ASSERT(q == alloct && p == allocs);
     130:                 return(NULL);
     131:             } else if (++temp > 1)
     132:                 break;
     133:         }
     134:         q = (union store *)sbrk(0);
     135:         /*
     136: 		 * Line up on page boundry so we can get the last drip at
     137: 		 * the end ...
     138: 		 */
     139:         temp = ((((unsigned)q + WORD*nw + BLOCK-1)/BLOCK)*BLOCK
     140:             - (unsigned)q) / WORD;
     141:         if (q+temp+GRANULE < q)
     142:             return(NULL);
     143:         q = (union store *)sbrk(temp*WORD);
     144:         if ((INT)q == -1)
     145:             return(NULL);
     146:         ASSERT(q > alloct);
     147:         alloct->ptr = q;
     148:         if (q != alloct+1)
     149:             alloct->ptr = setbusy(alloct->ptr);
     150:         alloct = q->ptr = q+temp-1;
     151:         alloct->ptr = setbusy(allocs);
     152:     }
     153: found:
     154:     allocp = p + nw;
     155:     ASSERT(allocp <= alloct);
     156:     if (q > allocp) {
     157:         allocx = allocp->ptr;
     158:         allocp->ptr = p->ptr;
     159:     }
     160:     p->ptr = setbusy(allocp);
     161:     return((char *)(p+1));
     162: }
     163:
     164: /*
     165:  * Freeing strategy tuned for LIFO allocation.
     166:  */
     167: free(ap)
     168:     register char *ap;
     169: {
     170:     register union store *p = (union store *)ap;
     171:
     172:     ASSERT(p > clearbusy(allocs[1].ptr) && p <= alloct);
     173:     ASSERT(allock());
     174:     allocp = --p;
     175:     ASSERT(testbusy(p->ptr));
     176:     p->ptr = clearbusy(p->ptr);
     177:     ASSERT(p->ptr > allocp && p->ptr <= alloct);
     178: }
     179:
     180: /*
     181:  * Realloc(p, nbytes) reallocates a block obtained from malloc() and freed
     182:  * since last call of malloc() to have new size nbytes, and old content
     183:  * returns new location, or 0 on failure.
     184:  */
     185: char *
     186: realloc(p, nbytes)
     187:     register union store *p;
     188:     unsigned nbytes;
     189: {
     190:     register union store *q;
     191:     union store *s, *t;
     192:     register unsigned nw;
     193:     unsigned onw;
     194:
     195:     if (testbusy(p[-1].ptr))
     196:         free((char *)p);
     197:     onw = p[-1].ptr - p;
     198:     q = (union store *)malloc(nbytes);
     199:     if (q == NULL || q == p)
     200:         return((char *)q);
     201:     s = p;
     202:     t = q;
     203:     nw = (nbytes+WORD-1)/WORD;
     204:     if (nw < onw)
     205:         onw = nw;
     206:     while (onw-- != 0)
     207:         *t++ = *s++;
     208:     if (q < p && q+nw >= p)
     209:         (q+(q+nw-p))->ptr = allocx;
     210:     return((char *)q);
     211: }
     212:
     213: #ifdef  debug
     214: static allock()
     215: {
     216: #ifdef longdebug
     217:     register union store *p;
     218:     int x;
     219:     x = 0;
     220:     for (p= &allocs[0]; clearbusy(p->ptr) > p; p=clearbusy(p->ptr)) {
     221:         if (p == allocp)
     222:             x++;
     223:     }
     224:     ASSERT(p == alloct);
     225:     return((x == 1) | (p == allocp));
     226: #else
     227:     return(1);
     228: #endif
     229: }
     230: #endif /* debug */

#### Defined functions

allock defined in line 214; used 2 times

- in line 113, 173

botch defined in line 17; used 1 times

- in line 9

free defined in line 167; used 673 times

- in line 196
- in /usr/include/mp.h line 6-11(3)
- in /usr/include/stdlib.h line 77
- in /usr/ingres/source/equel/nalloc.c line 73
- in /usr/ingres/source/monitor/buf.c line 270
- in /usr/src/bin/adb/sym.c line 269
- in /usr/src/bin/awk/tran.c line 69, 243
- in /usr/src/bin/cat.c line 216
- in /usr/src/bin/diff/diffreg.c line 248-254(4), 614
- in /usr/src/bin/ld/ld.c line 669-672(2), 940-943(2), 1381-1384(2)
- in /usr/src/bin/nm/nm.c line 137, 183-185(2)
- in /usr/src/bin/ps.c line 807
- in /usr/src/bin/rcp.c line 226, 247, 272, 299, 626, 649, 709, 821
- in /usr/src/bin/tar.c line 638
- in /usr/src/games/adventure/io.c line 465, 499
- in /usr/src/games/hack/hack.do.c line 37
- in /usr/src/games/hack/hack.do_name.c line 133, 176
- in /usr/src/games/hack/hack.end.c line 624
- in /usr/src/games/hack/hack.engrave.c line 305
- in /usr/src/games/hack/hack.invent.c line 151, 165
- in /usr/src/games/hack/hack.lev.c line 96, 119, 133, 147, 225, 234
- in /usr/src/games/hack/hack.mon.c line 640
- in /usr/src/games/hack/hack.pager.c line 87, 272
- in /usr/src/games/hack/hack.read.c line 135
- in /usr/src/games/hack/hack.shk.c line 10, 113, 285, 460
- in /usr/src/games/hack/hack.steal.c line 140
- in /usr/src/games/hack/hack.termcap.c line 77
- in /usr/src/games/hack/hack.topl.c line 61
- in /usr/src/games/hack/hack.worm.c line 181
- in /usr/src/games/hunt/expl.c line 98
- in /usr/src/games/hunt/shots.c line 172, 213, 513, 539, 644
- in /usr/src/games/sail/pl_main.c line 105
- in /usr/src/games/warp/intrp.c line 191-192(2)
- in /usr/src/games/warp/ndir.c line 119
- in /usr/src/games/warp/term.c line 355
- in /usr/src/games/warp/warp.c line 310
- in /usr/src/games/worm.c line 205
- in /usr/src/include/mp.h line 6-11(3)
- in /usr/src/lib/libc/gen/calloc.c line 26
- in /usr/src/lib/libc/gen/closedir.c line 24
- in /usr/src/lib/libc/gen/getmntinfo.c line 60
- in /usr/src/lib/libc/gen/getusershell.c line 60-63(2), 83-86(2), 101
- in /usr/src/lib/libc/gen/ndbm.c line 58, 69
- in /usr/src/lib/libc/gen/setmode.c line 212-217(2), 250
- in /usr/src/lib/libc/stdio/flsbuf.c line 112
- in /usr/src/lib/libc/stdio/setvbuf.c line 80
- in /usr/src/libexec/acctd/acctd.c line 368, 386, 429
- in /usr/src/libexec/ftpd/ftpcmd.y line 111-116(2), 203, 210, 217, 229, 241, 248, 259, 265-270(2), 286, 316, 323, 380, 407, 435, 467, 487, 625
- in /usr/src/libexec/ftpd/ftpd.c line 296-300(5), 783
- in /usr/src/libexec/ftpd/popen.c line 127
- in /usr/src/libexec/identd/src/kernel/2.11bsd.c line 221, 228, 235, 282-289(4)
- in /usr/src/libexec/identd/src/kvm.c line 114-115(2), 125-126(2), 136-137(2), 157-160(3), 354
- in /usr/src/libexec/identd/src/parse.c line 152
- in /usr/src/libexec/popper/pop_quit.c line 24
- in /usr/src/libexec/talkd/table.c line 204
- in /usr/src/libexec/tcpd/environ.c line 22
- in /usr/src/libexec/tcpd/scaffold.c line 154
- in /usr/src/libexec/tcpd/tcpdmatch.c line 184, 239
- in /usr/src/libexec/tcpd/tli.c line 222, 271
- in /usr/src/local/afio/afio.c line 292, 1258-1260(2), 1267, 2772
- in /usr/src/local/less/ch.c line 370
- in /usr/src/local/less/prim.c line 578
- in /usr/src/local/mkovmake/mkovmake.c line 178, 365-366(2)
- in /usr/src/local/mp/header.c line 205-212(8), 219-220(2)
- in /usr/src/local/mtools/dir_read.c line 41, 73, 99, 108
- in /usr/src/local/mtools/init.c line 37, 43-45(3)
- in /usr/src/local/qterm/qterm.c line 588
- in /usr/src/new/PORT/B/src/bed/bobj.c line 487, 639
- in /usr/src/new/PORT/B/src/bed/getc.c line 13
- in /usr/src/new/PORT/B/src/bed/mkboot.c line 305
- in /usr/src/new/PORT/B/src/bint/b1mem.c line 125, 143, 156
- in /usr/src/new/PORT/B/src/bsmall/b1mem.c line 40
- in /usr/src/new/PORT/perl.1.0.0/x2p/util.c line 82
- in /usr/src/new/PORT/perl.1.0.10/x2p/util.c line 82
- in /usr/src/new/PORT/perl.1.0.16/x2p/util.c line 82
- in /usr/src/new/ansi/ansitape.c line 357-358(2), 659
- in /usr/src/new/crash/crash.c line 918, 940, 1113, 1135, 1283
- in /usr/src/new/crash/dispnet.c line 713
- in /usr/src/new/crash/route.c line 197
- in /usr/src/new/kermit5.188/ckcfn3.c line 157
- in /usr/src/new/kermit5.188/ckcmdb.c line 113
- in /usr/src/new/kermit5.188/ckucmd.c line 441-471(7), 477-507(7), 754
- in /usr/src/new/kermit5.188/ckucon.c line 430-435(2), 624-626(3), 913-915(3)
- in /usr/src/new/kermit5.188/ckudia.c line 1437, 1476, 1487, 2697
- in /usr/src/new/kermit5.188/ckufio.c line 1076, 1529, 2218, 2245, 2449-2453(2), 2977
- in /usr/src/new/kermit5.188/ckutio.c line 1338, 4148
- in /usr/src/new/kermit5.188/ckuus3.c line 578, 799
- in /usr/src/new/kermit5.188/ckuus4.c line 1680, 1747, 1861, 1885, 1906-1911(2), 1954, 1963, 1971, 2007, 2020, 2030, 2036, 2051, 2075, 2103, 2117, 2143, 2151, 2186, 2641, 2658, 2700
- in /usr/src/new/kermit5.188/ckuus5.c line 626, 656, 689, 974, 1232, 1345, 1377, 1393, 1405-1407(2), 1455, 1467, 1489, 3244-3245(2)
- in /usr/src/new/kermit5.188/ckuus6.c line 576, 1831, 1865
- in /usr/src/new/kermit5.188/ckuus7.c line 537, 586, 618, 629, 1433-1435(3)
- in /usr/src/new/kermit5.188/ckuusx.c line 327
- in /usr/src/new/nntp/server/active.c line 45-46(2)
- in /usr/src/new/nntp/server/parsit.c line 51-52(2)
- in /usr/src/new/nntp/xmit/llist.c line 9, 28
- in /usr/src/new/notes/src/main.c line 186
- in /usr/src/new/notes/src/nfxmit.c line 90-96(4)
- in /usr/src/new/notes/src/times.c line 57, 77-82(2)
- in /usr/src/new/rcs/src/rcs.c line 133, 763, 789, 868, 883, 890, 914, 921
- in /usr/src/new/rcs/src/rlog.c line 90, 983, 1049
- in /usr/src/new/rcs/src/sccstorcs.c line 152
- in /usr/src/new/rn/artio.c line 113
- in /usr/src/new/rn/artsrch.c line 76, 213, 221, 231, 237
- in /usr/src/new/rn/bits.c line 141, 406, 468-473(3), 584
- in /usr/src/new/rn/head.c line 296
- in /usr/src/new/rn/init.c line 120
- in /usr/src/new/rn/intrp.c line 205-206(2), 414, 866-884(10)
- in /usr/src/new/rn/ndir.c line 114
- in /usr/src/new/rn/ng.c line 262, 513-520(3)
- in /usr/src/new/rn/ngstuff.c line 186, 206, 213
- in /usr/src/new/rn/only.c line 115-119(2)
- in /usr/src/new/rn/rcln.c line 48, 174, 266, 381, 439
- in /usr/src/new/rn/respond.c line 79, 306-309(4), 354
- in /usr/src/new/rn/search.c line 115-119(2), 376
- in /usr/src/new/rn/sw.c line 124, 196, 486
- in /usr/src/new/rn/term.c line 294, 458
- in /usr/src/old/cu/cu.c line 848
- in /usr/src/old/shortc/shortc.c line 193
- in /usr/src/sbin/icheck/icheck.c line 190, 203
- in /usr/src/sbin/init/init.c line 156, 484
- in /usr/src/sbin/mount/getmntopts.c line 86
- in /usr/src/sbin/mount/mount.c line 295, 315, 455
- in /usr/src/sbin/ncheck/ncheck.c line 166
- in /usr/src/sbin/quotacheck/quotacheck.c line 198, 515
- in /usr/src/sbin/route/route.c line 196
- in /usr/src/sbin/routed/tables.c line 162, 222
- in /usr/src/sbin/routed/trace.c line 99
- in /usr/src/share/zoneinfo/ialloc.c line 87
- in /usr/src/share/zoneinfo/scheck.c line 57
- in /usr/src/share/zoneinfo/zdump.c line 165
- in /usr/src/share/zoneinfo/zic.c line 618
- in /usr/src/ucb/Mail/fio.c line 205
- in /usr/src/ucb/Mail/popen.c line 161, 255, 273, 287, 300, 340
- in /usr/src/ucb/Mail/vars.c line 79
- in /usr/src/ucb/PORT/pascal/pdx/breakpoint/trcond.c line 74
- in /usr/src/ucb/PORT/pascal/pdx/breakpoint/trinfo.c line 103-105(2), 187-189(2)
- in /usr/src/ucb/PORT/pascal/pdx/defs.h line 69
- in /usr/src/ucb/PORT/pascal/pdx/library.c line 53
- in /usr/src/ucb/PORT/pascal/pdx/source/source.c line 154
- in /usr/src/ucb/PORT/pascal/pdx/tree/tfree.c line 49-50(2)
- in /usr/src/ucb/PORT/pascal/src/case.c line 185
- in /usr/src/ucb/PORT/pascal/src/nl.c line 428
- in /usr/src/ucb/PORT/pascal/src/tree.c line 157
- in /usr/src/ucb/PORT/pascal/utilities/pc3.c line 250-253(2)
- in /usr/src/ucb/PORT/systat/disks.c line 65-67(3)
- in /usr/src/ucb/PORT/systat/netcmds.c line 152, 215
- in /usr/src/ucb/PORT/systat/netstat.c line 271
- in /usr/src/ucb/PORT/systat/vmstat.c line 195-199(3)
- in /usr/src/ucb/ftp/cmds.c line 457, 479, 1594, 1603
- in /usr/src/ucb/ftp/ftp.c line 871
- in /usr/src/ucb/ftp/glob.c line 609
- in /usr/src/ucb/netstat/route.c line 164
- in /usr/src/ucb/netstat/unix.c line 87
- in /usr/src/ucb/pascal/pi/case.c line 154
- in /usr/src/ucb/pascal/pi/nl.c line 353
- in /usr/src/ucb/pascal/pi/tree.c line 161
- in /usr/src/ucb/pascal/pxp/nl.c line 333
- in /usr/src/ucb/pascal/pxp/tree.c line 158
- in /usr/src/ucb/pascal/pxp/yyget.c line 293
- in /usr/src/ucb/rdist/docmd.c line 149-151(3)
- in /usr/src/ucb/rdist/gram.y line 118, 344
- in /usr/src/ucb/rdist/server.c line 500-502(3)
- in /usr/src/ucb/sendbug/bugfiler.c line 208
- in /usr/src/ucb/symcompact.c line 244, 270
- in /usr/src/ucb/symdump.c line 90
- in /usr/src/ucb/symorder.c line 243
- in /usr/src/ucb/tn3270/map3270.c line 414
- in /usr/src/ucb/w.c line 468
- in /usr/src/ucb/window/context.c line 46
- in /usr/src/ucb/window/string.c line 122
- in /usr/src/ucb/window/string.h line 35
- in /usr/src/ucb/window/var.c line 40, 95
- in /usr/src/ucb/window/wwalloc.c line 40
- in /usr/src/ucb/window/wwclose.c line 26-29(3)
- in /usr/src/ucb/window/wwopen.c line 153-160(3)
- in /usr/src/ucb/window/wwsize.c line 87, 165
- in /usr/src/usr.bin/col.c line 212, 296
- in /usr/src/usr.bin/dc/dc.c line 1892
- in /usr/src/usr.bin/m4/eval.c line 448
- in /usr/src/usr.bin/m4/look.c line 103-107(3)
- in /usr/src/usr.bin/patch/dist/util.c line 344, 350
- in /usr/src/usr.bin/prof/prof.c line 323
- in /usr/src/usr.bin/ranlib/build.c line 261-263(2)
- in /usr/src/usr.bin/ratfor/r1.c line 265
- in /usr/src/usr.bin/ratfor/rlook.c line 58
- in /usr/src/usr.bin/refer/glue1.c line 147-150(2)
- in /usr/src/usr.bin/refer/hunt2.c line 246-247(2)
- in /usr/src/usr.bin/struct/0.alloc.c line 35, 86
- in /usr/src/usr.bin/struct/0.parts.c line 112
- in /usr/src/usr.bin/struct/beauty.y line 81-94(5), 102, 171, 178-188(3), 198, 205-211(3), 230-231(2), 411-413(2)
- in /usr/src/usr.bin/struct/tree.c line 39-40(2), 79, 93
- in /usr/src/usr.bin/tip/uucplock.c line 138
- in /usr/src/usr.bin/tip/value.c line 75
- in /usr/src/usr.bin/uucp/anlwrk.c line 294
- in /usr/src/usr.bin/uucp/cico.c line 791
- in /usr/src/usr.bin/uucp/gnsys.c line 71
- in /usr/src/usr.bin/uucp/pk0.c line 365, 523-527(2), 535, 543
- in /usr/src/usr.bin/uucp/ulockf.c line 103
- in /usr/src/usr.bin/whereis/whereis.c line 87
- in /usr/src/usr.lib/libI77/close.c line 51
- in /usr/src/usr.lib/libI77/lread.c line 366
- in /usr/src/usr.lib/libI77/rsnmle.c line 583
- in /usr/src/usr.lib/libU77/malloc_.c line 43
- in /usr/src/usr.lib/libcurses/delwin.c line 29-31(3), 50-51(2)
- in /usr/src/usr.lib/libcurses/newwin.c line 47-54(5), 65-69(5), 165
- in /usr/src/usr.lib/libident/id_close.c line 24
- in /usr/src/usr.lib/libident/id_open.c line 58, 157
- in /usr/src/usr.lib/libident/ident.c line 112, 146-151(4)
- in /usr/src/usr.lib/libmp/mout.c line 84
- in /usr/src/usr.sbin/cron/crontab.c line 526
- in /usr/src/usr.sbin/cron/do_command.c line 144
- in /usr/src/usr.sbin/cron/entry.c line 58-60(2), 293
- in /usr/src/usr.sbin/cron/env.c line 43-44(2), 89
- in /usr/src/usr.sbin/cron/job.c line 69
- in /usr/src/usr.sbin/cron/misc.c line 499
- in /usr/src/usr.sbin/cron/popen.c line 137
- in /usr/src/usr.sbin/cron/user.c line 35-40(2)
- in /usr/src/usr.sbin/edquota/edquota.c line 209, 244, 481
- in /usr/src/usr.sbin/htable/htable.c line 213, 286, 473-474(2), 485
- in /usr/src/usr.sbin/inetd/inetd.c line 586, 828-837(5)
- in /usr/src/usr.sbin/lpr/cmds.c line 821-822(2)
- in /usr/src/usr.sbin/lpr/displayq.c line 226-228(2)
- in /usr/src/usr.sbin/lpr/filters/rvcat.c line 884
- in /usr/src/usr.sbin/lpr/filters/vcat.c line 836
- in /usr/src/usr.sbin/lpr/printjob.c line 137, 161(2), 187
- in /usr/src/usr.sbin/named/named/db_load.c line 889
- in /usr/src/usr.sbin/named/named/db_reload.c line 70-80(4), 101
- in /usr/src/usr.sbin/named/named/db_save.c line 153
- in /usr/src/usr.sbin/named/named/db_update.c line 83
- in /usr/src/usr.sbin/named/named/ns_forw.c line 542-544(2), 554
- in /usr/src/usr.sbin/named/named/ns_init.c line 73, 134-138(2), 462
- in /usr/src/usr.sbin/named/named/ns_main.c line 374, 434, 501, 507, 1107, 1117
- in /usr/src/usr.sbin/named/named/ns_req.c line 335, 1252
- in /usr/src/usr.sbin/named/named/ns_resp.c line 608, 908, 924, 1007
- in /usr/src/usr.sbin/named/named/storage.c line 108
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 382, 723, 730-733(2), 740-743(2), 752, 758-761(2), 767-775(4)
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 398
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 345, 517, 525
- in /usr/src/usr.sbin/ntp/ntpd.c line 604
- in /usr/src/usr.sbin/pstat/pstat.c line 274, 353, 413, 752
- in /usr/src/usr.sbin/rmt/rmt.c line 184
- in /usr/src/usr.sbin/rwhod/rwhod.c line 371, 378-379(2), 385-390(2), 397, 407
- in /usr/src/usr.sbin/sendmail.MX/src/clock.c line 119, 181
- in /usr/src/usr.sbin/sendmail.MX/src/deliver.c line 519, 1068
- in /usr/src/usr.sbin/sendmail.MX/src/headers.c line 146
- in /usr/src/usr.sbin/sendmail.MX/src/queue.c line 358-359(2), 402-403(2)
- in /usr/src/usr.sbin/sendmail.MX/src/util.c line 928
- in /usr/src/usr.sbin/sendmail/src/alias.c line 458, 505-509(3)
- in /usr/src/usr.sbin/sendmail/src/clock.c line 119, 181
- in /usr/src/usr.sbin/sendmail/src/deliver.c line 461, 1013
- in /usr/src/usr.sbin/sendmail/src/headers.c line 140
- in /usr/src/usr.sbin/sendmail/src/queue.c line 347-348(2), 389-390(2)
- in /usr/src/usr.sbin/sendmail/src/recipient.c line 134
- in /usr/src/usr.sbin/sendmail/src/util.c line 928
- in /usr/src/usr.sbin/timed/master.c line 461
- in /usr/src/usr.sbin/timed/readmsg.c line 95
- in /usr/src/usr.sbin/timed/timed.c line 315

malloc defined in line 95; used 774 times

- in line 198
- in /usr/include/stdlib.h line 79
- in /usr/ingres/source/equel/nalloc.c line 26-28(2), 42-45(2)
- in /usr/ingres/source/monitor/buf.c line 217-219(2)
- in /usr/src/bin/adb/pcs.c line 62
- in /usr/src/bin/adb/sym.c line 186, 202
- in /usr/src/bin/ar/ar.c line 55, 87
- in /usr/src/bin/awk/awk.def line 56
- in /usr/src/bin/awk/b.c line 279, 477
- in /usr/src/bin/awk/parse.c line 11
- in /usr/src/bin/awk/run.c line 333, 541
- in /usr/src/bin/awk/tran.c line 48, 91, 227-232(2), 246-250(3)
- in /usr/src/bin/cat.c line 181, 194
- in /usr/src/bin/cc.c line 415
- in /usr/src/bin/diff/diff.c line 155, 191
- in /usr/src/bin/diff/diff.h line 80
- in /usr/src/bin/diff/diffdir.c line 121, 193, 206
- in /usr/src/bin/diff/diffh.c line 28, 45
- in /usr/src/bin/diff/diffreg.c line 713
- in /usr/src/bin/ed.c line 96, 137
- in /usr/src/bin/expr.y line 60, 128, 184, 196, 206-208(2)
- in /usr/src/bin/ld/ld.c line 320-324(3), 656, 850, 1294, 2125
- in /usr/src/bin/ls/ls.c line 239
- in /usr/src/bin/nm/nm.c line 31, 150, 169
- in /usr/src/bin/ping/ping.c line 153, 269
- in /usr/src/bin/ps.c line 89, 589
- in /usr/src/bin/rcp.c line 178, 203, 229, 261-265(2), 290, 602, 710, 810, 822
- in /usr/src/bin/rm.c line 19, 250
- in /usr/src/bin/tar.c line 106, 621, 1329, 1416
- in /usr/src/bin/test/test.c line 238
- in /usr/src/bin/tp/tp1.c line 173, 180
- in /usr/src/bin/wall.c line 39, 64
- in /usr/src/games/adventure/hdr.h line 119
- in /usr/src/games/adventure/io.c line 293, 313, 447, 477
- in /usr/src/games/adventure/vocab.c line 96
- in /usr/src/games/atc/grammar.y line 132, 162, 195, 226
- in /usr/src/games/fortune/strfile.c line 74, 122, 128
- in /usr/src/games/fortune/unstr.c line 29, 107
- in /usr/src/games/hack/alloc.c line 21, 30
- in /usr/src/games/hunt/answer.c line 323
- in /usr/src/games/hunt/execute.c line 389
- in /usr/src/games/hunt/expl.c line 28
- in /usr/src/games/hunt/hunt.c line 261
- in /usr/src/games/hunt/hunt.h line 299
- in /usr/src/games/hunt/shots.c line 489
- in /usr/src/games/quiz/quiz.c line 294-297(2)
- in /usr/src/games/rain.c line 42, 61-66(2), 87
- in /usr/src/games/rogue/machdep.c line 443-446(2)
- in /usr/src/games/snake/snscore.c line 17, 58
- in /usr/src/games/warp/ndir.c line 46
- in /usr/src/games/warp/object.c line 32
- in /usr/src/games/warp/term.c line 218, 234, 252
- in /usr/src/games/warp/util.c line 100-102(2)
- in /usr/src/games/warp/warp.c line 301
- in /usr/src/games/warp/warp.h line 456
- in /usr/src/games/worm.c line 26
- in /usr/src/games/worms.c line 147, 168, 206, 238, 246, 252
- in /usr/src/lib/libc/compat-sys5/tmpnam.c line 45-47(2), 57-59(2)
- in /usr/src/lib/libc/gen/calloc.c line 12-16(2)
- in /usr/src/lib/libc/gen/getmntinfo.c line 62
- in /usr/src/lib/libc/gen/getusershell.c line 80, 94
- in /usr/src/lib/libc/gen/ndbm.c line 34
- in /usr/src/lib/libc/gen/opendir.c line 23-27(2)
- in /usr/src/lib/libc/gen/popen.c line 63
- in /usr/src/lib/libc/gen/scandir.c line 44, 55
- in /usr/src/lib/libc/gen/setenv.c line 29, 55, 67
- in /usr/src/lib/libc/gen/setmode.c line 200
- in /usr/src/lib/libc/gen/strdup.c line 30-33(2)
- in /usr/src/lib/libc/gen/valloc.c line 11, 23-26(2)
- in /usr/src/lib/libc/net/ruserpass.c line 34, 68, 74-76(2), 168, 183
- in /usr/src/lib/libc/stdio/filbuf.c line 14, 41
- in /usr/src/lib/libc/stdio/flsbuf.c line 15, 56
- in /usr/src/lib/libc/stdio/setvbuf.c line 95, 103
- in /usr/src/lib/mip/common.c line 410
- in /usr/src/lib/mip/scan.c line 1071
- in /usr/src/libexec/comsat/comsat.c line 128
- in /usr/src/libexec/ftpd/ftpcmd.y line 1078-1080(2)
- in /usr/src/libexec/ftpd/ftpd.c line 268-269(2), 772
- in /usr/src/libexec/ftpd/popen.c line 48, 56, 79
- in /usr/src/libexec/identd/src/identd.c line 98
- in /usr/src/libexec/identd/src/kernel/2.11bsd.c line 209, 246
- in /usr/src/libexec/identd/src/kvm.c line 72, 94, 102
- in /usr/src/libexec/identd/src/parse.c line 53, 144
- in /usr/src/libexec/talkd/table.c line 47, 137
- in /usr/src/libexec/tcpd/environ.c line 19, 125, 140
- in /usr/src/libexec/tcpd/inetcf.c line 273
- in /usr/src/libexec/tcpd/scaffold.c line 28, 59
- in /usr/src/libexec/tcpd/setenv.c line 24, 30
- in /usr/src/libexec/telnetd/telnetd.c line 1248
- in /usr/src/local/afio/afio.c line 300, 592, 1361
- in /usr/src/local/ddd/ddd.c line 30, 254
- in /usr/src/local/mkovmake/mkovmake.c line 35, 84, 185, 537-538(2)
- in /usr/src/local/mtools/dir_read.c line 40, 74, 98, 110
- in /usr/src/local/mtools/fat_read.c line 80-84(2)
- in /usr/src/local/mtools/init.c line 36, 219
- in /usr/src/local/mtools/mcopy.c line 27, 78, 96-100(2), 126
- in /usr/src/local/qterm/options.c line 429
- in /usr/src/local/qterm/options.h line 95
- in /usr/src/local/qterm/qterm.c line 330, 993
- in /usr/src/local/zmodem/sz.c line 309-311(2)
- in /usr/src/new/PORT/B/src/bed/b.h line 52
- in /usr/src/new/PORT/B/src/bed/bobj.c line 14, 65, 621
- in /usr/src/new/PORT/B/src/bed/cell.c line 119
- in /usr/src/new/PORT/B/src/bed/getc.c line 69-70(2)
- in /usr/src/new/PORT/B/src/bed/main.c line 61, 106
- in /usr/src/new/PORT/B/src/bed/mkboot.c line 276, 313
- in /usr/src/new/PORT/B/src/bed/outp.c line 167
- in /usr/src/new/PORT/B/src/bed/unix.c line 459
- in /usr/src/new/PORT/B/src/bed/vtrm.c line 679-681(2)
- in /usr/src/new/PORT/B/src/bint/b.h line 206
- in /usr/src/new/PORT/B/src/bint/b1mem.c line 135-144(3)
- in /usr/src/new/PORT/B/src/bint/b3mai.c line 172-176(2)
- in /usr/src/new/PORT/B/src/bint/mkconfig.c line 354
- in /usr/src/new/PORT/B/src/bsmall/b.h line 164
- in /usr/src/new/PORT/B/src/bsmall/b1mem.c line 19
- in /usr/src/new/PORT/hexdump/display.c line 331-333(2)
- in /usr/src/new/PORT/perl.1.0.0/x2p/util.c line 31-33(2)
- in /usr/src/new/PORT/perl.1.0.10/x2p/util.c line 31-33(2)
- in /usr/src/new/PORT/perl.1.0.16/x2p/util.c line 31-33(2)
- in /usr/src/new/ansi/ansitape.c line 11, 58, 278-279(2), 563
- in /usr/src/new/bm/GetPatFile.c line 11, 30
- in /usr/src/new/bm/MakeDesc.c line 4, 10-15(3)
- in /usr/src/new/bm/MakeSkip.c line 2, 17
- in /usr/src/new/crash/dispnet.c line 743
- in /usr/src/new/crash/route.c line 78-82(2)
- in /usr/src/new/crash/symbol.c line 21, 95
- in /usr/src/new/kermit5.188/ckcfn3.c line 139, 146, 153, 165, 958, 1000
- in /usr/src/new/kermit5.188/ckcfns.c line 957
- in /usr/src/new/kermit5.188/ckcmai.c line 986-988(2)
- in /usr/src/new/kermit5.188/ckcmdb.c line 45, 62
- in /usr/src/new/kermit5.188/ckucmd.c line 175-182(7), 312, 336-401(14), 727
- in /usr/src/new/kermit5.188/ckucon.c line 424-433(3)
- in /usr/src/new/kermit5.188/ckudia.c line 1248
- in /usr/src/new/kermit5.188/ckufio.c line 1038, 1516, 2219, 2234, 2307, 2425, 2974
- in /usr/src/new/kermit5.188/ckutio.c line 1334, 4137
- in /usr/src/new/kermit5.188/ckuus3.c line 600, 803
- in /usr/src/new/kermit5.188/ckuus4.c line 1565, 1706, 1859, 2607, 2694
- in /usr/src/new/kermit5.188/ckuus5.c line 311, 334-336(2), 351-357(4), 367-371(2), 456, 498, 515, 616, 967, 1214, 1263, 1303, 1333, 1342, 3251
- in /usr/src/new/kermit5.188/ckuus6.c line 577, 990, 1825, 1866
- in /usr/src/new/kermit5.188/ckuus7.c line 541, 590, 638, 1416-1421(2), 1428
- in /usr/src/new/kermit5.188/ckuusx.c line 328, 1325
- in /usr/src/new/kermit5.188/ckwart.c line 296, 635, 653
- in /usr/src/new/nntp/server/active.c line 36, 65, 90
- in /usr/src/new/nntp/server/parsit.c line 37, 72, 89
- in /usr/src/new/nntp/server/subnet.c line 120, 175
- in /usr/src/new/nntp/support/mkgrdates.c line 51, 113
- in /usr/src/new/nntp/xfer/nntpxfer.c line 46, 281
- in /usr/src/new/nntp/xmit/llist.c line 10, 47
- in /usr/src/new/notes/src/bnewshead.c line 133, 237, 543
- in /usr/src/new/notes/src/main.c line 181
- in /usr/src/new/notes/src/misc.c line 593-595(2)
- in /usr/src/new/notes/src/nfabort.c line 18, 59
- in /usr/src/new/notes/src/structs.h line 410
- in /usr/src/new/notes/src/times.c line 23, 73
- in /usr/src/new/pathalias/arpatxt.c line 46, 281
- in /usr/src/new/rcs/src/co.c line 105, 517, 554
- in /usr/src/new/rcs/src/rcs.c line 126, 315, 330, 608, 651, 694, 739, 765, 1320
- in /usr/src/new/rcs/src/rcsfnms.c line 100, 282
- in /usr/src/new/rcs/src/rcssyn.c line 94, 185, 203, 227, 283
- in /usr/src/new/rcs/src/rcsutil.c line 87, 180, 212
- in /usr/src/new/rcs/src/rlog.c line 89, 497, 610, 638, 645, 679, 912, 992, 1055, 1119
- in /usr/src/new/rcs/src/sccstorcs.c line 89-91(2)
- in /usr/src/new/rn/ndir.c line 37-41(2)
- in /usr/src/new/rn/util.c line 94-96(2)
- in /usr/src/new/vmsbackup/vmsbackup.c line 715
- in /usr/src/old/regexp.c line 97, 110
- in /usr/src/old/shortc/shortc.c line 61, 341
- in /usr/src/sbin/dcheck/dcheck.c line 58
- in /usr/src/sbin/icheck/icheck.c line 58, 160
- in /usr/src/sbin/init/init.c line 570
- in /usr/src/sbin/mount/mount.c line 423, 448
- in /usr/src/sbin/ncheck/ncheck.c line 223
- in /usr/src/sbin/quotacheck/preen.c line 206-209(2), 232-238(3)
- in /usr/src/sbin/quotacheck/quotacheck.c line 189, 501
- in /usr/src/sbin/route/route.c line 36, 150, 459
- in /usr/src/sbin/routed/defs.h line 61
- in /usr/src/sbin/routed/startup.c line 111, 134, 278
- in /usr/src/sbin/routed/tables.c line 134
- in /usr/src/sbin/routed/trace.c line 43, 105
- in /usr/src/sbin/savecore/savecore.c line 55, 112, 250
- in /usr/src/sbin/umount/umount.c line 148, 274
- in /usr/src/share/zoneinfo/ialloc.c line 20, 32-37(2)
- in /usr/src/sys/autoconfig/attach.c line 143-146(2), 156
- in /usr/src/sys/autoconfig/read_dtab.c line 19, 42, 58, 112-114(2)
- in /usr/src/ucb/Mail/def.h line 297
- in /usr/src/ucb/Mail/fio.c line 206
- in /usr/src/ucb/Mail/fmt.c line 53, 439
- in /usr/src/ucb/Mail/popen.c line 92, 145, 271
- in /usr/src/ucb/Mail/strings.c line 79
- in /usr/src/ucb/Mail/vars.c line 97
- in /usr/src/ucb/PORT/pascal/pdx/defs.h line 66-68(2), 85
- in /usr/src/ucb/PORT/pascal/pdx/library.c line 50-52(2), 69
- in /usr/src/ucb/PORT/pascal/px/int.c line 122
- in /usr/src/ucb/PORT/pascal/px/vars.h line 77
- in /usr/src/ucb/PORT/pascal/src/0.h line 718
- in /usr/src/ucb/PORT/pascal/src/case.c line 103
- in /usr/src/ucb/PORT/pascal/src/nl.c line 755-758(2)
- in /usr/src/ucb/PORT/pascal/src/pccaseop.c line 148
- in /usr/src/ucb/PORT/pascal/src/stab.c line 569
- in /usr/src/ucb/PORT/pascal/src/string.c line 72
- in /usr/src/ucb/PORT/pascal/src/subr.c line 115
- in /usr/src/ucb/PORT/pascal/src/tree.c line 116
- in /usr/src/ucb/PORT/pascal/utilities/pc.c line 594
- in /usr/src/ucb/PORT/pascal/utilities/pc3.c line 227, 618, 746
- in /usr/src/ucb/PORT/pascal/utilities/pmerge.c line 42, 93, 129
- in /usr/src/ucb/PORT/systat/netcmds.c line 162, 225
- in /usr/src/ucb/PORT/systat/netstat.c line 203
- in /usr/src/ucb/PORT/systat/swap.c line 233, 243
- in /usr/src/ucb/PORT/systat/systat.h line 91
- in /usr/src/ucb/PORT/systat/vmstat.c line 190, 649
- in /usr/src/ucb/checknr.c line 147, 173-175(2), 522
- in /usr/src/ucb/compress/compress.c line 429, 451
- in /usr/src/ucb/ctags.c line 285-289(2)
- in /usr/src/ucb/finger/sprint.c line 108-110(2)
- in /usr/src/ucb/finger/util.c line 247, 260
- in /usr/src/ucb/ftp/ftp.c line 711, 872
- in /usr/src/ucb/ftp/glob.c line 51, 617, 630
- in /usr/src/ucb/ftp/ruserpass.c line 126, 142, 154
- in /usr/src/ucb/grep.c line 246
- in /usr/src/ucb/last.c line 229
- in /usr/src/ucb/man/apropos.c line 52, 82
- in /usr/src/ucb/man/man.c line 64, 124, 325-328(2)
- in /usr/src/ucb/netstat/route.c line 39, 86
- in /usr/src/ucb/pascal/pi/case.c line 88
- in /usr/src/ucb/pascal/pi/nl.c line 619-622(2)
- in /usr/src/ucb/pascal/pi/string.c line 77
- in /usr/src/ucb/pascal/pi/subr.c line 118
- in /usr/src/ucb/pascal/pi/tree.c line 120
- in /usr/src/ucb/pascal/pxp/nl.c line 694
- in /usr/src/ucb/rdist/defs.h line 73, 127
- in /usr/src/ucb/rdist/expand.c line 548
- in /usr/src/ucb/rdist/gram.y line 431
- in /usr/src/ucb/rdist/server.c line 491-497(3)
- in /usr/src/ucb/rlogin.c line 38
- in /usr/src/ucb/rsh.c line 35, 127
- in /usr/src/ucb/ruptime.c line 36, 106
- in /usr/src/ucb/sccs.c line 756, 815
- in /usr/src/ucb/sendbug/bugfiler.c line 328
- in /usr/src/ucb/symcompact.c line 113, 148
- in /usr/src/ucb/symdump.c line 37, 82
- in /usr/src/ucb/symorder.c line 102
- in /usr/src/ucb/tn3270/map3270.c line 422-424(2)
- in /usr/src/ucb/users.c line 55
- in /usr/src/ucb/vacation.c line 453-455(2)
- in /usr/src/ucb/vgrind/regexp.c line 107, 120
- in /usr/src/ucb/vmstat.c line 624-629(3)
- in /usr/src/ucb/w.c line 385, 398
- in /usr/src/ucb/window/context.c line 27
- in /usr/src/ucb/window/string.c line 13, 98
- in /usr/src/ucb/window/string.h line 36
- in /usr/src/ucb/window/ttinit.c line 53
- in /usr/src/ucb/window/tttermcap.c line 15, 35, 52
- in /usr/src/ucb/window/var.c line 15, 33
- in /usr/src/ucb/window/wwalloc.c line 21
- in /usr/src/ucb/window/wwinit.c line 84, 110, 143
- in /usr/src/ucb/window/wwopen.c line 91, 131
- in /usr/src/ucb/window/wwsize.c line 45
- in /usr/src/usr.bin/at/atrm.c line 139
- in /usr/src/usr.bin/col.c line 208-213(2)
- in /usr/src/usr.bin/dc/dc.c line 1682-1685(2), 1699-1702(2), 1934-1936(2)
- in /usr/src/usr.bin/dc/dc.h line 116
- in /usr/src/usr.bin/egrep.y line 525
- in /usr/src/usr.bin/eqn/lex.c line 206-209(2)
- in /usr/src/usr.bin/eqn/lookup.c line 195, 210
- in /usr/src/usr.bin/fgrep.c line 156
- in /usr/src/usr.bin/fstat/fstat.c line 133, 197, 639, 645
- in /usr/src/usr.bin/graph/graph.c line 62, 78-79(2)
- in /usr/src/usr.bin/learn/learn.c line 42-43(2)
- in /usr/src/usr.bin/learn/mysys.c line 29, 50-57(3)
- in /usr/src/usr.bin/lint/lpass2.c line 663
- in /usr/src/usr.bin/m4/extern.h line 98
- in /usr/src/usr.bin/m4/misc.c line 179
- in /usr/src/usr.bin/patch/dist/util.c line 133
- in /usr/src/usr.bin/prof/prof.c line 218
- in /usr/src/usr.bin/ranlib/misc.c line 49, 76
- in /usr/src/usr.bin/ratfor/r.h line 63
- in /usr/src/usr.bin/ratfor/r1.c line 188, 241
- in /usr/src/usr.bin/ratfor/rlook.c line 18, 50, 68
- in /usr/src/usr.bin/spline.c line 277, 319-320(2)
- in /usr/src/usr.bin/struct/0.alloc.c line 21, 97
- in /usr/src/usr.bin/struct/beauty.y line 307
- in /usr/src/usr.bin/struct/tree.c line 16-20(2), 80, 94, 100
- in /usr/src/usr.bin/tip/tip.h line 243
- in /usr/src/usr.bin/tip/value.c line 76
- in /usr/src/usr.bin/tsort.c line 36, 65, 124-125(2)
- in /usr/src/usr.bin/uucp/anlwrk.c line 295
- in /usr/src/usr.bin/uucp/chkpth.c line 105
- in /usr/src/usr.bin/uucp/cico.c line 851
- in /usr/src/usr.bin/uucp/conn.c line 1082
- in /usr/src/usr.bin/uucp/pk0.c line 327
- in /usr/src/usr.bin/uucp/pk1.c line 53, 62
- in /usr/src/usr.bin/uucp/ulockf.c line 77
- in /usr/src/usr.bin/uucp/uuq.c line 247, 330, 368
- in /usr/src/usr.bin/uucp/uuxqt.c line 162
- in /usr/src/usr.bin/uucp/versys.c line 99
- in /usr/src/usr.bin/whereis/whereis.c line 81
- in /usr/src/usr.bin/xargs/xargs.c line 132, 168
- in /usr/src/usr.lib/lib2648/newmat.c line 33
- in /usr/src/usr.lib/libI77/lread.c line 368
- in /usr/src/usr.lib/libI77/rsnmle.c line 585
- in /usr/src/usr.lib/libU77/malloc_.c line 32-37(2), 53
- in /usr/src/usr.lib/libcurses/newwin.c line 18-20(2), 63, 159-164(2)
- in /usr/src/usr.lib/libident/id_open.c line 53
- in /usr/src/usr.lib/libident/ident.c line 89
- in /usr/src/usr.lib/libident/support.c line 25
- in /usr/src/usr.lib/libmp/mout.c line 57, 72
- in /usr/src/usr.lib/libmp/util.c line 11, 31
- in /usr/src/usr.sbin/arp/arp.c line 309
- in /usr/src/usr.sbin/cron/env.c line 29, 57
- in /usr/src/usr.sbin/cron/job.c line 48
- in /usr/src/usr.sbin/cron/misc.c line 465, 606
- in /usr/src/usr.sbin/cron/popen.c line 66
- in /usr/src/usr.sbin/cron/user.c line 66
- in /usr/src/usr.sbin/edquota/edquota.c line 194
- in /usr/src/usr.sbin/htable/htable.c line 158-160(2), 511
- in /usr/src/usr.sbin/htable/htable.h line 43
- in /usr/src/usr.sbin/htable/parse.y line 73
- in /usr/src/usr.sbin/inetd/inetd.c line 683
- in /usr/src/usr.sbin/lpr/common.c line 173, 183
- in /usr/src/usr.sbin/lpr/filters/rvsort.c line 297
- in /usr/src/usr.sbin/lpr/filters/vplotf.c line 115, 369
- in /usr/src/usr.sbin/lpr/lp.h line 89
- in /usr/src/usr.sbin/lpr/lpr.c line 661-663(2)
- in /usr/src/usr.sbin/lpr/recvjob.c line 98
- in /usr/src/usr.sbin/named/named/db.h line 109
- in /usr/src/usr.sbin/named/named/db_dump.c line 477
- in /usr/src/usr.sbin/named/named/db_load.c line 865, 912, 933
- in /usr/src/usr.sbin/named/named/db_save.c line 43, 69-71(2), 128, 165, 184
- in /usr/src/usr.sbin/named/named/ns_forw.c line 112
- in /usr/src/usr.sbin/named/named/ns_init.c line 439
- in /usr/src/usr.sbin/named/named/ns_main.c line 378, 468, 788
- in /usr/src/usr.sbin/named/named/ns_req.c line 317
- in /usr/src/usr.sbin/named/named/ns_resp.c line 609, 1157
- in /usr/src/usr.sbin/named/named/storage.c line 55-58(2), 139
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 136-141(2), 148
- in /usr/src/usr.sbin/named/tools/nstest.c line 50-51(2)
- in /usr/src/usr.sbin/ntp/ntp_proto.c line 154, 430
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 162, 215
- in /usr/src/usr.sbin/ntp/ntpd.c line 162, 771, 826, 895, 940, 1332
- in /usr/src/usr.sbin/pstat/pstat.c line 423-425(2)
- in /usr/src/usr.sbin/quot/quot.c line 46, 234
- in /usr/src/usr.sbin/rmt/rmt.c line 185
- in /usr/src/usr.sbin/rwhod/rwhod.c line 258, 366-369(2), 376
- in /usr/src/usr.sbin/sendmail.MX/src/util.c line 146
- in /usr/src/usr.sbin/sendmail/src/util.c line 146
- in /usr/src/usr.sbin/timed/globals.h line 93
- in /usr/src/usr.sbin/timed/master.c line 414
- in /usr/src/usr.sbin/timed/readmsg.c line 244
- in /usr/src/usr.sbin/timed/timed.c line 248, 601
- in /usr/src/usr.sbin/traceroute/traceroute.c line 227, 384

realloc defined in line 185; used 87 times

- in /usr/include/stdlib.h line 82
- in /usr/src/bin/as/as0.s line 2, 483
- in /usr/src/bin/as/as2.s line 5, 46
- in /usr/src/bin/diff/diff.c line 201-203(2)
- in /usr/src/bin/diff/diffdir.c line 214
- in /usr/src/bin/ed.c line 97, 725
- in /usr/src/bin/ls/ls.c line 292
- in /usr/src/bin/ps.c line 89, 583
- in /usr/src/bin/rm.c line 19
- in /usr/src/games/atc/grammar.y line 135, 165, 198, 229
- in /usr/src/games/hack/alloc.c line 22, 42
- in /usr/src/lib/libc/gen/scandir.c line 70
- in /usr/src/lib/libc/gen/setenv.c line 29, 48
- in /usr/src/lib/libc/gen/setmode.c line 155
- in /usr/src/libexec/comsat/comsat.c line 126
- in /usr/src/libexec/popper/pop_dropinfo.c line 65
- in /usr/src/libexec/tcpd/environ.c line 20, 164
- in /usr/src/local/mkovmake/mkovmake.c line 35, 462
- in /usr/src/local/mp/print.c line 146, 153
- in /usr/src/local/mtools/dir_make.c line 22, 63
- in /usr/src/local/mtools/mcopy.c line 97, 140, 146
- in /usr/src/new/PORT/B/src/bed/b.h line 53
- in /usr/src/new/PORT/B/src/bed/bobj.c line 16, 93
- in /usr/src/new/PORT/B/src/bed/getc.c line 81
- in /usr/src/new/PORT/B/src/bed/unix.c line 454
- in /usr/src/new/PORT/B/src/bint/b.h line 206
- in /usr/src/new/PORT/B/src/bint/b1mem.c line 153-157(2)
- in /usr/src/new/PORT/B/src/bsmall/b.h line 164
- in /usr/src/new/PORT/B/src/bsmall/b1mem.c line 32
- in /usr/src/new/PORT/perl.1.0.0/x2p/util.c line 55-57(2)
- in /usr/src/new/PORT/perl.1.0.10/x2p/util.c line 55-57(2)
- in /usr/src/new/PORT/perl.1.0.16/x2p/util.c line 55-57(2)
- in /usr/src/new/kermit5.188/ckcmdb.c line 45, 90
- in /usr/src/new/rn/util.c line 114-116(2)
- in /usr/src/sbin/init/init.c line 568
- in /usr/src/share/zoneinfo/ialloc.c line 21, 57
- in /usr/src/ucb/PORT/systat/netcmds.c line 164, 227
- in /usr/src/ucb/man/man.c line 325, 337
- in /usr/src/usr.bin/dc/dc.c line 1766-1770(3), 1798-1802(3), 1876
- in /usr/src/usr.bin/dc/dc.h line 118
- in /usr/src/usr.bin/graph/graph.c line 61, 254, 295
- in /usr/src/usr.bin/refer/refer7.c line 88, 113
- in /usr/src/usr.bin/struct/0.parts.c line 111
- in /usr/src/usr.lib/libI77/lread.c line 379
- in /usr/src/usr.lib/libI77/rsnmle.c line 594
- in /usr/src/usr.sbin/cron/env.c line 99
- in /usr/src/usr.sbin/lpr/common.c line 193
- in /usr/src/usr.sbin/named/named/db.h line 109
- in /usr/src/usr.sbin/named/named/ns_main.c line 798
- in /usr/src/usr.sbin/pstat/pstat.c line 447, 454
- in /usr/src/usr.sbin/rwhod/rwhod.c line 256

#### Defined variables

allocp defined in line 89; used 14 times

- in line 109-114(4), 154-160(6), 174-177(2), 221-225(2)

allocs defined in line 88; used 13 times

- in line 105-112(8), 128-129(2), 151, 172, 220

alloct defined in line 90; used 17 times

- in line 108-112(2), 118, 127-129(3), 146-155(8), 172-177(2), 224

allocx defined in line 91; used 2 times

- in line 157, 209

#### Defined union's

store defined in line 82; used 30 times

- in line 83-91(10), 99(2), 134(2), 143(2), 170(4), 187-191(6), 198(2), 217(2)

#### Defined macros

ALIGN defined in line 71; used 1 times

- in line 84

ASSERT defined in line 37; used 12 times

- in line 112-118(3), 127-129(2), 146, 155, 172-177(4), 224

BLOCK defined in line 74; used 3 times

- in line 139(3)

BUSY defined in line 76; used 3 times

- in line 78-80(3)

GRANULE defined in line 49; used 1 times

- in line 141

INT defined in line 70; used 4 times

- in line 78-80(3), 144

NALIGN defined in line 72; used 1 times

- in line 84

WORD defined in line 73; used 8 times

- in line 111(3), 139-143(3), 203(2)

clearbusy defined in line 80; used 5 times

- in line 125, 172-176(2), 220(2)

setbusy defined in line 79; used 5 times

- in line 106-107(2), 149-151(2), 160

testbusy defined in line 78; used 4 times

- in line 116-117(2), 175, 195

Last modified: 1999-01-19 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1441 |