Lines Matching refs:NULL

70 	dfstab_entry_t *dfstablist, *headptr, *tailptr = NULL;
75 if ((dfp = fopen(DFSTAB, "r")) != NULL) {
79 fileutil_getline(dfp, cmd, BUFSIZE)) != NULL) {
82 NULL) {
83 if (tailptr == NULL) {
97 if (tailptr == NULL) {
105 headptr = NULL;
115 if ((dfp = fopen(DFSTAB, "a")) != NULL) {
117 if ((share_cmd = create_share_cmd(list, NULL, err)) != NULL) {
137 while (headp != NULL) {
139 if (headp->path != NULL) {
142 if (headp->resource != NULL) {
145 if (headp->fstype != NULL) {
148 if (headp->options != NULL) {
151 if (headp->description != NULL) {
154 headp->next = NULL;
167 if (cmd == NULL) {
169 return (NULL);
187 if (temp_line != NULL && strchr(temp_line, '#')) {
218 if (temp_str == NULL) {
220 return (NULL);
224 arglist[argcount] != NULL; /* CSTYLED */) {
225 arglist[++argcount] = strtok(NULL, whitespace);
231 if (dfstablist == NULL) {
234 return (NULL);
241 *err |= (dfstablist->fstype != NULL);
243 if (dfstablist->fstype == NULL) {
247 return (NULL);
252 *err |= (dfstablist->description != NULL);
254 if (dfstablist->description == NULL) {
258 return (NULL);
263 *err |= (dfstablist->options != NULL);
265 if (dfstablist->options == NULL) {
269 return (NULL);
277 if (dfstablist->fstype == NULL) {
280 if ((fp = fopen(DFSTYPES, "r")) == NULL) {
285 return (NULL);
293 if (dfstablist->path == NULL) {
297 return (NULL);
313 char **temp_dfstab = NULL;
316 if ((fp = fopen(DFSTAB, "r")) != NULL) {
320 while (fgets(cmd, BUFSIZE, fp) != NULL) {
322 fileutil_get_cmd_from_string(cmd)) == NULL) {
325 ret_val = NULL;
333 NULL) {
335 ret_val = NULL;
340 char *new_cmd = NULL;
342 if (new_entry != NULL && (new_cmd =
344 err)) != NULL) {
348 ret_val = NULL;
360 ret_val = NULL;
370 if (line_found && temp_dfstab != NULL) {
371 if ((fp = fopen(DFSTAB, "w")) != NULL) {
384 ret_val = NULL;
388 if (temp_dfstab != NULL) {
391 ret_val = NULL;
395 ret_val = NULL;
417 if (dfstab_ent == NULL) {
419 return (NULL);
424 return (NULL);
446 if (new_entry == NULL) {
448 return (NULL);
450 if (path != NULL) {
455 return (NULL);
457 if (fstype != NULL) {
462 if ((fp = fopen(DFSTYPES, "r")) == NULL) {
467 return (NULL);
474 if (options != NULL) {
477 if (description != NULL) {
483 return (NULL);
496 if (entryptr == NULL) {
497 return (NULL);
509 if (entryptr == NULL) {
510 return (NULL);
522 if (entryptr == NULL) {
523 return (NULL);
535 if (entryptr == NULL) {
536 return (NULL);
548 if (entryptr == NULL) {
549 return (NULL);
574 if (listptr == NULL) {
575 return (NULL);
587 if (dfstab_ent == NULL) {
588 return (NULL);
590 share_cmd = create_share_cmd((dfstab_entry_t *)dfstab_ent, NULL, err);
603 dfstab_line_to_dfstab_entry(old_cmd, err)) == NULL) {
604 return (NULL);
607 dfstab_line_to_dfstab_entry(new_cmd, err)) == NULL) {
608 return (NULL);
611 change_dfstab_ent(old_dfstabent, new_dfstabent, err)) == NULL) {
612 return (NULL);
628 dfstab_line_to_dfstab_entry(del_cmd, err)) == NULL) {
629 return (NULL);
632 change_dfstab_ent(del_dfstabent, NULL, err)) == NULL) {
633 return (NULL);
648 if (path != NULL) {
649 if ((del_dfstabent.path = strdup(path)) != NULL) {
651 NULL, err)) == NULL) {
652 ret_val = NULL;
657 ret_val = NULL;
661 ret_val = NULL;
674 if (path == NULL) {
678 if (dfstablist != NULL) {
679 while (dfstablist != NULL) {
709 while (list != NULL) {
711 if (fs_get_DFStab_ent_Fstype(list) != NULL)
713 if (fs_get_DFStab_ent_Desc(list) != NULL)
716 if (fs_get_DFStab_ent_Options(list) != NULL)
719 if (fs_get_DFStab_ent_Path(list) != NULL)