Searched refs:fullpath (Results 1 - 25 of 35) sorted by relevance

12

/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dutil.c34 * This function returns a fullpath based on the "dir" and "filepath" input
46 char *fullpath = NULL; local
59 fullpath = (char *)malloc(len);
60 if (fullpath != NULL)
61 (void) snprintf(fullpath, len, "%s/%s",
67 fullpath = (char *)strdup(filepath);
69 fullpath = (char *)strdup(dir);
72 return (fullpath);
/illumos-gate/usr/src/psm/stand/lib/names/sparc/common/
H A Duname-i.c139 make_platform_path(char *fullpath, char *iarch, char *filename) argument
141 (void) strcpy(fullpath, "/platform/");
142 (void) strcat(fullpath, iarch);
144 (void) strcat(fullpath, "/");
145 (void) strcat(fullpath, filename);
157 char fullpath[MAXPATHLEN]; local
165 make_platform_path(fullpath, ia, NULL);
166 if (((*isdirfn)(fullpath)) != 0) {
185 char *fullpath)
195 make_platform_path(fullpath, i
181 open_platform_file( char *filename, int (*openfn)(char *, void *), void *arg, char *fullpath) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/
H A Ddownload.c53 char *fullpath = NULL; local
111 fullpath = get_fullpath(dir, outfile);
112 if (fullpath == NULL) {
118 if (verify_file(fullpath) != KMF_OK) {
121 "will be overwritten."), fullpath);
170 fullpath, &format);
173 fullpath, &format);
221 ch_rv = kmf_check_crl_date(kmfhandle, fullpath);
223 ch_rv = kmf_read_input_file(kmfhandle, fullpath, &cert);
249 if (fullpath)
[all...]
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A Dpkcs11Conf.c262 char *isa, *fullpath = NULL, *dl_error; local
309 if ((fullpath = (char *)malloc(len)) == NULL) {
319 (void) snprintf(fullpath, len, "%s%s%s",
321 } else if ((fullpath = strdup(phead->puent->name)) == 0) {
338 dldesc = dlopen(fullpath, RTLD_LAZY);
349 fullpath, dl_error != NULL ? dl_error : "Unknown",
366 fullpath, conf_err);
383 fullpath, conf_err, pkcs11_strerror(prov_rv));
400 fullpath, conf_err, pkcs11_strerror(prov_rv));
423 "%s. %s Error: %s.", fullpath,
[all...]
/illumos-gate/usr/src/cmd/zinject/
H A Dtranslate.c96 char fullpath[MAXPATHLEN]; local
98 compress_slashes(inpath, fullpath);
100 if (fullpath[0] != '/') {
102 "path\n", fullpath);
107 if (strlen(fullpath) >= MAXPATHLEN) {
112 if (stat64(fullpath, statbuf) != 0) {
114 fullpath, strerror(errno));
133 fullpath);
139 "filesystem\n", fullpath);
143 if (strncmp(fullpath, m
[all...]
/illumos-gate/usr/src/cmd/syseventd/modules/zfs_mod/
H A Dzfs_mod.c157 char rawpath[PATH_MAX], fullpath[PATH_MAX]; local
171 (void) strlcpy(fullpath, path, sizeof (fullpath));
173 fullpath[strlen(fullpath) - 2] = '\0';
180 (zpool_vdev_online(zhp, fullpath,
193 (void) zpool_vdev_online(zhp, fullpath, ZFS_ONLINE_FORCEFAULT,
214 (void) zpool_vdev_online(zhp, fullpath,
224 (void) zpool_vdev_online(zhp, fullpath,
258 (void) zpool_vdev_attach(zhp, fullpath, pat
407 char *fullpath; local
554 char *path, fullpath[MAXPATHLEN]; local
[all...]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dinuse_mnt.c289 char fullpath[MAXPATHLEN+1]; local
310 (void) snprintf(fullpath, sizeof (fullpath), "/dev/%s",
313 (void) strlcpy(fullpath, swapent->ste_path,
314 sizeof (fullpath));
317 currp->special = strdup(fullpath);
/illumos-gate/usr/src/lib/sun_sas/common/
H A Ddevtree_device_disco.c45 char fullpath[MAXPATHLEN]; local
57 (void) snprintf(fullpath, MAXPATHLEN, "%s%s%s", DEVICES_DIR,
61 if ((fd = open(fullpath, O_RDONLY)) == -1) {
229 char fullpath[MAXPATHLEN+1]; local
268 (void) snprintf(fullpath, sizeof (fullpath), "%s%s",
287 fullpath);
294 fullpath);
354 fullpath);
362 fullpath);
652 char fullpath[MAXPATHLEN+1]; local
[all...]
/illumos-gate/usr/src/cmd/swap/
H A Dswap.c373 char fullpath[MAXPATHLEN+1]; local
433 (void) snprintf(fullpath, sizeof (fullpath),
436 (void) snprintf(fullpath, sizeof (fullpath),
438 if (stat64(fullpath, &statbuf) < 0)
444 fullpath);
449 fullpath,
453 (void) printf(gettext("%-20s - "), fullpath);
/illumos-gate/usr/src/cmd/logadm/
H A Dkw.c74 static char *fullpath; local
91 if (fullpath)
92 FREE(fullpath);
93 fullpath = STRDUP(fn_s(fnp));
94 Keywords = lut_add(Keywords, "file", fullpath);
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dboot_plat.c251 static char *fullpath; local
266 fullpath = (char *)kmem_alloc(MAXPATHLEN, 0);
270 (void) strcpy(fullpath, filename);
271 fd = boot_open(fullpath, NULL);
275 fd = open_platform_file(filename, boot_open, NULL, fullpath);
282 (void) strcpy(filename, fullpath);
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgserv.c148 * The fullpath parameter is used to return the result (stored in *sadmdir),
153 pkgfindrealsadmdir(char fullpath[PATH_MAX], const char *root, argument
186 if (realpath(temp, fullpath) == NULL) {
191 if (strcmp(fullpath, SADM_DIR) == 0)
194 if (testdoor(fullpath) == 0)
213 if (strncmp(xmnt.mnt_mountp, fullpath, len) == 0 &&
214 (len == 1 || fullpath[len] == '/' ||
215 fullpath[len] == '\0')) {
226 &fullpath[max]) >= PATH_MAX) {
236 *sadmdir = fullpath;
[all...]
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_openssl/common/
H A Dopenssl_spi.c1040 char *fullpath = NULL; local
1068 fullpath = get_fullpath(dirpath, filename);
1069 if (fullpath == NULL)
1083 if (isdir(fullpath)) {
1089 if ((dirp = opendir(fullpath)) == NULL) {
1101 fname = get_fullpath(fullpath, (char *)&dp->d_name);
1159 fullpath, &certlist, &loaded_certs);
1161 free(fullpath);
1177 strdup(fullpath);
1193 free(fullpath);
1220 char *fullpath = NULL; local
1270 char *fullpath = NULL; local
2911 char *fullpath = NULL; local
3502 char *fullpath = NULL; local
4592 char *fullpath = NULL; local
4869 char *fullpath = NULL; local
[all...]
/illumos-gate/usr/src/cmd/audio/audioplay/
H A Daudioplay.c918 char fullpath[MAXPATHLEN]; /* full path of file */ local
966 (void) strncpy(fullpath, path, MAXPATHLEN);
967 (void) strncat(fullpath, "/", MAXPATHLEN);
970 (void) strncpy(fullpath, "./", MAXPATHLEN);
972 (void) strncat(fullpath, fname, MAXPATHLEN);
975 if (stat(fullpath, &st) >= 0) {
982 prog, fname, fullpath);
984 return (open(fullpath, flags, mode));
/illumos-gate/usr/src/cmd/fm/schemes/mem/sparc/
H A Dmem_disc.c212 char fullpath[BUFSIZ]; local
216 fullpath, &len) != 1 || fullpath[0] == '\0' || len != strlen(buf))
223 pm->pm_fullpath = fmd_fmri_strdup(fullpath);
/illumos-gate/usr/src/cmd/csh/
H A Dsh.dir.c173 tchar *fullpath; local
253 fullpath = strspl(*pv, slashcp);
254 if (chdir_(fullpath) >= 0) {
257 cp = savestr(fullpath);
259 xfree(fullpath);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnftw.c146 char *fullpath; member in struct:Var
393 base_fullpath = vp->fullpath - vp->home;
405 vp->fullpath = vp->home + base_fullpath;
469 if (chdir(vp->fullpath) < 0) {
528 var.fullpath = dp;
531 var.fullpath = var.home;
/illumos-gate/usr/src/lib/libfru/libfru/
H A DnameSyntaxYacc.y66 fullpath : recordpath label
/illumos-gate/usr/src/cmd/lp/cmd/lpadmin/
H A Ddo_printer.c68 static char *fullpath();
486 prbufp->interface = fullpath(i);
520 prbufp->ppd = fullpath(n_opt);
650 ** fullpath()
653 static char *fullpath (str) function
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/
H A Ddisk_common.c954 char *devpath, *fullpath; local
969 if (nvlist_lookup_string(in_nvl, "path", &fullpath) == 0) {
986 if ((fullpath = topo_mod_alloc(mod, pathlen)) == NULL)
989 (void) snprintf(fullpath, pathlen, "/devices%s%s", devpath,
995 if ((dsp = disk_status_open(fullpath, &err)) == NULL) {
997 topo_mod_free(mod, fullpath, pathlen);
1003 topo_mod_free(mod, fullpath, pathlen);
/illumos-gate/usr/src/uts/common/io/
H A Dconsconfig_dacf.c359 char *buf = NULL, *fullpath; local
362 fullpath = kmem_alloc(MAXPATHLEN, KM_SLEEP);
369 kmem_free(fullpath, MAXPATHLEN);
372 (void) snprintf(fullpath, MAXPATHLEN, "/devices%s", buf);
376 (void) snprintf(fullpath, MAXPATHLEN, "/devices%s", path);
379 DPRINTF(DPRINT_L0, "lookupname(%s)\n", fullpath);
380 error = lookupname(fullpath, UIO_SYSSPACE, FOLLOW, NULLVPP, &vp);
381 kmem_free(fullpath, MAXPATHLEN);
/illumos-gate/usr/src/tools/onbld/hgext/
H A Dcdm.py1176 def backup_name(fullpath):
1184 fullpath = fullpath.rstrip(os.path.sep).split(os.path.sep)
1199 if fullpath[-pathpos:] == elt:
1200 return "%s-%s" % (fullpath[-pathpos - 1], elt[-1])
1202 return fullpath[-1]
/illumos-gate/usr/src/uts/common/os/
H A Ddevid_cache.c515 char *path, *fullpath; local
537 fullpath = kmem_alloc(MAXPATHLEN, KM_SLEEP);
538 (void) ddi_pathname(dip, fullpath);
539 pathlen = strlen(fullpath) + 1;
541 bcopy(fullpath, path, pathlen);
542 kmem_free(fullpath, MAXPATHLEN);
/illumos-gate/usr/src/cmd/devfsadm/
H A Dcfg_link.c1077 char *fullpath = NULL; local
1109 &fullpath);
1152 pathinfo = pci_cfg_info_data(fullpath);
1179 if (fullpath != NULL)
1180 free(fullpath);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_diff.c482 char fullpath[MAXPATHLEN]; local
485 (void) strlcpy(fullpath, di->dsmnt, MAXPATHLEN);
486 (void) strlcat(fullpath, ZDIFF_SHARESDIR, MAXPATHLEN);
488 if (stat64(fullpath, &sb) != 0) {
490 dgettext(TEXT_DOMAIN, "Cannot stat %s"), fullpath);

Completed in 138 milliseconds

12