/illumos-gate/usr/src/lib/librcm/ |
H A D | librcm.c | 873 char path[MAXPATHLEN]; local 877 if (snprintf(path, MAXPATHLEN, "%s%s", dir_name, script_name) 883 if (stat(path, &stats) == 0)
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_kshare.c | 446 * The path lookup to find the root vnode of the VFS in question and the 450 * the path lookup due to a forced unmount finishing first. 790 smb_kshare_export_trans(smb_server_t *sv, char *name, char *path, char *cmnt) argument 795 ASSERT(path); 811 if (path) 812 shr->shr_path = smb_mem_strdup(path); 841 rc |= nvlist_lookup_string(share, "path", &tmp.shr_path);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | devid_cache.c | 45 * cannot be accessed at the physical path where it once resided. Discovery 166 "/etc/devices/devid_cache", /* path to cache */ 246 * Unpack a device path/nvlist pair to the list of devid cache elements. 262 * check path for a devid 503 * If a devpath is provided it will be used as the path to register the 505 * we duplicate the path string so that it can be cached/freed indepdently 515 char *path, *fullpath; local 526 path = kmem_alloc(pathlen, KM_SLEEP); 527 bcopy(devpath, path, pathlen); 540 path 677 char *path = mdi_pi_pathname(pip); local 867 char *path, **paths; local 1051 e_devid_cache_path_to_devid(char *path, char *ua, char *nodenamebuf, ddi_devid_t *devidp) argument 1160 devid_log(char *fmt, ddi_devid_t devid, char *path) argument [all...] |
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_util.c | 624 * Resolve the ZFS dataset from a path. 630 smb_getdataset(const char *path, char *dataset, size_t len) argument 643 (void) strlcpy(tmppath, path, MAXPATHLEN); 675 * The path has multiple components. 984 * Check for invalid characters in the given path. The list of invalid 989 * Since this is checking a path not each component, '/' is accepted 991 * since this is supposed to be a relative path.
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | device_info.c | 161 /** Resolve a udi-property path as used in .fdi files. 171 * @param path The given path 176 * @return TRUE if and only if the path resolved. 179 resolve_udiprop_path (const char *path, const char *source_udi, argument 189 /*HAL_INFO (("Looking at '%s' for udi='%s'", path, source_udi));*/ 191 /* Split up path into ':' tokens */ 192 tokens = g_strsplit (path, ":", 64); 194 /* Detect trivial property access, e.g. path='foo.bar' */ 197 strncpy (prop_result, path, prop_result_siz 532 const char *path = NULL; local [all...] |
/illumos-gate/usr/src/cmd/ndmpd/tlm/ |
H A D | tlm_lib.c | 546 * Call back for file history path info 601 * Concatenates two path names 649 tlm_get_chkpnt_time(char *path, int auto_checkpoint, time_t *tp, char *jname) argument 655 NDMP_LOG(LOG_DEBUG, "path [%s] auto_checkpoint: %d", 656 path, auto_checkpoint); 658 if (path == NULL || *path == '\0' || tp == NULL) 662 path) == -1) 711 * Insert the backup snapshot name into the path. 714 * name: Original path nam 1236 get_zfsvolname(char *volname, int len, char *path) argument 1272 fs_is_chkpntvol(char *path) argument 1304 fs_is_chkpnt_enabled(char *path) argument 1332 fs_is_rdonly(char *path) argument [all...] |
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zfs.c | 159 * path. 162 is_mountpnt(char *path) argument 171 if (strcmp(path, entry.mnt_mountp) == 0) { 425 * file system name (not mountpoint) should be for that path. We do not 437 * mounts since there is no way to generate a ZFS name from a random path in 448 * Return Z_OK if the path mapped to a ZFS file system name, otherwise return 490 * create a dataset on the given path. 521 * Given a snapshot name, get the file system path where the snapshot lives. 523 * pl/zones/z1@SUNWzone1 would have a path of 527 snap2path(char *snap_name, char *path, in argument 1127 char *path; local [all...] |
/illumos-gate/usr/src/lib/libbrand/common/ |
H A D | libbrand.c | 94 #define DTD_ATTR_PATH ((const xmlChar *) "path") 229 char path[MAXPATHLEN]; local 243 (void) snprintf(path, sizeof (path), "%s/%s", BRAND_DIR, name); 245 if (stat(path, &statbuf) != 0) 260 (void) snprintf(path, sizeof (path), "%s/%s/%s", BRAND_DIR, name, 262 if ((bhp->bh_config = open_xml_file(path)) == NULL) { 296 (void) snprintf(path, sizeof (path), " [all...] |
/illumos-gate/usr/src/test/libc-tests/tests/symbols/ |
H A D | symbols_test.c | 685 show_file(test_t t, const char *path) argument 692 f = fopen(path, "r"); 694 test_debugf(t, "fopen(%s): %s", path, strerror(errno)); 698 test_debugf(t, "----->> begin (%s) <<------", path); 704 test_debugf(t, "----->> end (%s) <<------", path);
|
/illumos-gate/usr/src/cmd/boot/installgrub/ |
H A D | installgrub.c | 99 static int init_device(ig_device_t *, char *path); 268 * expects argv to contain 3 parameters (the path to stage1, the path to stage2, 299 BOOT_DEBUG("stage1 path: %s, stage2 path: %s, device: %s\n", 360 * Expects one parameter, the device path, in the form: /dev/rdsk/c?[t?]d?s0. 387 BOOT_DEBUG("device path: %s\n", device_path); 474 BOOT_DEBUG("Current device path is: %s, attaching device path is: " 503 curr_device->path); 634 init_device(ig_device_t *device, char *path) argument 1083 read_stage1_from_file(char *path, ig_data_t *dest) argument 1101 read_stage2_from_file(char *path, ig_data_t *dest) argument [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_open.c | 739 char path[PATH_MAX]; local 765 (void) snprintf(path, sizeof (path), "%s/%s", 768 if ((fd = open(path, O_RDONLY)) == -1) 893 * Get the device path of each of the providers. We hold them open 1304 * Set up the default DTrace library path. Once set, the next call to
|
/illumos-gate/usr/src/cmd/halt/ |
H A D | halt.c | 720 * NOTE: arg is supposed to be the resolved path 836 gettext("Cannot resolve path for %s: %s\n"), 909 halt_exec(const char *path, ...) argument 924 argv[0] = path; 927 va_start(vp, path); 937 (void) execve(path, (char * const *)argv, NULL); 939 path, strerror(errno));
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | dosfs.c | 45 static int dos_open(const char *path, struct open_file *fd); 254 dos_open(const char *path, struct open_file *fd) argument 268 if ((err = namede(fs, path, &de))) 557 * Return directory entry from path 560 namede(DOS_FS *fs, const char *path, DOS_DE **dep) argument 570 while (*path) { 571 while (*path == '/') 572 path++; 573 if (*path == '\0') 575 if (!(s = strchr(path, '/'))) [all...] |
H A D | nandfs.c | 369 nandfs_open(const char *path, struct open_file *f) argument 375 NANDFS_DEBUG("nandfs_open('%s', %p)\n", path, f); 408 node = nandfs_lookup_path(fs, path); 631 nandfs_lookup_path(struct nandfs *fs, const char *path) argument 645 strncpy(namebuf, path, MAXPATHLEN);
|
H A D | nfs.c | 93 char path[NFS_MAXPATHLEN]; member in struct:nfs_readlnk_repl 192 int nfs_open(const char *path, struct open_file *f); 219 nfs_getrootfh(struct iodesc *d, char *path, u_char *fhp) argument 224 char path[FNAME_SIZE]; member in struct:args 242 printf("nfs_getrootfh: %s\n", path); 249 len = strlen(path); 250 if (len > sizeof(args->path)) 251 len = sizeof(args->path); 253 bcopy(path, args->path, le 459 char *path; local 819 nfs_getrootfh(struct iodesc *d, char *path, uint32_t *fhlenp, u_char *fhp) argument 824 char path[FNAME_SIZE]; member in struct:args 959 u_char path[NFS_MAXPATHLEN]; member in struct:repl 1101 char *path; local [all...] |
/illumos-gate/usr/src/boot/sys/boot/zfs/ |
H A D | zfs.c | 54 static int zfs_open(const char *path, struct open_file *f); 609 zfs_parsedev(struct zfs_devdesc *dev, const char *devspec, const char **path) argument 646 if (path != NULL) 647 *path = (*end == '\0') ? end : end + 1;
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_token.c | 569 * pointer to au_membuf chain containing a path token. 579 char *path = app->audp_sect[0]; local 584 * generate path token header 592 /* append path string */ 594 (void) au_append_buf(path, bytes, token); 597 /* generate attribute path strings token */ 753 * pointer to au_membuf chain containing a ip path token 776 * pointer to au_membuf chain containing a ip path token
|
/illumos-gate/usr/src/cmd/auditreduce/ |
H A D | token.c | 39 static void anchor_path(char *path); 797 * Format of path token: 798 * path adr_string 804 char *path; local 806 get_string(adr, &path); 807 if (path[0] != '/') 809 * anchor the path. user apps may not do it. 811 anchor_path(path); 813 * match against the collapsed path. that is what user sees. 815 if (re_exec2(collapse_path(path)) 1659 anchor_path(char *path) argument [all...] |
/illumos-gate/usr/src/cmd/praudit/ |
H A D | token.c | 595 * path_token() : Process path token and display contents 598 * NOTE: At the time of call, the path token id has been retrieved 600 * Format of path token: 602 * path adr_string 608 char *path; /* path */ local 609 char *apath; /* anchored path */ 610 char *cpath; /* collapsed path */ 620 if ((path = (char *)malloc(length + 1)) == NULL) { 622 } else if (pr_adr_char(context, path, lengt [all...] |
/illumos-gate/usr/src/common/bzip2/ |
H A D | bzlib.c | 1559 ( const char *path, /* no use when bzdopen */ 1596 if (path==NULL || strcmp(path,"")==0) { 1600 fp = fopen(path,mode2); 1633 case path="" or NULL => use stdin or stdout. 1636 ( const char *path, 1639 return bzopen_or_bzdopen(path,-1,mode,/*bzopen*/0); 1558 bzopen_or_bzdopen( const char *path, int fd, const char *mode, int open_mode) argument 1635 BZ2_bzopen( const char *path, const char *mode ) argument
|
/illumos-gate/usr/src/lib/auditd_plugins/syslog/ |
H A D | systoken.c | 735 * Format of path token: 736 * path adr_string 746 * anchor the path because collapse_path needs it 759 * path attr token / AUT_XATPATH 761 * Format of path attr token: 1163 * anchor a path name with a slash 1167 anchor_path(char *path) argument 1170 (void) memmove((void *)(path + 1), (void *)path, strlen(path) [all...] |
/illumos-gate/usr/src/lib/libshare/common/ |
H A D | libsharecore.c | 80 char *path; member in struct:sharelist 171 if (list->path == NULL && list->description != NULL && 222 /* if no path, then comment */ 280 item->path = strdup(args[optind]); 308 * finddfsentry(list, path) 310 * Look for path in the zfs_sharelist_t list and return the entry if it 315 finddfsentry(xfs_sharelist_t *list, char *path) argument 320 if (item->path != NULL && strcmp(item->path, path) 334 remdfsentry(xfs_sharelist_t *list, char *path, char *proto) argument 583 char *path; local 680 char *path; local 1289 char *path; local 1330 getlegacyconfig(sa_handle_t handle, char *path, xmlNodePtr *root) argument 1675 sa_fstype(char *path) argument 2112 char *path; local 2149 sa_delete_sharetab(sa_handle_t handle, char *path, char *proto) argument 2235 sa_fix_resource_name(char *path) argument [all...] |
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_mount.c | 181 * We only want to return false if the given path is a non empty 241 * filesystem, fall back to the slow path which uses readdir. 249 * At this point, we know the provided path is on a ZFS 595 char path[MAXPATHLEN]; local 604 (void) snprintf(path, MAXPATHLEN, 607 if ((libshare = dlopen(path, RTLD_LAZY | RTLD_GLOBAL)) != NULL) { 720 * zfs_sa_find_share(handle, path) 722 * wrapper around sa_find_share to find a share path in the 726 zfs_sa_find_share(sa_handle_t handle, char *path) argument 729 return (_sa_find_share(handle, path)); [all...] |
H A D | libzfs_util.c | 128 return (dgettext(TEXT_DOMAIN, "must be an absolute path")); 689 * Given a name, determine whether or not it's a valid path 691 * to match the device number. If not, treat the path as an 695 zfs_path_to_zhandle(libzfs_handle_t *hdl, char *path, zfs_type_t argtype) argument 701 if (path[0] != '/' && strncmp(path, "./", strlen("./")) != 0) { 703 * It's not a valid path, assume it's a name of type 'argtype'. 705 return (zfs_open(hdl, path, argtype)); 708 if (stat64(path, &statbuf) != 0) { 709 (void) fprintf(stderr, "%s: %s\n", path, strerro 1526 zfs_get_hole_count(const char *path, uint64_t *count, uint64_t *bs) argument [all...] |
/illumos-gate/usr/src/uts/intel/io/acpica/ |
H A D | acpi_enum.c | 442 parse_resources(ACPI_HANDLE handle, dev_info_t *xdip, char *path) argument 471 path, AcpiFormatException(status)); 786 char *path = NULL; local 804 path = (char *)rb.Pointer; 811 " info for %s", path); 830 info->CurrentStatus, path); 835 cmn_err(CE_WARN, "!acpi_enum: no _STA for %s", path); 846 "No _HID for %s", path); 929 (void) parse_resources(ObjHandle, xdip, path); 936 path); [all...] |