Searched refs:item (Results 1 - 25 of 442) sorted by relevance

1234567891011>>

/freebsd-10.0-release/contrib/ncurses/menu/
H A Dm_item_nam.c35 * Get menus item name and description *
44 | Function : char *item_name(const ITEM *item)
46 | Description : Return name of menu item
48 | Return Values : See above; returns NULL if item is invalid
51 item_name(const ITEM * item) argument
53 T((T_CALLED("item_name(%p)"), item));
54 returnCPtr((item) ? item->name.str : (char *)0);
59 | Function : char *item_description(const ITEM *item)
61 | Description : Returns description of item
66 item_description(const ITEM * item) argument
[all...]
H A Dm_item_use.c44 | Function : int set_item_userptr(ITEM *item, void *userptr)
46 | Description : Set the pointer that is reserved in any item to store
52 set_item_userptr(ITEM * item, void *userptr) argument
54 T((T_CALLED("set_item_userptr(%p,%p)"), item, userptr));
55 Normalize_Item(item)->userptr = userptr;
61 | Function : void *item_userptr(const ITEM *item)
63 | Description : Return the pointer that is reserved in any item to store
70 item_userptr(const ITEM * item) argument
72 T((T_CALLED("item_userptr(%p)"), item));
73 returnVoidPtr(Normalize_Item(item)
[all...]
H A Dm_item_vis.c35 * Tell if menu item is visible *
44 | Function : bool item_visible(const ITEM *item)
46 | Description : A item is visible if it currently appears in the
53 item_visible(const ITEM * item)
57 T((T_CALLED("item_visible(%p)"), item));
58 if (item &&
59 (menu = item->imenu) &&
61 ((menu->toprow + menu->arows) > (item->y)) &&
62 (item->y >= menu->toprow))
H A Dm_item_opt.c35 * Menus item option routines *
44 | Function : int set_item_opts(ITEM *item, Item_Options opts)
46 | Description : Set the options of the item. If there are relevant
47 | changes, the item is connected and the menu is posted,
51 | E_BAD_ARGUMENT - invalid item options
54 set_item_opts(ITEM * item, Item_Options opts) argument
56 T((T_CALLED("set_menu_opts(%p,%d)"), item, opts));
63 if (item)
65 if (item->opt != opts)
67 MENU *menu = item
97 item_opts_off(ITEM * item, Item_Options opts) argument
125 item_opts_on(ITEM * item, Item_Options opts) argument
[all...]
H A Dm_item_cur.c35 * Set and get current menus item *
44 | Function : int set_current_item(MENU *menu, const ITEM *item)
46 | Description : Make the item the current item
51 set_current_item(MENU * menu, ITEM * item) argument
53 T((T_CALLED("set_current_item(%p,%p)"), menu, item));
55 if (menu && item && (item->imenu == menu))
61 if (item != menu->curitem)
73 /* adjust the window to make item visibl
107 item_index(const ITEM * item) argument
[all...]
H A Dm_item_val.c35 * Set and get menus item values *
44 | Function : int set_item_value(ITEM *item, int value)
46 | Description : Programmatically set the item's selection value. This is
47 | only allowed if the item is selectable at all and if
49 | If the item is connected to a posted menu, the menu
56 set_item_value(ITEM * item, bool value) argument
60 T((T_CALLED("set_item_value(%p,%d)"), item, value));
61 if (item)
63 menu = item->imenu;
65 if ((!(item
[all...]
H A Dm_driver.c97 | ITEM **item)
100 | at an item with three different classes of characters:
102 | the current pattern and the next item matching
104 | - NUL; the pattern stays as it is and the next item
107 | item matching the pattern is searched
109 | The item parameter contains on call a pointer to
110 | the item where the search starts. On return - if
112 | matching item.
114 | Return Values : E_OK - an item matching the pattern was found
119 (MENU * menu, int ch, ITEM ** item)
118 _nc_Match_Next_Character_In_Item_Name(MENU * menu, int ch, ITEM ** item) argument
220 ITEM *item; local
[all...]
H A Dm_item_new.c103 | Description : Create a new item with name and description. Return
104 | a pointer to this new item.
105 | N.B.: an item must(!) have a name.
107 | Return Values : The item pointer or NULL if creation failed.
112 ITEM *item; local
120 item = (ITEM *) 0;
125 item = (ITEM *) calloc(1, sizeof(ITEM));
126 if (item)
128 *item = _nc_Default_Item; /* hope we have struct assignment */
130 item
163 free_item(ITEM * item) argument
[all...]
H A Dmenu.priv.h53 /* Normalize item to default if none was given */
54 #define Normalize_Item( item ) ((item)=(item)?(item):&_nc_Default_Item)
80 /* Move to the window position of an item and draw it */
81 #define Move_And_Post_Item(menu,item) \
82 {wmove((menu)->win,(menu)->spc_rows*(item)->y,((menu)->itemlen+(menu)->spc_cols)*(item)->x);\
83 _nc_Post_Item((menu),(item));}
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/pqueue/
H A Dpq_test.c65 pitem *item; local
70 item = pitem_new(3, NULL);
71 pqueue_insert(pq, item);
73 item = pitem_new(1, NULL);
74 pqueue_insert(pq, item);
76 item = pitem_new(2, NULL);
77 pqueue_insert(pq, item);
79 item = pqueue_find(pq, 1);
80 fprintf(stderr, "found %ld\n", item->priority);
82 item
[all...]
H A Dpqueue.c73 pitem *item = (pitem *) OPENSSL_malloc(sizeof(pitem)); local
74 if (item == NULL) return NULL;
76 memcpy(item->priority,prio64be,sizeof(item->priority));
78 item->data = data;
79 item->next = NULL;
81 return item;
85 pitem_free(pitem *item) argument
87 if (item == NULL) return;
89 OPENSSL_free(item);
111 pqueue_insert(pqueue_s *pq, pitem *item) argument
159 pitem *item = pq->items; local
205 pitem *item = pq->items; local
225 pqueue_next(pitem **item) argument
243 pitem *item = pq->items; local
[all...]
/freebsd-10.0-release/sys/dev/drm2/
H A Ddrm_global.c52 struct drm_global_item *item = &glob[i]; local
53 sx_init(&item->mutex, "drmgi");
54 item->object = NULL;
55 item->refcount = 0;
63 struct drm_global_item *item = &glob[i]; local
64 MPASS(item->object == NULL);
65 MPASS(item->refcount == 0);
66 sx_destroy(&item->mutex);
73 struct drm_global_item *item = &glob[ref->global_type]; local
76 sx_xlock(&item
100 struct drm_global_item *item = &glob[ref->global_type]; local
[all...]
/freebsd-10.0-release/contrib/wpa/src/utils/
H A Dlist.h26 static inline void dl_list_add(struct dl_list *list, struct dl_list *item) argument
28 item->next = list->next;
29 item->prev = list;
30 list->next->prev = item;
31 list->next = item;
34 static inline void dl_list_add_tail(struct dl_list *list, struct dl_list *item) argument
36 dl_list_add(list->prev, item);
39 static inline void dl_list_del(struct dl_list *item) argument
41 item->next->prev = item
54 struct dl_list *item; local
[all...]
/freebsd-10.0-release/usr.bin/grep/
H A Dqueue.c59 struct qentry *item; local
61 item = grep_malloc(sizeof(struct qentry));
62 item->data.dat = grep_malloc(sizeof(char) * x->len);
63 item->data.len = x->len;
64 item->data.line_no = x->line_no;
65 item->data.off = x->off;
66 memcpy(item->data.dat, x->dat, x->len);
67 item->data.file = x->file;
69 STAILQ_INSERT_TAIL(&queue, item, list);
78 struct qentry *item; local
92 struct qentry *item; local
103 struct qentry *item; local
[all...]
/freebsd-10.0-release/contrib/openpam/lib/libpam/
H A Dpam_get_item.c58 const void **item)
78 *item = pamh->item[item_type];
93 * The =pam_get_item function stores a pointer to the item specified by
94 * the =item_type argument in the location pointed to by the =item
96 * The item is retrieved from the PAM context specified by the =pamh
98 * If =pam_get_item fails, the =item argument is untouched.
100 * The following item types are recognized:
56 pam_get_item(const pam_handle_t *pamh, int item_type, const void **item) argument
/freebsd-10.0-release/contrib/dialog/samples/
H A Dmenubox18 $DIALOG --default-item "OS/2" --clear --title "MENU BOX" "$@" \
H A Dmenubox28 $DIALOG --default-item "MSDOS" --clear --title "MENU BOX" "$@" \
H A Dmenubox38 $DIALOG --clear --item-help --title "MENU BOX" "$@" \
H A Dmenubox48 $DIALOG --clear --item-help --title "MENU BOX" "$@" \
H A Dmenubox58 $DIALOG --clear --help-button --item-help --title "MENU BOX" "$@" \
H A Dmenubox69 $DIALOG --clear --item-help --title "MENU BOX" --colors "$@" \
H A Dmenubox88 --default-item "MSDOS" \
H A Dinputmenu34 # "inputmenu1" with defaultitem, help-button and item-help.
26 --default-item "$defaultitem" \
27 --item-help "$@" \
78 item=`echo "$value" |sed -e 's/^[^:]*:[ ]*//' -e 's/[ ]*$//'`
82 user="$item"
85 uid="$item"
88 gid="$item"
91 home="$item"
/freebsd-10.0-release/usr.bin/grep/regex/
H A Dxmalloc.c96 hashTableItem *item, *new;
100 item = tbl->table[i];
101 if (item != NULL)
102 while (item->next != NULL)
103 item = item->next;
113 if (item != NULL)
114 item->next = new;
130 hashTableItem *item, *prev;
134 item
95 hashTableItem *item, *new; local
129 hashTableItem *item, *prev; local
203 hashTableItem *item; local
[all...]
/freebsd-10.0-release/contrib/ofed/management/opensm/complib/
H A Dcl_nodenamemap.c54 name_map_item_t *item; local
60 item = malloc(sizeof(*item));
61 if (!item)
63 item->guid = guid;
64 item->name = strdup(p);
65 cl_qmap_insert(map, item->guid, (cl_map_item_t *)item);
104 name_map_item_t *item = NULL; local
109 item
123 name_map_item_t *item = NULL; local
[all...]

Completed in 291 milliseconds

1234567891011>>