Lines Matching defs:aname
56 static void rnetrc(const char *host, char **aname, char **apass);
118 _ruserpass(const char *host, char **aname, char **apass)
121 if (*aname == 0 || *apass == 0)
122 rnetrc(host, aname, apass);
123 if (*aname == 0) {
126 *aname = malloc(MAXANAME + 1);
131 if (read(2, *aname, MAXANAME) <= 0)
133 aname[0][MAXANAME] = '\0';
134 if ((*aname)[0] == '\n')
135 (void) strcpy(*aname, myname);
137 if (index(*aname, '\n'))
138 *index(*aname, '\n') = 0;
140 if (*aname && *apass == 0) {
142 host, *aname);
150 rnetrc(const char *host, char **aname, char **apass)
186 if (*aname == 0) {
187 *aname = malloc(strlen(d->tokval) + 1);
188 (void) strcpy(*aname, d->tokval);
190 if (strcmp(*aname, d->tokval))