| /illumos-gate/usr/src/uts/i86pc/os/ |
| H A D | mlsetup.c | 84 set_console_mode(uint8_t val) argument 89 rp.eax.byte.al = val; 477 mach_modpath(char *path, const char *filename) argument 480 * Construct the directory path from the filename. 489 (void) strcpy(path, SYSTEM_BOOT_PATH "/kernel "); 490 path += len + 1; 513 (void) strncpy(path, filename, p - filename);
|
| /illumos-gate/usr/src/lib/libast/common/sfio/ |
| H A D | sftmp.c | 56 static int _tmprmfile(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) argument 58 static int _tmprmfile(f, type, val, disc) 61 Void_t* val; 67 NOTUSED(val); 154 char** _sfgetpath(char* path) argument 156 char** _sfgetpath(path) 157 char* path; 162 if(!(path = getenv(path)) ) 165 for(p = path, 285 _tmpexcept(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) argument [all...] |
| /illumos-gate/usr/src/boot/sys/boot/common/ |
| H A D | install.c | 55 setpath(char **what, char *val) argument 57 char *path; local 61 len = strlen(val) + 1; 62 rel = (val[0] != '/') ? 1 : 0; 63 path = malloc(len + rel); 64 if (path == NULL) 66 path[0] = '/'; 67 strcpy(path + rel, val); 69 *what = path; 74 setmultipath(char ***what, char *val) argument 108 char *p, *tag, *val; local [all...] |
| /illumos-gate/usr/src/lib/libwanboot/common/ |
| H A D | bootinfo_aux.c | 56 char *cb_path; /* device path we want to match */ 57 di_node_t cb_node; /* found leaf node of device path */ 205 char *val = NULL; local 239 len = di_prom_prop_data(pp, (uchar_t **)&val); 243 return (val); 247 * Strip any trailing arguments from a device path. 251 strip_args(char *path, size_t len) argument 255 if (path != NULL && len != 0 && 259 (void) memcpy(stripped_path, path, len); 274 char *path; local 288 char *path; local 318 path2node(char *path) argument 498 char *val; local [all...] |
| /illumos-gate/usr/src/lib/libreparse/common/ |
| H A D | fs_reparse_lib.c | 60 * Create a symlink at the specified 'path' as a reparse point. 61 * This function will fail if path refers to an existing file system 62 * object or an object named string already exists at the given path. 67 reparse_create(const char *path, const char *data) argument 72 if (path == NULL || data == NULL) 79 if (lstat(path, &sbuf) == 0) 82 return (symlink(data, path) ? errno : 0); 98 char *buf, *stype, *val; local 119 (nvpair_value_string(curr, &val) != 0) || 120 (strlcat(buf, val, bufle 180 reparse_delete(const char *path) argument 307 char isa[MAXISALEN], dirpath[MAXPATHLEN], path[MAXPATHLEN]; local [all...] |
| /illumos-gate/usr/src/lib/libc/port/rt/ |
| H A D | pos4obj.c | 58 __open_nc(const char *path, int oflag, mode_t mode) argument 61 int val; local 65 * Ensure path is not a symlink to somewhere else. This provides 68 if (lstat64(path, &statbuf) == 0) { 76 val = open64(path, oflag, mode); 79 return (val); 86 int val; local 89 val = close(fildes); 92 return (val); 126 __pos4obj_name(const char *path, const char *type) argument 400 __pos4obj_unlock(const char *path, const char *type) argument 409 __pos4obj_clean(char *path) argument 454 __pos4obj_check(const char *path) argument [all...] |
| /illumos-gate/usr/src/cmd/ypcmd/ |
| H A D | ypxfrd_server.c | 126 char path[MAXNAMLEN + 1]; local 142 * Build up path name. If we are working in N2L mode also conv 145 * Do not allow any path as a domain name or map name. 149 (!ypmkfilename(argp->domain, argp->map, (char *)&path))) { 172 m.map = (map_ctrl *)shim_dbm_open(path, 0, 0); 174 perror(path); 211 datum key, val; local 215 val = shim_dbm_fetch((DBM *)m.map, key); 216 if (val.dptr != NULL) {
|
| /illumos-gate/usr/src/cmd/svc/svcadm/ |
| H A D | synch.c | 101 read_astring_prop(scf_propertygroup_t *pg, scf_value_t *val, argument 117 if (scf_property_get_value(prop, val) != 0) { 132 if (scf_value_get_astring(val, value, value_sz) <= 0) { 188 scf_value_t *val; local 190 if ((val = scf_value_create(h)) == NULL) 193 r = scf_iter_next_value(iter, val); 201 if (scf_value_get_astring(val, fmri, len) <= 0) { 207 scf_value_destroy(val); 220 const char *path; local 225 if (scf_parse_file_fmri(fmri, NULL, &path) ! 457 scf_value_t *val; 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); 59 int val; member in struct:__anon1879 86 char path[MAXPATHLEN]; local 89 (void) strncpy(path, argv[1], MAXPATHLEN); 93 command = cmd_table[i].val; 107 "th_manage - invalid 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/ucbcmd/install.d/ |
| H A D | install.c | 194 char *path; local 211 /* build target path, find out if target is same as source */ 212 if (!stat(path = to, &to_sb)) { 216 (void) sprintf(path = pbuf, "%s/%s", to, (C = strrchr(from, '/')) ? ++C : from); 217 if (stat(path, &to_sb)) 221 fprintf(stderr, gettext("install: %s isn't a regular file.\n"), path); 225 fprintf(stderr, gettext("install: %s and %s are the same file.\n"), from, path); 229 (void) unlink(path); 234 if ((to_fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, 0)) < 0) { 235 fprintf(stderr, gettext("install: %s: %s\n"), path, strerro 305 int val; local [all...] |
| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
| H A D | soconfig.c | 47 * <fam> <type> <protocol> <path|module> 52 * soconfig <fam> <type> <protocol> <path|module> 78 char *path, const char *file, int line); 141 "\tsoconfig <fam> <type> <protocol> <path|module>\n" 170 gettext("path name is too long: %s/%s\n"), 302 parse_params(char *famstr, char *typestr, char *protostr, char *path, argument 349 if (path != NULL) { 352 if (strncmp(path, "/dev", strlen("/dev")) == 0 && 353 stat(path, &stats) == -1) { 354 perror(path); 519 int val; local [all...] |
| /illumos-gate/usr/src/cmd/zhack/ |
| H A D | zhack.c | 235 char val[1024]; local 237 1, sizeof (val), val) == 0); 238 (void) printf("\t%s = %s\n", za.za_name, val); 515 char *path[MAX_NUM_PATHS]; local 520 g_importargs.path = path; 532 g_importargs.path[g_importargs.paths++] = optarg;
|
| /illumos-gate/usr/src/lib/libshell/common/bltins/ |
| H A D | mkservice.c | 375 static void putval(Namval_t* np, const char* val, int flag, Namfun_t* fp) argument 378 if (!val) 380 nv_putv(np, val, flag, fp); 381 if (!val) 410 register char* path; local 433 if (error_info.errors || !(var = *argv++) || !(path = *argv++) || *argv) 444 if((fd = sh_open(path, O_SERVICE|O_RDWR))<=0) 447 error(ERROR_exit(1), "%s: cannot start service", path); 455 nv_putval(np, path, 0);
|
| /illumos-gate/usr/src/lib/libc/port/gen/ |
| H A D | nftw.c | 35 * int nftw(char *path, int (*fn)(), int depth, int flags); 40 * path. It uses the generic directory reading library so it works 44 * walk down any path the crosses itself. 182 int val = -1; local 306 val = rc; 442 val = rc; 488 if (val > rc) 489 return (val); 495 nftw(const char *path, argument 505 const char *savepath = path; 613 cdstat(const char *path, struct stat *statp, struct Save *lp, int flags) argument 623 cdlstat(const char *path, struct stat *statp, struct Save *lp, int flags) argument 633 nocdstat(const char *path, struct stat *statp, struct Save *lp, int flags) argument 656 nocdlstat(const char *path, struct stat *statp, struct Save *lp, int flags) argument 680 cdopendir(const char *path) argument 689 nocdopendir(const char *path) argument 731 get_unrooted(const char *path) argument [all...] |
| /illumos-gate/usr/src/cmd/svc/lsvcrun/ |
| H A D | lsvcrun.c | 104 start_pg_name(const char *path) argument 108 if (fnmatch("/etc/rc[0-6S].d/S*", path, FNM_PATHNAME) != 0) { 109 uu_warn(gettext("couldn't parse name %s.\n"), path); 113 out = strdup(path + sizeof ("/etc/") - 1); 131 script_suffix(const char *path) argument 136 if (fnmatch("/etc/rc[0-6S].d/[SK]*", path, FNM_PATHNAME) != 0) { 137 uu_warn(gettext("couldn't parse name %s.\n"), path); 141 cp = path + sizeof ("/etc/rc0.d/S") - 1; 147 uu_warn(gettext("couldn't parse name %s.\n"), path); 159 * Convert a path t 162 path_to_svc_name(const char *path) argument 302 scf_value_t *val = NULL; local 646 add_new_property(scf_handle_t *h, scf_transaction_t *tx, const char *name, scf_type_t ty, const void *val) argument [all...] |
| /illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
| H A D | instvol.c | 115 static boolean_t absolutepath(char *path); 116 static boolean_t parametricpath(char *path, char **relocpath); 121 int val; member in struct:reg_files 302 if (is_fs_writeable(ext->cf_ent.path, 335 ((is_fs_writeable(ept->path, 366 regfiles_head->val = entryidx; 378 rfp->val = entryidx; 438 n = is_remote_fs(ept->path, &(ext->fsys_value)); 440 !is_fs_writeable(ept->path, 456 if (is_mounted(ept->path, 1540 absolutepath(char *path) argument 1561 parametricpath(char *path, char **relocpath) argument [all...] |
| /illumos-gate/usr/src/uts/common/fs/nfs/ |
| H A D | nfs4_client_secinfo.c | 87 secinfo4 *val; local 92 val = kmem_alloc( 96 val[0].flavor = AUTH_SYS; 97 val[0].flavor_info.oid.sec_oid4_len = 0; 98 val[0].flavor_info.oid.sec_oid4_val = NULL; 99 val[0].flavor_info.service = 0; 100 val[0].flavor_info.qop = 0; 104 val[i].flavor = RPCSEC_GSS; 105 val[i].flavor_info.oid = krb5_oid; /* struct copy */ 106 val[ 214 secinfo4 *val = &value[i]; local 563 char *path = inpath, *comp_start, *slash = NULL; local [all...] |
| /illumos-gate/usr/src/stand/lib/fs/nfs/ |
| H A D | mount.c | 69 static char root_pathbuf[NFS_MAXPATHLEN]; /* the root's path */ 141 nfsmountroot(char *path, struct nfs_file *filep) argument 156 (rpcproc_t)MOUNTPROC_MNT, xdr_path, (caddr_t)&path, 161 root_hostname, path); 221 * Root path Required. 234 * Optional Bootfile path. 317 nfs3mountroot(char *path, struct nfs_file *filep) argument 337 (rpcproc_t)MOUNTPROC_MNT, xdr_path, (caddr_t)&path, 345 root_hostname, path); 387 nfs4init(char *path, uint16_ argument 566 char *opts, *val; local [all...] |
| /illumos-gate/usr/src/uts/common/os/ |
| H A D | tlabel.c | 86 labelalloc(const bslabel_t *val, uint32_t doi, int flag) argument 94 if (val == NULL) 97 bcopy(val, &lab->tsl_label, sizeof (bslabel_t)); 107 labeldup(const ts_label_t *val, int flag) argument 112 bcopy(val, lab, sizeof (ts_label_t)); 186 /* treat path as absolute but it doesn't have leading '/' */ 348 * Fast path, for objects in a labeled zone: everything except 361 * Get the vnode path -- it may be missing or weird for some 418 * Always build our own path for the file, to be sure it's simplified 487 * to our global zone file path 551 getlabel(const char *path, bslabel_t *label_p) argument [all...] |
| /illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
| H A D | sw.c | 118 sw_add_optl_string(nvlist_t *nvl, char *name, char *val) argument 120 if (val) 121 return (nvlist_add_string(nvl, name, val) != 0); 363 char *path, *root; local 387 * The 'object' nvlist is required. It must include the path, 391 !lookup_string(object, FM_FMRI_SW_OBJ_PATH, &path, B_TRUE) || 427 * :path=<object.path> 467 /* :path=... */ 468 topo_fmristr_build(&size, buf, buflen, path, [all...] |
| /illumos-gate/usr/src/boot/lib/libstand/ |
| H A D | tftp.c | 65 static int tftp_open(const char *path, struct open_file *f); 114 char *path; /* saved for re-requests */ member in struct:tftp_handle 294 l = strlen(h->path); 304 bcopy(h->path, wtail, l + 1); 397 tftp_open(const char *path, struct open_file *f) argument 429 pathsize = (strlen(rootpath) + 1 + strlen(path) + 1) * sizeof(char); 430 tftpfile->path = malloc(pathsize); 431 if (tftpfile->path == NULL) { 435 if (rootpath[strlen(rootpath) - 1] == '/' || path[0] == '/') 439 res = snprintf(tftpfile->path, pathsiz 699 char *val = buf; local [all...] |
| /illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
| H A D | cfga_configfile.c | 272 lex(char *buf, char *val, char **errmsg) argument 278 cp = val; 337 cp = val; 647 boolean_t srno = B_FALSE, path = B_FALSE; local 676 path = (strncmp(cfg_rec->pathname, 680 path = path && (*(user_rec->pathname + 697 return (srno || path); 726 char *path, char *driver, char **errmsg) 737 DPRINTF("add_entry: driver=%s, path 725 add_entry(char *selection, int vid, int pid, int cfgndx, char *srno, char *path, char *driver, char **errmsg) argument [all...] |
| /illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
| H A D | pi_subr.c | 44 /* max pci path = 256 */ 47 /* max pci path + child + minor */ 151 * Build a device path without device names (PRI like) from a devinfo 152 * node. Return the PRI like path. 163 char *path = NULL; local 178 topo_mod_dprintf(mod, "pi_get_dipath: path too " 196 * Build the path from the bus addresses. 199 path = (char *)topo_mod_alloc(mod, path_len); 200 path = strcpy(path, dev_pat 595 char *path = NULL; local 982 char *val = NULL; local [all...] |
| /illumos-gate/usr/src/lib/libsec/common/ |
| H A D | aclutils.c | 66 int val = 0; local 88 val = ace_trivial(acep, aclcnt); 92 val = 1; 94 return (val); 225 acl_get(const char *path, int get_flag, acl_t **aclp) argument 228 acl_inp.file = path; 300 acl_set(const char *path, acl_t *aclp) argument 304 acl_inp.file = path;
|
| /illumos-gate/usr/src/lib/libdtrace/common/ |
| H A D | dt_options.c | 473 char *path; local 478 if ((path = strdup(arg)) == NULL) 482 dp->dir_path = path; 591 dtrace_optval_t val = 0; local 609 val = DTRACEOPT_UNSET; 615 val = 1; 620 val = DTRACEOPT_UNSET; 626 val = strtoull(arg, &end, 0); 628 if (*end != '\0' || errno != 0 || val < 0) 633 dtp->dt_options[option] = val; 681 dtrace_optval_t val = 0; local 695 dtrace_optval_t mul = 1, val = 0; local 757 dtrace_optval_t val = dtp->dt_options[option]; local 1016 dtrace_getopt(dtrace_hdl_t *dtp, const char *opt, dtrace_optval_t *val) argument 1045 dtrace_setopt(dtrace_hdl_t *dtp, const char *opt, const char *val) argument [all...] |