Lines Matching refs:NULL

112 	if (sigs != NULL) {
113 (void) sigprocmask(SIG_BLOCK, NULL, &new);
130 if (sigs != NULL)
131 (void) sigprocmask(SIG_SETMASK, sigs, NULL);
146 if (item != NULL)
164 if (list == NULL) {
167 if (list == NULL)
168 return (NULL);
171 if (list->path == NULL && list->description != NULL &&
173 for (prev = NULL, i = 0; i < DFSTAB_NOTICE_LINES; i++) {
175 if (item != NULL) {
177 if (prev == NULL) {
211 xfs_sharelist_t *item = NULL, *first = NULL, *last;
213 if (dfs != NULL) {
214 first = NULL;
216 while (fgets(buff, sizeof (buff), dfs) != NULL) {
221 if (item != NULL) {
225 if (first == NULL) {
241 if (item == NULL) {
243 } else if (first == NULL) {
252 (void) _sa_get_token(NULL); /* reset to new pointers */
254 while ((token = _sa_get_token(bp)) != NULL) {
288 if (optgroup != NULL)
290 if (optgroup != NULL)
292 if (resource != NULL &&
299 if (item != NULL && item->fstype == NULL)
319 for (item = list; item != NULL; item = item->next) {
320 if (item->path != NULL && strcmp(item->path, path) == 0)
323 return (NULL);
336 xfs_sharelist_t *item, *prev = NULL;
339 for (item = prev = list; item != NULL; item = item->next) {
341 if (item->path == NULL) {
345 /* if proto is NULL, remove all protocols */
346 if (proto == NULL || (strcmp(item->path, path) == 0 &&
347 (item->fstype != NULL && strcmp(item->fstype, proto) == 0)))
349 if (item->fstype == NULL &&
350 (proto == NULL || strcmp(proto, "nfs") == 0))
354 if (item != NULL) {
359 item->next = NULL;
374 xfs_sharelist_t *item, *prev = NULL;
376 for (item = prev = list; item != NULL; item = item->next) {
378 if (item->path == NULL) {
386 if (item != NULL) {
391 item->next = NULL;
412 if (item != NULL) {
415 if (groupname != NULL && strcmp(groupname, "default") == 0) {
417 groupname = NULL;
424 if (item->options != NULL && strlen(item->options) == 0) {
426 item->options = NULL;
429 if (item->description != NULL &&
432 item->description = NULL;
434 if (list == NULL) {
437 for (tmp = list; tmp->next != NULL; tmp = tmp->next)
459 for (item = list; item != NULL; item = item->next) {
460 if (item->path != NULL) {
464 (item->fstype != NULL) ? "-F " : "",
465 (item->fstype != NULL) ? item->fstype : "",
466 (item->options != NULL) ? " -o " : "",
467 (item->options != NULL) ?
469 (item->description != NULL) ?
471 (item->description != NULL) ?
473 (item->description != NULL) ? "\"" : "",
475 ((item->resource != NULL) ||
476 (item->group != NULL)) ? " " : "",
477 (item->resource != NULL) ?
479 item->group != NULL ? "@" : "",
480 item->group != NULL ? item->group : "");
485 if (item->description != NULL)
510 if (dfstab == NULL) {
513 if (dfstab != NULL) {
516 if (buff != NULL)
523 grp != NULL ? grp->gr_gid : 3);
524 if (buff != NULL)
546 if (dfstab != NULL) {
547 (void) setvbuf(dfstab, NULL, _IOLBF, BUFSIZ * 8);
555 * gone to NULL if the file only had one line in it.
565 if (list != NULL)
593 if (path == NULL)
597 if (dfstab != NULL) {
598 (void) setvbuf(dfstab, NULL, _IOLBF, BUFSIZ * 8);
601 if (parent != NULL) {
606 if (protocol != NULL) {
607 if (list != NULL)
611 for (optionset = sa_get_optionset(parent, NULL);
612 optionset != NULL;
618 if (list != NULL && proto != NULL)
621 if (proto == NULL)
634 if (proto != NULL)
639 if (list != NULL)
655 if (path != NULL)
699 if (persist == NULL || strcmp(persist, "transient") != 0) {
701 if (path == NULL) {
706 if (dfstab != NULL) {
707 (void) setvbuf(dfstab, NULL, _IOLBF, BUFSIZ * 8);
713 if (list != NULL)
723 if (list != NULL)
734 if (persist != NULL)
750 if (proto != NULL)
767 node = xmlNewChild(root, NULL, (xmlChar *)"error", (xmlChar *)line);
768 if (node != NULL)
783 if (object != NULL) {
798 if (object != NULL) {
829 xmlNodePtr parent_node = NULL;
830 xmlNodePtr child_node = NULL;
832 parent_node = xmlNewNode(NULL, (xmlChar *)"group");
833 if (parent_node != NULL) {
834 child_node = xmlNewChild(parent_node, NULL, (xmlChar *)"share",
835 NULL);
836 if (child_node != NULL) {
869 if (node != NULL) {
872 if (name != NULL) {
882 if (parent != NULL) {
919 * If "group" is NULL, this is just a parse without saving
923 if (group == NULL) {
930 if (proto != NULL)
946 if (parent == NULL)
952 if (optionset != NULL) {
953 for (popt = sa_get_property(optionset, NULL);
954 popt != NULL;
959 if (tag == NULL)
962 if (prop != NULL) {
967 if (value != NULL && pvalue != NULL &&
983 if (value != NULL)
985 if (pvalue != NULL)
990 prop = sa_get_property(localoptions, NULL);
991 if (prop == NULL && sa_is_share(group)) {
1007 if (localoptions != NULL) {
1008 for (prop = sa_get_property(localoptions, NULL);
1009 prop != NULL;
1014 if (tag != NULL) {
1015 sa_property_t nextpopt = NULL;
1022 for (popt = sa_get_property(security, NULL);
1023 popt != NULL;
1035 if (value != NULL && pvalue != NULL &&
1044 if (value != NULL)
1047 if (pvalue != NULL)
1061 * dereference any NULL members.
1068 for (entry = list; entry != NULL; entry = list) {
1069 if (entry->path != NULL)
1071 if (entry->resource != NULL)
1073 if (entry->fstype != NULL)
1075 if (entry->options != NULL)
1077 if (entry->description != NULL)
1079 if (entry->origline != NULL)
1081 if (entry->group != NULL)
1101 sa_group_t sgroup = NULL;
1112 if (dfs == NULL)
1118 list != NULL;
1120 share = NULL;
1121 group = NULL;
1125 if (list->origline == NULL) {
1132 if (list->description != NULL &&
1138 if (line != NULL) {
1141 if (cmd != NULL) {
1155 if (list->path != NULL && strlen(list->path) > 0 &&
1158 if (share != NULL)
1161 sgroup = NULL;
1171 if (list->group != NULL && strlen(list->group) > 0) {
1177 if (defined_group && group == NULL) {
1186 if (group == NULL) {
1191 if (share == NULL) {
1197 if (share != NULL) {
1198 if (list->description != NULL &&
1202 if (list->options != NULL &&
1207 if (list->resource != NULL)
1245 if (oldprops == NULL)
1248 if (list->options != NULL &&
1259 (sa_group_t)share, NULL, list->fstype);
1260 secs != NULL;
1262 NULL, list->fstype)) {
1294 if (dfstab != NULL) {
1298 for (share = sa_get_share(group, NULL);
1299 share != NULL;
1303 if (path != NULL) {
1306 if (item == NULL) {
1317 if (list != NULL)
1334 if (root != NULL) {
1335 if (*root == NULL)
1336 *root = xmlNewNode(NULL, (xmlChar *)"sharecfg");
1337 if (*root != NULL) {
1347 if (defgroup != NULL)
1371 headp = NULL;
1372 tailp = NULL;
1374 if ((fp = fopen(SHARETAB, "r")) != NULL) {
1382 if (newp == NULL) {
1392 if (headp == NULL) {
1406 if (newp->path == NULL || newp->resource == NULL ||
1407 newp->fstype == NULL || newp->options == NULL ||
1408 newp->description == NULL) {
1432 return (NULL);
1457 if (list == NULL)
1462 for (tmplist = list; tmplist != NULL; tmplist = tmplist->next) {
1463 group = NULL;
1465 if (share != NULL) {
1485 if (tmplist->resource != NULL &&
1486 (groupname = strchr(tmplist->resource, '@')) != NULL) {
1490 if (group != NULL) {
1517 if (group == NULL) {
1520 if (group == NULL &&
1527 if (group != NULL) {
1534 if (group != NULL) {
1545 if (share == NULL)
1548 if (share != NULL)
1551 if (tmplist->options != NULL &&
1556 if (tmplist->resource != NULL &&
1560 if (tmplist->description != NULL) {
1562 node = xmlNewChild((xmlNodePtr)share, NULL,
1563 (xmlChar *)"description", NULL);
1584 char **protocols = NULL;
1587 if (root != NULL) {
1588 if (*root == NULL)
1589 *root = xmlNewNode(NULL, (xmlChar *)"sharecfg");
1590 if (*root != NULL) {
1596 if (protocols != NULL)
1616 if (optionset != NULL) {
1618 if (name != NULL) {
1620 if (otherprop != NULL)
1660 if (proto != NULL && property != NULL) {
1692 return (NULL);
1720 (group = sa_get_parent_group((sa_share_t)object)) != NULL) {
1724 newoptionset = (sa_optionset_t)xmlNewNode(NULL,
1726 if (newoptionset != NULL) {
1731 if (newoptionset == NULL)
1732 return (NULL);
1736 if (optionset != NULL) {
1739 for (prop = sa_get_property(optionset, NULL);
1740 prop != NULL;
1747 if (name == NULL)
1751 if (newprop != NULL) {
1753 * Only set if value is non NULL, old value ok
1754 * if it is NULL.
1756 if (value != NULL)
1760 if (value != NULL) {
1763 if (newprop != NULL) {
1773 if (value != NULL)
1784 if (optionset != NULL) {
1809 options = NULL;
1812 (group = sa_get_parent_group((sa_share_t)object)) != NULL)
1815 options = (sa_optionset_t)xmlNewNode(NULL,
1818 if (options == NULL)
1822 for (security = sa_get_security((sa_group_t)object, NULL, NULL);
1823 security != NULL;
1829 if (type != NULL) {
1835 if (sectype != NULL) {
1841 if (sa_get_property(options, sectype) == NULL) {
1844 if (prop != NULL)
1877 (group = sa_get_parent_group((sa_share_t)object)) != NULL) {
1881 newsecurity = (sa_security_t)xmlNewNode(NULL,
1883 if (newsecurity != NULL) {
1889 if (newsecurity == NULL)
1894 if (security == NULL)
1898 for (prop = sa_get_property(security, NULL);
1899 prop != NULL; prop = sa_get_next_property(prop)) {
1905 if (name != NULL) {
1908 if (newprop != NULL) {
1910 * Only set if value is non NULL, old
1911 * value ok if it is NULL. The value
1915 if (value != NULL)
1919 if (value != NULL) {
1929 if (value != NULL)
1939 if (security != NULL) {
1959 char *groupname = NULL;
1965 char *rsrcname = NULL;
1979 if (group != NULL) {
1983 if (groupname != NULL &&
1984 (strcmp(groupname, "default") == 0 || zfs != NULL)) {
1992 groupname = NULL;
1994 if (zfs != NULL)
1999 if (value != NULL) {
2004 if (rsrcname != NULL || groupname != NULL) {
2007 if (rsrcname != NULL)
2009 if (groupname != NULL)
2014 (rsrcname != NULL &&
2016 groupname != NULL ? "@" : "",
2017 groupname != NULL ? groupname : "");
2019 if (rsrcname != NULL)
2021 if (groupname != NULL)
2038 if (value != NULL) {
2049 if (value != NULL) {
2060 * Free the strings in the non-NULL members of sh.
2066 if (sh->sh_path != NULL)
2068 sh->sh_path = NULL;
2069 if (sh->sh_res != NULL)
2071 sh->sh_res = NULL;
2072 if (sh->sh_fstype != NULL)
2074 sh->sh_fstype = NULL;
2075 if (sh->sh_opts != NULL)
2077 sh->sh_opts = NULL;
2078 if (sh->sh_descr != NULL)
2080 sh->sh_descr = NULL;
2096 if (implhandle != NULL && stat(SA_LEGACY_SHARETAB, &st) == 0)
2116 if (path != NULL) {
2120 if (handle != NULL) {
2159 if (path != NULL && proto != NULL) {
2165 if (handle != NULL && stat(SA_LEGACY_SHARETAB, &st) == 0)
2186 if (handle == NULL)
2207 if (prop != NULL) {
2209 if (str != NULL)
2210 tstamp = strtoull(str, NULL, 0);
2242 assert(path != NULL);
2249 if (q != NULL && q != path) {
2264 while ((q != NULL) && (strlen(q) > SA_MAX_RESOURCE_NAME)) {
2265 if ((q = strchr(q, '/')) != NULL) {