/osnet-11/usr/src/cmd/hal/addons/network-devices/ |
H A D | common.c | 168 char *device, char *community) 214 if ((uri != NULL) || (device != NULL)) 216 "printer.device", (uri ? uri : device), &error); 167 add_network_printer(LibHalContext *ctx, char *base, char *hostaddr, char *device, char *community) argument
|
H A D | snmp.c | 36 char device[128]; local 38 snprintf(device, sizeof (device), "socket://%s:9100", name); 40 add_network_printer(ctx, parent, name, device, community); 45 * device capabilities. scanners, removable media, storage, ... 58 /* have we already seen this network device */
|
/osnet-11/usr/src/cmd/hal/hald/ |
H A D | device.c | 4 * device.c : HalDevice methods 35 #include "device.h" 59 HalDevice *device = HAL_DEVICE (obj); local 61 runner_device_finalized (device); 65 printf ("************* in finalize for udi=%s\n", device->udi); 69 g_slist_foreach (device->properties, (GFunc) hal_property_free, NULL); 71 g_slist_free (device->properties); 73 g_free (device->udi); 135 hal_device_init (HalDevice *device) argument 139 device 175 HalDevice *device; local 416 hal_device_get_udi(HalDevice *device) argument 422 hal_device_set_udi(HalDevice *device, const char *udi) argument 430 hal_device_add_capability(HalDevice *device, const char *capability) argument 437 hal_device_has_capability(HalDevice *device, const char *capability) argument 459 hal_device_has_property(HalDevice *device, const char *key) argument 468 hal_device_num_properties(HalDevice *device) argument 476 hal_device_property_find(HalDevice *device, const char *key) argument 494 hal_device_property_to_string(HalDevice *device, const char *key) argument 506 hal_device_property_foreach(HalDevice *device, HalDevicePropertyForeachFn callback, gpointer user_data) argument 527 hal_device_property_get_type(HalDevice *device, const char *key) argument 543 hal_device_property_get_string(HalDevice *device, const char *key) argument 559 hal_device_property_get_as_string(HalDevice *device, const char *key, char *buf, size_t bufsize) argument 623 hal_device_property_get_int(HalDevice *device, const char *key) argument 639 hal_device_property_get_uint64(HalDevice *device, const char *key) argument 655 hal_device_property_get_bool(HalDevice *device, const char *key) argument 671 hal_device_property_get_double(HalDevice *device, const char *key) argument 687 hal_device_property_set_string(HalDevice *device, const char *key, const char *value) argument 723 hal_device_property_set_int(HalDevice *device, const char *key, dbus_int32_t value) argument 757 hal_device_property_set_uint64(HalDevice *device, const char *key, dbus_uint64_t value) argument 791 hal_device_property_set_bool(HalDevice *device, const char *key, dbus_bool_t value) argument 825 hal_device_property_set_double(HalDevice *device, const char *key, double value) argument 894 hal_device_property_remove(HalDevice *device, const char *key) argument 914 hal_device_property_set_attribute(HalDevice *device, const char *key, enum PropertyAttribute attr, gboolean val) argument 930 hal_device_print(HalDevice *device) argument 984 HalDevice *device; member in struct:__anon24 1003 prop_changed_cb(HalDevice *device, const char *key, gboolean removed, gboolean added, gpointer user_data) argument 1036 hal_device_async_wait_property(HalDevice *device, const char *key, HalDeviceAsyncCallback callback, gpointer user_data, int timeout) argument 1068 hal_device_callouts_finished(HalDevice *device) argument 1076 hal_device_cancel(HalDevice *device) argument 1086 hal_device_property_get_strlist(HalDevice *device, const char *key) argument 1103 hal_device_property_get_strlist_elem(HalDevice *device, const char *key, guint index) argument 1122 hal_device_property_strlist_append(HalDevice *device, const char *key, const char *value) argument 1154 hal_device_property_strlist_prepend(HalDevice *device, const char *key, const char *value) argument 1186 hal_device_property_strlist_remove_elem(HalDevice *device, const char *key, guint index) argument 1211 hal_device_property_strlist_clear(HalDevice *device, const char *key) argument 1244 hal_device_property_strlist_add(HalDevice *device, const char *key, const char *value) argument 1283 hal_device_property_strlist_remove(HalDevice *device, const char *key, const char *value) argument 1307 hal_device_property_strlist_is_empty(HalDevice *device, const char *key) argument 1326 hal_device_inc_num_addons(HalDevice *device) argument 1332 hal_device_inc_num_ready_addons(HalDevice *device) argument 1345 hal_device_are_all_addons_ready(HalDevice *device) argument [all...] |
H A D | device_info.c | 49 * @brief Parsing of device info files 71 /** Processing a device element */ 121 HalDevice *device; member in struct:__anon27 156 /** Set to #TRUE if a device is matched */ 170 * @param source_udi UDI of source device 261 /* Compare the value of a property on a hal device object against a string value 270 * @param d hal device object 324 * @return #FALSE if the device in question didn't 347 pc->device->udi, 350 HAL_ERROR (("Could not resolve keypath '%s' on udi '%s'", key, pc->device 1364 process_fdi_file(const char *dir, const char *filename, HalDevice * device) argument [all...] |
H A D | device_store.c | 109 hal_device_store_init (HalDeviceStore *device) argument 149 emit_device_property_changed (HalDevice *device, argument 158 device, key, added, removed); 162 emit_device_capability_added (HalDevice *device, argument 169 device, capability); 173 hal_device_store_add (HalDeviceStore *store, HalDevice *device) argument 177 if (strncmp(device->udi, buf, sizeof (buf) - 1) != 0) { 184 g_object_ref (device)); 186 g_signal_connect (device, "property_changed", 188 g_signal_connect (device, "capability_adde 198 hal_device_store_remove(HalDeviceStore *store, HalDevice *device) argument 256 hal_device_store_print_foreach_fn(HalDeviceStore *store, HalDevice *device, gpointer user_data) argument 396 match_device_async(HalDeviceStore *store, HalDevice *device, const char *key, gboolean removed, gboolean added, gpointer user_data) argument 421 store_changed(HalDeviceStore *store, HalDevice *device, gboolean added, gpointer user_data) argument 461 HalDevice *device; local [all...] |
H A D | hald.c | 68 * @brief The HAL daemon manages persistent device objects available through 78 addon_terminated (HalDevice *device, guint32 exit_type, argument 82 HAL_INFO (("in addon_terminated for udi=%s", device->udi)); 89 if (hal_device_inc_num_ready_addons (device)) { 90 if (hal_device_are_all_addons_ready (device)) { 91 manager_send_signal_device_added (device); 100 gdl_store_changed (HalDeviceStore *store, HalDevice *device, argument 106 HAL_INFO (("Added device to GDL; udi=%s", hal_device_get_udi(device))); 108 if ((addons = hal_device_property_get_strlist (device, "inf 145 gdl_property_changed(HalDeviceStore *store, HalDevice *device, const char *key, gboolean added, gboolean removed, gpointer user_data) argument 159 gdl_capability_added(HalDeviceStore *store, HalDevice *device, const char *capability, gpointer user_data) argument [all...] |
H A D | hald_dbus.c | 43 #include "device.h" 102 * @param udi Unique device id given 111 "No device with id %s", 120 * @param device_id Id of the device 131 "No property %s on device with id %s", 140 * @param device_id Id of the device 151 "Type mismatch setting property %s on device with id %s", 179 * @param device device which isn't locked 184 HalDevice *device) 182 raise_device_not_locked(DBusConnection *connection, DBusMessage *in_reply_to, HalDevice *device) argument 201 raise_device_already_locked(DBusConnection *connection, DBusMessage *in_reply_to, HalDevice *device) argument 230 raise_branch_already_claimed(DBusConnection *connection, DBusMessage *in_reply_to, HalDevice *device) argument 259 raise_branch_not_claimed(DBusConnection *connection, DBusMessage *in_reply_to, HalDevice *device) argument 301 foreach_device_get_udi(HalDeviceStore *store, HalDevice *device, gpointer user_data) argument 362 foreach_device_match_get_udi(HalDeviceStore *store, HalDevice *device, gpointer user_data) argument 386 foreach_device_match_get_udi_tdl(HalDeviceStore *store, HalDevice *device, gpointer user_data) argument 490 foreach_device_by_capability(HalDeviceStore *store, HalDevice *device, gpointer user_data) argument 619 manager_send_signal_device_added(HalDevice *device) argument 652 manager_send_signal_device_removed(HalDevice *device) argument 686 manager_send_signal_new_capability(HalDevice *device, const char *capability) argument 724 foreach_property_append(HalDevice *device, HalProperty *p, gpointer user_data) argument 1393 HalDevice *device; local 2356 device_send_signal_property_modified(HalDevice *device, const char *key, dbus_bool_t added, dbus_bool_t removed) argument 2449 device_send_signal_condition(HalDevice *device, const char *condition_name, const char *condition_details) argument 2532 HalDevice *device; local 2576 HalDevice *device; local 2621 HalDevice *device; local 2690 HalDevice *device; local 2763 HalDevice *device; local 3507 foreach_device_get_xml_node(HalDeviceStore *store, HalDevice *device, gpointer user_data) argument [all...] |
H A D | hald_runner.c | 57 HalDevice *device; member in struct:__anon36 73 HalDevice *device = user_data; local 75 if (rp->device == device) { 84 running_processes_remove_device (HalDevice *device) argument 86 g_hash_table_foreach_remove (running_processes, rprd_foreach, device); 90 runner_device_finalized (HalDevice *device) argument 92 running_processes_remove_device (device); 124 rp->cb (rp->device, 0, 0, NULL, rp->data1, rp->data2); 236 add_property_to_msg (HalDevice *device, HalPropert argument 340 add_first_part(DBusMessageIter *iter, HalDevice *device, const gchar *command_line, char **extra_env) argument 365 hald_runner_start(HalDevice *device, const gchar *command_line, char **extra_env, HalRunTerminatedCB cb, gpointer data1, gpointer data2) argument 481 hald_runner_run_method(HalDevice *device, const gchar *command_line, char **extra_env, gchar *input, gboolean error_on_stderr, guint32 timeout, HalRunTerminatedCB cb, gpointer data1, gpointer data2) argument 532 hald_runner_run(HalDevice *device, const gchar *command_line, char **extra_env, guint timeout, HalRunTerminatedCB cb, gpointer data1, gpointer data2) argument 544 hald_runner_kill_device(HalDevice *device) argument 574 hald_runner_kill_all(HalDevice *device) argument [all...] |
/osnet-11/usr/src/cmd/hal/tools/ |
H A D | hal-storage-closetray.c | 80 char *device; local 95 device = getenv ("HAL_PROP_BLOCK_DEVICE"); 96 if (device == NULL)
|
H A D | hal-storage-eject.c | 78 char *device; local 97 device = getenv ("HAL_PROP_BLOCK_DEVICE"); 98 if (device == NULL)
|
H A D | hal-storage-mount.c | 86 permission_denied_volume_ignore (const char *device) argument 89 fprintf (stderr, "Device has %s volume.ignore set to TRUE. Refusing to mount.\n", device); 94 permission_denied_etc_fstab (const char *device) argument 97 fprintf (stderr, "Device %s is listed in /etc/fstab. Refusing to mount.\n", device); 102 already_mounted (const char *device) argument 105 fprintf (stderr, "Device %s is already mounted.\n", device); 143 cannot_remount (const char *device) argument 146 fprintf (stderr, "%s not mounted already\n", device); 302 bailout_if_in_fstab (LibHalContext *hal_ctx, const char *device, const char *label, const char *uuid) argument 310 /* check if /etc/fstab mentions this device 395 device_is_mounted(const char *device, char **mount_point) argument 448 handle_mount(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, const char *udi, LibHalVolume *volume, LibHalDrive *drive, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, DBusConnection *system_bus) argument 1132 char *device; local [all...] |
H A D | hal-storage-shared.c | 251 permission_denied_volume_ignore (const char *device) argument 254 fprintf (stderr, "Device has %s volume.ignore set to TRUE. Refusing to mount.\n", device); 264 LibHalVolume *volume, LibHalDrive *drive, const char *device, 291 printf ("device = %s\n", device); 304 * When device allocation is enabled (bsmconv or TX), we 307 * device allocation program. 310 permission_denied_volume_ignore (device); 320 /* check hal's mtab file to verify the device to unmount is actually mounted by hal */ 375 if (strcmp (line_elements[0], device) 259 handle_unmount(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, const char *udi, LibHalVolume *volume, LibHalDrive *drive, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, gboolean option_lazy, gboolean option_force, DBusConnection *system_bus) argument 533 handle_eject(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, const char *udi, LibHalDrive *drive, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, gboolean closetray, DBusConnection *system_bus) argument 702 audit_volume(const adt_export_data_t *imported_state, au_event_t event_id, int result, const char *auth_used, const char *mount_point, const char *device, const char *options) argument [all...] |
H A D | hal-storage-unmount.c | 79 char *device; local 100 device = getenv ("HAL_PROP_BLOCK_DEVICE"); 101 if (device == NULL) 182 udi, NULL, drive, device, invoked_by_uid, 203 udi, volume, drive, device, invoked_by_uid,
|
H A D | hal-storage-zpool.c | 55 int result, const char *auth_used, const char *pool, const char *device) 73 event->adt_pool_export.device = (char *)device; 78 event->adt_pool_import.device = (char *)device; 104 char *subcmd, const char *pool, const char *device, 121 printf ("device = %s\n", device); 130 (strncmp (device, "/dev/lofi", 9) == 0)) { 157 "solaris.device 54 audit_pool(const adt_export_data_t *imported_state, au_event_t event_id, int result, const char *auth_used, const char *pool, const char *device) argument 100 handle_zpool(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, char *subcmd, const char *pool, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, DBusConnection *system_bus) argument 176 char *device; local [all...] |
/osnet-11/usr/src/cmd/hal/utils/ |
H A D | printer.c | 54 /* parse the 1284 device id string */ 114 char **command_set, char *device) 118 "description=%s, serial=%s, device=%s\n", 120 NP(serial_number), NP(device))); 141 if (device != NULL) 143 "printer.device", device); 112 add_printer_info(LibHalChangeSet *cs, char *udi, char *manufacturer, char *model, char *description, char *serial_number, char **command_set, char *device) argument
|
/osnet-11/usr/src/cmd/ntfsprogs/ |
H A D | ntfscat.h | 32 char *device; /* Device/File to work with */ member in struct:options
|
H A D | ntfsclone.c | 8 * Clone NTFS data and/or metadata to a sparse file, image, device or stdout. 70 #include "device.h" 85 #define BLKGETSIZE _IO(0x12,96) /* Get device size in 512-byte blocks. */ 88 #define BLKGETSIZE64 _IOR(0x12,114,size_t) /* Get device size in bytes. */ 112 int blkdev_out; /* output file is block device */ 303 " Efficiently clone NTFS to a sparse file, image, device or standard output.\n" 402 err_printf("You must specify a device file.\n"); 441 "block device isn't supported!\n"); 1367 Printf("Image device size : %lld bytes\n", 1377 static void check_if_mounted(const char *device, unsigne argument [all...] |
H A D | ntfscluster.h | 42 char *device; /* Device/File to work with */ member in struct:options
|
H A D | ntfscp.c | 62 char *device; /* Device/File to work with */ member in struct:options 104 ntfs_log_info("\nUsage: %s [options] device src_file dest_file\n\n" 151 opts.device = NULL; 163 if (!opts.device) { 164 opts.device = argv[optind - 1]; 245 if (!opts.device) { 246 ntfs_log_error("You must specify a device.\n"); 354 vol = utils_mount_volume(opts.device, flags);
|
H A D | ntfsinfo.c | 87 const char *device; /* Device/File to work with */ member in struct:options 130 printf("\nUsage: %s [options] device\n" 191 if (!opts.device) 192 opts.device = optarg; 277 if (opts.device == NULL) { 280 "device.\n"); 378 printf("\tName of device: %s\n", vol->u.dev->d_name); 2261 vol = utils_mount_volume(opts.device, NTFS_MNT_RDONLY | 2264 printf("Failed to open '%s'.\n", opts.device);
|
H A D | ntfslabel.c | 57 char *device; /* Device/File to work with */ member in struct:options 93 ntfs_log_info("\nUsage: %s [options] device [label]\n" 137 if (!err && !opts.device) 138 opts.device = argv[optind-1]; 187 if (opts.device == NULL) { 189 ntfs_log_error("You must specify a device.\n"); 211 * @dev: device to read the label from 212 * @mnt_flags: mount flags of the device or 0 if not mounted 213 * @mnt_point: mount point of the device or NULL 215 * Print the label of the device [all...] |
H A D | ntfsls.c | 110 char *device; /* Device/File to work with */ member in struct:options 162 printf("\nUsage: %s [options] device\n" 223 opts.device = NULL; 229 if (!opts.device) 230 opts.device = optarg; 302 if (opts.device == NULL) { 305 "device.\n"); 655 vol = utils_mount_volume(opts.device, NTFS_MNT_RDONLY |
|
H A D | ntfsundelete.h | 41 char *device; /* Device/File to work with */ member in struct:options
|
H A D | utils.c | 87 "The device '%s' doesn't have a valid NTFS.\n" 88 "Maybe you selected the wrong device? Or the whole disk instead of a\n" 104 " notification area before disconnecting the device.\n" 105 " C) Use 'Eject' from Windows Explorer to safely remove the device.\n" 127 "different device under /dev/mapper, (e.g. /dev/mapper/nvidia_eahaabcc1)\n" 149 * utils_valid_device - Perform some safety checks on the device, before start 150 * @name: Full pathname of the device/file to work with 153 * Check that the name refers to a device and that is isn't already mounted. 157 * 0 Error, we cannot use this device 175 ntfs_log_error("The device 209 utils_mount_volume(const char *device, ntfs_mount_flags flags) argument [all...] |
/osnet-11/usr/src/grub/grub-0.97/grub/ |
H A D | asmstub.c | 62 #include <device.h> 86 /* The map between BIOS drives and UNIX device file names. */ 95 /* The file descriptor for a serial device. */ 98 /* The file name of a serial device. */ 102 /* The speed of a serial device. */ 233 /* Assign DRIVE to a device name DEVICE. */ 235 assign_device_name (int drive, const char *device) argument 249 if (! device) 252 device_map[drive] = strdup (device); 761 /* FIXME: this function is truly horrid. We try opening the device, 1236 serial_set_device(const char *device) argument [all...] |