Searched refs:newopt (Results 1 – 4 of 4) sorted by relevance
48 struct options *newopt, *tmp, *optlist; in add_opt() local53 newopt = (struct options *)malloc(sizeof (struct options)); in add_opt()54 if (newopt == NULL) in add_opt()62 free(newopt); in add_opt()70 newopt->optname = optname; in add_opt()71 newopt->optvalue = optvalue; in add_opt()72 newopt->next = NULL; in add_opt()74 optlist = newopt; in add_opt()85 free(newopt); in add_opt()89 tmp->next = newopt; in add_opt()
981 char *newopt = NULL; in add_resources() local985 newopt = strdup(opt); in add_resources()986 if (newopt == NULL) in add_resources()987 return (newopt); in add_resources()997 free(newopt); in add_resources()1001 newopt = calloc(1, size); in add_resources()1002 if (newopt != NULL) in add_resources()1003 (void) snprintf(newopt, size, "%s,name=%s", opt, name); in add_resources()1006 opt = newopt; in add_resources()1013 newopt = calloc(1, size); in add_resources()[all …]
1666 struct option_state *newopt; in parse_options() local1743 newopt = organize_state(&pstate); in parse_options()1746 if (newopt == NULL && glob_svc.se_log != NULL) { in parse_options()1766 if (newopt != NULL) { in parse_options()1767 newdep = newopt->os_devices; in parse_options()1768 newmax = newdep + newopt->os_ndevices; in parse_options()1827 cur_options = newopt; in parse_options()
207 register int newopt=0; in put_ed() local216 newopt=SH_VI; in put_ed()218 newopt=SH_GMACS; in put_ed()220 newopt=SH_EMACS; in put_ed()221 if(newopt) in put_ed()226 sh_onoption(newopt); in put_ed()