Lines Matching refs:alias
1 /* $NetBSD: alias.c,v 1.12 2003/08/07 09:05:29 agc Exp $ */
38 static char sccsid[] = "@(#)alias.c 8.3 (Berkeley) 5/4/95";
40 __RCSID("$NetBSD: alias.c,v 1.12 2003/08/07 09:05:29 agc Exp $");
51 #include "alias.h"
57 struct alias *atab[ATABSIZE];
61 STATIC struct alias **hashalias(char *);
67 struct alias *ap, **app;
81 ap = ckmalloc(sizeof (struct alias));
85 * alias value off the input before processing the next alias, we
86 * dummy up an extra space at the end of the alias. This is a crock
88 * is to avoid alias recursions. The mechanism used is: when
89 * expanding an alias, the value of the alias is pushed back on the
90 * input as a string and a pointer to the alias is stored with the
91 * string. The alias is marked as being in use. When the input
92 * routine finishes reading the string, it markes the alias not
94 * it reads ahead, the alias is marked not in use before the
95 * resulting token(s) is next checked for further alias sub. The
96 * H A C K is that we add a little fluff after the alias value
119 struct alias *ap, **app;
126 * if the alias is currently in use (i.e. its
160 struct alias *ap, *tmp;
178 struct alias *
181 struct alias *ap = *hashalias(name);
197 struct alias *ap;
213 struct alias *ap;
221 out1fmt("alias %s=", ap->name);
231 outfmt(out2, "alias: %s not found\n", n);
234 out1fmt("alias %s=", n);
264 STATIC struct alias **