/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | swap_rcm.c | 62 char path[MAXPATHLEN]; member in struct:swap_file 165 (void) rcm_unregister_interest(hdl, sf->path, 0); 353 (void) snprintf(cmd, sizeof (cmd), SWAP_DELETE, sf->path, 381 sf->path, sa->start, sa->len); 422 SWAP_ADD, sf->path, sa->start, sa->len); 536 if (rcm_unregister_interest(hdl, sf->path, 0) != 539 "%s\n", sf->path); 553 if (rcm_register_interest(hdl, sf->path, 0, NULL) != 556 sf->path); 560 sf->path); [all...] |
/illumos-gate/usr/src/cmd/rexd/ |
H A D | mount_nfs.c | 105 char *path; local 135 path = strchr(fsname, ':'); 136 if (path == NULL) { 140 *path = '\0'; 142 *path++ = ':'; 143 if (*path == '\0') { 147 strcpy(path, "/"); 151 printf("mount_nfs:\tpath == %s\n", path); 212 errprintf(error, "mount %s:%s: %s\n", host, path, 223 errprintf(error, "mount %s:%s: %s\n", host, path, [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | expand.c | 31 char *path; variable 91 path = tpathp = pathp = pathbuf; 93 lastpathp = &path[sizeof pathbuf - 2]; 213 for (cp = path; cp <= lastpathp + 1 && (*cp++ = *cp1++); ) 217 tpathp = pathp = path; 223 Cat(path, s); 262 if (!expany || stat(path, &stb) >= 0) { 264 Cat(path, ""); 296 dirp = opendir(path); 311 Cat(path, d [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | config.c | 635 read_method_context(const char *inst_fmri, const char *method, const char *path) argument 667 RESTARTER_METHOD_CONTEXT_VERSION, scf_inst, NULL, method, path,
|
/illumos-gate/usr/src/cmd/mdb/common/modules/ufs/ |
H A D | ufs.c | 216 char path[MAXPATHLEN]; local 286 if (mdb_vnode2path((uintptr_t)inode.i_vnode, path, 287 sizeof (path)) == 0 && *path != '\0') 288 mdb_printf("%s\n", path); 307 if (mdb_vnode2path((uintptr_t)inode.i_vnode, path, 308 sizeof (path)) == 0 && *path != '\0') { 309 if (strlen(path) <= 21) 310 mdb_printf(" %-21s\n", path); [all...] |
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_fhistory.c | 43 * supports 2 file history models: path based and inode/directory based. 50 * to tar or cpio utilize the path based model. The simple dump/restore module 51 * included with the SDK uses the path based model. 70 /* Figure an average of 32 bytes per path name */ 99 * Add a file history path entry to the buffer. 730 * Callback function for file history path information 733 ndmpd_fhpath_v3_cb(lbr_fhlog_call_backs_t *cbp, char *path, struct stat64 *stp, argument 746 } else if (!path) { 748 NDMP_LOG(LOG_DEBUG, "path is NULL"); 758 NDMP_LOG(LOG_DEBUG, "pname(%s)", path); 1332 ndmpd_file_history_path(lbr_fhlog_call_backs_t *cbp, char *path, struct stat64 *stp, u_longlong_t off) argument [all...] |
/illumos-gate/usr/src/cmd/du/ |
H A D | du.c | 95 static void printsize(blkcnt_t blocks, char *path); 596 printsize(blkcnt_t blocks, char *path) argument 603 path); 605 (void) printf(FORMAT2, (long long)kb(blocks), path); local 607 (void) printf(FORMAT2, (long long)mb(blocks), path); local 609 (void) printf(FORMAT2, (long long)blocks, path);
|
/illumos-gate/usr/src/cmd/eject/ |
H A D | eject.c | 74 int _dev_mounted(char *path); 75 int _dev_unmount(char *path); 457 display_busy(char *path, boolean_t vm_running) argument 467 char *cp; /* for truncating path */ 472 (void) fprintf(stderr, "display_busy(\"%s\"): entering\n", path); 480 blk = eject_getfullblkname(path, vm_running); 653 eject_getfullblkname(char *path, boolean_t vm_running) argument 662 path, vm_running ? "B_TRUE" : "B_FALSE"); 679 if (strncmp(path, raw_root, raw_root_len) == 0) { 681 vm_root, path [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | config.c | 96 config_lookup(struct config *croot, char *path, int add) argument 98 char *pathbegin = path; 114 while (*path) { 115 if ((nextcom = strchr(path, '/')) != NULL) 117 if ((len = strlen(path)) == 0) 120 thiscom = &path[len - 1]; 124 path); 125 while (thiscom > path && isdigit(*thiscom)) 127 if (thiscom == path && isdigit(*thiscom)) 129 "component \"%s\" has no name part", path); 598 config_bydev_lookup(struct cfgdata *fromcfg, const char *path) argument [all...] |
/illumos-gate/usr/src/cmd/fm/schemes/mem/sparc/ |
H A D | mem_disc.c | 37 * device path, and thus to build the mem_dimm_map_t list. While platforms 132 * Match two paths taken from picl files. This is a normal component-based path 171 * replaces both constructs with forms more appropriate for /devices path 175 path_depicl(char *path) argument 179 if (strncmp(path, "name:", 4) == 0) 180 bcopy(path + 5, path, strlen(path + 5) + 1); 182 for (c = path; (c = strstr(c, "?UnitAddress=")) != NULL; c++) { 201 * name:/platform/generic-path 208 picl_frudata_parse(char *buf, char *path, void *arg) argument 258 char path[BUFSIZ]; local [all...] |
/illumos-gate/usr/src/cmd/fmt/ |
H A D | fmt.c | 665 char path[MAXPATHLEN + 1]; local 677 (void) sprintf(path, LIB_WDRESOLVE, locale); 679 if ((dlhandle = dlopen(path, RTLD_LAZY)) != NULL) {
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_mount.c | 71 char *path, 115 path ? path : "", 142 len = snprintf(mntpnt, sizeof (mntpnt), "%s%s%s", path, 221 len = strlcpy(root, path, sizeof (root)); 224 path, key); 527 pubopt, list[i].path, NULL) != RPC_SUCCESS) { 664 char path[MAXPATHLEN]; local 672 /* build the full path name of the fstype dependent command */ 673 (void) snprintf(path, MAXPATHLE 66 do_mount1( char *mapname, char *key, char *subdir, char *mapopts, char *path, uint_t isdirect, uid_t uid, action_list **alpp, int flags) argument [all...] |
/illumos-gate/usr/src/cmd/sgs/ldd/common/ |
H A D | ldd.c | 140 path[] = "LD_TRACE_SEARCH_PATHS= ", variable 230 case 's' : /* enable search path output */ 316 path[sizeof (path) - 2] = (sflag) ? '1' : '\0'; 731 (putenv(path) != 0) || (putenv(verb) != 0) ||
|
/illumos-gate/usr/src/cmd/amt/ |
H A D | amt.c | 710 memory_type(const char *path) { argument 716 if ((d = open(path, O_RDONLY)) < 0) { 719 path, strerror(errno));
|
/illumos-gate/usr/src/cmd/auditd/ |
H A D | auditd.c | 465 * search for $ISA/ in path and replace it with "" if auditd 471 isa_ified(char *path, char **newpath) argument 475 if (((p = strchr(path, '$')) != NULL) && 477 (void) memcpy(*newpath, path, p - path); 478 q = *newpath + (p - path); 484 *newpath = path; 491 * (manual/unsupported) change of path property in audit service configuration 495 * for 64 bits, the path name can grow 3 bytes (minus 5 for the 506 char *path local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | util.c | 502 * in the file located at the specified path 504 * input: const char *: the path of the file to look in for the hostname 505 * output: const char *: the hostname at that path, or NULL on failure 511 iffile_to_hostname(const char *path) argument 516 fp = fopen(path, "r");
|
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/ |
H A D | nfslog_config.c | 401 * Prepends each path component with 'defauldir' if 'prepend' is set. 945 gataline(FILE *fp, char *path, char *line, int linesz) { argument 1029 path, linesz-1); 1033 path, linesz-1);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslogd.c | 700 is_cycle_needed(char *path, void **list, boolean_t need2free, int *error) argument 720 assert(path != NULL); 726 if (strcmp(p->log, path) == 0) 738 p->log = path;
|
H A D | nfslogd.h | 80 char *path; /* pathname of file */ member in struct:nfsl_log_file
|
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/ |
H A D | fsck_pcfs.h | 111 struct nameinfo *path; member in struct:clinfo
|
/illumos-gate/usr/src/cmd/fstyp/ |
H A D | fstyp.c | 53 static boolean_t dos_to_dev(char *path, char **devpath, int *num); 56 static int run_cmd(char *path, char *arg0, char *arg1, char *arg2); 188 char *path; local 192 if ((path = getexecpathname()) == NULL) { 195 if ((p = strrchr(path, '/')) != NULL) { 197 if ((p = strrchr(path, '/')) != NULL) { 200 if ((strcmp(path, FSTYP_LIBFS_DIR) == 0) && 208 free(path); 221 char *path; local 225 path 257 dos_to_dev(char *path, char **devpath, int *num) argument 413 char *path; local 480 run_cmd(char *path, char *arg0, char *arg1, char *arg2) argument [all...] |
/illumos-gate/usr/src/cmd/grep/ |
H A D | grep.c | 233 prepare(const char *path) argument 240 if (stat(path, &st) != -1 && 248 if (path[strlen(path) - 1] != '/') { 249 (void) asprintf(&buf, "%s/", path); 251 path = buf; 255 * Search through subdirs if path is directory. 261 if (nftw(path, recursive, MAX_DEPTH, walkflags) != 0) { 263 errmsg("grep: can't open %s\n", path); 269 execute(path, [all...] |
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | hald.c | 366 char *path; local 382 path = getenv ("PATH"); 383 if (path != NULL) { 384 g_strlcpy (newpath, path, sizeof (newpath));
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo_usb.c | 105 char path[MAXPATHLEN], lpath[MAXPATHLEN]; local 107 strncpy(path, dir_name, strlen(dir_name)); 108 strncat(path, ep->d_name, strlen(ep->d_name)); 110 if ((readlink(path, lpath, sizeof (lpath)) > 0) && 112 result = strdup(path); 115 memset(path, 0, sizeof (path)); 382 /* Set the existed physical device path. */ 461 * actually dev link path has been created. In such a
|
H A D | sysevent.c | 414 gchar *path = NULL; local 418 path = strdup (devfs_path); 419 p = strrchr (path, '/'); 421 free (path); 428 "solaris.devfs_path", path); 433 "solaris.devfs_path", path); 436 free (path);
|