Home | History | Annotate | Download | only in last

Lines Matching defs:ARG

94 typedef struct arg {
99 int type; /* type of arg */
100 struct arg *next; /* linked list pointer */
101 } ARG;
102 static ARG *arglist; /* head of linked list */
272 addarg(int type, const char *arg)
274 ARG *cur;
276 if (!(cur = (ARG *)malloc(sizeof(ARG))))
280 cur->name = arg;
308 hostconv(char *arg)
314 if (!(argdot = strchr(arg, '.')))
332 ttyconv(char *arg)
336 if (!strcmp(arg, "co"))
342 if (strlen(arg) == 2) {
343 if (asprintf(&mval, "tty%s", arg) == -1)
347 if (!strncmp(arg, _PATH_DEV, sizeof(_PATH_DEV) - 1))
348 return (&arg[sizeof(_PATH_DEV) - 1]);
349 return (arg);