Lines Matching refs:err
68 get_dfstab_ents(int *err)
73 *err = 0;
81 dfstab_line_to_dfstab_entry(share_cmd, err)) !=
103 *err = errno;
111 add_entry_to_dfstab(dfstab_entry_t *list, int *err)
117 if ((share_cmd = create_share_cmd(list, NULL, err)) != NULL) {
124 *err = errno;
127 *err = errno;
161 create_share_cmd(dfstab_entry_t *new_entry, char *temp_line, int *err)
168 *err = errno;
201 * int *err - a pointer for returning any error codes encountered
204 dfstab_line_to_dfstab_entry(char *cmd, int *err)
219 *err = ENOMEM;
232 *err = ENOMEM;
241 *err |= (dfstablist->fstype != NULL);
244 *err = ENOMEM;
252 *err |= (dfstablist->description != NULL);
255 *err = ENOMEM;
263 *err |= (dfstablist->options != NULL);
266 *err = ENOMEM;
273 *err = 1;
294 *err = ENOMEM;
307 int *err)
324 &temp_dfstab, cmd, &count, err)) {
332 dfstab_line_to_dfstab_entry(share_cmd, err)) ==
344 err)) != NULL) {
347 err)) {
358 &temp_dfstab, cmd, &count, err)) {
378 ret_val = get_dfstab_ents(err);
381 *err = errno;
394 *err = errno;
409 * int *err - an error pointer for retruning any errors
412 fs_add_DFStab_ent(char *cmd, int *err)
416 dfstab_ent = dfstab_line_to_dfstab_entry(cmd, err);
418 *err = errno;
421 add_entry_to_dfstab(dfstab_ent, err);
422 if (*err != 0) {
427 return (get_dfstab_ents(err));
440 int *err)
447 *err = ENOMEM;
453 *err = EINVAL;
480 add_entry_to_dfstab(new_entry, err);
481 if (*err != 0) {
486 return (get_dfstab_ents(err));
560 fs_get_DFStab_ents(int *err)
563 list = get_dfstab_ents(err);
584 fs_get_Dfstab_share_cmd(fs_dfstab_entry_t dfstab_ent, int *err)
590 share_cmd = create_share_cmd((dfstab_entry_t *)dfstab_ent, NULL, err);
598 fs_edit_DFStab_ent(char *old_cmd, char *new_cmd, int *err)
603 dfstab_line_to_dfstab_entry(old_cmd, err)) == NULL) {
607 dfstab_line_to_dfstab_entry(new_cmd, err)) == NULL) {
611 change_dfstab_ent(old_dfstabent, new_dfstabent, err)) == NULL) {
623 fs_del_DFStab_ent(char *del_cmd, int *err)
628 dfstab_line_to_dfstab_entry(del_cmd, err)) == NULL) {
632 change_dfstab_ent(del_dfstabent, NULL, err)) == NULL) {
644 fs_del_All_DFStab_ents_with_Path(char *path, int *err)
651 NULL, err)) == NULL) {
656 *err = ENOMEM;
660 *err = EINVAL;
668 fs_check_for_duplicate_DFStab_paths(char *path, int *err)
673 *err = 0;
677 dfstablist = get_dfstab_ents(err);
688 if (err != 0)
689 count = *err;