Home
last modified time | relevance | path

Searched refs:newopt (Results 1 – 4 of 4) sorted by relevance

/titanic_44/usr/src/cmd/dfs.cmds/sharemgr/
H A Dshareutil.c48 struct options *newopt, *tmp, *optlist; in add_opt() local
53 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()
/titanic_44/usr/src/lib/libshare/common/
H A Dlibshare_zfs.c981 char *newopt = NULL; in add_resources() local
985 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 …]
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Doptions.c1666 struct option_state *newopt; in parse_options() local
1743 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()
/titanic_44/usr/src/lib/libshell/common/sh/
H A Dinit.c207 register int newopt=0; in put_ed() local
216 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()