Lines Matching defs:src
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1502 * map src dest
1598 * chars "src" is mapped into "dest". If src is already mapped into something
1604 addmac(unsigned char *src, unsigned char *dest, unsigned char *dname,
1611 fprintf(trace, "addmac(src='%s', dest='%s', dname='%s', mp=%x\n", src, dest, dname, mp);
1616 * checking to see if src is a suffix of dest
1620 if (src[1] == 0 && src[0] == dest[strlen(dest)-1])
1629 if (isalpha(src[0]) && isascii(src[0]) && src[1] || any(src[0],":"))
1634 if (eq(src, dest+strlen(dest)-strlen(src)))
1638 * If the src were null it would cause the dest to
1641 if (src == (unsigned char *)NOSTR || src[0] == 0)
1644 /* see if we already have a def for src */
1648 if (eq(src, mp[slot].cap) || eq(src, mp[slot].mapto))
1670 /* reuse empty slot, if we found one and src isn't already defined */
1677 /* Check is a bit conservative, we charge for dname even if reusing src */
1678 if (msnext - mapspace + strlen(dest) + strlen(src) + strlen(dname) + 3 > MAXCHARMACS)
1680 CP(msnext, src);
1682 msnext += strlen(src) + 1; /* plus 1 for null on the end */
1692 mp[slot].descr = src;