Lines Matching defs:list

145 		/* sorted list of all mounted file systems */
147 /* number of mounted file systems in list */
2089 FSI_T *list;
2157 list = a_gdt->gd_fileSystemConfig;
2160 long mplen = strlen(list[n].fsi_mntPoint);
2165 if (strncmp(rootPath, list[n].fsi_mntPoint, mplen) == 0) {
2172 rootPath, list[nn].fsi_mntPoint, list[nn].fsi_fsType,
2173 list[nn].fsi_mntOptions);
2181 r = mountOptionPresent(list[nn].fsi_mntOptions, MNTOPT_RO);
2184 rootPath, list[nn].fsi_mntOptions);
2693 * Description: determine if specified mount option is present in list
2695 * Arguments: a_mntOptions - pointer to string containing list of mount
2699 * Returns: R_SUCCESS - option is present in list of mount point options
2716 /* return not present if no list of options to search */
2722 /* return not present if list of options to search is empty */
2728 /* make local copy of option list to search */
2749 * Description: perform an alphabetical sorted insert into a list
2750 * Arguments: r_list - pointer to list to insert next entry into
2751 * a_listSize - pointer to current list size
2764 FSI_T *list;
2778 /* localize references to the list and list size */
2781 list = *r_list;
2784 * if list empty insert this entry as the first one in the list
2788 /* allocate new entry for list */
2790 list = (FSI_T *)realloc(list, sizeof (FSI_T)*(listSize+1));
2793 list[0].fsi_mntPoint = strdup(a_mntPoint);
2794 list[0].fsi_fsType = strdup(a_fsType);
2795 list[0].fsi_mntOptions = strdup(a_mntOptions);
2798 list[1].fsi_mntPoint = NULL;
2799 list[1].fsi_fsType = NULL;
2800 list[1].fsi_mntOptions = NULL;
2802 /* restore list and list size references to caller */
2804 *r_list = list;
2810 * list not empty - scan looking for largest match
2816 /* compare target with current list entry */
2818 c = strcmp(list[n].fsi_mntPoint, a_mntPoint);
2824 /* entry already in list -- merge entries */
2826 len = strlen(list[n].fsi_mntOptions) +
2832 (void) strlcat(me, list[n].fsi_mntOptions, len);
2836 /* free old list, replace with merged one */
2838 free(list[n].fsi_mntOptions);
2839 list[n].fsi_mntOptions = me;
2842 n, list[n].fsi_mntPoint, a_fsType,
2843 list[n].fsi_fsType, a_mntOptions,
2844 list[n].fsi_mntOptions);
2858 list = (FSI_T *)realloc(list,
2860 (void) memmove(&(list[n+1]), &(list[n]),
2863 /* insert this entry into list */
2864 list[n].fsi_mntPoint = strdup(a_mntPoint);
2865 list[n].fsi_fsType = strdup(a_fsType);
2866 list[n].fsi_mntOptions = strdup(a_mntOptions);
2868 /* restore list and list size references to caller */
2870 *r_list = list;
2876 * all entries are before this one - append to end of list
2879 /* allocate new entry at end of list */
2881 list = (FSI_T *)realloc(list, sizeof (FSI_T)*(listSize+1));
2883 /* append this entry to the end of the list */
2884 list[listSize-1].fsi_mntPoint = strdup(a_mntPoint);
2885 list[listSize-1].fsi_fsType = strdup(a_fsType);
2886 list[listSize-1].fsi_mntOptions = strdup(a_mntOptions);
2888 /* restore list and list size references to caller */
2890 *r_list = list;
2895 * Description: generate sorted list of all mounted file systems
2898 * Returns: R_SUCCESS - successfully generated mounted file systems list
2908 FSI_T *list;
2915 /* allocate a list that has one termination entry */
2917 list = (FSI_T *)calloc(1, sizeof (FSI_T));
2918 list[0].fsi_mntPoint = NULL;
2919 list[0].fsi_fsType = NULL;
2920 list[0].fsi_mntOptions = NULL;
2938 sortedInsert(&list, &listSize,
2961 /* store list pointers in global data structure */
2963 a_gdt->gd_fileSystemConfig = list;
3766 /* generate list of all defined conditions */