/illumos-gate/usr/src/cmd/fuser/ |
H A D | fuser.c | 234 char *path; local 239 * some kind of path to it. 263 /* see if we can get a path to the minor node */ 269 path = di_devfs_minor_path(di_minor); 270 if (path == NULL) { 272 "unable to get device path")); 275 return (path); 279 /* see if we can get a path to the device instance */ 282 path = di_devfs_path(di_node); 283 if (path 298 char *path; local [all...] |
/illumos-gate/usr/src/cmd/hal/addons/network-devices/ |
H A D | addon-network-discovery.c | 156 const char *path = dbus_message_get_path(message); local 161 HAL_DEBUG(("DBus message: %s, %s ", member, path)); 202 HAL_WARNING(("Unknown DBus message: %s, %s ", member, path));
|
/illumos-gate/usr/src/cmd/hal/addons/storage/ |
H A D | addon-storage.c | 89 char *phys_path, *path; local 113 path = phys_path + sizeof ("/devices") - 1; 115 path = phys_path; 117 if ((p = strrchr (path, ':')) == NULL) 119 len = (uintptr_t)p - (uintptr_t)path; 120 if (strncmp (path, devfs_path, len) != 0)
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | ids.c | 279 * @param path Path of the pci.ids file, e.g. 284 pci_ids_load (const char *path) argument 289 fp = fopen (path, "r"); 291 HAL_ERROR (("couldn't open PCI database at %s,", path)); 496 * @param path Path of the usb.ids file, e.g. 501 usb_ids_load (const char *path) argument 506 fp = fopen (path, "r"); 508 printf ("couldn't open USB database at %s,", path);
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo.c | 42 devinfo_add(HalDevice *parent, gchar *path) argument 46 if (strcmp (path, "/") == 0) { 47 if ((root = di_init(path, DINFOCACHE)) == DI_NODE_NIL) { 52 if ((root = di_init(path, DINFOCPYALL)) == DI_NODE_NIL) { 414 char **path= (char **)arg; local 416 *path = strdup(di_devlink_path(devlink)); 422 get_devlink(di_devlink_handle_t devlink_hdl, char *re, char *path) argument 426 (void) di_devlink_walk(devlink_hdl, re, path,
|
/illumos-gate/usr/src/cmd/hal/hald-runner/ |
H A D | runner.c | 220 char *path = NULL; local 228 path = g_find_program_in_path (program); 230 if (path == NULL) 233 /* Replace program in argv[0] with the full path */ 235 argv[0] = path; 268 printf(" full path is '%s', program_dir is '%s'\n", r->argv[0], program_dir);
|
/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | acpi.c | 722 char path[HAL_PATH_MAX] = "/devices"; local 733 strlcat(path, devfs_path, HAL_PATH_MAX); 735 return (open(path, O_RDONLY | O_NONBLOCK));
|
H A D | fsutils.c | 38 dos_to_dev(char *path, char **devpath, int *num) argument 42 if ((p = strrchr(path, ':')) == NULL) { 49 *devpath = strdup(path);
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_info.c | 64 * Build a hotplug information snapshot. The path, connection, 68 getinfo(const char *path, const char *connection, uint_t flags, hp_node_t *retp) argument 75 if ((path == NULL) || (retp == NULL)) 78 dprintf("getinfo: path=%s, connection=%s, flags=0x%x\n", path, 81 /* Allocate the base path */ 82 if ((basepath = base_path(path)) == NULL) 110 /* Store a pointer to the base path in each root node */ 131 * When path is set to "/", the results need to be limited only to 136 copy_devinfo(const char *path, cons argument 372 base_path(const char *path) argument [all...] |
H A D | hotplugd_rcm.c | 40 * Define structures for a path-to-usage lookup table. 49 char *path; member in struct:__anon643 60 char path[MAXPATHLEN]; member in struct:__anon644 72 char path[MAXPATHLEN]; member in struct:__anon645 86 static int rsrc2path(const char *rsrc, char *path); 326 * RCM info tuples for each path in the snapshot. 372 * compatible list of resource path names. The array has 395 /* Lookup resource path */ 396 if (hp_path(node, arg->path, arg->connection) != 0) { 397 log_err("Cannot get RCM resource path 526 char path[MAXPATHLEN]; local 659 rsrc2path(const char *rsrc, char *path) argument [all...] |
/illumos-gate/usr/src/cmd/sgs/prof/common/ |
H A D | profv.h | 103 char *path; /* pathname of module */ member in struct:mod_info
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | config_elf.c | 192 * the path name follows the same rules as RUNPATH's, which must be a full path 204 char path[PATH_MAX]; local 216 (void) snprintf(path, PATH_MAX, MSG_ORIG(MSG_ORG_CONFIG), str); 217 str = path; 238 * file path name. Ignore any untrustworthy path name, and 492 * Create a path descriptor for each filtee associated with this
|
H A D | locale.c | 145 char path[PATH_MAX]; local 154 (void) snprintf(path, PATH_MAX, MSG_ORIG(MSG_FMT_MSGFILE), 157 if ((fd = open(path, O_RDONLY, 0)) == -1)
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | hashserv.c | 220 unsigned char *path; local 224 path = getpath(""); 226 while (path && *path) 228 if (*path == '/') 241 path = nextpath(path); 399 unsigned char *path; local 407 path = getpath(name); 413 path 490 unsigned char *path; local [all...] |
/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | log.c | 302 log_dir_writeable(const char *path) argument 307 if ((fd = open(path, O_RDONLY, 0644)) == -1)
|
/illumos-gate/usr/src/cmd/lastcomm/ |
H A D | lc_utils.c | 148 * path. 151 srch_dir(char *path) argument 158 if ((dirp = opendir(path)) == NULL) 165 (void) strcpy(file_name, path);
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | ldma_dio.c | 49 di_prom_handle_t ph, di_node_t di, md_node_t *node, char *path); 205 di_prom_handle_t ph, di_node_t di, md_node_t *node, char *path) 214 if (md_add_string_property(mdp, np, "dev_path", path) != 0) 250 char *path; local 253 path = di_devfs_path(di_parent); 254 if (path == NULL) 257 md_node = link_device_node(mdp, ph, di_parent, md_parent, path); 258 di_devfs_path_free(path); 264 path = di_devfs_path(di_child); 265 if (path ! 204 link_device_node(mmd_t *mdp, di_prom_handle_t ph, di_node_t di, md_node_t *node, char *path) argument [all...] |
/illumos-gate/usr/src/cmd/svc/svcadm/ |
H A D | synch.c | 220 const char *path; local 225 if (scf_parse_file_fmri(fmri, NULL, &path) != 0) 228 if (stat(path, &st) == 0) 232 uu_warn(gettext("Unable to access \"%s\".\n"), path); 537 if (strcmp(type, "path") == 0) {
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgchk/ |
H A D | checkmap.c | 93 char *pkginst, char *path, int pathtype) 118 * of them, including path definitions, we 177 if (is_partial_path_in_DB(entry.path, path)) { 183 entry.ainfo.local, path)) { 199 (entry.path && *entry.path) ? entry.path : 239 if (!selpath(entry.path, pathtype)) 375 selpath(char *path, in argument 92 checkmap(int maptyp, int uninst, char *mapfile, char *envfile, char *pkginst, char *path, int pathtype) argument 400 shellmatch(char *spec, char *path) argument [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | merginfo.c | 120 set_infoloc(char *path) argument 122 if (path && *path) { 124 /* Strip the server portion of the path. */ 125 infoloc = orig_path(path); 127 infoloc = strdup(path); 138 char path[PATH_MAX]; local 151 * create path to appropriate pkginfo file for the package that is 197 i = snprintf(path, PATH_MAX, "%s/%s", pkgloc, PKGINFO); 213 pkginfoPath, path); [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkgproto/ |
H A D | main.c | 52 #define ERR_PATHLONG "path argument too long" 65 char *path; member in struct:link 83 static void findlink(struct cfent *ept, char *path, char *svpath); 84 static void follow(char *path); 85 static void output(char *path, int n, char *local); 92 char *pt, path[PATH_MAX]; local 152 /* take path list from stdin */ 153 while (fgets(path, sizeof (path), stdin) != (char *)NULL) { 154 output(path, 166 output(char *path, int n, char *local) argument 267 follow(char *path) argument 304 progerr(gettext(ERR_STAT), path); local 444 findlink(struct cfent *ept, char *path, char *svpath) argument 452 progerr(gettext(ERR_STAT), path); local 461 progerr(gettext(ERR_RDLINK), path); local [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/ |
H A D | special.c | 59 "root path too long" 119 * whether a given path matches the special contents rules or not. We 131 * path A path: determine whether it matches the special 144 * if (search_special_contents(ppcSC, path[j], &i)) { 145 * do_something_with_special_path(path[j]); 175 * Depending on whether the path string compared with the 176 * rule, we take different actions. If the path is less 177 * than the rule, we keep the rule. If the path equals 179 * not a wild card). If the path i 247 char path[PATH_MAX]; local [all...] |
/illumos-gate/usr/src/cmd/th_tools/ |
H A D | th_manage.c | 43 static int online_device(char *path); 44 static int offline_device(char *path); 45 static int getstate_device(char *path); 46 static int getnameinst(char *path, int *instance, char *name, int namelen); 47 static int getpath(char *path, int instance, char *name, int pathlen); 86 char path[MAXPATHLEN]; local 89 (void) strncpy(path, argv[1], MAXPATHLEN); 107 "th_manage - invalid path\n"); 128 (void) strcpy(path, "/devices/"); 129 if (getpath(&path[ 271 online_device(char *path) argument 288 offline_device(char *path) argument 304 getstate_device(char *path) argument 343 getnameinst(char *path, int *instance, char *name, int namelen) argument 361 char *path; member in struct:walk_arg 373 char *path; local 391 getpath(char *path, int instance, char *name, int pathlen) argument [all...] |
/illumos-gate/usr/src/cmd/tnf/tnfdump/ |
H A D | main.c | 127 read_tnf_file(int raw, char *path) argument 137 if ((fd = open(path, O_RDONLY, 0777)) == -1) { 139 g_cmdname, path); 145 g_cmdname, path); 152 g_cmdname, path); 160 g_cmdname, path); 181 g_cmdname, path); 190 g_cmdname, path, tnf_error_message(err));
|
/illumos-gate/usr/src/uts/common/fs/zut/ |
H A D | zut.c | 45 zut_open_dir(char *path, vnode_t *startvp, cred_t *cr, int flags, argument 55 (void) strlcpy(pn.pn_buf, path, MAXPATHLEN); 56 pn.pn_pathlen = strlen(path);
|