Searched refs:newopt (Results 1 – 4 of 4) sorted by relevance
46 struct options *newopt, *tmp, *optlist; in add_opt() local51 newopt = (struct options *)malloc(sizeof (struct options)); in add_opt()52 if (newopt == NULL) in add_opt()60 free(newopt); in add_opt()68 newopt->optname = optname; in add_opt()69 newopt->optvalue = optvalue; in add_opt()70 newopt->next = NULL; in add_opt()72 optlist = newopt; in add_opt()83 free(newopt); in add_opt()87 tmp->next = newopt; in add_opt()
1157 char *newopt = NULL; in add_resources() local1161 newopt = strdup(opt); in add_resources()1162 if (newopt == NULL) in add_resources()1163 return (newopt); in add_resources()1173 free(newopt); in add_resources()1177 newopt = calloc(1, size); in add_resources()1178 if (newopt != NULL) in add_resources()1179 (void) snprintf(newopt, size, "%s,name=%s", opt, name); in add_resources()1182 opt = newopt; in add_resources()1189 newopt = calloc(1, size); in add_resources()[all …]
1667 struct option_state *newopt; in parse_options() local1744 newopt = organize_state(&pstate); in parse_options()1747 if (newopt == NULL && glob_svc.se_log != NULL) { in parse_options()1767 if (newopt != NULL) { in parse_options()1768 newdep = newopt->os_devices; in parse_options()1769 newmax = newdep + newopt->os_ndevices; in parse_options()1828 cur_options = newopt; in parse_options()
258 register int newopt=0; in put_ed() local267 newopt=SH_VI; in put_ed()269 newopt=SH_GMACS; in put_ed()271 newopt=SH_EMACS; in put_ed()272 if(newopt) in put_ed()277 sh_onoption(newopt); in put_ed()