Symbol: path
usr/src/boot/common/bootstrap.h
338
int (*arch_getdev)(void **dev, const char *name, const char **path);
usr/src/boot/common/disk.c
419
disk_parsedev(struct disk_devdesc *dev, const char *devspec, const char **path)
usr/src/boot/common/disk.c
479
if (path != NULL)
usr/src/boot/common/disk.c
480
*path = (*cp == '\0') ? cp: cp + 1;
usr/src/boot/common/gfx_fb.c
1995
load_font(char *path)
usr/src/boot/common/gfx_fb.c
2008
if (strcmp(fl->font_name, path) == 0)
usr/src/boot/common/gfx_fb.c
2060
fd = open(path, O_RDONLY);
usr/src/boot/common/ls.c
100
typestr[sb.st_mode >> 12], path);
usr/src/boot/common/ls.c
105
fd = ls_getdir(&path);
usr/src/boot/common/ls.c
111
pager_output(path);
usr/src/boot/common/ls.c
121
if (strcmp(path, "/") == 0) {
usr/src/boot/common/ls.c
124
(void) asprintf(&buf, "%s/%s", path,
usr/src/boot/common/ls.c
157
free(path); /* ls_getdir() did allocate path */
usr/src/boot/common/ls.c
171
char *path;
usr/src/boot/common/ls.c
176
path = malloc(strlen(*pathp) + 2);
usr/src/boot/common/ls.c
177
if (path == NULL) {
usr/src/boot/common/ls.c
183
strcpy(path, *pathp);
usr/src/boot/common/ls.c
186
if (archsw.arch_getdev(NULL, path, &cp)) {
usr/src/boot/common/ls.c
188
"bad path '%s'", path);
usr/src/boot/common/ls.c
194
strcat(path, "/");
usr/src/boot/common/ls.c
196
fd = open(path, O_RDONLY);
usr/src/boot/common/ls.c
199
"open '%s' failed: %s", path, strerror(errno));
usr/src/boot/common/ls.c
209
"%s: %s", path, strerror(ENOTDIR));
usr/src/boot/common/ls.c
213
*pathp = path;
usr/src/boot/common/ls.c
217
free(path);
usr/src/boot/common/ls.c
63
char *buf, *path;
usr/src/boot/common/ls.c
88
path = "";
usr/src/boot/common/ls.c
90
path = argv[1];
usr/src/boot/common/ls.c
93
if (stat(path, &sb) == 0 && !S_ISDIR(sb.st_mode)) {
usr/src/boot/common/ls.c
97
(int)sb.st_size, path);
usr/src/boot/common/module.c
1267
char *path;
usr/src/boot/common/module.c
1272
path = moduledir_fullpath(mdp, "linker.hints");
usr/src/boot/common/module.c
1273
if (stat(path, &st) != 0 ||
usr/src/boot/common/module.c
1276
(fd = open(path, O_RDONLY)) < 0) {
usr/src/boot/common/module.c
1277
free(path);
usr/src/boot/common/module.c
1281
free(path);
usr/src/boot/common/module.c
1308
const char *path, *cp, *ep;
usr/src/boot/common/module.c
1311
path = getenv("module_path");
usr/src/boot/common/module.c
1312
if (path == NULL)
usr/src/boot/common/module.c
1313
path = default_searchpath;
usr/src/boot/common/module.c
1320
for (ep = path; *ep != 0; ep++) {
usr/src/boot/common/module.c
940
file_lookup(const char *path, const char *name, int namelen,
usr/src/boot/common/module.c
948
pathlen = strlen(path);
usr/src/boot/common/module.c
960
bcopy(path, result, pathlen);
usr/src/boot/efi/libefi/devicename.c
117
err = disk_parsedev((struct disk_devdesc *)idev, np, path);
usr/src/boot/efi/libefi/devicename.c
127
err = zfs_parsedev((struct zfs_devdesc *)idev, np, path);
usr/src/boot/efi/libefi/devicename.c
155
if (path != NULL)
usr/src/boot/efi/libefi/devicename.c
156
*path = (*cp == '\0') ? cp : cp + 1;
usr/src/boot/efi/libefi/devicename.c
49
efi_getdev(void **vdev, const char *devspec, const char **path)
usr/src/boot/efi/libefi/devicename.c
60
if (rv == 0 && path != NULL)
usr/src/boot/efi/libefi/devicename.c
61
*path = devspec;
usr/src/boot/efi/libefi/devicename.c
66
return (efi_parsedev(dev, devspec, path));
usr/src/boot/efi/libefi/devicename.c
83
efi_parsedev(struct devdesc **dev, const char *devspec, const char **path)
usr/src/boot/efi/libefi/devpath.c
207
efi_devpath_is_prefix(EFI_DEVICE_PATH *prefix, EFI_DEVICE_PATH *path)
usr/src/boot/efi/libefi/devpath.c
211
if (prefix == NULL || path == NULL)
usr/src/boot/efi/libefi/devpath.c
218
if (DevicePathType(prefix) != DevicePathType(path) ||
usr/src/boot/efi/libefi/devpath.c
219
DevicePathSubType(prefix) != DevicePathSubType(path))
usr/src/boot/efi/libefi/devpath.c
223
if (len != DevicePathNodeLength(path))
usr/src/boot/efi/libefi/devpath.c
226
if (memcmp(prefix, path, len) != 0)
usr/src/boot/efi/libefi/devpath.c
230
path = NextDevicePathNode(path);
usr/src/boot/efi/loader/main.c
1304
char *name, *path;
usr/src/boot/efi/loader/main.c
1373
if (efi_getdev((void **)&dev, name, (const char **)&path) == 0) {
usr/src/boot/efi/loader/main.c
150
EFI_DEVICE_PATH *path;
usr/src/boot/efi/loader/main.c
172
&gEfiDevicePathProtocolGuid, (void **)&path);
usr/src/boot/efi/loader/main.c
176
while (!IsDevicePathEnd(path)) {
usr/src/boot/efi/loader/main.c
184
if (DevicePathType(path) == ACPI_DEVICE_PATH &&
usr/src/boot/efi/loader/main.c
185
(DevicePathSubType(path) == ACPI_DP ||
usr/src/boot/efi/loader/main.c
186
DevicePathSubType(path) == ACPI_EXTENDED_DP)) {
usr/src/boot/efi/loader/main.c
189
acpi = (ACPI_HID_DEVICE_PATH *)(void *)path;
usr/src/boot/efi/loader/main.c
201
} else if (DevicePathType(path) ==
usr/src/boot/efi/loader/main.c
203
DevicePathSubType(path) == MSG_USB_CLASS_DP) {
usr/src/boot/efi/loader/main.c
212
usb = (USB_CLASS_DEVICE_PATH *)(void *)path;
usr/src/boot/efi/loader/main.c
220
path = NextDevicePathNode(path);
usr/src/boot/i386/isoboot/cd9660read.c
176
dirmatch(const char *path, struct iso_directory_record *dp, int use_rrip,
usr/src/boot/i386/isoboot/cd9660read.c
193
for (i = len; --i >= 0; path++, cp++) {
usr/src/boot/i386/isoboot/cd9660read.c
194
if (!*path || *path == '/')
usr/src/boot/i386/isoboot/cd9660read.c
196
if (*path == *cp)
usr/src/boot/i386/isoboot/cd9660read.c
198
if (!icase && toupper(*path) == *cp)
usr/src/boot/i386/isoboot/cd9660read.c
202
if (*path && *path != '/') {
usr/src/boot/i386/isoboot/cd9660read.c
224
cd9660_lookup(const char *path)
usr/src/boot/i386/isoboot/cd9660read.c
251
if (*path == '/') path++; /* eat leading '/' */
usr/src/boot/i386/isoboot/cd9660read.c
256
while (*path) {
usr/src/boot/i386/isoboot/cd9660read.c
281
if (dirmatch(path, dp, use_rrip,
usr/src/boot/i386/isoboot/cd9660read.c
303
while (*path && *path != '/') /* look for next component */
usr/src/boot/i386/isoboot/cd9660read.c
304
path++;
usr/src/boot/i386/isoboot/cd9660read.c
305
if (*path) path++; /* skip '/' */
usr/src/boot/i386/libi386/devicename.c
118
err = disk_parsedev((struct disk_devdesc *)idev, np, path);
usr/src/boot/i386/libi386/devicename.c
128
err = zfs_parsedev((struct zfs_devdesc *)idev, np, path);
usr/src/boot/i386/libi386/devicename.c
155
if (path != NULL)
usr/src/boot/i386/libi386/devicename.c
156
*path = (*cp == '\0') ? cp : cp + 1;
usr/src/boot/i386/libi386/devicename.c
45
i386_getdev(void **vdev, const char *devspec, const char **path)
usr/src/boot/i386/libi386/devicename.c
58
if (rv == 0 && path != NULL)
usr/src/boot/i386/libi386/devicename.c
59
*path = devspec;
usr/src/boot/i386/libi386/devicename.c
66
return (i386_parsedev(dev, devspec, path));
usr/src/boot/i386/libi386/devicename.c
84
i386_parsedev(struct i386_devdesc **dev, const char *devspec, const char **path)
usr/src/boot/i386/libi386/libi386.h
80
int i386_getdev(void **vdev, const char *devspec, const char **path);
usr/src/boot/libsa/bootparam.h
4
int bp_getfile(int sock, char *key, struct in_addr *addrp, char *path);
usr/src/boot/libsa/cd9660.c
227
dirmatch(struct open_file *f, const char *path, struct iso_directory_record *dp,
usr/src/boot/libsa/cd9660.c
245
sep = strchr(path, '/');
usr/src/boot/libsa/cd9660.c
247
plen = sep - path;
usr/src/boot/libsa/cd9660.c
249
plen = strlen(path);
usr/src/boot/libsa/cd9660.c
255
for (i = len; --i >= 0; path++, cp++) {
usr/src/boot/libsa/cd9660.c
256
if (!*path || *path == '/')
usr/src/boot/libsa/cd9660.c
258
if (*path == *cp)
usr/src/boot/libsa/cd9660.c
260
if (!icase && toupper(*path) == *cp)
usr/src/boot/libsa/cd9660.c
264
if (*path && *path != '/')
usr/src/boot/libsa/cd9660.c
284
cd9660_open(const char *path, struct open_file *f)
usr/src/boot/libsa/cd9660.c
322
if (*path == '/') path++; /* eat leading '/' */
usr/src/boot/libsa/cd9660.c
327
while (*path) {
usr/src/boot/libsa/cd9660.c
359
if (dirmatch(f, path, dp, use_rrip,
usr/src/boot/libsa/cd9660.c
383
while (*path && *path != '/') /* look for next component */
usr/src/boot/libsa/cd9660.c
384
path++;
usr/src/boot/libsa/cd9660.c
386
if (*path) /* this component was directory */
usr/src/boot/libsa/cd9660.c
389
while (*path == '/')
usr/src/boot/libsa/cd9660.c
390
path++; /* skip '/' */
usr/src/boot/libsa/cd9660.c
392
if (*path) /* We do have next component. */
usr/src/boot/libsa/cd9660.c
65
static int cd9660_open(const char *path, struct open_file *f);
usr/src/boot/libsa/cd9660.c
72
static int dirmatch(struct open_file *f, const char *path,
usr/src/boot/libsa/dosfs.c
293
dos_open(const char *path, struct open_file *fd)
usr/src/boot/libsa/dosfs.c
305
if ((err = namede(fs, path, &de))) {
usr/src/boot/libsa/dosfs.c
626
namede(DOS_FS *fs, const char *path, DOS_DE **dep)
usr/src/boot/libsa/dosfs.c
636
while (*path) {
usr/src/boot/libsa/dosfs.c
637
while (*path == '/')
usr/src/boot/libsa/dosfs.c
638
path++;
usr/src/boot/libsa/dosfs.c
639
if (*path == '\0')
usr/src/boot/libsa/dosfs.c
641
if (!(s = strchr(path, '/')))
usr/src/boot/libsa/dosfs.c
642
s = strchr(path, 0);
usr/src/boot/libsa/dosfs.c
643
if ((n = s - path) > 255)
usr/src/boot/libsa/dosfs.c
645
memcpy(name, path, n);
usr/src/boot/libsa/dosfs.c
647
path = s;
usr/src/boot/libsa/gzipfs.c
47
static int zf_open(const char *path, struct open_file *f);
usr/src/boot/libsa/nfs.c
125
int nfs_open(const char *path, struct open_file *f);
usr/src/boot/libsa/nfs.c
184
nfs_getrootfh(struct iodesc *d, char *path, uint32_t *fhlenp, uchar_t *fhp)
usr/src/boot/libsa/nfs.c
190
char path[FNAME_SIZE];
usr/src/boot/libsa/nfs.c
207
printf("nfs_getrootfh: %s\n", path);
usr/src/boot/libsa/nfs.c
213
len = strlen(path);
usr/src/boot/libsa/nfs.c
214
if (len > sizeof (args->path))
usr/src/boot/libsa/nfs.c
215
len = sizeof (args->path);
usr/src/boot/libsa/nfs.c
217
bcopy(path, args->path, len);
usr/src/boot/libsa/nfs.c
332
uchar_t path[NFS_MAXPATHLEN];
usr/src/boot/libsa/nfs.c
378
bcopy(repl->path, buf, repl->len);
usr/src/boot/libsa/nfs.c
478
char *path = NULL;
usr/src/boot/libsa/nfs.c
531
cp = path = strdup(upath);
usr/src/boot/libsa/nfs.c
532
if (path == NULL) {
usr/src/boot/libsa/nfs.c
629
free(path);
usr/src/boot/libsa/nfs.c
640
path, strerror(error));
usr/src/boot/libsa/nullfs.c
71
null_open(const char *path __unused, struct open_file *f __unused)
usr/src/boot/libsa/stand.h
108
int (*fo_open)(const char *path, struct open_file *f);
usr/src/boot/libsa/tftp.c
108
char *path; /* saved for re-requests */
usr/src/boot/libsa/tftp.c
314
l = strlen(h->path);
usr/src/boot/libsa/tftp.c
324
bcopy(h->path, wtail, l + 1);
usr/src/boot/libsa/tftp.c
431
tftp_open(const char *path, struct open_file *f)
usr/src/boot/libsa/tftp.c
467
while (path[0] == '/')
usr/src/boot/libsa/tftp.c
468
path++;
usr/src/boot/libsa/tftp.c
471
if (path[0] == '\0' || path[strlen(path) - 1] == '/')
usr/src/boot/libsa/tftp.c
480
res = asprintf(&tftpfile->path, "%s%s%s", rootpath, extraslash, path);
usr/src/boot/libsa/tftp.c
488
free(tftpfile->path);
usr/src/boot/libsa/tftp.c
590
free(tftpfile->path);
usr/src/boot/libsa/ufs.c
491
char *path = NULL;
usr/src/boot/libsa/ufs.c
541
cp = path = strdup(upath);
usr/src/boot/libsa/ufs.c
542
if (path == NULL) {
usr/src/boot/libsa/ufs.c
668
if (path)
usr/src/boot/libsa/ufs.c
669
free(path);
usr/src/boot/libsa/zfs/devicename_stubs.c
35
const char **path __unused)
usr/src/boot/libsa/zfs/zfs.c
1557
zfs_parsedev(struct zfs_devdesc *dev, const char *devspec, const char **path)
usr/src/boot/libsa/zfs/zfs.c
1594
if (path != NULL)
usr/src/boot/libsa/zfs/zfs.c
1595
*path = (*end == '\0') ? end : end + 1;
usr/src/boot/libsa/zfs/zfsimpl.c
1001
bcopy(path, name, pathlen);
usr/src/boot/libsa/zfs/zfsimpl.c
1008
DATA_TYPE_STRING, NULL, &path, &pathlen) == 0) {
usr/src/boot/libsa/zfs/zfsimpl.c
1011
bcopy(path, name, pathlen);
usr/src/boot/libsa/zfs/zfsimpl.c
1017
DATA_TYPE_STRING, NULL, &path, &pathlen) == 0) {
usr/src/boot/libsa/zfs/zfsimpl.c
1020
bcopy(path, name, pathlen);
usr/src/boot/libsa/zfs/zfsimpl.c
3583
zfs_dnode_readlink(const spa_t *spa, dnode_phys_t *dn, char *path, size_t psize)
usr/src/boot/libsa/zfs/zfsimpl.c
3617
memcpy(path, p, psize);
usr/src/boot/libsa/zfs/zfsimpl.c
3627
memcpy(path, &dn->dn_bonus[sizeof (znode_phys_t)], psize);
usr/src/boot/libsa/zfs/zfsimpl.c
3629
rc = dnode_read(spa, dn, 0, path, psize);
usr/src/boot/libsa/zfs/zfsimpl.c
3651
char path[1024];
usr/src/boot/libsa/zfs/zfsimpl.c
3768
if (sb.st_size + strlen(p) + 1 > sizeof (path)) {
usr/src/boot/libsa/zfs/zfsimpl.c
3772
strcpy(&path[sb.st_size], p);
usr/src/boot/libsa/zfs/zfsimpl.c
3774
rc = zfs_dnode_readlink(spa, &dn, path, sb.st_size);
usr/src/boot/libsa/zfs/zfsimpl.c
3783
p = path;
usr/src/boot/libsa/zfs/zfsimpl.c
911
const char *path;
usr/src/boot/libsa/zfs/zfsimpl.c
991
DATA_TYPE_STRING, NULL, &path, &pathlen) == 0) {
usr/src/boot/libsa/zfs/zfsimpl.c
995
if (len < pathlen && memcmp(path, prefix, len) == 0) {
usr/src/boot/libsa/zfs/zfsimpl.c
996
path += len;
usr/src/boot/sys/sys/stat.h
331
int utimensat(int fd, const char *path, const struct timespec times[2],
usr/src/cmd/acct/lib/devtolin.c
134
srch_dir(dev_t device, char *path, int depth, char *skip_dirs[])
usr/src/cmd/acct/lib/devtolin.c
148
if (strcmp(skip_dirs[dirno++], path) == 0)
usr/src/cmd/acct/lib/devtolin.c
154
if ((fdev = opendir(path)) == NULL)
usr/src/cmd/acct/lib/devtolin.c
159
path_len = strlen(path);
usr/src/cmd/acct/lib/devtolin.c
160
strcpy(file_name, path);
usr/src/cmd/allocate/allocate3.c
111
char **path;
usr/src/cmd/allocate/allocate3.c
1164
zpath.path = NULL;
usr/src/cmd/allocate/allocate3.c
1319
free(zpath.path[i]);
usr/src/cmd/allocate/allocate3.c
1320
free(zpath.path);
usr/src/cmd/allocate/allocate3.c
1765
if ((zpath->path = (char **)realloc(zpath->path,
usr/src/cmd/allocate/allocate3.c
1770
zpath->path[zpath->count] = strdup(zonepath);
usr/src/cmd/allocate/allocate3.c
721
dprintf("Allocating %s\n", zpath->path[i]);
usr/src/cmd/allocate/allocate3.c
722
if ((error = _newdac(zpath->path[i], uid, gid,
usr/src/cmd/allocate/allocate3.c
724
(void) _newdac(zpath->path[i], ALLOC_ERRID,
usr/src/cmd/allocate/allocate3.c
890
exec_clean(int optflag, char *devname, char *path, uid_t uid, char *zonename,
usr/src/cmd/allocate/allocate3.c
929
if (path == NULL)
usr/src/cmd/allocate/allocate3.c
931
if ((cmd = strrchr(path, '/')) == NULL)
usr/src/cmd/allocate/allocate3.c
932
cmd = path;
usr/src/cmd/allocate/allocate3.c
943
(void) strncpy(wdwpath, path, PATH_MAX);
usr/src/cmd/allocate/allocate3.c
957
path, mode, devname, clean_arg, pw_ent.pw_name,
usr/src/cmd/allocate/allocate3.c
964
dprintf("clean script: %s, ", path);
usr/src/cmd/allocate/allocate3.c
972
(void) execl(path, cmd, mode, devname, clean_arg,
usr/src/cmd/allocate/allocate3.c
976
(void) execle(path, cmd, mode, devname, NULL, newenv);
usr/src/cmd/allocate/allocate3.c
978
dprintf("Unable to execute clean up script %s\n", path);
usr/src/cmd/allocate/mkdevalloc.c
1094
char path[MAXPATHLEN];
usr/src/cmd/allocate/mkdevalloc.c
1149
(void) snprintf(path, sizeof (path), "%s%s", "/dev/rdsk/",
usr/src/cmd/allocate/mkdevalloc.c
1151
if ((fd = open(path, O_RDONLY | O_NONBLOCK)) < 0)
usr/src/cmd/allocate/mkdevalloc.c
1180
rmdisk_r[i].name = strdup(path);
usr/src/cmd/amt/amt.c
708
memory_type(const char *path)
usr/src/cmd/amt/amt.c
715
if ((d = open(path, O_RDONLY)) < 0) {
usr/src/cmd/amt/amt.c
718
path, strerror(errno));
usr/src/cmd/audio/audioconvert/file.cc
109
(FileAccess)ReadOnly, ihdr, path,
usr/src/cmd/audio/audioconvert/file.cc
113
path);
usr/src/cmd/audio/audioconvert/file.cc
125
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/cmd/audio/audioconvert/file.cc
126
Err(MGET("can't open %s, skipping...\n"), path);
usr/src/cmd/audio/audioconvert/file.cc
146
ihdr, path, offset);
usr/src/cmd/audio/audioconvert/file.cc
158
path);
usr/src/cmd/audio/audioconvert/file.cc
160
ifp = new AudioFile(path,
usr/src/cmd/audio/audioconvert/file.cc
166
path, offset);
usr/src/cmd/audio/audioconvert/file.cc
172
path, offset);
usr/src/cmd/audio/audioconvert/file.cc
175
ifp = new AudioFile(path, (FileAccess)ReadOnly);
usr/src/cmd/audio/audioconvert/file.cc
179
Err(MGET("can't open %s, skipping...\n"), path);
usr/src/cmd/audio/audioconvert/file.cc
187
get_realfile(char *&path, struct stat *st)
usr/src/cmd/audio/audioconvert/file.cc
195
if (err = lstat(path, st) < 0) {
usr/src/cmd/audio/audioconvert/file.cc
200
err = readlink(path, tmpf,
usr/src/cmd/audio/audioconvert/file.cc
204
path = tmpf;
usr/src/cmd/audio/audioconvert/file.cc
219
const char *path,
usr/src/cmd/audio/audioconvert/file.cc
228
if (!path) {
usr/src/cmd/audio/audioconvert/file.cc
235
path = Stdout;
usr/src/cmd/audio/audioconvert/file.cc
239
path))) {
usr/src/cmd/audio/audioconvert/file.cc
246
(FileAccess)WriteOnly, path))) {
usr/src/cmd/audio/audioconvert/file.cc
259
if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC,
usr/src/cmd/audio/audioconvert/file.cc
263
path);
usr/src/cmd/audio/audioconvert/file.cc
267
ohdr, path))) {
usr/src/cmd/audio/audioconvert/file.cc
269
path);
usr/src/cmd/audio/audioconvert/file.cc
273
if (!(ofp = new AudioFile(path,
usr/src/cmd/audio/audioconvert/file.cc
276
path);
usr/src/cmd/audio/audioconvert/file.cc
75
AudioUnixfile *open_input_file(const char *path, const AudioHdr ihdr,
usr/src/cmd/audio/audioconvert/file.cc
92
if (!path) {
usr/src/cmd/audio/audioconvert/file.cc
99
if (path == Stdin) {
usr/src/cmd/audio/audioplay/audioplay.c
146
static int path_open(char *fname, int flags, mode_t mode, char *path);
usr/src/cmd/audio/audioplay/audioplay.c
921
path_open(char *fname, int flags, mode_t mode, char *path)
usr/src/cmd/audio/audioplay/audioplay.c
939
if ((!path) || (flags != O_RDONLY) || (*fname == '/') ||
usr/src/cmd/audio/audioplay/audioplay.c
950
buf = malloc(strlen(path) + 1);
usr/src/cmd/audio/audioplay/audioplay.c
958
if ((path[0] == ':') && (path[1] != ':')) {
usr/src/cmd/audio/audioplay/audioplay.c
959
(void) strncpy(buf, path+1, strlen(path));
usr/src/cmd/audio/audioplay/audioplay.c
961
(void) strncpy(buf, path, strlen(path));
usr/src/cmd/audio/audioplay/audioplay.c
964
for (path = buf; path && *path; ) {
usr/src/cmd/audio/audioplay/audioplay.c
965
if (cp = strchr(path, ':')) {
usr/src/cmd/audio/audioplay/audioplay.c
970
if (*path) {
usr/src/cmd/audio/audioplay/audioplay.c
971
(void) strncpy(fullpath, path, MAXPATHLEN);
usr/src/cmd/audio/audioplay/audioplay.c
994
path = cp;
usr/src/cmd/audio/include/AudioFile.h
105
const char *path, // filename
usr/src/cmd/audio/include/AudioFile.h
111
const char *path); // directory path
usr/src/cmd/audio/include/AudioFile.h
129
const char *path = AUDIO_PATH);
usr/src/cmd/audio/include/AudioFile.h
88
const char *path); // filename
usr/src/cmd/audio/include/AudioLib.h
64
const char *path, // input filename
usr/src/cmd/audio/include/AudioLib.h
69
const char *path, // output filename
usr/src/cmd/audio/include/AudioStream.h
62
AudioStream(const char *path = ""); // Constructor
usr/src/cmd/audio/include/AudioUnixfile.h
53
const char *path, // pathname
usr/src/cmd/audio/include/AudioUnixfile.h
90
const char *path = 0);
usr/src/cmd/audio/utilities/AudioFile.cc
101
(access(path, W_OK) < 0)) {
usr/src/cmd/audio/utilities/AudioFile.cc
108
tmpdir = (char *)malloc(strlen(path) + 1);
usr/src/cmd/audio/utilities/AudioFile.cc
109
(void) strcpy(tmpdir, path);
usr/src/cmd/audio/utilities/AudioFile.cc
117
const char *path) // pathname or 0
usr/src/cmd/audio/utilities/AudioFile.cc
133
if ((openmode == -1) || opened() || (strlen(path) == 0))
usr/src/cmd/audio/utilities/AudioFile.cc
137
if (strcmp(path, tmpname) == 0) {
usr/src/cmd/audio/utilities/AudioFile.cc
156
desc = open(path, openmode | O_CREAT | O_TRUNC, 0666);
usr/src/cmd/audio/utilities/AudioFile.cc
172
(void) unlink(path);
usr/src/cmd/audio/utilities/AudioFile.cc
185
(void) unlink(path);
usr/src/cmd/audio/utilities/AudioFile.cc
210
const char *path)
usr/src/cmd/audio/utilities/AudioFile.cc
249
str = (path == NULL) ? NULL : getenv(path);
usr/src/cmd/audio/utilities/AudioFile.cc
251
str = (char *)path;
usr/src/cmd/audio/utilities/AudioFile.cc
74
const char *path, // filename
usr/src/cmd/audio/utilities/AudioFile.cc
76
AudioUnixfile(path, acc),
usr/src/cmd/audio/utilities/AudioFile.cc
94
const char *path)
usr/src/cmd/audio/utilities/AudioFile.cc
99
if ((stat(path, &st) < 0) ||
usr/src/cmd/audio/utilities/AudioLib.cc
38
const char *path, // input filename
usr/src/cmd/audio/utilities/AudioLib.cc
46
inf = new AudioFile(path, (FileAccess)ReadOnly);
usr/src/cmd/audio/utilities/AudioLib.cc
71
const char *path, // output filename
usr/src/cmd/audio/utilities/AudioLib.cc
79
outf = new AudioFile(path, (FileAccess)WriteOnly);
usr/src/cmd/audio/utilities/AudioStream.cc
36
const char *path): // pathname
usr/src/cmd/audio/utilities/AudioStream.cc
37
Audio(path), length(AUDIO_UNKNOWN_TIME)
usr/src/cmd/audio/utilities/AudioUnixfile.cc
52
const char *path, // pathname
usr/src/cmd/audio/utilities/AudioUnixfile.cc
54
AudioStream(path), mode(acc), block(TRUE), fd(-1),
usr/src/cmd/auditconfig/auditconfig.c
1281
char path[MAXPATHLEN];
usr/src/cmd/auditconfig/auditconfig.c
1283
eauditon(A_GETCAR, (caddr_t)path, sizeof (path));
usr/src/cmd/auditconfig/auditconfig.c
1284
(void) printf(gettext("current active root = %s\n"), path);
usr/src/cmd/auditconfig/auditconfig.c
1339
char path[MAXPATHLEN];
usr/src/cmd/auditconfig/auditconfig.c
1341
eauditon(A_GETCWD, (caddr_t)path, sizeof (path));
usr/src/cmd/auditconfig/auditconfig.c
1342
(void) printf(gettext("current working directory = %s\n"), path);
usr/src/cmd/auditd/auditd.c
470
isa_ified(char *path, char **newpath)
usr/src/cmd/auditd/auditd.c
474
if (((p = strchr(path, '$')) != NULL) &&
usr/src/cmd/auditd/auditd.c
476
(void) memcpy(*newpath, path, p - path);
usr/src/cmd/auditd/auditd.c
477
q = *newpath + (p - path);
usr/src/cmd/auditd/auditd.c
483
*newpath = path;
usr/src/cmd/auditd/auditd.c
505
char *path = filepath;
usr/src/cmd/auditd/auditd.c
518
isa_ified(name, &path);
usr/src/cmd/auditd/auditd.c
524
if (strcmp(p->plg_path, path) == 0) {
usr/src/cmd/auditd/auditd.c
542
DPRINT((dbfp, "creating new plugin structure for %s\n", path));
usr/src/cmd/auditd/auditd.c
566
p->plg_path = strdup(path);
usr/src/cmd/auditd/auditd.c
577
DPRINT((dbfp, "created plugin: %s\n", path));
usr/src/cmd/auditreduce/token.c
1659
anchor_path(char *path)
usr/src/cmd/auditreduce/token.c
1661
(void) memmove((void *)(path + 1), (void *)path, strlen(path) + 1);
usr/src/cmd/auditreduce/token.c
1662
*path = '/';
usr/src/cmd/auditreduce/token.c
39
static void anchor_path(char *path);
usr/src/cmd/auditreduce/token.c
804
char *path;
usr/src/cmd/auditreduce/token.c
806
get_string(adr, &path);
usr/src/cmd/auditreduce/token.c
807
if (path[0] != '/')
usr/src/cmd/auditreduce/token.c
811
anchor_path(path);
usr/src/cmd/auditreduce/token.c
815
if (re_exec2(collapse_path(path)) == 1)
usr/src/cmd/auditreduce/token.c
817
free(path);
usr/src/cmd/backup/dump/dumpfstab.c
255
char path[MAXPATHLEN];
usr/src/cmd/backup/dump/dumpfstab.c
268
gotreal = realpath(mnt->mnt_dir, path);
usr/src/cmd/backup/dump/dumpfstab.c
269
if (gotreal && strcmp(path, key) == 0)
usr/src/cmd/backup/dump/dumpfstab.c
278
if (gotreal && *path == '/' &&
usr/src/cmd/backup/dump/dumpfstab.c
279
strcmp(path + 1, key) == 0)
usr/src/cmd/backup/dump/lftw.c
112
const char *path,
usr/src/cmd/backup/dump/lftw.c
121
rc = (lf_xftw(path, fn, depth, lstat64));
usr/src/cmd/backup/dump/lftw.c
130
const char *path,
usr/src/cmd/backup/dump/lftw.c
135
lf_xftw(char *path, int (*fn)(), int depth, int (*statfn)())
usr/src/cmd/backup/dump/lftw.c
150
if ((*statfn)(path, &sb) < 0)
usr/src/cmd/backup/dump/lftw.c
151
return (errno == EACCES? (*fn)(path, &sb, FTW_NS): -1);
usr/src/cmd/backup/dump/lftw.c
166
if (pathconf(path, _PC_XATTR_EXISTS) == 1) {
usr/src/cmd/backup/dump/lftw.c
167
attrfd = attropen64(path, ".", O_RDONLY|O_NONBLOCK);
usr/src/cmd/backup/dump/lftw.c
176
rc = (*fn)(path, &sb, FTW_F);
usr/src/cmd/backup/dump/lftw.c
190
dirp = opendir(path);
usr/src/cmd/backup/dump/lftw.c
199
rc = (errno == EACCES? (*fn)(path, &sb, FTW_DNR): -1);
usr/src/cmd/backup/dump/lftw.c
201
rc = (*fn)(path, &sb, FTW_D);
usr/src/cmd/backup/dump/lftw.c
217
n = (int)strlen(path);
usr/src/cmd/backup/dump/lftw.c
228
(void) strcpy(subpath, path);
usr/src/cmd/backup/dump/lftw.c
274
dirp = opendir(path);
usr/src/cmd/backup/dump/partial.c
104
path = *argv++;
usr/src/cmd/backup/dump/partial.c
106
if (stat64(path, &st) < 0 ||
usr/src/cmd/backup/dump/partial.c
109
path, disk);
usr/src/cmd/backup/dump/partial.c
114
if (lf_mark_root(partial_dev, path)) {
usr/src/cmd/backup/dump/partial.c
117
path);
usr/src/cmd/backup/dump/partial.c
123
if (lf_lftw(path, lf_ftw_mark, (int)ulimit(UL_GDESLIM, 0) / 2)
usr/src/cmd/backup/dump/partial.c
138
lf_mark_root(dev_t dev, char *path)
usr/src/cmd/backup/dump/partial.c
144
if (strlen(path) > sizeof (dotdot))
usr/src/cmd/backup/dump/partial.c
147
(void) strcpy(dotdot, path);
usr/src/cmd/backup/dump/partial.c
97
char *path;
usr/src/cmd/backup/restore/utilities.c
1071
resolve(char *path, int *fd, char **rpath)
usr/src/cmd/backup/restore/utilities.c
1076
*rpath = path;
usr/src/cmd/backup/restore/utilities.c
1077
path = *rpath + strlen(*rpath) +1;
usr/src/cmd/backup/restore/utilities.c
1078
while (*path != '\0' &&
usr/src/cmd/backup/restore/utilities.c
1083
*rpath = path;
usr/src/cmd/backup/restore/utilities.c
1084
path = *rpath + strlen(*rpath) +1;
usr/src/cmd/backup/restore/utilities.c
1092
path, strerror(saverr));
usr/src/cmd/bart/rules.c
791
add_single_rule(char *path)
usr/src/cmd/bart/rules.c
808
(void) strlcpy(current_rule->subtree, path,
usr/src/cmd/bhyve/amd64/ps2kbd.c
440
char path[MAX_PATHNAME];
usr/src/cmd/bhyve/amd64/ps2kbd.c
447
snprintf(path, MAX_PATHNAME, PS2KBD_LAYOUT_BASEDIR"%s", get_config_value("keyboard.layout") );
usr/src/cmd/bhyve/amd64/ps2kbd.c
449
err = stat(path, &sb);
usr/src/cmd/bhyve/amd64/ps2kbd.c
457
fd = open(path, O_RDONLY);
usr/src/cmd/bhyve/common/bhyverun.c
623
char *path;
usr/src/cmd/bhyve/common/bhyverun.c
628
path = strndup(option, value - option);
usr/src/cmd/bhyve/common/bhyverun.c
629
if (path == NULL)
usr/src/cmd/bhyve/common/bhyverun.c
631
set_config_value(path, value + 1);
usr/src/cmd/bhyve/common/bhyverun.c
632
free(path);
usr/src/cmd/bhyve/common/bhyverun.c
637
bhyve_parse_simple_config_file(const char *path)
usr/src/cmd/bhyve/common/bhyverun.c
644
fp = fopen(path, "r");
usr/src/cmd/bhyve/common/bhyverun.c
646
err(4, "Failed to open configuration file %s", path);
usr/src/cmd/bhyve/common/bhyverun.c
657
errx(4, "%s line %u: invalid config option '%s'", path,
usr/src/cmd/bhyve/common/bhyverun.h
81
void bhyve_parse_simple_config_file(const char *path);
usr/src/cmd/bhyve/common/block_if.c
530
char *cp, *path;
usr/src/cmd/bhyve/common/block_if.c
540
path = strndup(opts, cp - opts);
usr/src/cmd/bhyve/common/block_if.c
541
set_config_value_node(nvl, "path", path);
usr/src/cmd/bhyve/common/block_if.c
542
free(path);
usr/src/cmd/bhyve/common/block_if.c
563
const char *path, *pssval, *ssval, *bootindex_val;
usr/src/cmd/bhyve/common/block_if.c
631
path = get_config_value_node(nvl, "path");
usr/src/cmd/bhyve/common/block_if.c
632
if (path == NULL) {
usr/src/cmd/bhyve/common/block_if.c
637
fd = open(path, (ro ? O_RDONLY : O_RDWR) | extra);
usr/src/cmd/bhyve/common/block_if.c
640
fd = open(path, O_RDONLY | extra);
usr/src/cmd/bhyve/common/block_if.c
645
warn("Could not open backing file: %s", path);
usr/src/cmd/bhyve/common/block_if.c
650
warn("Could not stat backing file %s", path);
usr/src/cmd/bhyve/common/config.c
117
create_config_node(const char *path)
usr/src/cmd/bhyve/common/config.c
120
return (_lookup_config_node(config_root, path, true));
usr/src/cmd/bhyve/common/config.c
124
find_config_node(const char *path)
usr/src/cmd/bhyve/common/config.c
127
return (_lookup_config_node(config_root, path, false));
usr/src/cmd/bhyve/common/config.c
131
create_relative_config_node(nvlist_t *parent, const char *path)
usr/src/cmd/bhyve/common/config.c
134
return (_lookup_config_node(parent, path, true));
usr/src/cmd/bhyve/common/config.c
138
find_relative_config_node(nvlist_t *parent, const char *path)
usr/src/cmd/bhyve/common/config.c
141
return (_lookup_config_node(parent, path, false));
usr/src/cmd/bhyve/common/config.c
173
set_config_value(const char *path, const char *value)
usr/src/cmd/bhyve/common/config.c
180
name = strrchr(path, '.');
usr/src/cmd/bhyve/common/config.c
183
name = path;
usr/src/cmd/bhyve/common/config.c
185
node_name = strndup(path, name - path);
usr/src/cmd/bhyve/common/config.c
200
value, path);
usr/src/cmd/bhyve/common/config.c
205
set_config_value_if_unset(const char *const path, const char *const value)
usr/src/cmd/bhyve/common/config.c
207
if (get_config_value(path) != NULL) {
usr/src/cmd/bhyve/common/config.c
211
set_config_value(path, value);
usr/src/cmd/bhyve/common/config.c
215
get_raw_config_value(const char *path)
usr/src/cmd/bhyve/common/config.c
222
name = strrchr(path, '.');
usr/src/cmd/bhyve/common/config.c
225
name = path;
usr/src/cmd/bhyve/common/config.c
227
node_name = strndup(path, name - path);
usr/src/cmd/bhyve/common/config.c
242
warnx("Attempting to fetch value of node %s", path);
usr/src/cmd/bhyve/common/config.c
251
char *nestedval, *path, *valbuf;
usr/src/cmd/bhyve/common/config.c
292
path = strndup(vp, cp - vp);
usr/src/cmd/bhyve/common/config.c
293
if (path == NULL)
usr/src/cmd/bhyve/common/config.c
300
cp = get_raw_config_value(path);
usr/src/cmd/bhyve/common/config.c
304
path);
usr/src/cmd/bhyve/common/config.c
310
free(path);
usr/src/cmd/bhyve/common/config.c
345
get_config_value(const char *path)
usr/src/cmd/bhyve/common/config.c
349
value = get_raw_config_value(path);
usr/src/cmd/bhyve/common/config.c
391
get_config_bool(const char *path)
usr/src/cmd/bhyve/common/config.c
395
value = get_config_value(path);
usr/src/cmd/bhyve/common/config.c
397
err(4, "Failed to fetch boolean variable %s", path);
usr/src/cmd/bhyve/common/config.c
398
return (_bool_value(path, value));
usr/src/cmd/bhyve/common/config.c
402
get_config_bool_default(const char *path, bool def)
usr/src/cmd/bhyve/common/config.c
406
value = get_config_value(path);
usr/src/cmd/bhyve/common/config.c
409
return (_bool_value(path, value));
usr/src/cmd/bhyve/common/config.c
436
set_config_bool(const char *path, bool value)
usr/src/cmd/bhyve/common/config.c
439
set_config_value(path, value ? "true" : "false");
usr/src/cmd/bhyve/common/config.c
52
_lookup_config_node(nvlist_t *parent, const char *path, bool create)
usr/src/cmd/bhyve/common/config.c
57
copy = strdup(path);
usr/src/cmd/bhyve/common/config.c
64
warnx("Invalid configuration node: %s", path);
usr/src/cmd/bhyve/common/config.c
86
path, tofree);
usr/src/cmd/bhyve/common/config.h
119
void set_config_value(const char *path, const char *value);
usr/src/cmd/bhyve/common/config.h
124
void set_config_value_if_unset(const char *const path,
usr/src/cmd/bhyve/common/config.h
128
bool get_config_bool(const char *path);
usr/src/cmd/bhyve/common/config.h
130
bool get_config_bool_default(const char *path, bool def);
usr/src/cmd/bhyve/common/config.h
133
void set_config_bool(const char *path, bool value);
usr/src/cmd/bhyve/common/config.h
74
const char *get_config_value(const char *path);
usr/src/cmd/bhyve/common/config.h
85
nvlist_t *create_config_node(const char *path);
usr/src/cmd/bhyve/common/config.h
92
nvlist_t *find_config_node(const char *path);
usr/src/cmd/bhyve/common/config.h
98
nvlist_t *create_relative_config_node(nvlist_t *parent, const char *path);
usr/src/cmd/bhyve/common/config.h
99
nvlist_t *find_relative_config_node(nvlist_t *parent, const char *path);
usr/src/cmd/bhyve/common/pci_ahci.c
2480
const char *path, *type, *value;
usr/src/cmd/bhyve/common/pci_ahci.c
2545
path = get_config_value_node(port_nvl, "path");
usr/src/cmd/bhyve/common/pci_ahci.c
2547
MD5Update(&mdctx, path, strlen(path));
usr/src/cmd/bhyve/common/pci_passthru.c
169
passthru_dev_open(const char *path, int *pptfdp)
usr/src/cmd/bhyve/common/pci_passthru.c
173
if ((pptfd = open(path, O_RDWR)) < 0) {
usr/src/cmd/bhyve/common/pci_passthru.c
775
const char *path;
usr/src/cmd/bhyve/common/pci_passthru.c
788
path = get_config_value_node(nvl, "path");
usr/src/cmd/bhyve/common/pci_passthru.c
789
if (path == NULL || passthru_dev_open(path, &pptfd) != 0) {
usr/src/cmd/bhyve/common/pci_virtio_block.c
494
const char *path, *serial;
usr/src/cmd/bhyve/common/pci_virtio_block.c
565
path = get_config_value_node(nvl, "path");
usr/src/cmd/bhyve/common/pci_virtio_block.c
567
MD5Update(&mdctx, path, strlen(path));
usr/src/cmd/bhyve/common/pci_virtio_console.c
311
const char *name, *path;
usr/src/cmd/bhyve/common/pci_virtio_console.c
330
path = get_config_value_node(nvl, "path");
usr/src/cmd/bhyve/common/pci_virtio_console.c
331
if (path == NULL) {
usr/src/cmd/bhyve/common/pci_virtio_console.c
350
pathcopy = strdup(path);
usr/src/cmd/bhyve/common/pci_virtio_console.c
365
strcpy(pathcopy, path);
usr/src/cmd/bhyve/common/pci_virtio_console.c
375
pathcopy = (char *)path;
usr/src/cmd/bhyve/common/pci_virtio_console.c
705
char *name, *path;
usr/src/cmd/bhyve/common/pci_virtio_console.c
710
path = opt;
usr/src/cmd/bhyve/common/pci_virtio_console.c
711
if (path == NULL) {
usr/src/cmd/bhyve/common/pci_virtio_console.c
722
set_config_value_node(port_nvl, "path", path);
usr/src/cmd/bhyve/common/pci_virtio_input.c
648
char *path = strndup(opts, cp - opts);
usr/src/cmd/bhyve/common/pci_virtio_input.c
649
set_config_value_node(nvl, "path", path);
usr/src/cmd/bhyve/common/pci_virtio_input.c
650
free(path);
usr/src/cmd/bhyve/common/pci_virtio_scsi.c
1001
if (path == NULL) {
usr/src/cmd/bhyve/common/pci_virtio_scsi.c
1006
if (path[0] != '/' && (id = strchr(path, ':')) != NULL) {
usr/src/cmd/bhyve/common/pci_virtio_scsi.c
1008
int len = id - path;
usr/src/cmd/bhyve/common/pci_virtio_scsi.c
1010
id = strndup(path, len);
usr/src/cmd/bhyve/common/pci_virtio_scsi.c
1026
path += len + 1;
usr/src/cmd/bhyve/common/pci_virtio_scsi.c
1041
path, tmp, get_config_value_node(nvl, tmp));
usr/src/cmd/bhyve/common/pci_virtio_scsi.c
1045
set_config_value_node(nvl, tmp, path);
usr/src/cmd/bhyve/common/pci_virtio_scsi.c
995
pci_vtscsi_add_target_config(nvlist_t *nvl, const char *path, int last_id)
usr/src/cmd/bhyve/common/pci_virtio_scsi_uscsi.c
122
vtscsi_uscsi_open(struct pci_vtscsi_softc *sc, const char *path, long target)
usr/src/cmd/bhyve/common/pci_virtio_scsi_uscsi.c
136
tgt->vst_fd = open(path, O_RDWR);
usr/src/cmd/bhyve/common/tpm_emul_passthru.c
46
const char *path;
usr/src/cmd/bhyve/common/tpm_emul_passthru.c
54
path = get_config_value_node(nvl, "path");
usr/src/cmd/bhyve/common/tpm_emul_passthru.c
55
tpm->fd = open(path, O_RDWR);
usr/src/cmd/bhyve/common/tpm_emul_passthru.c
57
warnx("%s: unable to open tpm device \"%s\"", __func__, path);
usr/src/cmd/bhyve/common/tpm_emul_swtpm.c
43
const char *path;
usr/src/cmd/bhyve/common/tpm_emul_swtpm.c
52
path = get_config_value_node(nvl, "path");
usr/src/cmd/bhyve/common/tpm_emul_swtpm.c
53
if (path == NULL) {
usr/src/cmd/bhyve/common/tpm_emul_swtpm.c
66
strlcpy(tpm_addr.sun_path, path, sizeof (tpm_addr.sun_path) - 1);
usr/src/cmd/bhyve/common/tpm_emul_swtpm.c
71
path);
usr/src/cmd/bhyve/common/uart_backend.c
398
uart_tty_backend(struct uart_softc *sc, const char *path)
usr/src/cmd/bhyve/common/uart_backend.c
406
fd = open(path, O_RDWR | O_NONBLOCK);
usr/src/cmd/bhyve/common/uart_backend.c
468
init_sock(const char *path)
usr/src/cmd/bhyve/common/uart_backend.c
476
if (strlcpy(servaddr.sun_path, path, sizeof (servaddr.sun_path)) >=
usr/src/cmd/bhyve/common/uart_backend.c
479
path);
usr/src/cmd/bhyve/common/uart_backend.c
517
char *path = NULL;
usr/src/cmd/bhyve/common/uart_backend.c
529
if (path == NULL && *opt == '/') {
usr/src/cmd/bhyve/common/uart_backend.c
530
path = opt;
usr/src/cmd/bhyve/common/uart_backend.c
542
if ((sc->usc_sock.servfd = init_sock(path)) == -1) {
usr/src/cmd/bhyve/common/uart_backend.c
573
uart_tty_open(struct uart_softc *sc, const char *path,
usr/src/cmd/bhyve/common/uart_backend.c
579
if (strncmp("socket,", path, 7) == 0)
usr/src/cmd/bhyve/common/uart_backend.c
580
return (uart_sock_backend(sc, path, drain, arg));
usr/src/cmd/bhyve/common/uart_backend.c
582
if (strcmp("stdio", path) == 0)
usr/src/cmd/bhyve/common/uart_backend.c
585
retval = uart_tty_backend(sc, path);
usr/src/cmd/bhyve/common/uart_backend.h
51
int uart_tty_open(struct uart_softc *sc, const char *path,
usr/src/cmd/biosdev/biosdev.c
113
static int search_disklist_match_path(char *path);
usr/src/cmd/biosdev/biosdev.c
309
search_disklist_match_path(char *path)
usr/src/cmd/biosdev/biosdev.c
313
if (strcmp(disk_list[i], path) == 0) {
usr/src/cmd/bnu/account.c
124
acptr->path, FS);
usr/src/cmd/bnu/account.c
271
copyText(acptr->path, sizeof(acptr->path), NOTAVAIL);
usr/src/cmd/bnu/account.c
305
copyText(acptr->path, sizeof(acptr->path), cmd);
usr/src/cmd/bnu/account.c
65
char path[BUFSIZ]; /* path of the rest of the hops */
usr/src/cmd/bnu/expfile.c
166
canPath(path)
usr/src/cmd/bnu/expfile.c
167
register char *path; /* path is modified in place */
usr/src/cmd/bnu/expfile.c
171
to = fr = path;
usr/src/cmd/bnu/expfile.c
187
if (((to - 1) == path) && (*path == '/')) continue;
usr/src/cmd/bnu/expfile.c
189
if (to <= path) return (FAIL);
usr/src/cmd/bnu/expfile.c
191
while ((--to > path) && (to[-1] != '/'));
usr/src/cmd/bnu/expfile.c
204
if (to == path) *to++ = '.';
usr/src/cmd/bnu/getpwinfo.c
82
gninfo(name, uid, path)
usr/src/cmd/bnu/getpwinfo.c
83
char *path, *name;
usr/src/cmd/bnu/getpwinfo.c
90
*path = '\0';
usr/src/cmd/bnu/getpwinfo.c
94
(void) strcpy(path, pwd->pw_dir);
usr/src/cmd/bnu/permission.c
901
chkpth(char *path, int flag)
usr/src/cmd/bnu/permission.c
910
if (canPath(path) == FAIL)
usr/src/cmd/bnu/permission.c
914
if (listMatch(path, _RPaths)
usr/src/cmd/bnu/permission.c
915
&& !listMatch(path, _NoRPaths))
usr/src/cmd/bnu/permission.c
918
if (listMatch(path, _WPaths)
usr/src/cmd/bnu/permission.c
919
&& !listMatch(path, _NoWPaths))
usr/src/cmd/bnu/permission.c
924
if (PREFIX(RemSpool, path) ) {
usr/src/cmd/bnu/permission.c
925
s = &path[strlen(RemSpool)];
usr/src/cmd/bnu/strsave.c
61
eaccess( path, amode )
usr/src/cmd/bnu/strsave.c
62
char *path;
usr/src/cmd/bnu/strsave.c
68
if( stat( path, &s ) == -1 )
usr/src/cmd/bnu/uudecode.c
102
char *file, char *path);
usr/src/cmd/boot/bootadm/bootadm.c
1003
path, getuid());
usr/src/cmd/boot/bootadm/bootadm.c
1009
path);
usr/src/cmd/boot/bootadm/bootadm.c
1319
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
1397
(void) snprintf(path, sizeof (path), "%s%s", bam_root,
usr/src/cmd/boot/bootadm/bootadm.c
1400
(void) snprintf(path, sizeof (path), "%s", GRUB_slice);
usr/src/cmd/boot/bootadm/bootadm.c
1403
if (bam_verbose && stat(path, &sb) == 0)
usr/src/cmd/boot/bootadm/bootadm.c
1405
"ignoring.\n"), path);
usr/src/cmd/boot/bootadm/bootadm.c
1806
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
1817
(void) snprintf(path, sizeof (path), "%s%s", root, final);
usr/src/cmd/boot/bootadm/bootadm.c
1821
if (stat(path, &sb) != -1) {
usr/src/cmd/boot/bootadm/bootadm.c
1823
path);
usr/src/cmd/boot/bootadm/bootadm.c
1824
if (unlink(path) != 0) {
usr/src/cmd/boot/bootadm/bootadm.c
1826
path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
1840
if (stat(path, &sb) != -1) {
usr/src/cmd/boot/bootadm/bootadm.c
1932
ret = rename(tmpfile, path);
usr/src/cmd/boot/bootadm/bootadm.c
1935
bam_error(_("rename to file failed: %s: %s\n"), path,
usr/src/cmd/boot/bootadm/bootadm.c
1940
BAM_DPRINTF(("%s: wrote file successfully: %s\n", fcn, path));
usr/src/cmd/boot/bootadm/bootadm.c
1950
setup_path(char *path)
usr/src/cmd/boot/bootadm/bootadm.c
1956
p = strrchr(path, '/');
usr/src/cmd/boot/bootadm/bootadm.c
1959
if (stat(path, &sb) != 0 || !(S_ISDIR(sb.st_mode))) {
usr/src/cmd/boot/bootadm/bootadm.c
1961
(void) unlink(path);
usr/src/cmd/boot/bootadm/bootadm.c
1964
"path for %s\n"), path);
usr/src/cmd/boot/bootadm/bootadm.c
1965
ret = mkdirp(path, DIR_PERMS);
usr/src/cmd/boot/bootadm/bootadm.c
1968
path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
1985
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
1990
setup_file(char *base, const char *path, cachefile *cf)
usr/src/cmd/boot/bootadm/bootadm.c
2002
strip = (char *)path + strlen(rootbuf);
usr/src/cmd/boot/bootadm/bootadm.c
2004
ret = snprintf(cf->path, sizeof (cf->path), "%s/%s", base, strip);
usr/src/cmd/boot/bootadm/bootadm.c
2005
if (ret >= sizeof (cf->path)) {
usr/src/cmd/boot/bootadm/bootadm.c
2012
if (setup_path(cf->path) == BAM_ERROR)
usr/src/cmd/boot/bootadm/bootadm.c
2016
if ((cf->out.gzfile = gzopen(cf->path, "wb")) == NULL) {
usr/src/cmd/boot/bootadm/bootadm.c
2018
cf->path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
2024
if ((cf->out.fdfile = open(cf->path, O_WRONLY | O_CREAT, 0644))
usr/src/cmd/boot/bootadm/bootadm.c
2027
cf->path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
2046
cf.path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
2053
cf.path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
2070
cf.path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
2079
cf.path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
2089
dircache_updatefile(const char *path)
usr/src/cmd/boot/bootadm/bootadm.c
2104
if ((infile = fopen(path, "rb")) == NULL) {
usr/src/cmd/boot/bootadm/bootadm.c
2105
bam_error(_("failed to open file: %s: %s\n"), path,
usr/src/cmd/boot/bootadm/bootadm.c
2110
ret = setup_file(get_cachedir(), path, &outfile);
usr/src/cmd/boot/bootadm/bootadm.c
2116
ret = setup_file(get_updatedir(), path, &outupdt);
usr/src/cmd/boot/bootadm/bootadm.c
2149
dircache_updatedir(const char *path, int updt)
usr/src/cmd/boot/bootadm/bootadm.c
2156
strip = (char *)path + strlen(rootbuf);
usr/src/cmd/boot/bootadm/bootadm.c
2199
update_dircache(const char *path, int flags)
usr/src/cmd/boot/bootadm/bootadm.c
2209
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/cmd/boot/bootadm/bootadm.c
2211
path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
2224
path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
2234
rc = dircache_updatefile(path);
usr/src/cmd/boot/bootadm/bootadm.c
2240
"and will be excluded\n"), path);
usr/src/cmd/boot/bootadm/bootadm.c
2243
rc = dircache_updatefile(path);
usr/src/cmd/boot/bootadm/bootadm.c
2247
"32-bit nor 64-bit\n"), path);
usr/src/cmd/boot/bootadm/bootadm.c
2254
if (strstr(path, "/amd64") != NULL) {
usr/src/cmd/boot/bootadm/bootadm.c
2256
rc = dircache_updatedir(path, DO_UPDATE_DIR);
usr/src/cmd/boot/bootadm/bootadm.c
2258
rc = dircache_updatedir(path,
usr/src/cmd/boot/bootadm/bootadm.c
2484
rmdir_r(char *path)
usr/src/cmd/boot/bootadm/bootadm.c
2491
if ((dir = opendir(path)) == NULL)
usr/src/cmd/boot/bootadm/bootadm.c
2498
path, d->d_name);
usr/src/cmd/boot/bootadm/bootadm.c
2507
return (remove(path));
usr/src/cmd/boot/bootadm/bootadm.c
2749
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
2754
(void) snprintf(path, sizeof (path), "%s%s", root, filelist);
usr/src/cmd/boot/bootadm/bootadm.c
2756
fp = fopen(path, "r");
usr/src/cmd/boot/bootadm/bootadm.c
2759
fcn, path, strerror(errno)));
usr/src/cmd/boot/bootadm/bootadm.c
2770
path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
2779
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
2790
n = snprintf(path, sizeof (path), "%s%s", root, EXTRACT_BOOT_FILELIST);
usr/src/cmd/boot/bootadm/bootadm.c
2791
if (n >= sizeof (path)) {
usr/src/cmd/boot/bootadm/bootadm.c
2796
if (is_safe_exec(path) == BAM_ERROR)
usr/src/cmd/boot/bootadm/bootadm.c
2803
if (stat(path, &sb) == 0) {
usr/src/cmd/boot/bootadm/bootadm.c
2827
path, rootarg, platarg, BOOT_FILE_LIST, ETC_FILE_LIST);
usr/src/cmd/boot/bootadm/bootadm.c
2836
"filelist: %s: %s\n", fcn, path, strerror(errno)));
usr/src/cmd/boot/bootadm/bootadm.c
2860
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
2865
(void) snprintf(path, sizeof (path), "%s%s", root, FILE_STAT);
usr/src/cmd/boot/bootadm/bootadm.c
2866
fd = open(path, O_RDONLY);
usr/src/cmd/boot/bootadm/bootadm.c
2870
path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
2875
bam_error(_("stat of file failed: %s: %s\n"), path,
usr/src/cmd/boot/bootadm/bootadm.c
2883
bam_error(_("read failed for file: %s: %s\n"), path,
usr/src/cmd/boot/bootadm/bootadm.c
2899
path, strerror(error));
usr/src/cmd/boot/bootadm/bootadm.c
2916
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
2919
(void) snprintf(path, sizeof (path), "%s/%s", get_cachedir(), file);
usr/src/cmd/boot/bootadm/bootadm.c
2920
if (!bam_check && stat(path, &sb) == 0) {
usr/src/cmd/boot/bootadm/bootadm.c
2922
(void) rmdir_r(path);
usr/src/cmd/boot/bootadm/bootadm.c
2924
(void) unlink(path);
usr/src/cmd/boot/bootadm/bootadm.c
2942
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
2966
(void) snprintf(path, sizeof (path), "%s/%s",
usr/src/cmd/boot/bootadm/bootadm.c
2968
if (access(path, F_OK) < 0) {
usr/src/cmd/boot/bootadm/bootadm.c
2970
bam_print(_(" stale %s\n"), path);
usr/src/cmd/boot/bootadm/bootadm.c
3001
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
3011
(void) snprintf(path, sizeof (path), "%s%s", root, lp->line);
usr/src/cmd/boot/bootadm/bootadm.c
3012
if (nftw(path, cmpstat, 20, FTW_PHYS) == -1) {
usr/src/cmd/boot/bootadm/bootadm.c
3022
path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
3058
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
3074
(void) snprintf(path, sizeof (path), "%s%s", root, FILE_STAT_TMP);
usr/src/cmd/boot/bootadm/bootadm.c
3075
fd = open(path, O_RDWR|O_CREAT|O_TRUNC, FILE_STAT_MODE);
usr/src/cmd/boot/bootadm/bootadm.c
3077
bam_error(_("failed to open file: %s: %s\n"), path,
usr/src/cmd/boot/bootadm/bootadm.c
3084
bam_error(_("write to file failed: %s: %s\n"), path,
usr/src/cmd/boot/bootadm/bootadm.c
3094
if (rename(path, path2) != 0) {
usr/src/cmd/boot/bootadm/bootadm.c
3132
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
3156
(void) snprintf(path, sizeof (path), "%s%s", root, FILE_STAT);
usr/src/cmd/boot/bootadm/bootadm.c
3157
if (stat(path, &sb) != 0) {
usr/src/cmd/boot/bootadm/bootadm.c
3846
char path[PATH_MAX], tmpfile[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
3852
(void) snprintf(path, sizeof (path), "%s/%s", root, ETC_SYSTEM_DIR);
usr/src/cmd/boot/bootadm/bootadm.c
3864
if ((files = scandir(path, &filelist, NULL, alphasort)) < 0) {
usr/src/cmd/boot/bootadm/bootadm.c
3868
bam_error(_("can't read %s: %s\n"), path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
3888
path, fname);
usr/src/cmd/boot/bootadm/bootadm.c
3891
path, fname);
usr/src/cmd/boot/bootadm/bootadm.c
3929
char *cmdline, path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
3952
(void) snprintf(path, sizeof (path), "%s/%s", root, CREATE_RAMDISK);
usr/src/cmd/boot/bootadm/bootadm.c
3953
if (stat(path, &sb) != 0) {
usr/src/cmd/boot/bootadm/bootadm.c
3955
path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm.c
3959
if (is_safe_exec(path) == BAM_ERROR)
usr/src/cmd/boot/bootadm/bootadm.c
3962
len = strlen(path) + strlen(root) + 10; /* room for space + -R */
usr/src/cmd/boot/bootadm/bootadm.c
3972
path, bam_platform, root);
usr/src/cmd/boot/bootadm/bootadm.c
3976
(void) snprintf(cmdline, len, "%s -R %s", path, root);
usr/src/cmd/boot/bootadm/bootadm.c
3980
(void) snprintf(cmdline, len, "%s", path);
usr/src/cmd/boot/bootadm/bootadm.c
4081
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
4089
(void) snprintf(path, sizeof (path), "%s/%s", root, CREATE_RAMDISK);
usr/src/cmd/boot/bootadm/bootadm.c
4090
error = stat(path, &sb);
usr/src/cmd/boot/bootadm/bootadm.c
4094
bam_print(_("file not found: %s\n"), path);
usr/src/cmd/boot/bootadm/bootadm.c
4117
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
4137
(void) snprintf(path, sizeof (path), "%s%s", root, GRUB_STAGE2);
usr/src/cmd/boot/bootadm/bootadm.c
4138
if (stat(path, &sb) == -1) {
usr/src/cmd/boot/bootadm/bootadm.c
4140
fcn, path));
usr/src/cmd/boot/bootadm/bootadm.c
5521
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
5529
ret = snprintf(path, sizeof (path), "%s/%s", osroot,
usr/src/cmd/boot/bootadm/bootadm.c
5531
if (ret >= sizeof (path)) {
usr/src/cmd/boot/bootadm/bootadm.c
5536
if (is_safe_exec(path) == BAM_ERROR)
usr/src/cmd/boot/bootadm/bootadm.c
6615
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm.c
6638
(void) snprintf(path, sizeof (path), "/dev/rdsk/%s", slice);
usr/src/cmd/boot/bootadm/bootadm.c
6639
if (stat(path, &sbuf) == -1) {
usr/src/cmd/boot/bootadm/bootadm.c
6640
BAM_DPRINTF(("%s: slice does not exist: %s\n", fcn, path));
usr/src/cmd/boot/bootadm/bootadm.c
8922
char *path;
usr/src/cmd/boot/bootadm/bootadm.c
9108
path = expand_path(opt);
usr/src/cmd/boot/bootadm/bootadm.c
9109
if (path != NULL) {
usr/src/cmd/boot/bootadm/bootadm.c
9110
(void) strlcpy(kernbuf, path, sizeof (kernbuf));
usr/src/cmd/boot/bootadm/bootadm.c
9111
free(path);
usr/src/cmd/boot/bootadm/bootadm.c
9405
char *path,
usr/src/cmd/boot/bootadm/bootadm.c
9488
if (path == NULL) {
usr/src/cmd/boot/bootadm/bootadm.c
9524
if ((path[0] == '\0') ||
usr/src/cmd/boot/bootadm/bootadm.c
9526
(strcmp(path, DIRECT_BOOT_KERNEL) == 0))) {
usr/src/cmd/boot/bootadm/bootadm.c
9597
if ((optnum == KERNEL_CMD) && (path[0] != '/')) {
usr/src/cmd/boot/bootadm/bootadm.c
9598
new_path = expand_path(path);
usr/src/cmd/boot/bootadm/bootadm.c
9601
"path.\n"), path);
usr/src/cmd/boot/bootadm/bootadm.c
9607
new_path = path;
usr/src/cmd/boot/bootadm/bootadm.c
9677
new_str_len = strlen(path) + 8;
usr/src/cmd/boot/bootadm/bootadm.c
9682
DIRECT_BOOT_KERNEL_ZFS, path);
usr/src/cmd/boot/bootadm/bootadm.c
9687
DIRECT_BOOT_KERNEL, path);
usr/src/cmd/boot/bootadm/bootadm.c
9734
new_str_len = old_kernel_len + strlen(path) + 8;
usr/src/cmd/boot/bootadm/bootadm.c
9738
(void) strlcat(new_arg, path, new_str_len);
usr/src/cmd/boot/bootadm/bootadm.c
9768
set_kernel(menu_t *mp, menu_cmd_t optnum, char *path, char *buf, size_t bufsize)
usr/src/cmd/boot/bootadm/bootadm.c
9771
assert(path != NULL);
usr/src/cmd/boot/bootadm/bootadm.c
9773
menu_cmds[optnum], path));
usr/src/cmd/boot/bootadm/bootadm.c
9774
return (get_set_kernel(mp, optnum, path, buf, bufsize));
usr/src/cmd/boot/bootadm/bootadm.c
986
is_safe_exec(char *path)
usr/src/cmd/boot/bootadm/bootadm.c
990
if (lstat(path, &sb) != 0) {
usr/src/cmd/boot/bootadm/bootadm.c
991
bam_error(_("stat of file failed: %s: %s\n"), path,
usr/src/cmd/boot/bootadm/bootadm.c
997
bam_error(_("%s is not a regular file, skipping\n"), path);
usr/src/cmd/boot/bootadm/bootadm_hyper.c
109
if ((pc = strstr(path, old_str)) == NULL)
usr/src/cmd/boot/bootadm/bootadm_hyper.c
110
return (s_strdup(path));
usr/src/cmd/boot/bootadm/bootadm_hyper.c
116
len = strlen(path) - strlen(old_str) + strlen(new_str) + 1;
usr/src/cmd/boot/bootadm/bootadm_hyper.c
123
(void) strlcpy(newpath, path, (pc - path) + 1);
usr/src/cmd/boot/bootadm/bootadm_hyper.c
510
cvt_metal_kernel(char *kernstr, char **path)
usr/src/cmd/boot/bootadm/bootadm_hyper.c
514
parsestr = get_token(path, kernstr, " \t,");
usr/src/cmd/boot/bootadm/bootadm_hyper.c
515
if (*path == NULL)
usr/src/cmd/boot/bootadm/bootadm_hyper.c
523
if (strstr(*path, XEN_MENU) != NULL) {
usr/src/cmd/boot/bootadm/bootadm_hyper.c
526
free(*path);
usr/src/cmd/boot/bootadm/bootadm_hyper.c
527
*path = NULL;
usr/src/cmd/boot/bootadm/bootadm_hyper.c
608
cvt_hyper_module(char *modstr, char **path)
usr/src/cmd/boot/bootadm/bootadm_hyper.c
617
while ((parsestr = get_token(path, parsestr, " \t,")) != NULL) {
usr/src/cmd/boot/bootadm/bootadm_hyper.c
621
free(*path);
usr/src/cmd/boot/bootadm/bootadm_hyper.c
99
modify_path(char *path, char *old_str, char *new_str)
usr/src/cmd/boot/bootadm/bootadm_loader.c
1069
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm_loader.c
1075
(void) snprintf(path, PATH_MAX, "%s%s", menu_root, MENU);
usr/src/cmd/boot/bootadm/bootadm_loader.c
1081
fp = fopen(path, "w");
usr/src/cmd/boot/bootadm/bootadm_loader.c
1104
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm_loader.c
1112
(void) snprintf(path, PATH_MAX, "%s" TRANSIENT, bam_root);
usr/src/cmd/boot/bootadm/bootadm_loader.c
1117
(void) unlink(path);
usr/src/cmd/boot/bootadm/bootadm_loader.c
1174
fp = fopen(path, "w");
usr/src/cmd/boot/bootadm/bootadm_loader.c
1196
fp = fopen(path, "w");
usr/src/cmd/boot/bootadm/bootadm_loader.c
1204
fp = fopen(path, "w");
usr/src/cmd/boot/bootadm/bootadm_loader.c
1293
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm_loader.c
1295
(void) snprintf(path, PATH_MAX, "%s" XEN_CONFIG, bam_root);
usr/src/cmd/boot/bootadm/bootadm_loader.c
1296
(void) unlink(path);
usr/src/cmd/boot/bootadm/bootadm_loader.c
1305
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm_loader.c
1365
(void) snprintf(path, PATH_MAX, "%s" XEN_CONFIG, bam_root);
usr/src/cmd/boot/bootadm/bootadm_loader.c
1366
fp = fopen(path, "w");
usr/src/cmd/boot/bootadm/bootadm_loader.c
1412
(void) unlink(path);
usr/src/cmd/boot/bootadm/bootadm_loader.c
1418
(void) unlink(path);
usr/src/cmd/boot/bootadm/bootadm_loader.c
635
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm_loader.c
694
(void) snprintf(path, PATH_MAX, "%s" CONF_DIR "/timeout",
usr/src/cmd/boot/bootadm/bootadm_loader.c
697
fp = fopen(path, "w");
usr/src/cmd/boot/bootadm/bootadm_loader.c
700
path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm_loader.c
714
path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm_loader.c
722
path, strerror(errno));
usr/src/cmd/boot/bootadm/bootadm_loader.c
726
(void) unlink(path);
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
102
path, strerror(error));
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
235
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
245
(void) snprintf(path, sizeof (path), "%s/%s", root, INST_RELEASE);
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
246
if (stat(path, &sb) != 0) {
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
365
char path[PATH_MAX], path_64[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
394
(void) snprintf(path, PATH_MAX, "%s%s", osroot,
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
398
if (stat(path, &sb) != 0 && stat(path_64, &sb_64) != 0) {
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
52
char path[PATH_MAX];
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
60
(void) snprintf(path, sizeof (path), "%s/%s",
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
63
if (stat(path, &sb) == -1) {
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
69
fp = fopen(path, "r");
usr/src/cmd/boot/bootadm/bootadm_upgrade.c
73
bam_error(_("failed to open file: %s: %s\n"), path,
usr/src/cmd/boot/installboot/i386/installboot.c
1011
free(device->target.path);
usr/src/cmd/boot/installboot/i386/installboot.c
1029
ptr = strrchr(data->target.path, 'p');
usr/src/cmd/boot/installboot/i386/installboot.c
1031
ptr = strrchr(data->target.path, 's');
usr/src/cmd/boot/installboot/i386/installboot.c
1033
if ((fd = open_device(data->target.path)) == -1)
usr/src/cmd/boot/installboot/i386/installboot.c
1075
char *path, *ptr;
usr/src/cmd/boot/installboot/i386/installboot.c
1082
if ((path = strdup(data->target.path)) == NULL) {
usr/src/cmd/boot/installboot/i386/installboot.c
1086
ptr = strrchr(path, 's');
usr/src/cmd/boot/installboot/i386/installboot.c
1089
(void) asprintf(&ptr, "%s%d", path, i);
usr/src/cmd/boot/installboot/i386/installboot.c
1090
free(path);
usr/src/cmd/boot/installboot/i386/installboot.c
1156
if ((fd = open_device(data->target.path)) < 0)
usr/src/cmd/boot/installboot/i386/installboot.c
1212
pl->pl_device->stage.path = "/EFI/Boot/" BOOTIA32;
usr/src/cmd/boot/installboot/i386/installboot.c
1225
pl->pl_device->stage.path = "/EFI/Boot/" BOOTX64;
usr/src/cmd/boot/installboot/i386/installboot.c
1243
if ((pl->pl_devname = strdup(data->target.path)) == NULL) {
usr/src/cmd/boot/installboot/i386/installboot.c
1274
if ((pl->pl_devname = strdup(data->target.path)) == NULL) {
usr/src/cmd/boot/installboot/i386/installboot.c
1313
if ((fd = open_device(data->target.path)) < 0)
usr/src/cmd/boot/installboot/i386/installboot.c
1405
char *path, *ptr;
usr/src/cmd/boot/installboot/i386/installboot.c
1413
if ((fd = open_device(data->target.path)) < 0)
usr/src/cmd/boot/installboot/i386/installboot.c
1435
if ((path = strdup(data->target.path)) == NULL) {
usr/src/cmd/boot/installboot/i386/installboot.c
1459
free(path);
usr/src/cmd/boot/installboot/i386/installboot.c
1465
ptr = strrchr(path, 's');
usr/src/cmd/boot/installboot/i386/installboot.c
1468
(void) asprintf(&ptr, "%s%d", path, i);
usr/src/cmd/boot/installboot/i386/installboot.c
1469
free(path);
usr/src/cmd/boot/installboot/i386/installboot.c
1549
char *path, *ptr;
usr/src/cmd/boot/installboot/i386/installboot.c
1573
path = (char *)pl->pl_devname;
usr/src/cmd/boot/installboot/i386/installboot.c
1583
pl->pl_devname = strdup(path);
usr/src/cmd/boot/installboot/i386/installboot.c
1608
if ((path = strdup(path)) == NULL) {
usr/src/cmd/boot/installboot/i386/installboot.c
1613
ptr = strrchr(path, 'p');
usr/src/cmd/boot/installboot/i386/installboot.c
1617
rv = asprintf(&ptr, "%s%d", path, i + 1);
usr/src/cmd/boot/installboot/i386/installboot.c
1618
free(path);
usr/src/cmd/boot/installboot/i386/installboot.c
1717
data->target.path = (char *)dev;
usr/src/cmd/boot/installboot/i386/installboot.c
176
char *path;
usr/src/cmd/boot/installboot/i386/installboot.c
184
if ((path = mkdtemp(template)) == NULL) {
usr/src/cmd/boot/installboot/i386/installboot.c
191
ret = mount(blkdev, path, MS_OPTIONSTR,
usr/src/cmd/boot/installboot/i386/installboot.c
194
(void) rmdir(path);
usr/src/cmd/boot/installboot/i386/installboot.c
195
free(path);
usr/src/cmd/boot/installboot/i386/installboot.c
196
path = NULL;
usr/src/cmd/boot/installboot/i386/installboot.c
1966
open_device(const char *path)
usr/src/cmd/boot/installboot/i386/installboot.c
1972
fd = open(path, O_RDONLY);
usr/src/cmd/boot/installboot/i386/installboot.c
1974
fd = open(path, O_RDWR);
usr/src/cmd/boot/installboot/i386/installboot.c
1977
BOOT_DEBUG("Unable to open %s\n", path);
usr/src/cmd/boot/installboot/i386/installboot.c
198
plist->pl_device->stage.mntpnt = path;
usr/src/cmd/boot/installboot/i386/installboot.c
1983
BOOT_DEBUG("Unable to stat %s\n", path);
usr/src/cmd/boot/installboot/i386/installboot.c
199
return (path);
usr/src/cmd/boot/installboot/i386/installboot.c
1991
path);
usr/src/cmd/boot/installboot/i386/installboot.c
326
char *blkdev, *path, *file;
usr/src/cmd/boot/installboot/i386/installboot.c
373
path = mp.mnt_mountp;
usr/src/cmd/boot/installboot/i386/installboot.c
375
path = stagefs_mount(blkdev, plist);
usr/src/cmd/boot/installboot/i386/installboot.c
378
if (path == NULL)
usr/src/cmd/boot/installboot/i386/installboot.c
381
if (asprintf(&file, "%s%s", path, "/EFI") < 0) {
usr/src/cmd/boot/installboot/i386/installboot.c
389
if (asprintf(&file, "%s%s", path, "/EFI/Boot") < 0) {
usr/src/cmd/boot/installboot/i386/installboot.c
404
if (asprintf(&file, "%s%s", path, plist->pl_device->stage.path) < 0) {
usr/src/cmd/boot/installboot/i386/installboot.c
742
make_blkdev(const char *path)
usr/src/cmd/boot/installboot/i386/installboot.c
745
char *ptr = strdup(path);
usr/src/cmd/boot/installboot/i386/installboot.c
768
char *blkdev, *path, *file;
usr/src/cmd/boot/installboot/i386/installboot.c
817
path = mp.mnt_mountp;
usr/src/cmd/boot/installboot/i386/installboot.c
819
path = stagefs_mount(blkdev, plist);
usr/src/cmd/boot/installboot/i386/installboot.c
822
if (path == NULL)
usr/src/cmd/boot/installboot/i386/installboot.c
825
if (asprintf(&file, "%s%s", path, plist->pl_device->stage.path) < 0) {
usr/src/cmd/boot/installboot/i386/installboot.c
928
if (plist->pl_device->stage.path == NULL)
usr/src/cmd/boot/installboot/i386/installboot.c
931
filepath = plist->pl_device->stage.path;
usr/src/cmd/boot/installboot/i386/installboot.h
68
char *path; /* device name */
usr/src/cmd/boot/installboot/sparc/installboot.c
281
BOOT_DEBUG("Unable to read bootblock from %s\n", device->path);
usr/src/cmd/boot/installboot/sparc/installboot.c
294
"non versioned one\n", device->path);
usr/src/cmd/boot/installboot/sparc/installboot.c
299
BOOT_DEBUG("Forcing update of %s bootblock\n", device->path);
usr/src/cmd/boot/installboot/sparc/installboot.c
406
device->path);
usr/src/cmd/boot/installboot/sparc/installboot.c
417
"to %s at offset %d\n", device->path, BBLK_ZFS_EXTRA_OFF);
usr/src/cmd/boot/installboot/sparc/installboot.c
440
device->path);
usr/src/cmd/boot/installboot/sparc/installboot.c
456
device->fd = open(device->path, O_RDWR);
usr/src/cmd/boot/installboot/sparc/installboot.c
458
BOOT_DEBUG("Unable to open %s\n", device->path);
usr/src/cmd/boot/installboot/sparc/installboot.c
464
BOOT_DEBUG("Unable to stat %s\n", device->path);
usr/src/cmd/boot/installboot/sparc/installboot.c
472
device->path);
usr/src/cmd/boot/installboot/sparc/installboot.c
480
init_device(ib_device_t *device, char *path)
usr/src/cmd/boot/installboot/sparc/installboot.c
485
device->path = strdup(path);
usr/src/cmd/boot/installboot/sparc/installboot.c
486
if (path == NULL) {
usr/src/cmd/boot/installboot/sparc/installboot.c
501
free(device->path);
usr/src/cmd/boot/installboot/sparc/installboot.c
558
src->device.path, dest->device.path);
usr/src/cmd/boot/installboot/sparc/installboot.c
811
curr_device->path);
usr/src/cmd/boot/installboot/sparc/installboot.c
818
" the bootblock\n", curr_device->path);
usr/src/cmd/boot/installboot/sparc/installboot.h
43
char *path;
usr/src/cmd/boot/installgrub/installgrub.c
1083
read_stage1_from_file(char *path, ig_data_t *dest)
usr/src/cmd/boot/installgrub/installgrub.c
1090
fd = open(path, O_RDONLY);
usr/src/cmd/boot/installgrub/installgrub.c
1093
(void) fprintf(stderr, READ_FAIL_STAGE1, path);
usr/src/cmd/boot/installgrub/installgrub.c
1101
read_stage2_from_file(char *path, ig_data_t *dest)
usr/src/cmd/boot/installgrub/installgrub.c
1112
fd = open(path, O_RDONLY);
usr/src/cmd/boot/installgrub/installgrub.c
1308
BOOT_DEBUG("Unable to read stage2 from %s\n", device->path);
usr/src/cmd/boot/installgrub/installgrub.c
1309
BOOT_DEBUG("No multiboot wrapped stage2 on %s\n", device->path);
usr/src/cmd/boot/installgrub/installgrub.c
1326
"versioned one\n", device->path);
usr/src/cmd/boot/installgrub/installgrub.c
1331
BOOT_DEBUG("Forcing update of %s bootblock\n", device->path);
usr/src/cmd/boot/installgrub/installgrub.c
1506
raw = strdup(device->path);
usr/src/cmd/boot/installgrub/installgrub.c
503
curr_device->path);
usr/src/cmd/boot/installgrub/installgrub.c
510
"stage2\n", curr_device->path);
usr/src/cmd/boot/installgrub/installgrub.c
624
src_device->path, dest_device->path);
usr/src/cmd/boot/installgrub/installgrub.c
634
init_device(ig_device_t *device, char *path)
usr/src/cmd/boot/installgrub/installgrub.c
645
device->path = strdup(path);
usr/src/cmd/boot/installgrub/installgrub.c
646
if (device->path == NULL) {
usr/src/cmd/boot/installgrub/installgrub.c
651
if (strstr(device->path, "diskette")) {
usr/src/cmd/boot/installgrub/installgrub.c
658
if (strstr(device->path, "p0:boot"))
usr/src/cmd/boot/installgrub/installgrub.c
702
if (device->path)
usr/src/cmd/boot/installgrub/installgrub.c
703
free(device->path);
usr/src/cmd/boot/installgrub/installgrub.c
896
assert(device->path != NULL);
usr/src/cmd/boot/installgrub/installgrub.c
899
end = strstr(device->path, "p0:boot");
usr/src/cmd/boot/installgrub/installgrub.c
906
i = strlen(device->path);
usr/src/cmd/boot/installgrub/installgrub.c
907
save[0] = device->path[i - 2];
usr/src/cmd/boot/installgrub/installgrub.c
908
save[1] = device->path[i - 1];
usr/src/cmd/boot/installgrub/installgrub.c
909
device->path[i - 2] = 'p';
usr/src/cmd/boot/installgrub/installgrub.c
910
device->path[i - 1] = '0';
usr/src/cmd/boot/installgrub/installgrub.c
914
device->disk_fd = open(device->path, O_RDONLY);
usr/src/cmd/boot/installgrub/installgrub.c
916
device->disk_fd = open(device->path, O_RDWR);
usr/src/cmd/boot/installgrub/installgrub.c
918
device->path_p0 = strdup(device->path);
usr/src/cmd/boot/installgrub/installgrub.c
927
device->path[i - 2] = save[0];
usr/src/cmd/boot/installgrub/installgrub.c
928
device->path[i - 1] = save[1];
usr/src/cmd/boot/installgrub/installgrub.c
99
static int init_device(ig_device_t *, char *path);
usr/src/cmd/boot/installgrub/installgrub.h
39
char *path;
usr/src/cmd/cdrw/device.c
308
hald_symname(char *path)
usr/src/cmd/cdrw/device.c
326
HAL_RDSK_PROP, path, &ndevs, &error)) == NULL)
usr/src/cmd/cdrw/device.c
358
char **udi, *path = NULL;
usr/src/cmd/cdrw/device.c
366
path = my_zalloc(strlen(symname) + 1);
usr/src/cmd/cdrw/device.c
367
(void) strlcpy(path, symname, (strlen(symname) + 1));
usr/src/cmd/cdrw/device.c
368
return (path);
usr/src/cmd/cdrw/device.c
376
return (path);
usr/src/cmd/cdrw/device.c
388
if ((path = libhal_device_get_property_string(ctx,
usr/src/cmd/cdrw/device.c
392
libhal_free_string(path);
usr/src/cmd/cdrw/device.c
401
return (path);
usr/src/cmd/cfgadm/cfgadm.c
2300
char path[MAXPATHLEN];
usr/src/cmd/cfgadm/cfgadm.c
2339
(void) snprintf(path, sizeof (path), "%s/%s", CFGA_DEV_DIR, apbuf);
usr/src/cmd/cfgadm/cfgadm.c
2341
if (lstat(path, &sbuf) == 0 && S_ISLNK(sbuf.st_mode) &&
usr/src/cmd/cfgadm/cfgadm.c
2342
stat(path, &sbuf) == 0) {
usr/src/cmd/chmod/chmod.c
144
char *file, char *path, o_mode_t *group_clear_bits,
usr/src/cmd/chmod/chmod.c
147
static int chmodr(char *dir, char *path, mode_t mode, mode_t umsk,
usr/src/cmd/chmod/chmod.c
150
static int dochmod(char *name, char *path, mode_t umsk, sec_args_t *secp,
usr/src/cmd/chmod/chmod.c
274
dochmod(char *name, char *path, mode_t umsk, sec_args_t *secp,
usr/src/cmd/chmod/chmod.c
282
errmsg(2, 0, gettext("can't access %s\n"), path);
usr/src/cmd/chmod/chmod.c
289
errmsg(2, 0, gettext("can't access %s\n"), path);
usr/src/cmd/chmod/chmod.c
296
return (chmodr(name, path, st.st_mode, umsk, secp, attrnames));
usr/src/cmd/chmod/chmod.c
308
if (chmod(name, newmode_common(ms, st.st_mode, umsk, name, path,
usr/src/cmd/chmod/chmod.c
310
errmsg(2, 0, gettext("can't change %s\n"), path);
usr/src/cmd/chmod/chmod.c
329
chmodr(char *dir, char *path, mode_t mode, mode_t umsk, sec_args_t *secp,
usr/src/cmd/chmod/chmod.c
351
errmsg(2, 0, gettext("can't access %s\n"), path);
usr/src/cmd/chmod/chmod.c
361
} else if (chmod(dir, newmode_common(ms, mode, umsk, dir, path,
usr/src/cmd/chmod/chmod.c
363
errmsg(2, 0, gettext("can't change %s\n"), path);
usr/src/cmd/chmod/chmod.c
397
if (strlcpy(parentdir, path, PATH_MAX + 1) >= PATH_MAX + 1) {
usr/src/cmd/chmod/chmod.c
399
path);
usr/src/cmd/chmod/chmod.c
402
if (strcmp(path, "/") != 0)
usr/src/cmd/chmod/common.c
102
return (newmode_common(ms, new_mode, umsk, file, path, &tmp1, &tmp2));
usr/src/cmd/chmod/common.c
113
newmode_common(char *ms, mode_t new_mode, mode_t umsk, char *file, char *path,
usr/src/cmd/chmod/common.c
259
path);
usr/src/cmd/chmod/common.c
289
"lockable file\n"), path);
usr/src/cmd/chmod/common.c
309
path);
usr/src/cmd/chmod/common.c
330
path);
usr/src/cmd/chmod/common.c
382
path);
usr/src/cmd/chmod/common.c
90
newmode_common(char *ms, mode_t new_mode, mode_t umsk, char *file, char *path,
usr/src/cmd/chmod/common.c
98
newmode(char *ms, mode_t new_mode, mode_t umsk, char *file, char *path)
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_util.c
650
is_device(char *path)
usr/src/cmd/cmd-crypto/cryptoadm/adm_kef_util.c
652
if (strchr(path, SEP_SLASH) != NULL) {
usr/src/cmd/cmd-inet/sbin/dhcpagent/script_handler.c
124
char *path;
usr/src/cmd/cmd-inet/sbin/dhcpagent/script_handler.c
133
path = SCRIPT_PATH;
usr/src/cmd/cmd-inet/sbin/dhcpagent/script_handler.c
134
name = strrchr(path, '/') + 1;
usr/src/cmd/cmd-inet/sbin/dhcpagent/script_handler.c
145
(void) execl(path, name, dsmp->dsm_name, event, NULL);
usr/src/cmd/cmd-inet/sbin/dhcpagent/util.c
499
iffile_to_hostname(const char *path)
usr/src/cmd/cmd-inet/sbin/dhcpagent/util.c
504
fp = fopen(path, "r");
usr/src/cmd/cmd-inet/usr.bin/nc/netcat.c
510
unix_connect(const char *path)
usr/src/cmd/cmd-inet/usr.bin/nc/netcat.c
521
if (strlcpy(sunaddr.sun_path, path, sizeof (sunaddr.sun_path)) >=
usr/src/cmd/cmd-inet/usr.bin/nc/netcat.c
539
unix_listen(const char *path)
usr/src/cmd/cmd-inet/usr.bin/nc/netcat.c
551
if (strlcpy(sunaddr.sun_path, path, sizeof (sunaddr.sun_path)) >=
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
1011
const char *path;
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
1015
path = proc_fdinfo_misc(pr, PR_PATHNAME, NULL);
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
1016
if (path == NULL)
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
1020
dev = strrchr(path, ':');
usr/src/cmd/cmd-inet/usr.bin/netstat/netstat.c
1023
dev = strrchr(path, '/');
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
560
char *user, *path, *file;
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
570
path = malloc(pl);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
571
if (path == NULL)
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
573
(void) slprintf(path, pl, "%s/%s", user, file);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
574
ret = options_from_file(path, 0, 1, privileged);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
575
free(path);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
587
char *dev, *path, *p;
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
597
path = malloc(pl);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
598
if (path == NULL)
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
600
(void) slprintf(path, pl, "%s%s", _PATH_TTYOPT, dev);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
602
for (p = path + strlen(_PATH_TTYOPT); *p != '\0'; ++p)
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
605
ret = options_from_file(path, 0, 0, 1);
usr/src/cmd/cmd-inet/usr.bin/pppd/options.c
606
free(path);
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1061
susystem(char *path, char **arglist)
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1108
(void) execv(path, arglist);
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1307
char path[MAXPATHLEN];
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1319
(void) snprintf(path, sizeof (path), "T%ld 0 %ld 0\n",
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1321
(void) desrcpwrite(rem, path, strlen(path));
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1327
(void) snprintf(path, sizeof (path), "D%04o %d %s\n",
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1329
(void) desrcpwrite(rem, path, strlen(path));
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1356
(void) snprintf(path, sizeof (path), "%s/%s",
usr/src/cmd/cmd-inet/usr.bin/rcp.c
1358
vect[0] = path;
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
210
for (cp = path; cp <= lastpathp + 1 && (*cp++ = *cp1++); )
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
214
tpathp = pathp = path;
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
220
Cat(path, s);
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
258
if (!expany || stat(path, &stb) >= 0) {
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
260
Cat(path, "");
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
291
dirp = opendir(path);
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
306
Cat(path, dp->d_name);
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
31
char *path;
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
327
if (path + strlen(path) + strlen(strerr) + 1 > lastpathp)
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
330
strcat(path, ": ");
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
331
strcat(path, strerr);
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
333
yyerror(path);
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
514
if (stat(path, &stb) == 0 && ISDIR(stb.st_mode))
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
517
Cat(path, "");
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
87
path = tpathp = pathp = pathbuf;
usr/src/cmd/cmd-inet/usr.bin/rdist/expand.c
89
lastpathp = &path[sizeof (pathbuf) - 2];
usr/src/cmd/cmd-inet/usr.lib/inetd/config.c
635
read_method_context(const char *inst_fmri, const char *method, const char *path)
usr/src/cmd/cmd-inet/usr.lib/inetd/config.c
667
RESTARTER_METHOD_CONTEXT_VERSION, scf_inst, NULL, method, path,
usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c
2385
can_read_file(const char *path)
usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c
2391
ret = access(path, R_OK);
usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c
2398
path, strerror(errno));
usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c
2660
const char *path)
usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.c
2665
while (stat(path, &sbuf) == -1) {
usr/src/cmd/cmd-inet/usr.lib/inetd/wait.c
186
char path[MAXPATHLEN];
usr/src/cmd/cmd-inet/usr.lib/inetd/wait.c
191
(void) snprintf(path, sizeof (path), "/proc/%u/psinfo", pid);
usr/src/cmd/cmd-inet/usr.lib/inetd/wait.c
193
if ((fd = open(path, O_RDONLY)) >= 0) {
usr/src/cmd/cmd-inet/usr.lib/inetd/wait.c
203
path, strerror(errno));
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2076
const char *path;
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2137
if ((path = sep->se_path) == NULL)
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2138
path = "/usr/bin/pppd";
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2145
slen = strlen(path) + strlen(extra) + strlen(pppd) + 3;
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2148
(void) strcpy(sptr, path);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2207
path = args[0];
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2212
(void) execv(path, (char * const *)args);
usr/src/cmd/cmd-inet/usr.lib/pppoe/options.c
2223
logerr("\"%s\": %s", (sptr == NULL ? path : sptr), cp);
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
818
char path[MAXPATHL];
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
822
(void) snprintf(path, sizeof (path), "%s/%08X", BOOTDIR, ipa);
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
827
if (access(path, 0) == 0)
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
834
(void) sprintf(path, "%08X", ipa);
usr/src/cmd/cmd-inet/usr.sbin/in.rarpd.c
840
if (strncmp(dp->d_name, path, 8) != 0)
usr/src/cmd/cmd-inet/usr.sbin/in.rshd.c
1115
path = (pwd->pw_uid == 0) ? rootpath : userpath;
usr/src/cmd/cmd-inet/usr.sbin/in.rshd.c
1146
add_to_envinit(path);
usr/src/cmd/cmd-inet/usr.sbin/in.rshd.c
437
char *path;
usr/src/cmd/cmd-inet/usr.sbin/in.rwhod.c
150
char path[64];
usr/src/cmd/cmd-inet/usr.sbin/in.rwhod.c
284
(void) sprintf(path, "whod.%s", wd.wd_hostname);
usr/src/cmd/cmd-inet/usr.sbin/in.rwhod.c
289
whod = open(path, O_WRONLY | O_CREAT, 0644);
usr/src/cmd/cmd-inet/usr.sbin/in.rwhod.c
291
syslog(LOG_WARNING, "main: open: %s: %m", path);
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
1038
*path = safe_strdup(cpath);
usr/src/cmd/cmd-inet/usr.sbin/inetconv/inetconv.c
979
inetd_config_path(char **path)
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
6837
char *path;
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
6845
path = malloc(strlen(TYPES_FILE_DIR) + strlen(module_name) +
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
6847
if (path == NULL) {
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
6851
(void) strcpy(path, TYPES_FILE_DIR);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
6852
(void) strcat(path, module_name);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
6853
(void) strcat(path, ".types");
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
6856
IPQOSCDBG1(L1, "opening file %s\n", path);
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
6860
fp = fopen(path, "r");
usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ipqosconf.c
6865
free(path);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_smb.c
1509
char path[256];
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_smb.c
1543
GET_STRING(path, tcondata, isunicode);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_smb.c
1547
snprintf(xtra, xsz, " Share=%s", path);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_smb.c
1560
show_printf("SharePath = %s", path);
usr/src/cmd/cmd-inet/usr.sbin/soconfig.c
302
parse_params(char *famstr, char *typestr, char *protostr, char *path,
usr/src/cmd/cmd-inet/usr.sbin/soconfig.c
349
if (path != NULL) {
usr/src/cmd/cmd-inet/usr.sbin/soconfig.c
352
if (strncmp(path, "/dev", strlen("/dev")) == 0 &&
usr/src/cmd/cmd-inet/usr.sbin/soconfig.c
353
stat(path, &stats) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/soconfig.c
354
perror(path);
usr/src/cmd/cmd-inet/usr.sbin/soconfig.c
373
cmd, fam, type, protocol, path == NULL ? "(null)" : path);
usr/src/cmd/cmd-inet/usr.sbin/soconfig.c
375
if (_sockconfig(cmd, fam, type, protocol, path) == -1) {
usr/src/cmd/cmd-inet/usr.sbin/soconfig.c
78
char *path, const char *file, int line);
usr/src/cmd/cmd-inet/usr.sbin/wificonfig/wificonfig.c
4690
char *path = NULL;
usr/src/cmd/cmd-inet/usr.sbin/wificonfig/wificonfig.c
4780
path = optarg;
usr/src/cmd/cmd-inet/usr.sbin/wificonfig/wificonfig.c
4859
"%s%s", path, p_file_wifi);
usr/src/cmd/cmd-inet/usr.sbin/wificonfig/wificonfig.c
4861
"%s%s", path, p_file_wifiwepkey);
usr/src/cmd/compress/compress.c
1860
local_basename(char *path)
usr/src/cmd/compress/compress.c
1863
char *ret = (char *)path;
usr/src/cmd/cpio/cpio.c
112
#define LSTAT(dir, path, statbuf) fstatat(dir, \
usr/src/cmd/cpio/cpio.c
114
path : Gen.g_attrnam_p), statbuf, AT_SYMLINK_NOFOLLOW)
usr/src/cmd/cpio/cpio.c
115
#define STAT(dir, path, statbuf) fstatat(dir, \
usr/src/cmd/cpio/cpio.c
117
path : Gen.g_attrnam_p), statbuf, 0)
usr/src/cmd/cpio/cpio.c
205
static void get_parent(char *path, char *dir);
usr/src/cmd/cpio/cpio.c
211
static char *get_component(char *path);
usr/src/cmd/cpio/cpio.c
218
static void chop_endslashes(char *path);
usr/src/cmd/cpio/cpio.c
8145
remove_dir(char *path)
usr/src/cmd/cpio/cpio.c
8159
if ((name = opendir(path)) == NULL) {
usr/src/cmd/cpio/cpio.c
8160
msg(ERRN, "remove_dir() failed to opendir(\"%s\") ", path);
usr/src/cmd/cpio/cpio.c
8164
if (chdir(path) == -1) {
usr/src/cmd/cpio/cpio.c
8165
msg(ERRN, "remove_dir() failed to chdir(\"%s\") ", path);
usr/src/cmd/cpio/cpio.c
8219
path_copy = e_strdup(E_NORMAL, path);
usr/src/cmd/cpio/cpio.c
8227
msg(ERRN, "remove_dir() failed to rmdir(\"%s\") ", path);
usr/src/cmd/cpio/cpio.c
8537
get_parent(char *path, char *dir)
usr/src/cmd/cpio/cpio.c
8542
if (strlen(path) > PATH_MAX) {
usr/src/cmd/cpio/cpio.c
8545
(void) strcpy(tmpdir, path);
usr/src/cmd/cpio/cpio.c
8890
get_component(char *path)
usr/src/cmd/cpio/cpio.c
8894
ptr = strrchr(path, '/');
usr/src/cmd/cpio/cpio.c
8896
return (path);
usr/src/cmd/cpio/cpio.c
8909
get_component(char *path)
usr/src/cmd/cpio/cpio.c
8911
return (path);
usr/src/cmd/cpio/cpio.c
9688
chop_endslashes(char *path)
usr/src/cmd/cpio/cpio.c
9692
end = &path[strlen(path) -1];
usr/src/cmd/cpio/cpio.c
9693
if (*end == '/' && end != path) {
usr/src/cmd/cpio/cpio.c
9694
ptr = skipslashes(end, path);
usr/src/cmd/cpio/cpio.c
9695
if (ptr != NULL && ptr != path) {
usr/src/cmd/cpio/cpio.c
9730
futimesat(int fd, char *path, struct timeval times[2])
usr/src/cmd/cpio/cpio.c
9732
return (utimes(path, times));
usr/src/cmd/cpio/cpio.c
9736
unlinkat(int dirfd, char *path, int flag)
usr/src/cmd/cpio/cpio.c
9739
return (rmdir(path));
usr/src/cmd/cpio/cpio.c
9741
return (unlink(path));
usr/src/cmd/cpio/cpio.c
9746
fstatat(int fd, char *path, struct stat *buf, int flag)
usr/src/cmd/cpio/cpio.c
9749
return (lstat(path, buf));
usr/src/cmd/cpio/cpio.c
9751
return (stat(path, buf));
usr/src/cmd/cron/cron.c
2404
envinit[2] = path;
usr/src/cmd/cron/cron.c
273
static char path[LINE_MAX] = "PATH=";
usr/src/cmd/cron/cron.c
3139
(void) strlcat(path, Def_path, LINE_MAX);
usr/src/cmd/cron/cron.c
3141
(void) strlcpy(path, NONROOTPATH, LINE_MAX);
usr/src/cmd/csh/sh.dir.c
327
tchar path[MAXPATHLEN];
usr/src/cmd/csh/sh.dir.c
329
p = getwd_(path);
usr/src/cmd/csh/sh.dir.c
49
tchar path[MAXPATHLEN];
usr/src/cmd/csh/sh.dir.c
64
cp = getwd_(path);
usr/src/cmd/csh/sh.exp.c
66
chk_access(tchar *path, mode_t mode)
usr/src/cmd/csh/sh.exp.c
75
tstostr((char *)name, path);
usr/src/cmd/csh/sh.file.c
253
tchar path[MAXPATHLEN + 1];
usr/src/cmd/csh/sh.file.c
260
catn(strcpy_(path, dir), file, MAXPATHLEN);
usr/src/cmd/csh/sh.file.c
262
if (stat_(path, &statb) < 0)
usr/src/cmd/csh/sh.file.c
265
if (lstat_(path, &statb) < 0)
usr/src/cmd/csh/sh.file.c
457
extract_dir_and_name(tchar *path, tchar *dir, tchar *name)
usr/src/cmd/csh/sh.file.c
464
p = rindex_(path, '/');
usr/src/cmd/csh/sh.file.c
466
copyn(name, path, MAXNAMLEN);
usr/src/cmd/csh/sh.file.c
470
copyn(dir, path, p - path);
usr/src/cmd/csh/sh.tchar.c
737
stat_(tchar *path, struct stat *buf)
usr/src/cmd/csh/sh.tchar.c
741
tstostr(chbuf, path);
usr/src/cmd/csh/sh.tchar.c
746
lstat_(tchar *path, struct stat *buf)
usr/src/cmd/csh/sh.tchar.c
750
tstostr(chbuf, path);
usr/src/cmd/csh/sh.tchar.c
755
chdir_(tchar *path)
usr/src/cmd/csh/sh.tchar.c
759
tstostr(chbuf, path);
usr/src/cmd/csh/sh.tchar.c
764
getwd_(tchar *path)
usr/src/cmd/csh/sh.tchar.c
773
return (strtots(path, chbuf));
usr/src/cmd/csh/sh.tchar.c
778
unlink_(tchar *path)
usr/src/cmd/csh/sh.tchar.c
782
tstostr(chbuf, path);
usr/src/cmd/csh/sh.tchar.c
828
readlink_(tchar *path, tchar *buf, int bufsiz)
usr/src/cmd/csh/sh.tchar.c
834
tstostr(chpath, path);
usr/src/cmd/ctstat/ctstat.c
624
char path[PATH_MAX];
usr/src/cmd/ctstat/ctstat.c
629
if (snprintf(path, PATH_MAX, CTFS_ROOT "/%s", type) >= PATH_MAX ||
usr/src/cmd/ctstat/ctstat.c
630
(dir = opendir(path)) == NULL)
usr/src/cmd/ctstat/ctstat.c
670
const char *path = CTFS_ROOT "/all";
usr/src/cmd/ctstat/ctstat.c
673
if ((dir = opendir(path)) == NULL)
usr/src/cmd/ctstat/ctstat.c
674
uu_die(gettext("could not open %s"), path);
usr/src/cmd/ctwatch/ctwatch.c
88
char path[PATH_MAX];
usr/src/cmd/ctwatch/ctwatch.c
93
if (vsnprintf(path, PATH_MAX, format, varg) >= PATH_MAX) {
usr/src/cmd/ctwatch/ctwatch.c
98
if ((fd = open64(path, O_RDONLY | O_NONBLOCK)) == -1) {
usr/src/cmd/dcs/sparc/sun4u/dcs.c
102
static char *basename(char *path);
usr/src/cmd/dcs/sparc/sun4u/ri_init.c
1189
char path[MAXPATHLEN];
usr/src/cmd/dcs/sparc/sun4u/ri_init.c
1195
if (sscanf(cfga->ap_info, "device=%s\n", path) != 1) {
usr/src/cmd/dcs/sparc/sun4u/ri_init.c
1207
dprintf((stderr, "di_init(%s)\n", path));
usr/src/cmd/dcs/sparc/sun4u/ri_init.c
1208
if ((root = di_init(path, DINFOCPYALL)) == DI_NODE_NIL) {
usr/src/cmd/dcs/sparc/sun4u/ri_init.c
1246
(void) snprintf(pathbuf, MAXPATHLEN, "/devices%s", path);
usr/src/cmd/dcs/sparc/sun4u/ri_init.c
900
char path[MAXPATHLEN];
usr/src/cmd/dcs/sparc/sun4u/ri_init.c
904
if (sscanf(cfga->ap_info, "device=%s", path) != 1) {
usr/src/cmd/dcs/sparc/sun4u/ri_init.c
910
(void) snprintf(buf, sizeof (buf), "/devices%s", path);
usr/src/cmd/devfsadm/cfg_link.c
1218
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/cfg_link.c
1224
(void) snprintf(path, sizeof (path), "%s:%s", cp, di_minor_name(minor));
usr/src/cmd/devfsadm/cfg_link.c
1228
if (strstr(path, "ib:fabric") != NULL) {
usr/src/cmd/devfsadm/cfg_link.c
1229
(void) snprintf(path, sizeof (path), "%s/ib", CFG_DIRNAME);
usr/src/cmd/devfsadm/cfg_link.c
1231
(void) snprintf(path, sizeof (path), "%s/hca:%s", CFG_DIRNAME,
usr/src/cmd/devfsadm/cfg_link.c
1235
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/cfg_link.c
171
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/cfg_link.c
184
(void) strcpy(path, devfs_path);
usr/src/cmd/devfsadm/cfg_link.c
185
(void) strcat(path, ":");
usr/src/cmd/devfsadm/cfg_link.c
186
(void) strcat(path, mn);
usr/src/cmd/devfsadm/cfg_link.c
189
if (ctrl_enumerate_int(path, 1, &c_num, rules, 3, 0, B_FALSE)
usr/src/cmd/devfsadm/cfg_link.c
200
(void) strcpy(path, CFG_DIRNAME);
usr/src/cmd/devfsadm/cfg_link.c
201
(void) strcat(path, "/c");
usr/src/cmd/devfsadm/cfg_link.c
202
(void) strcat(path, c_num);
usr/src/cmd/devfsadm/cfg_link.c
206
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/cfg_link.c
214
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/cfg_link.c
216
(void) strcpy(path, CFG_DIRNAME);
usr/src/cmd/devfsadm/cfg_link.c
217
(void) strcat(path, "/");
usr/src/cmd/devfsadm/cfg_link.c
218
(void) strcat(path, di_minor_name(minor));
usr/src/cmd/devfsadm/cfg_link.c
219
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/cfg_link.c
227
char *cp, path[PATH_MAX + 1];
usr/src/cmd/devfsadm/cfg_link.c
235
(void) snprintf(path, sizeof (path), "%s:%s", cp, di_minor_name(minor));
usr/src/cmd/devfsadm/cfg_link.c
238
if (ctrl_enumerate_int(path, 0, &cp, rules, 1, 0, B_FALSE)) {
usr/src/cmd/devfsadm/cfg_link.c
243
(void) snprintf(path, sizeof (path), "%s/usb%s/%s", CFG_DIRNAME, cp,
usr/src/cmd/devfsadm/cfg_link.c
247
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/cfg_link.c
256
char path[PATH_MAX + 1], l_path[PATH_MAX], *buf, *devfspath;
usr/src/cmd/devfsadm/cfg_link.c
269
(void) strlcpy(path, devfspath, sizeof (path));
usr/src/cmd/devfsadm/cfg_link.c
270
(void) strlcat(path, ":", sizeof (path));
usr/src/cmd/devfsadm/cfg_link.c
271
(void) strlcat(path, minor_nm, sizeof (path));
usr/src/cmd/devfsadm/cfg_link.c
275
if (ctrl_enumerate_int(path, 0, &buf, rules, 1, 0, B_FALSE) ==
usr/src/cmd/devfsadm/cfg_link.c
292
char path[PATH_MAX +1], l_path[PATH_MAX], *buf, *devfspath;
usr/src/cmd/devfsadm/cfg_link.c
305
(void) snprintf(path, sizeof (path), "%s:%s", devfspath, minor_nm);
usr/src/cmd/devfsadm/cfg_link.c
309
if (ctrl_enumerate_int(path, 0, &buf, rules, 1, 0, B_FALSE) ==
usr/src/cmd/devfsadm/cfg_link.c
329
get_roothub(const char *path, void *cb_arg)
usr/src/cmd/devfsadm/cfg_link.c
335
if ((physpath = strdup(path)) == NULL) {
usr/src/cmd/devfsadm/cfg_link.c
396
char *path;
usr/src/cmd/devfsadm/cfg_link.c
401
path = di_devfs_path(node);
usr/src/cmd/devfsadm/cfg_link.c
403
buflen = snprintf(NULL, 0, "%s:%s", path, minor_nm) + 1;
usr/src/cmd/devfsadm/cfg_link.c
407
(void) snprintf(bufp, buflen, "%s:%s", path, minor_nm);
usr/src/cmd/devfsadm/cfg_link.c
409
di_devfs_path_free(path);
usr/src/cmd/devfsadm/cfg_link.c
58
static char *get_roothub(const char *path, void *cb_arg);
usr/src/cmd/devfsadm/cfg_link.c
926
pci_cfg_info_data(char *path)
usr/src/cmd/devfsadm/cfg_link.c
934
int pathlen = strlen(path);
usr/src/cmd/devfsadm/cfg_link.c
942
prev = path;
usr/src/cmd/devfsadm/devalloc.c
65
char path[MAXPATHLEN + 4];
usr/src/cmd/devfsadm/devalloc.c
68
dstsize = sizeof (path);
usr/src/cmd/devfsadm/devalloc.c
70
if (strlcat(path, root_dir, dstsize) >= dstsize)
usr/src/cmd/devfsadm/devalloc.c
72
len = strlen(path);
usr/src/cmd/devfsadm/devalloc.c
76
(void) snprintf(path, dstsize - len, "%s", link);
usr/src/cmd/devfsadm/devalloc.c
77
if ((p = realpath(path, rpath)) == NULL) {
usr/src/cmd/devfsadm/devalloc.c
78
p = path;
usr/src/cmd/devfsadm/devalloc.c
83
(void) snprintf(path, dstsize, "%s%s", rpath, ",raw");
usr/src/cmd/devfsadm/devalloc.c
84
p = path;
usr/src/cmd/devfsadm/devfsadm.c
1625
char *path;
usr/src/cmd/devfsadm/devfsadm.c
1664
&path)) != 0)
usr/src/cmd/devfsadm/devfsadm.c
1690
add_minor_pathname(path, NULL, dev_ev_subclass);
usr/src/cmd/devfsadm/devfsadm.c
1693
ESC_DEV_BRANCH_ADD, path, DI_NODE_NIL,
usr/src/cmd/devfsadm/devfsadm.c
1698
add_minor_pathname(path, minor, dev_ev_subclass);
usr/src/cmd/devfsadm/devfsadm.c
1701
hot_cleanup(path, minor, dev_ev_subclass, driver_name,
usr/src/cmd/devfsadm/devfsadm.c
1705
hot_cleanup(path, NULL, dev_ev_subclass,
usr/src/cmd/devfsadm/devfsadm.c
1709
ESC_DEV_BRANCH_REMOVE, path, DI_NODE_NIL,
usr/src/cmd/devfsadm/devfsadm.c
1719
DEVFS_PATHNAME, &path)) != 0)
usr/src/cmd/devfsadm/devfsadm.c
1729
build_and_enq_event(EC_DEV_BRANCH, dev_ev_subclass, path,
usr/src/cmd/devfsadm/devfsadm.c
3203
s_rmdir(char *path)
usr/src/cmd/devfsadm/devfsadm.c
3214
vprint(REMOVE_MID, "%s: checking if %s is sticky\n", fcn, path);
usr/src/cmd/devfsadm/devfsadm.c
3216
rpath = path + strlen(dev_dir) + 1;
usr/src/cmd/devfsadm/devfsadm.c
3222
"%s\n", fcn, path);
usr/src/cmd/devfsadm/devfsadm.c
3229
return (rmdir(path));
usr/src/cmd/devfsadm/devfsadm.c
3240
char *ptr, path[PATH_MAX + 1];
usr/src/cmd/devfsadm/devfsadm.c
3245
(void) strcpy(path, pathname);
usr/src/cmd/devfsadm/devfsadm.c
3253
if ((ptr = strrchr(path, '/')) == NULL) {
usr/src/cmd/devfsadm/devfsadm.c
3259
if (finddev_emptydir(path)) {
usr/src/cmd/devfsadm/devfsadm.c
3261
if (s_rmdir(path) == 0) {
usr/src/cmd/devfsadm/devfsadm.c
3263
"%sremoving empty dir %s\n", fcn, path);
usr/src/cmd/devfsadm/devfsadm.c
3266
"%sfailed to remove dir: %s\n", fcn, path);
usr/src/cmd/devfsadm/devfsadm.c
3271
vprint(REMOVE_MID, "%sdir not empty: %s\n", fcn, path);
usr/src/cmd/devfsadm/devfsadm.c
4249
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/devfsadm.c
4264
(void) strcpy(path, node_path);
usr/src/cmd/devfsadm/devfsadm.c
4265
(void) strcat(path, ":");
usr/src/cmd/devfsadm/devfsadm.c
4266
(void) strcat(path, minor_name == NULL ? "" : minor_name);
usr/src/cmd/devfsadm/devfsadm.c
4268
path_len = strlen(path);
usr/src/cmd/devfsadm/devfsadm.c
4270
vprint(REMOVE_MID, "%spath=%s\n", fcn, path);
usr/src/cmd/devfsadm/devfsadm.c
4301
skip = strcmp(link->contents, path);
usr/src/cmd/devfsadm/devfsadm.c
4303
skip = strncmp(link->contents, path,
usr/src/cmd/devfsadm/devfsadm.c
4340
if (strstr(path, DA_SOUND_NAME))
usr/src/cmd/devfsadm/devfsadm.c
4342
else if (strstr(path, "storage"))
usr/src/cmd/devfsadm/devfsadm.c
4344
else if (strstr(path, "disk"))
usr/src/cmd/devfsadm/devfsadm.c
4346
else if (strstr(path, "floppy"))
usr/src/cmd/devfsadm/devfsadm.c
4485
char *path;
usr/src/cmd/devfsadm/devfsadm.c
4495
path = NULL;
usr/src/cmd/devfsadm/devfsadm.c
4496
(void) resolve_link(devlink, NULL, NULL, &path, 0);
usr/src/cmd/devfsadm/devfsadm.c
4497
if (path != NULL) {
usr/src/cmd/devfsadm/devfsadm.c
4499
*devfs_path = di_alias2curr(anynode, path);
usr/src/cmd/devfsadm/devfsadm.c
4500
free(path);
usr/src/cmd/devfsadm/devfsadm.c
4654
alloc_cmp_str(const char *path, devfsadm_enumerate_t *dep)
usr/src/cmd/devfsadm/devfsadm.c
4670
" path: %s\n", fcn, match, path);
usr/src/cmd/devfsadm/devfsadm.c
4679
" callback: path: %s\n", fcn, path);
usr/src/cmd/devfsadm/devfsadm.c
4682
cmp_str = dep->sel_fcn(path, dep->cb_arg);
usr/src/cmd/devfsadm/devfsadm.c
4686
cmp_str = s_strdup(path);
usr/src/cmd/devfsadm/devfsadm.c
4698
fcn, path);
usr/src/cmd/devfsadm/devfsadm.c
4706
" path: %s\n", fcn, path);
usr/src/cmd/devfsadm/devfsadm.c
4713
vprint(ENUM_MID, "%s: invalid path: %s\n", fcn, path);
usr/src/cmd/devfsadm/devfsadm.c
4720
fcn, path);
usr/src/cmd/devfsadm/devfsadm.c
4757
" path: %s\n", fcn, path);
usr/src/cmd/devfsadm/devfsadm.c
4764
" path: %s\n", fcn, dep->flags, path);
usr/src/cmd/devfsadm/devfsadm.c
5677
create_cached_numeral(char *path, numeral_set_t *setp, char *numeral_id,
usr/src/cmd/devfsadm/devfsadm.c
5720
(void) strcpy(lpath, path);
usr/src/cmd/devfsadm/devfsadm.c
7701
s_stat(const char *path, struct stat *sbufp)
usr/src/cmd/devfsadm/devfsadm.c
7705
if ((rv = stat(path, sbufp)) == -1) {
usr/src/cmd/devfsadm/devfsadm.c
7781
s_mkdirp(const char *path, const mode_t mode)
usr/src/cmd/devfsadm/devfsadm.c
7783
vprint(CHATTY_MID, "mkdirp(%s, 0x%lx)\n", path, mode);
usr/src/cmd/devfsadm/devfsadm.c
7784
if (mkdirp(path, mode) == -1) {
usr/src/cmd/devfsadm/devfsadm.c
7786
err_print(MKDIR_FAILED, path, mode, strerror(errno));
usr/src/cmd/devfsadm/devfsadm.c
7979
const char *path;
usr/src/cmd/devfsadm/devfsadm.c
7982
if ((path = di_devlink_path(dl)) == NULL ||
usr/src/cmd/devfsadm/devfsadm.c
7984
(x->dev_names[x->count] = s_strdup(path)) == NULL)
usr/src/cmd/devfsadm/devfsadm.h
177
char *(*sel_fcn)(const char *path, void *cb_arg);
usr/src/cmd/devfsadm/devfsadm_impl.h
373
static int s_rmdir(char *path);
usr/src/cmd/devfsadm/devfsadm_impl.h
374
static void rm_parent_dir_if_empty(char *path);
usr/src/cmd/devfsadm/devfsadm_impl.h
436
static void s_mkdirp(const char *path, const mode_t mode);
usr/src/cmd/devfsadm/devfsadm_impl.h
454
static void create_cached_numeral(char *path, numeral_set_t *setp,
usr/src/cmd/devfsadm/disk_link.c
657
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/disk_link.c
673
(void) strcpy(path, devfspath);
usr/src/cmd/devfsadm/disk_link.c
674
(void) strcat(path, ":");
usr/src/cmd/devfsadm/disk_link.c
675
(void) strcat(path, mn);
usr/src/cmd/devfsadm/disk_link.c
681
is_vhci = (strncmp(path, "/scsi_vhci/", 11) == 0);
usr/src/cmd/devfsadm/disk_link.c
683
if (ctrl_enumerate_int(path, RULE_INDEX, &buf, rules, 3, 1, is_vhci) ==
usr/src/cmd/devfsadm/disk_link.c
699
if (ctrl_enumerate_int(path, RULE_INDEX, &buf, rules, 3, 0,
usr/src/cmd/devfsadm/disk_link.c
729
char *path;
usr/src/cmd/devfsadm/disk_link.c
740
path = (char *)di_devlink_path(devlink);
usr/src/cmd/devfsadm/disk_link.c
741
assert(path);
usr/src/cmd/devfsadm/disk_link.c
742
if (path == NULL) {
usr/src/cmd/devfsadm/disk_link.c
749
modname, path);
usr/src/cmd/devfsadm/disk_link.c
755
can_path = strstr(path, "/dev/");
usr/src/cmd/devfsadm/disk_link.c
758
modname, path);
usr/src/cmd/devfsadm/dtrace_link.c
59
char path[MAXPATHLEN];
usr/src/cmd/devfsadm/dtrace_link.c
61
(void) snprintf(path, sizeof (path), "dtrace/%s", mname);
usr/src/cmd/devfsadm/dtrace_link.c
62
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/dtrace_link.c
71
char path[MAXPATHLEN];
usr/src/cmd/devfsadm/dtrace_link.c
73
(void) snprintf(path, sizeof (path), "dtrace/provider/%s", mname);
usr/src/cmd/devfsadm/dtrace_link.c
74
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/fssnap_link.c
60
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/fssnap_link.c
74
(void) snprintf(path, sizeof (path), "%s/%s",
usr/src/cmd/devfsadm/fssnap_link.c
77
(void) snprintf(path, sizeof (path), "%s/%s",
usr/src/cmd/devfsadm/fssnap_link.c
83
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/i386/misc_link_i386.c
223
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/i386/misc_link_i386.c
244
(void) snprintf(path, sizeof (path), "%s:%s",
usr/src/cmd/devfsadm/i386/misc_link_i386.c
249
if (devfsadm_enumerate_int(path, 0, &buf, rules, 1)) {
usr/src/cmd/devfsadm/i386/misc_link_i386.c
253
(void) snprintf(path, sizeof (path), "ecpp%s", buf);
usr/src/cmd/devfsadm/i386/misc_link_i386.c
255
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/i386/xen_link.c
103
char path[MAXPATHLEN];
usr/src/cmd/devfsadm/i386/xen_link.c
105
(void) snprintf(path, sizeof (path), "dtrace/provider/%s", mname);
usr/src/cmd/devfsadm/i386/xen_link.c
106
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/lofi_link.c
102
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/lofi_link.c
83
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/lofi_link.c
93
(void) snprintf(path, sizeof (path), "%s/%d",
usr/src/cmd/devfsadm/lofi_link.c
96
(void) snprintf(path, sizeof (path), "%s/%d",
usr/src/cmd/devfsadm/misc_link.c
312
char path[PATH_MAX + 1], *buf;
usr/src/cmd/devfsadm/misc_link.c
324
(void) snprintf(path, sizeof (path), "%s:%s",
usr/src/cmd/devfsadm/misc_link.c
329
if (devfsadm_enumerate_int(path, 0, &buf, rules, 1)) {
usr/src/cmd/devfsadm/misc_link.c
332
(void) snprintf(path, sizeof (path), "mcpp%s", buf);
usr/src/cmd/devfsadm/misc_link.c
335
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/misc_link.c
378
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/misc_link.c
380
(void) strcpy(path, di_node_name(node));
usr/src/cmd/devfsadm/misc_link.c
381
(void) strcat(path, "/");
usr/src/cmd/devfsadm/misc_link.c
382
(void) strcat(path, di_minor_name(minor));
usr/src/cmd/devfsadm/misc_link.c
383
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/misc_link.c
390
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/misc_link.c
392
(void) strcpy(path, di_driver_name(node));
usr/src/cmd/devfsadm/misc_link.c
393
(void) strcat(path, di_minor_name(minor));
usr/src/cmd/devfsadm/misc_link.c
394
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/misc_link.c
471
char *buf, path[PATH_MAX + 1];
usr/src/cmd/devfsadm/misc_link.c
478
(void) strcpy(path, ptr);
usr/src/cmd/devfsadm/misc_link.c
479
(void) strcat(path, ":");
usr/src/cmd/devfsadm/misc_link.c
480
(void) strcat(path, di_minor_name(minor));
usr/src/cmd/devfsadm/misc_link.c
484
if (devfsadm_enumerate_int(path, 0, &buf, rules, 1) != 0) {
usr/src/cmd/devfsadm/misc_link.c
488
(void) strcpy(path, "fc/fp");
usr/src/cmd/devfsadm/misc_link.c
489
(void) strcat(path, buf);
usr/src/cmd/devfsadm/misc_link.c
492
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/misc_link.c
505
char path[PATH_MAX + 1], *buf;
usr/src/cmd/devfsadm/misc_link.c
518
(void) snprintf(path, sizeof (path), "%s:%s", buf, mn);
usr/src/cmd/devfsadm/misc_link.c
521
if (devfsadm_enumerate_int(path, 0, &buf, rules, 1)) {
usr/src/cmd/devfsadm/misc_link.c
525
(void) snprintf(path, sizeof (path), "printers/%s", buf);
usr/src/cmd/devfsadm/misc_link.c
528
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/misc_link.c
542
char *buf, path[PATH_MAX + 1];
usr/src/cmd/devfsadm/misc_link.c
557
(void) strcpy(path, ptr);
usr/src/cmd/devfsadm/misc_link.c
558
(void) strcat(path, ":");
usr/src/cmd/devfsadm/misc_link.c
559
(void) strcat(path, mn);
usr/src/cmd/devfsadm/misc_link.c
563
if (devfsadm_enumerate_int(path, 0, &buf, rules, 1) != 0) {
usr/src/cmd/devfsadm/misc_link.c
567
(void) strcpy(path, "se_hdlc");
usr/src/cmd/devfsadm/misc_link.c
568
(void) strcat(path, buf);
usr/src/cmd/devfsadm/misc_link.c
571
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/misc_link.c
629
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/misc_link.c
637
(void) snprintf(path, sizeof (path), "%s:%s", buf, minor_str);
usr/src/cmd/devfsadm/misc_link.c
640
if (devfsadm_enumerate_int(path, 0, &buf, rules, 1)) {
usr/src/cmd/devfsadm/misc_link.c
644
(void) snprintf(path, sizeof (path), "av/%s/%s", buf, minor_str);
usr/src/cmd/devfsadm/misc_link.c
647
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/misc_link.c
660
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/misc_link.c
666
(void) snprintf(path, sizeof (path), "9p/%d", di_instance(node));
usr/src/cmd/devfsadm/misc_link.c
667
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/misc_link.c
704
char path[MAXPATHLEN];
usr/src/cmd/devfsadm/misc_link.c
713
(void) snprintf(path, sizeof (path), "zcons/%s/%s", zonename,
usr/src/cmd/devfsadm/misc_link.c
715
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/ramdisk_link.c
118
(void) snprintf(path, sizeof (path), "%s/%s",
usr/src/cmd/devfsadm/ramdisk_link.c
121
(void) devfsadm_mklink(path, node, di_minor, 0);
usr/src/cmd/devfsadm/ramdisk_link.c
97
char path[PATH_MAX];
usr/src/cmd/devfsadm/sgen_link.c
187
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/sgen_link.c
203
(void) strcpy(path, devfspath);
usr/src/cmd/devfsadm/sgen_link.c
204
(void) strcat(path, ":");
usr/src/cmd/devfsadm/sgen_link.c
205
(void) strcat(path, mn);
usr/src/cmd/devfsadm/sgen_link.c
211
is_vhci = (strncmp(path, "/scsi_vhci/", 11) == 0);
usr/src/cmd/devfsadm/sgen_link.c
213
if (ctrl_enumerate_int(path, RULE_INDEX, &buf, rules, 3, 1, is_vhci) ==
usr/src/cmd/devfsadm/sgen_link.c
228
if (ctrl_enumerate_int(path, RULE_INDEX, &buf, rules, 3, 0,
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
132
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
143
(void) snprintf(path, sizeof (path), "%s:%s",
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
148
if (devfsadm_enumerate_int(path, 0, &buf, rules, 1)) {
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
152
(void) snprintf(path, sizeof (path), "ecpp%s", buf);
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
155
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
167
char path[PATH_MAX], l_path[PATH_MAX], *buf, *devfspath;
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
178
(void) strcpy(path, devfspath);
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
179
(void) strcat(path, ":");
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
180
(void) strcat(path, minor_nm);
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
184
if (devfsadm_enumerate_int(path, 0, &buf, mc_rules, 1)) {
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
85
char path[PATH_MAX + 1];
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
92
(void) strcpy(path, "mic");
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
93
(void) strcat(path, mn);
usr/src/cmd/devfsadm/sparc/misc_link_sparc.c
94
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devfsadm/vscan_link.c
50
char path[MAXPATHLEN];
usr/src/cmd/devfsadm/vscan_link.c
52
(void) snprintf(path, sizeof (path), "vscan/%s", mname);
usr/src/cmd/devfsadm/vscan_link.c
53
(void) devfsadm_mklink(path, node, minor, 0);
usr/src/cmd/devprop/devprop.c
112
if (strncmp("/devices/", path, strlen("/devices/")) == 0) {
usr/src/cmd/devprop/devprop.c
113
path += strlen("/devices");
usr/src/cmd/devprop/devprop.c
116
if ((ptr = strrchr(path, ':')) != NULL)
usr/src/cmd/devprop/devprop.c
120
if ((dn = di_init(path, DINFOPROP)) == DI_NODE_NIL) {
usr/src/cmd/devprop/devprop.c
48
char *path = "/";
usr/src/cmd/devprop/devprop.c
76
if ((path = realpath(optarg, NULL)) == NULL)
usr/src/cmd/devprop/devprop.c
77
path = optarg;
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1002
name_adjust(char *path, int count)
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1006
len = strlen(path) - 2;
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1014
(void) sprintf(path + len, "~%d", count);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1038
char *path;
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1039
path = sa_get_share_attr(share, "path");
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1040
if (path == NULL)
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1042
fix_path(path);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1044
while (sa_add_resource(share, path,
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1048
ret = name_adjust(path, count);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1054
" path: %s\n"), path);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
1058
sa_free_attr_string(path);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
467
char *path;
usr/src/cmd/dfs.cmds/sharemgr/commands.c
479
path = sa_get_share_attr(parent, "path");
usr/src/cmd/dfs.cmds/sharemgr/commands.c
480
if (path == NULL)
usr/src/cmd/dfs.cmds/sharemgr/commands.c
486
sa_free_attr_string(path);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
507
path, sa_errorstr(ret));
usr/src/cmd/dfs.cmds/sharemgr/commands.c
519
"%s\n"), path,
usr/src/cmd/dfs.cmds/sharemgr/commands.c
5252
check_legacy_cmd(char *path)
usr/src/cmd/dfs.cmds/sharemgr/commands.c
5257
if (stat(path, &st) == 0) {
usr/src/cmd/dfs.cmds/sharemgr/commands.c
526
sa_free_attr_string(path);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
5274
run_legacy_command(char *path, char *argv[])
usr/src/cmd/dfs.cmds/sharemgr/commands.c
5278
ret = execv(path, argv);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
5329
char *path;
usr/src/cmd/dfs.cmds/sharemgr/commands.c
5340
path = sa_get_share_attr(share, "path");
usr/src/cmd/dfs.cmds/sharemgr/commands.c
5371
resfmt, (path != NULL) ? path : "",
usr/src/cmd/dfs.cmds/sharemgr/commands.c
5377
if (path != NULL)
usr/src/cmd/dfs.cmds/sharemgr/commands.c
5378
sa_free_attr_string(path);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
939
fix_path(char *path)
usr/src/cmd/dfs.cmds/sharemgr/commands.c
944
assert(path != NULL);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
947
cp = path + 1; /* skip leading slash */
usr/src/cmd/dfs.cmds/sharemgr/commands.c
956
len = 1 + strlen(path) - SA_MAX_RESOURCE_NAME;
usr/src/cmd/dfs.cmds/sharemgr/commands.c
957
(void) memmove(path, path + len, SA_MAX_RESOURCE_NAME);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
958
path[SA_MAX_RESOURCE_NAME] = '\0';
usr/src/cmd/dfs.cmds/sharemgr/commands.c
961
(void) memmove(path, cp, len);
usr/src/cmd/dfs.cmds/sharemgr/commands.c
968
while (*path) {
usr/src/cmd/dfs.cmds/sharemgr/commands.c
969
switch (*path) {
usr/src/cmd/dfs.cmds/sharemgr/commands.c
986
*path = '_';
usr/src/cmd/dfs.cmds/sharemgr/commands.c
989
path++;
usr/src/cmd/dis/dis_main.c
640
char *path;
usr/src/cmd/dis/dis_main.c
685
node->path = safe_malloc(len);
usr/src/cmd/dis/dis_main.c
687
(void) snprintf(node->path, len, "%s/lib%s.a", dir,
usr/src/cmd/dis/dis_main.c
742
dis_file(libs->path);
usr/src/cmd/dis/dis_main.c
743
free(libs->path);
usr/src/cmd/dladm/dladm.c
9006
char path[MAXPATHLEN];
usr/src/cmd/dladm/dladm.c
9015
(void) snprintf(path, MAXPATHLEN, "/%s/etc/dladm/datalink.conf",
usr/src/cmd/dladm/dladm.c
9017
if (stat(path, &stbuf) < 0) {
usr/src/cmd/dladm/dladm.c
9018
(void) snprintf(path, MAXPATHLEN, "/%s/%s", altroot,
usr/src/cmd/dladm/dladm.c
9021
(void) snprintf(path, MAXPATHLEN, "/%s/%s", altroot,
usr/src/cmd/dladm/dladm.c
9025
if ((fp = fopen(path, "a+")) == NULL)
usr/src/cmd/du/du.c
548
printsize(blkcnt_t blocks, char *path)
usr/src/cmd/du/du.c
556
(void) printf(FORMAT1, buf, path);
usr/src/cmd/du/du.c
561
(void) printf(FORMAT2, mkb(blocks, DEV_KSHIFT), path);
usr/src/cmd/du/du.c
563
(void) printf(FORMAT2, mkb(blocks, DEV_MSHIFT), path);
usr/src/cmd/du/du.c
565
(void) printf(FORMAT2, mkb(blocks, DEV_BSHIFT), path);
usr/src/cmd/du/du.c
93
static void printsize(blkcnt_t blocks, char *path);
usr/src/cmd/dumpadm/dconf.c
296
open_stat64(const char *path, struct stat64 *stp)
usr/src/cmd/dumpadm/dconf.c
298
int fd = open64(path, O_RDONLY);
usr/src/cmd/dumpadm/minfree.c
42
char path[MAXPATHLEN];
usr/src/cmd/dumpadm/minfree.c
45
(void) snprintf(path, sizeof (path), "%s/minfree", dir);
usr/src/cmd/dumpadm/minfree.c
47
if ((fd = open(path, oflags, S_IRUSR | S_IWUSR)) >= 0)
usr/src/cmd/eject/eject.c
456
display_busy(char *path, boolean_t vm_running)
usr/src/cmd/eject/eject.c
471
(void) fprintf(stderr, "display_busy(\"%s\"): entering\n", path);
usr/src/cmd/eject/eject.c
479
blk = eject_getfullblkname(path, vm_running);
usr/src/cmd/eject/eject.c
652
eject_getfullblkname(char *path, boolean_t vm_running)
usr/src/cmd/eject/eject.c
661
path, vm_running ? "B_TRUE" : "B_FALSE");
usr/src/cmd/eject/eject.c
678
if (strncmp(path, raw_root, raw_root_len) == 0) {
usr/src/cmd/eject/eject.c
680
vm_root, path + raw_root_len) >= sizeof (res_buf)) {
usr/src/cmd/eject/eject.c
692
if (strncmp(path, raw_root, raw_root_len) == 0) {
usr/src/cmd/eject/eject.c
694
vm_root, path + raw_root_len) >= sizeof (res_buf)) {
usr/src/cmd/eject/eject.c
706
if (strncmp(path, raw_root, raw_root_len) == 0) {
usr/src/cmd/eject/eject.c
708
path + raw_root_len) >= sizeof (res_buf)) {
usr/src/cmd/eject/eject.c
716
(void) strcpy(res_buf, path);
usr/src/cmd/eject/eject.c
73
int _dev_mounted(char *path);
usr/src/cmd/eject/eject.c
74
int _dev_unmount(char *path);
usr/src/cmd/emul64ioctl/emul64ioctl.c
154
get_disk_addr(char *path, emul64_tgt_range_t *tr, char **admin)
usr/src/cmd/emul64ioctl/emul64ioctl.c
162
ctds = strrchr(path, '/');
usr/src/cmd/emul64ioctl/emul64ioctl.c
164
ctds = path;
usr/src/cmd/emul64ioctl/emul64ioctl.c
53
static int get_disk_addr(char *path, emul64_tgt_range_t *tr, char **admin);
usr/src/cmd/etdump/etdump.c
221
char *path;
usr/src/cmd/etdump/etdump.c
223
path = strdup(progname);
usr/src/cmd/etdump/etdump.c
226
basename(path));
usr/src/cmd/fdformat/fdformat.c
132
int _dev_mounted(char *path);
usr/src/cmd/fdformat/fdformat.c
133
int _dev_unmount(char *path);
usr/src/cmd/filesync/eval.c
244
add_file_arg(struct base *bp, char *path)
usr/src/cmd/filesync/eval.c
255
if (strcmp(path, "..") == 0 || prefix(path, "../") ||
usr/src/cmd/filesync/eval.c
256
suffix(path, "/..") || contains(path, "/../")) {
usr/src/cmd/filesync/eval.c
257
fprintf(stderr, gettext(WARN_ignore), path);
usr/src/cmd/filesync/eval.c
269
for (s = path; *s; s++);
usr/src/cmd/filesync/eval.c
270
while (s > path) {
usr/src/cmd/filesync/eval.c
275
if (s[-1] == '.' && s > &path[1] && s[-2] == '/') {
usr/src/cmd/filesync/eval.c
285
for (p = path; p < s; ) {
usr/src/cmd/filesync/eval.c
301
fprintf(stderr, gettext(WARN_ignore), path);
usr/src/cmd/filesync/eval.c
311
path = p;
usr/src/cmd/filesync/eval.c
318
if (check_restr(bp, path) == 0)
usr/src/cmd/filesync/eval.c
321
while (*path) {
usr/src/cmd/filesync/eval.c
323
for (i = 0; path[i] && path[i] != '/'; i++)
usr/src/cmd/filesync/eval.c
324
name[i] = path[i];
usr/src/cmd/filesync/eval.c
332
if (path[i] == '/') {
usr/src/cmd/filesync/eval.c
334
path += i+1;
usr/src/cmd/filesync/eval.c
337
path += i;
usr/src/cmd/filesync/eval.c
495
{ const char *path;
usr/src/cmd/filesync/eval.c
503
path = &name[ftwx->base];
usr/src/cmd/filesync/eval.c
540
level, path);
usr/src/cmd/filesync/eval.c
543
if (ignore_check(path))
usr/src/cmd/filesync/eval.c
546
fp = add_file_to_dir(dirstack[level-1], path);
usr/src/cmd/filesync/eval.c
574
if (restr == FALSE || ignore_check(path)) {
usr/src/cmd/filesync/eval.c
580
add_file_to_dir(dirstack[level-1], path);
usr/src/cmd/filesync/eval.c
634
add_file_to_dir(dirstack[level-1], path);
usr/src/cmd/find/find.c
1139
char *path;
usr/src/cmd/find/find.c
1149
if ((path = strdup(name)) == NULL) {
usr/src/cmd/find/find.c
1171
basename(path) : path, fnmflags);
usr/src/cmd/find/find.c
1172
free(path);
usr/src/cmd/fm/fmd/common/fmd_asru.c
1151
char path[PATH_MAX];
usr/src/cmd/fm/fmd/common/fmd_asru.c
1201
(void) snprintf(path, sizeof (path), "%s/%s",
usr/src/cmd/fm/fmd/common/fmd_asru.c
1203
if (cip->ci_xprt == NULL && unlink(path) != 0)
usr/src/cmd/fm/fmd/common/fmd_asru.c
1205
"failed to unlink asru %s", path);
usr/src/cmd/fm/fmd/common/fmd_asru.c
814
char path[PATH_MAX];
usr/src/cmd/fm/fmd/common/fmd_asru.c
830
(void) snprintf(path, sizeof (path), "%s/%s", root, dir);
usr/src/cmd/fm/fmd/common/fmd_asru.c
831
ahp->ah_dirpath = fmd_strdup(path, FMD_SLEEP);
usr/src/cmd/fm/fmd/common/fmd_ckpt.c
1185
char path[PATH_MAX];
usr/src/cmd/fm/fmd/common/fmd_ckpt.c
1187
(void) snprintf(path, sizeof (path),
usr/src/cmd/fm/fmd/common/fmd_ckpt.c
1192
if (unlink(path) != 0 && errno != ENOENT)
usr/src/cmd/fm/fmd/common/fmd_ckpt.c
1193
fmd_error(EFMD_CKPT_DELETE, "failed to delete %s", path);
usr/src/cmd/fm/fmd/common/fmd_ckpt.c
767
char path[PATH_MAX];
usr/src/cmd/fm/fmd/common/fmd_ckpt.c
798
(void) snprintf(path, sizeof (path), "%s-", mp->mod_ckpt);
usr/src/cmd/fm/fmd/common/fmd_ckpt.c
799
(void) rename(mp->mod_ckpt, path);
usr/src/cmd/fm/fmd/common/fmd_main.c
86
char path[PATH_MAX];
usr/src/cmd/fm/fmd/common/fmd_main.c
94
(void) snprintf(path, sizeof (path),
usr/src/cmd/fm/fmd/common/fmd_main.c
97
(void) core_set_process_path(path, strlen(path) + 1, fmd.d_pid);
usr/src/cmd/fm/fmd/common/fmd_module.c
1055
char path[PATH_MAX];
usr/src/cmd/fm/fmd/common/fmd_module.c
1075
(void) snprintf(path, sizeof (path), "%s/%s", dir, dp->d_name);
usr/src/cmd/fm/fmd/common/fmd_module.c
1076
(void) fmd_modhash_load(mhp, path, ops);
usr/src/cmd/fm/fmd/common/fmd_module.c
1194
fmd_modhash_load(fmd_modhash_t *mhp, const char *path, const fmd_modops_t *ops)
usr/src/cmd/fm/fmd/common/fmd_module.c
1201
(void) strlcpy(name, fmd_strbasename(path), sizeof (name));
usr/src/cmd/fm/fmd/common/fmd_module.c
1227
while ((mp = fmd_module_create(path, ops)) == NULL) {
usr/src/cmd/fm/fmd/common/fmd_module.c
175
fmd_module_create(const char *path, const fmd_modops_t *ops)
usr/src/cmd/fm/fmd/common/fmd_module.c
184
(void) strlcpy(buf, fmd_strbasename(path), sizeof (buf));
usr/src/cmd/fm/fmd/common/fmd_module.c
193
mp->mod_path = fmd_strdup(path, FMD_SLEEP);
usr/src/cmd/fm/fmd/common/fmd_module.c
285
fmd_error(EFMD_MOD_THR, "failed to create thread for %s", path);
usr/src/cmd/fm/fmd/common/fmd_module.c
320
path, fmd_strerror(err));
usr/src/cmd/fm/fmd/common/fmd_rpc.c
149
const char *name, const char *path, const char *prop,
usr/src/cmd/fm/fmd/common/fmd_rpc.c
167
if (path != NULL && (fp = fopen(path, "w")) != NULL) {
usr/src/cmd/fm/fmd/common/fmd_rpc_adm.c
219
fmd_adm_modload_1_svc(char *path, int *rvp, struct svc_req *req)
usr/src/cmd/fm/fmd/common/fmd_rpc_adm.c
234
if (access(path, F_OK) != 0) {
usr/src/cmd/fm/fmd/common/fmd_rpc_adm.c
239
if ((p = strrchr(path, '.')) != NULL && strcmp(p, ".so") == 0)
usr/src/cmd/fm/fmd/common/fmd_rpc_adm.c
240
mp = fmd_modhash_load(fmd.d_mod_hash, path, &fmd_rtld_ops);
usr/src/cmd/fm/fmd/common/fmd_rpc_adm.c
242
mp = fmd_modhash_load(fmd.d_mod_hash, path, &fmd_proc_ops);
usr/src/cmd/fm/fmd/common/fmd_scheme.c
273
char path[PATH_MAX];
usr/src/cmd/fm/fmd/common/fmd_scheme.c
277
(void) snprintf(path, sizeof (path), "%s/%s", rootdir, dirpath);
usr/src/cmd/fm/fmd/common/fmd_scheme.c
278
shp->sch_dirpath = fmd_strdup(path, FMD_SLEEP);
usr/src/cmd/fm/fmd/common/fmd_scheme.c
408
char path[PATH_MAX];
usr/src/cmd/fm/fmd/common/fmd_scheme.c
410
(void) snprintf(path, sizeof (path),
usr/src/cmd/fm/fmd/common/fmd_scheme.c
414
sp->sch_dlp = dlopen(path, RTLD_LOCAL | RTLD_NOW);
usr/src/cmd/fm/fmd/common/fmd_scheme.c
418
"failed to load fmri scheme %s: %s\n", path,
usr/src/cmd/fm/fmd/common/fmd_scheme.c
423
"failed to initialize fmri scheme %s", path);
usr/src/cmd/fm/fmdump/common/fmdump.c
1129
pipeline_process(pl, ll->path, B_FALSE);
usr/src/cmd/fm/fmdump/common/fmdump.c
1597
if ((rlp = fmd_log_open(FMD_LOG_VERSION, llp->path, &err))
usr/src/cmd/fm/fmdump/common/fmdump.c
1600
llp->path, fmd_log_errmsg(NULL, err));
usr/src/cmd/fm/fmdump/common/fmdump.c
1608
fmdump_warn("failed to dump %s: %s\n", llp->path,
usr/src/cmd/fm/fmdump/common/fmdump.c
590
char *path;
usr/src/cmd/fm/fmdump/common/fmdump.c
609
newp->path = str;
usr/src/cmd/fm/fmdump/common/scheme.c
150
char path[PATH_MAX];
usr/src/cmd/fm/fmdump/common/scheme.c
160
(void) snprintf(path, sizeof (path), "%s%s/%s.so",
usr/src/cmd/fm/fmdump/common/scheme.c
163
if (access(path, F_OK) != 0) {
usr/src/cmd/fm/fmdump/common/scheme.c
168
if ((sp->sch_dlp = dlopen(path, RTLD_LOCAL | RTLD_NOW)) == NULL) {
usr/src/cmd/fm/modules/common/disk-monitor/hotplug_mgr.c
81
config_list_ext_poll(int num, char * const *path,
usr/src/cmd/fm/modules/common/disk-monitor/hotplug_mgr.c
92
switch ((e = config_list_ext(num, path, list_array,
usr/src/cmd/fm/modules/common/eversholt/config.c
114
while (*path) {
usr/src/cmd/fm/modules/common/eversholt/config.c
115
if ((nextcom = strchr(path, '/')) != NULL)
usr/src/cmd/fm/modules/common/eversholt/config.c
117
if ((len = strlen(path)) == 0)
usr/src/cmd/fm/modules/common/eversholt/config.c
120
thiscom = &path[len - 1];
usr/src/cmd/fm/modules/common/eversholt/config.c
124
path);
usr/src/cmd/fm/modules/common/eversholt/config.c
125
while (thiscom > path && isdigit(*thiscom))
usr/src/cmd/fm/modules/common/eversholt/config.c
127
if (thiscom == path && isdigit(*thiscom))
usr/src/cmd/fm/modules/common/eversholt/config.c
129
"component \"%s\" has no name part", path);
usr/src/cmd/fm/modules/common/eversholt/config.c
134
s = stable(path);
usr/src/cmd/fm/modules/common/eversholt/config.c
178
path = nextcom;
usr/src/cmd/fm/modules/common/eversholt/config.c
598
config_bydev_lookup(struct cfgdata *fromcfg, const char *path)
usr/src/cmd/fm/modules/common/eversholt/config.c
607
(void *) stable(path), NULL)) == NULL)
usr/src/cmd/fm/modules/common/eversholt/config.c
96
config_lookup(struct config *croot, char *path, int add)
usr/src/cmd/fm/modules/common/eversholt/config.c
98
char *pathbegin = path;
usr/src/cmd/fm/modules/common/eversholt/config.h
66
struct config *config_lookup(struct config *croot, char *path, int add);
usr/src/cmd/fm/modules/common/eversholt/eval.c
221
char *path;
usr/src/cmd/fm/modules/common/eversholt/eval.c
272
path = ipath2str(NULL, ipath(nodep));
usr/src/cmd/fm/modules/common/eversholt/eval.c
273
cp = config_lookup(croot, path, 0);
usr/src/cmd/fm/modules/common/eversholt/eval.c
274
FREE((void *)path);
usr/src/cmd/fm/modules/common/eversholt/eval.c
352
path = ipath2str(NULL, ipath(lhs));
usr/src/cmd/fm/modules/common/eversholt/eval.c
353
matchthis[1] = stable(path);
usr/src/cmd/fm/modules/common/eversholt/eval.c
357
cp[0] = config_lookup(croot, path, 0);
usr/src/cmd/fm/modules/common/eversholt/eval.c
358
FREE((void *)path);
usr/src/cmd/fm/modules/common/eversholt/eval.c
359
path = ipath2str(NULL, ipath(rhs));
usr/src/cmd/fm/modules/common/eversholt/eval.c
360
matchthis[0] = stable(path);
usr/src/cmd/fm/modules/common/eversholt/eval.c
364
cp[1] = config_lookup(croot, path, 0);
usr/src/cmd/fm/modules/common/eversholt/eval.c
365
FREE((void *)path);
usr/src/cmd/fm/modules/common/eversholt/eval.c
423
path = ipath2str(NULL, ipath(nodep));
usr/src/cmd/fm/modules/common/eversholt/eval.c
424
cp = config_lookup(croot, path, 0);
usr/src/cmd/fm/modules/common/eversholt/eval.c
425
FREE((void *)path);
usr/src/cmd/fm/modules/common/eversholt/eval.c
461
path = ipath2str(NULL, ipath(nodep));
usr/src/cmd/fm/modules/common/eversholt/eval.c
462
cp = config_lookup(croot, path, 0);
usr/src/cmd/fm/modules/common/eversholt/eval.c
463
FREE((void *)path);
usr/src/cmd/fm/modules/common/eversholt/eval.c
498
path = ipath2str(NULL, ipath(nodep));
usr/src/cmd/fm/modules/common/eversholt/eval.c
499
cp = config_lookup(croot, path, 0);
usr/src/cmd/fm/modules/common/eversholt/eval.c
500
FREE((void *)path);
usr/src/cmd/fm/modules/common/eversholt/eval.c
522
path = ipath2str(NULL, ipath(nodep));
usr/src/cmd/fm/modules/common/eversholt/eval.c
524
&rsrc, path);
usr/src/cmd/fm/modules/common/eversholt/eval.c
527
out(O_ALTFP|O_VERB2|O_NONL, "(%s), \"%s\") ", path,
usr/src/cmd/fm/modules/common/eversholt/eval.c
529
FREE((void *)path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
1012
pathstring2epnamenp(char *path)
usr/src/cmd/fm/modules/common/eversholt/fme.c
1018
if ((ptr = strtok(path, sep)) == NULL)
usr/src/cmd/fm/modules/common/eversholt/fme.c
1146
char *path;
usr/src/cmd/fm/modules/common/eversholt/fme.c
1155
path = ipath2str(NULL, ipath(nodep));
usr/src/cmd/fm/modules/common/eversholt/fme.c
1156
cp = config_lookup(fmep->config, path, 0);
usr/src/cmd/fm/modules/common/eversholt/fme.c
1157
FREE((void *)path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
148
static struct node *pathstring2epnamenp(char *path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
1579
char *path;
usr/src/cmd/fm/modules/common/eversholt/fme.c
1584
path = ipath2str(NULL, ipp);
usr/src/cmd/fm/modules/common/eversholt/fme.c
1586
path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
1587
FREE(path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2554
char *path;
usr/src/cmd/fm/modules/common/eversholt/fme.c
2557
path = ipath2str(entp->ename, ipp);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2558
out(O_ALTFP, "istat_counter_reset_cb: resetting %s", path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2559
FREE(path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2570
char *path;
usr/src/cmd/fm/modules/common/eversholt/fme.c
2575
path = ipath2str(entp->ename, entp->ipath);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2576
out(O_ALTFP, "istat_counter_topo_chg_cb: not present %s", path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2577
FREE(path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2730
char *path;
usr/src/cmd/fm/modules/common/eversholt/fme.c
2733
path = ipath2str(entp->ename, ipp);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2734
out(O_ALTFP, "serd_reset_cb: resetting %s", path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2735
fmd_serd_reset(entp->hdl, path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2736
FREE(path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2745
char *path;
usr/src/cmd/fm/modules/common/eversholt/fme.c
2750
path = ipath2str(entp->ename, entp->ipath);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2751
out(O_ALTFP, "serd_topo_chg_cb: not present %s", path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2752
fmd_serd_reset(entp->hdl, path);
usr/src/cmd/fm/modules/common/eversholt/fme.c
2753
FREE(path);
usr/src/cmd/fm/modules/common/eversholt/platform.c
1093
if (execve(path, argv, envp))
usr/src/cmd/fm/modules/common/eversholt/platform.c
1094
perror(path);
usr/src/cmd/fm/modules/common/eversholt/platform.c
232
char *path;
usr/src/cmd/fm/modules/common/eversholt/platform.c
268
FM_FMRI_DEV_PATH, &path) == 0)
usr/src/cmd/fm/modules/common/eversholt/platform.c
331
if ((ret = config_bydev_lookup(Lastcfg, path)) == NULL)
usr/src/cmd/fm/modules/common/eversholt/platform.c
333
"has device path matching \"%s\".", path);
usr/src/cmd/fm/modules/common/eversholt/platform.c
570
char *propn, *path = NULL;
usr/src/cmd/fm/modules/common/eversholt/platform.c
577
path = hc_path(node);
usr/src/cmd/fm/modules/common/eversholt/platform.c
578
if (path == NULL)
usr/src/cmd/fm/modules/common/eversholt/platform.c
581
addlen = strlen(path) + 1;
usr/src/cmd/fm/modules/common/eversholt/platform.c
584
(void) strcpy(rawdata->nextfree, path);
usr/src/cmd/fm/modules/common/eversholt/platform.c
770
cfgstrprop_lookup(struct config *croot, char *path, const char *pname)
usr/src/cmd/fm/modules/common/eversholt/platform.c
780
if ((cresource = config_lookup(croot, path, 0)) == NULL) {
usr/src/cmd/fm/modules/common/eversholt/platform.c
781
out(O_ALTFP, "Cannot find config info for %s.", path);
usr/src/cmd/fm/modules/common/eversholt/platform.c
786
"re-write", pname, path);
usr/src/cmd/fm/modules/common/eversholt/platform.c
800
nvlist_t **fmrip, char *path)
usr/src/cmd/fm/modules/common/eversholt/platform.c
807
fmristr = cfgstrprop_lookup(croot, path, prop);
usr/src/cmd/fm/modules/common/eversholt/platform.c
809
out(O_ALTFP, "Cannot rewrite unit FMRI for %s.", path);
usr/src/cmd/fm/modules/common/eversholt/platform.c
815
out(O_ALTFP, "Cannot rewrite unit FMRI for %s.", path);
usr/src/cmd/fm/modules/common/eversholt/platform.c
824
serial = (char *)cfgstrprop_lookup(croot, path,
usr/src/cmd/fm/modules/common/eversholt/platform.c
991
forkandexecve(const char *path, char *const argv[], char *const envp[],
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
542
char *path, *scheme;
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
551
&path) != 0)
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
553
(void) strncpy(rcpath, path, FM_MAX_CLASS);
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
559
if (fab_hc2dev_nvl(hdl, detector, &path)) {
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
560
(void) strncpy(rcpath, path, FM_MAX_CLASS);
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
561
fmd_hdl_strfree(hdl, path);
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
576
path = strchr(rcpath + 1, '/');
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
577
if (path)
usr/src/cmd/fm/modules/common/fabric-xlate/fx_subr.c
578
path[0] = '\0';
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
127
char *path;
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
200
&path) != 0 || path[0] == '\0') {
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
209
error = di_retire_device(path, &drt, 0);
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
213
" error: %d %s", error, path);
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
220
error = di_unretire_device(path, &drt);
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
224
" error: %d %s", error, path);
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
258
&path) != 0 || path[0] == '\0') {
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
266
error = di_retire_device(path, &drt, 0);
usr/src/cmd/fm/modules/common/io-retire/rio_main.c
270
" error: %d %s", error, path);
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
198
do_mkdir(const char *path, mode_t mode)
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
203
if (stat(path, &st) != 0) {
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
205
if (mkdir(path, mode) != 0)
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
221
mkpath(char *path, mode_t mode)
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
227
pp = path;
usr/src/cmd/fm/modules/common/ses-log-transport/ses_log_transport.c
232
status = do_mkdir(path, mode);
usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/panic/panic_diag.c
199
char *dumpdir, *path, *uuid;
usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/panic/panic_diag.c
245
path = alloca(strlen(dumpdir) + 1 + 1 + 36 + 1);
usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/panic/panic_diag.c
247
(void) sprintf(path, "%s/.%s", dumpdir, uuid);
usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/panic/panic_diag.c
248
rsrc = panic_sw_fmri(hdl, path);
usr/src/cmd/fmt/fmt.c
666
char path[MAXPATHLEN + 1];
usr/src/cmd/fmt/fmt.c
678
(void) sprintf(path, LIB_WDRESOLVE, locale);
usr/src/cmd/fmt/fmt.c
680
if ((dlhandle = dlopen(path, RTLD_LAZY)) != NULL) {
usr/src/cmd/format/startup.c
1325
char path[MAXPATHLEN];
usr/src/cmd/format/startup.c
1403
(void) strcpy(path, directory);
usr/src/cmd/format/startup.c
1404
(void) strcat(path, "/");
usr/src/cmd/format/startup.c
1405
(void) strcat(path, dp->d_name);
usr/src/cmd/format/startup.c
1407
dp->d_name, path);
usr/src/cmd/format/startup.c
1424
(void) strcpy(path, directory);
usr/src/cmd/format/startup.c
1425
(void) strcat(path, "/");
usr/src/cmd/format/startup.c
1426
(void) strcat(path, dp->d_name);
usr/src/cmd/format/startup.c
1428
add_device_to_disklist(s, path);
usr/src/cmd/format/startup.c
1526
char path[MAXPATHLEN];
usr/src/cmd/format/startup.c
1534
(void) strcpy(path, devname);
usr/src/cmd/format/startup.c
1539
(void) strcpy(path, directory);
usr/src/cmd/format/startup.c
1540
(void) strcat(path, devname);
usr/src/cmd/format/startup.c
1541
(void) strcat(path, partition);
usr/src/cmd/format/startup.c
1548
(void) strcpy(path, "/dev/r");
usr/src/cmd/format/startup.c
1549
(void) strcat(path, devname);
usr/src/cmd/format/startup.c
1550
(void) strcat(path, "c");
usr/src/cmd/format/startup.c
1557
(void) strcpy(path, directory);
usr/src/cmd/format/startup.c
1558
(void) strcat(path, devname);
usr/src/cmd/format/startup.c
1562
add_device_to_disklist(devname, path);
usr/src/cmd/format/startup.c
2734
get_physical_name(char *path)
usr/src/cmd/format/startup.c
2751
(void) strcpy(s, path);
usr/src/cmd/format/startup.c
2765
(void) strcpy(s, path);
usr/src/cmd/format/startup.c
318
char *path;
usr/src/cmd/format/startup.c
356
path = getenv("FORMAT_PATH");
usr/src/cmd/format/startup.c
357
if (path == NULL) {
usr/src/cmd/format/startup.c
358
path = "/etc";
usr/src/cmd/format/startup.c
367
while (*path != 0) {
usr/src/cmd/format/startup.c
369
while (*path != 0 && *path != ':')
usr/src/cmd/format/startup.c
370
*p++ = *path++;
usr/src/cmd/format/startup.c
374
if (*path == ':')
usr/src/cmd/format/startup.c
375
path++;
usr/src/cmd/fruadm/fruadm.c
122
pathmatch(const char *path)
usr/src/cmd/fruadm/fruadm.c
127
((match = strstr(path, frupath)) != NULL) &&
usr/src/cmd/fruadm/fruadm.c
128
((match + strlen(frupath)) == (path + strlen(path))) &&
usr/src/cmd/fruadm/fruadm.c
129
((match == path) || (*(match - 1) == '/'))) {
usr/src/cmd/fruadm/fruadm.c
788
char *name, path[PATH_MAX];
usr/src/cmd/fruadm/fruadm.c
811
if (snprintf(path, sizeof (path), "%s/%s", prior_path, name)
usr/src/cmd/fruadm/fruadm.c
812
>= sizeof (path)) {
usr/src/cmd/fruadm/fruadm.c
824
(void) printf("%s%s\n", path, ((type == FRU_NODE_FRU) ?
usr/src/cmd/fruadm/fruadm.c
827
} else if ((process_tree || (process_self = pathmatch(path))) &&
usr/src/cmd/fruadm/fruadm.c
829
(void) printf("%s\n", path);
usr/src/cmd/fruadm/fruadm.c
840
gettext("\"%s\" is not a container\n"), path);
usr/src/cmd/fruadm/fruadm.c
849
walk_tree(next_node, path, process_self);
usr/src/cmd/fs.d/autofs/autod_autofs.c
115
if ((fnip->path = strdup(mntpnt)) == NULL)
usr/src/cmd/fs.d/autofs/autod_autofs.c
136
if ((fnip->key = strdup(fnip->path)) == NULL)
usr/src/cmd/fs.d/autofs/autod_autofs.c
245
if (p->path)
usr/src/cmd/fs.d/autofs/autod_autofs.c
246
free(p->path);
usr/src/cmd/fs.d/autofs/autod_lookup.c
45
char *path,
usr/src/cmd/fs.d/autofs/autod_main.c
417
m->name, m->subdir, m->map, m->opts, m->path, m->isdirect);
usr/src/cmd/fs.d/autofs/autod_main.c
422
status = do_lookup1(m->map, m->name, m->subdir, m->opts, m->path,
usr/src/cmd/fs.d/autofs/autod_main.c
459
m->name, m->subdir, m->map, m->opts, m->path, m->isdirect);
usr/src/cmd/fs.d/autofs/autod_main.c
462
status = do_mount1(m->map, m->name, m->subdir, m->opts, m->path,
usr/src/cmd/fs.d/autofs/autod_main.c
508
syslog(LOG_ERR, "mount of %s failed", m->path);
usr/src/cmd/fs.d/autofs/autod_main.c
512
"mount of %s/%s failed", m->path, m->name);
usr/src/cmd/fs.d/autofs/autod_main.c
608
if (args->path)
usr/src/cmd/fs.d/autofs/autod_main.c
609
free(args->path);
usr/src/cmd/fs.d/autofs/autod_mount.c
113
path ? path : "",
usr/src/cmd/fs.d/autofs/autod_mount.c
140
len = snprintf(mntpnt, sizeof (mntpnt), "%s%s%s", path,
usr/src/cmd/fs.d/autofs/autod_mount.c
219
len = strlcpy(root, path, sizeof (root));
usr/src/cmd/fs.d/autofs/autod_mount.c
222
path, key);
usr/src/cmd/fs.d/autofs/autod_mount.c
525
pubopt, list[i].path, NULL) != RPC_SUCCESS) {
usr/src/cmd/fs.d/autofs/autod_mount.c
662
char path[MAXPATHLEN];
usr/src/cmd/fs.d/autofs/autod_mount.c
671
(void) snprintf(path, MAXPATHLEN, "%s/%s/%s", VFS_PATH, fstype, cmd);
usr/src/cmd/fs.d/autofs/autod_mount.c
673
if (stat(path, &stbuf) != 0) {
usr/src/cmd/fs.d/autofs/autod_mount.c
678
strlcpy(command.file, path, MAXPATHLEN);
usr/src/cmd/fs.d/autofs/autod_mount.c
679
strlcpy(command.argv[0], path, MAXOPTSLEN);
usr/src/cmd/fs.d/autofs/autod_mount.c
69
char *path,
usr/src/cmd/fs.d/autofs/autod_nfs.c
2444
get_pathconf(CLIENT *cl, char *path, char *fsname, struct pathcnf **pcnf,
usr/src/cmd/fs.d/autofs/autod_nfs.c
2461
xdr_dirpath, (caddr_t)&path, xdr_ppathcnf, (caddr_t)p, timeout);
usr/src/cmd/fs.d/autofs/autod_nfs.c
3161
char *path,
usr/src/cmd/fs.d/autofs/autod_nfs.c
3181
if (path != NULL && strcmp(hostname, "nfs") == 0 &&
usr/src/cmd/fs.d/autofs/autod_nfs.c
3182
strncmp(path, "//", 2) == 0) {
usr/src/cmd/fs.d/autofs/autod_nfs.c
3185
hostname = strdup(path+2);
usr/src/cmd/fs.d/autofs/autod_nfs.c
3190
path = strchr(hostname, '/');
usr/src/cmd/fs.d/autofs/autod_nfs.c
3197
if (path == NULL) {
usr/src/cmd/fs.d/autofs/autod_nfs.c
3205
*path = '\0';
usr/src/cmd/fs.d/autofs/autod_nfs.c
3209
if (sport != NULL && sport < path) {
usr/src/cmd/fs.d/autofs/autod_nfs.c
3559
char *host, *path;
usr/src/cmd/fs.d/autofs/autod_nfs.c
3611
path = list[i].path;
usr/src/cmd/fs.d/autofs/autod_nfs.c
3617
if (strcmp(host, "nfs") == 0 && strncmp(path, "//", 2) == 0)
usr/src/cmd/fs.d/autofs/autod_nfs.c
3629
syslog(LOG_ERR, "umount %s:%s: %s", host, path,
usr/src/cmd/fs.d/autofs/autod_nfs.c
3641
syslog(LOG_ERR, "umount %s:%s: %s", host, path,
usr/src/cmd/fs.d/autofs/autod_nfs.c
3653
(caddr_t)&path, xdr_void, (char *)NULL, timeout);
usr/src/cmd/fs.d/autofs/autod_nfs.c
861
char *path;
usr/src/cmd/fs.d/autofs/autod_nfs.c
880
path = malloc(strlen(dir) + 2);
usr/src/cmd/fs.d/autofs/autod_nfs.c
881
if (path == NULL) {
usr/src/cmd/fs.d/autofs/autod_nfs.c
886
path[0] = (char)WNL_NATIVEPATH;
usr/src/cmd/fs.d/autofs/autod_nfs.c
887
(void) strcpy(&path[1], dir);
usr/src/cmd/fs.d/autofs/autod_nfs.c
889
path = dir;
usr/src/cmd/fs.d/autofs/autod_nfs.c
896
if (path != dir)
usr/src/cmd/fs.d/autofs/autod_nfs.c
897
free(path);
usr/src/cmd/fs.d/autofs/autod_nfs.c
927
&argp->fh, TRUE, path);
usr/src/cmd/fs.d/autofs/autod_nfs.c
936
if (path != dir)
usr/src/cmd/fs.d/autofs/autod_nfs.c
937
free(path);
usr/src/cmd/fs.d/autofs/autod_nfs.c
979
path = malloc(strlen(dir) + 2);
usr/src/cmd/fs.d/autofs/autod_nfs.c
981
if (path == NULL) {
usr/src/cmd/fs.d/autofs/autod_nfs.c
987
strcpy(path, dir);
usr/src/cmd/fs.d/autofs/autod_nfs.c
988
URLparse(path);
usr/src/cmd/fs.d/autofs/autod_nfs.c
989
mfs->mfs_dir = path;
usr/src/cmd/fs.d/autofs/autod_parse.c
1446
char *path;
usr/src/cmd/fs.d/autofs/autod_parse.c
1450
path = strchr(host, '/');
usr/src/cmd/fs.d/autofs/autod_parse.c
1451
if (path == NULL) {
usr/src/cmd/fs.d/autofs/autod_parse.c
1457
*path = '\0';
usr/src/cmd/fs.d/autofs/autod_parse.c
1460
if (sport != NULL && sport < path) {
usr/src/cmd/fs.d/autofs/autod_parse.c
1476
path++;
usr/src/cmd/fs.d/autofs/autod_parse.c
1477
if (*path == '\0')
usr/src/cmd/fs.d/autofs/autod_parse.c
1478
path = ".";
usr/src/cmd/fs.d/autofs/autod_parse.c
1483
mfs->mfs_dir = strdup(path);
usr/src/cmd/fs.d/autofs/autod_parse.c
1573
get_dir_from_path(char *dir, char **path, int dirsz)
usr/src/cmd/fs.d/autofs/autod_parse.c
1586
while (**path == '/')
usr/src/cmd/fs.d/autofs/autod_parse.c
1587
(*path)++;
usr/src/cmd/fs.d/autofs/autod_parse.c
1590
while ((**path) && ((**path) != '/')) {
usr/src/cmd/fs.d/autofs/autod_parse.c
1597
*dir++ = *(*path)++;
usr/src/cmd/fs.d/autofs/autod_parse.c
1603
while (**path == '/')
usr/src/cmd/fs.d/autofs/autod_parse.c
1604
(*path)++;
usr/src/cmd/fs.d/autofs/autod_parse.c
431
char *path;
usr/src/cmd/fs.d/autofs/autod_parse.c
451
path = me->map_mntpnt;
usr/src/cmd/fs.d/autofs/autod_parse.c
453
if ((rc = get_dir_from_path(dirname, &path,
usr/src/cmd/fs.d/autofs/autod_parse.c
499
if ((rc = get_dir_from_path(dirname, &path,
usr/src/cmd/fs.d/autofs/autod_xdr.c
247
if (!xdr_string(xdrs, &objp->path, AUTOFS_MAXPATHLEN))
usr/src/cmd/fs.d/autofs/autod_xdr.c
90
if (!xdr_string(xdrs, &objp->path, AUTOFS_MAXPATHLEN))
usr/src/cmd/fs.d/autofs/automount.c
296
ai.path = dir->dir_name;
usr/src/cmd/fs.d/autofs/mount.c
130
fni.path = mntpnt;
usr/src/cmd/fs.d/dev/mount.c
174
do_stat(const char *path, struct stat *buf)
usr/src/cmd/fs.d/dev/mount.c
178
ret = stat(path, buf);
usr/src/cmd/fs.d/dev/mount.c
181
typename, path, strerror(errno));
usr/src/cmd/fs.d/dev/mount.c
191
do_realpath(const char *path, char *resolved_path)
usr/src/cmd/fs.d/dev/mount.c
195
ret = realpath(path, resolved_path);
usr/src/cmd/fs.d/dev/mount.c
198
typename, path, strerror(errno));
usr/src/cmd/fs.d/dev/mount.c
208
char path[PATH_MAX + 1];
usr/src/cmd/fs.d/dev/mount.c
238
if (do_realpath(value, path) == NULL)
usr/src/cmd/fs.d/dev/mount.c
241
(uint64_t)(uintptr_t)do_strdup(path);
usr/src/cmd/fs.d/df.c
786
char *path, *mountp;
usr/src/cmd/fs.d/df.c
798
path = dirpath;
usr/src/cmd/fs.d/df.c
805
while ((p = *path++) == (m = *mountp++)) {
usr/src/cmd/fs.d/nfs/lib/nfslog_config.c
1043
path, linesz-1);
usr/src/cmd/fs.d/nfs/lib/nfslog_config.c
1047
path, linesz-1);
usr/src/cmd/fs.d/nfs/lib/nfslog_config.c
958
gataline(FILE *fp, char *path, char *line, int linesz)
usr/src/cmd/fs.d/nfs/lib/nfslogtab.c
167
logtab_findent(FILE *fd, char *buffer, char *path, char *tag, int state,
usr/src/cmd/fs.d/nfs/lib/nfslogtab.c
176
if (path != NULL)
usr/src/cmd/fs.d/nfs/lib/nfslogtab.c
177
found = found && (strcmp(path, (*lepp)->le_path) == 0);
usr/src/cmd/fs.d/nfs/lib/nfslogtab.c
208
logtab_rement(FILE *fd, char *buffer, char *path, char *tag, int state)
usr/src/cmd/fs.d/nfs/lib/nfslogtab.c
221
if (path != NULL)
usr/src/cmd/fs.d/nfs/lib/nfslogtab.c
222
found = found && (strcmp(path, lep->le_path) == 0);
usr/src/cmd/fs.d/nfs/lib/nfslogtab.c
292
logtab_deactivate(FILE *fd, char *buffer, char *path, char *tag)
usr/src/cmd/fs.d/nfs/lib/nfslogtab.c
305
if (path != NULL)
usr/src/cmd/fs.d/nfs/lib/nfslogtab.c
306
found = found && (strcmp(path, lep->le_path) == 0);
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
170
nfs4_create_components(char *path, component4 *comp4)
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
175
if (path == NULL)
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
178
plen = strlen(path) + 1; /* include the terminator */
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
179
ori_path = path;
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
183
for (nxtc = path; nxtc < ori_path + plen; nxtc++) {
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
185
if ((slen = nxtc - path) == 0) {
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
186
path = nxtc + 1;
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
191
bcopy(path, buf, slen);
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
198
path = nxtc + 1;
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
212
make_pathname4(char *path, pathname4 *pathname)
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
220
if (path == NULL) {
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
227
if ((ncomp = nfs4_create_components(path, NULL)) == 0) {
usr/src/cmd/fs.d/nfs/lib/ref_subr.c
240
ncomp = nfs4_create_components(path, comp4);
usr/src/cmd/fs.d/nfs/lib/replica.c
155
list[i].path = strdup(x);
usr/src/cmd/fs.d/nfs/lib/replica.c
156
if (!list[i].path)
usr/src/cmd/fs.d/nfs/lib/replica.c
65
if (list[i].path)
usr/src/cmd/fs.d/nfs/lib/replica.c
66
free(list[i].path);
usr/src/cmd/fs.d/nfs/lib/replica.h
41
char *path;
usr/src/cmd/fs.d/nfs/mount/mount.c
1936
char *path;
usr/src/cmd/fs.d/nfs/mount/mount.c
1946
path = malloc(strlen(fspath) + 2);
usr/src/cmd/fs.d/nfs/mount/mount.c
1947
if (path == NULL) {
usr/src/cmd/fs.d/nfs/mount/mount.c
1953
path[0] = (char)WNL_NATIVEPATH;
usr/src/cmd/fs.d/nfs/mount/mount.c
1954
(void) strcpy(&path[1], fspath);
usr/src/cmd/fs.d/nfs/mount/mount.c
1957
path = fspath;
usr/src/cmd/fs.d/nfs/mount/mount.c
1966
TRUE, path, port, NULL, FALSE);
usr/src/cmd/fs.d/nfs/mount/mount.c
1986
if (fspath != path)
usr/src/cmd/fs.d/nfs/mount/mount.c
1987
free(path);
usr/src/cmd/fs.d/nfs/mount/mount.c
1993
if (fspath != path)
usr/src/cmd/fs.d/nfs/mount/mount.c
1994
free(path);
usr/src/cmd/fs.d/nfs/mount/mount.c
443
char *path;
usr/src/cmd/fs.d/nfs/mount/mount.c
466
if (strcmp(list[i].host, "nfs") == 0 && strncmp(list[i].path,
usr/src/cmd/fs.d/nfs/mount/mount.c
470
oldpath = strdup(list[i].path);
usr/src/cmd/fs.d/nfs/mount/mount.c
476
host = list[i].path+2;
usr/src/cmd/fs.d/nfs/mount/mount.c
477
path = strchr(host, '/');
usr/src/cmd/fs.d/nfs/mount/mount.c
479
if (path == NULL) {
usr/src/cmd/fs.d/nfs/mount/mount.c
486
*path = '\0';
usr/src/cmd/fs.d/nfs/mount/mount.c
505
if (sport != NULL && sport < path) {
usr/src/cmd/fs.d/nfs/mount/mount.c
511
path++;
usr/src/cmd/fs.d/nfs/mount/mount.c
512
if (*path == '\0')
usr/src/cmd/fs.d/nfs/mount/mount.c
513
path = ".";
usr/src/cmd/fs.d/nfs/mount/mount.c
517
path = list[i].path;
usr/src/cmd/fs.d/nfs/mount/mount.c
565
r = get_fh_via_pub(argp, host, path, url, use_pubfh,
usr/src/cmd/fs.d/nfs/mount/mount.c
591
URLparse(path);
usr/src/cmd/fs.d/nfs/mount/mount.c
600
if (url == TRUE && *path != '/')
usr/src/cmd/fs.d/nfs/mount/mount.c
605
r = get_fh(argp, host, path, &vers,
usr/src/cmd/fs.d/nfs/mount/mount.c
618
newpath = malloc(strlen(path)+2);
usr/src/cmd/fs.d/nfs/mount/mount.c
628
strcat(newpath, path);
usr/src/cmd/fs.d/nfs/mount/mount.c
634
path = newpath;
usr/src/cmd/fs.d/nfs/mount/mount.c
675
host, path);
usr/src/cmd/fs.d/nfs/mount/mount.c
693
FALSE, path, port, retry_error,
usr/src/cmd/fs.d/nfs/mount/mount.c
713
if (convert_special(&special, host, oldpath, path,
usr/src/cmd/fs.d/nfs/mount/mount.c
717
oldpath, host, path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1027
mount_enoent_error(struct cln *cln, char *path, char *rpath, int *flavor_list)
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1034
checkpath = strdup(path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1117
enqueue_logging_data(char *host, SVCXPRT *transp, char *path,
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1164
lq->ld_path = strdup(path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1344
char *path, rpath[MAXPATHLEN];
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1357
path = NULL;
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1359
if (!svc_getargs(transp, xdr_dirpath, (caddr_t)&path)) {
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1395
host, path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1419
if (realpath(path, rpath) == NULL) {
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1423
"mount request: realpath: %s: %m", path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1425
error = mount_enoent_error(&cln, path, rpath,
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1541
path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1596
error ? "denied" : "mounted", path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1602
enqueued = enqueue_logging_data(host, transp, path, rpath,
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1611
audit_mountd_mount(host, path, audit_status); /* BSM */
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1616
if (path != NULL)
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1617
(void) svc_freeargs(transp, xdr_dirpath, (caddr_t)&path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1687
findentry(char *path)
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1699
for (p1 = sh->sh_path, p2 = path; *p1 == *p2; p1++, p2++)
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1722
if (same_file_system(path, sh->sh_path))
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1736
is_substring(char **mntp, char **path)
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1738
char *p1 = *mntp, *p2 = *path;
usr/src/cmd/fs.d/nfs/mountd/mountd.c
1745
*path = --p2; /* we need the slash in p2 */
usr/src/cmd/fs.d/nfs/mountd/mountd.c
3251
char *host, *path, *remove_path;
usr/src/cmd/fs.d/nfs/mountd/mountd.c
3257
path = NULL;
usr/src/cmd/fs.d/nfs/mountd/mountd.c
3258
if (!svc_getargs(transp, xdr_dirpath, (caddr_t)&path)) {
usr/src/cmd/fs.d/nfs/mountd/mountd.c
3275
(void) svc_freeargs(transp, xdr_dirpath, (caddr_t)&path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
3280
syslog(LOG_NOTICE, "UNMOUNT: %s unmounted %s", host, path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
3282
audit_mountd_umount(host, path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
3285
if (realpath(path, rpath) == NULL) {
usr/src/cmd/fs.d/nfs/mountd/mountd.c
3287
syslog(LOG_WARNING, "UNMOUNT: realpath: %s: %m ", path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
3288
remove_path = path; /* use path provided instead */
usr/src/cmd/fs.d/nfs/mountd/mountd.c
3295
(void) svc_freeargs(transp, xdr_dirpath, (caddr_t)&path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
930
char *path, rpath[MAXPATHLEN];
usr/src/cmd/fs.d/nfs/mountd/mountd.c
934
path = NULL;
usr/src/cmd/fs.d/nfs/mountd/mountd.c
937
if (!svc_getargs(transp, xdr_dirpath, (caddr_t)&path)) {
usr/src/cmd/fs.d/nfs/mountd/mountd.c
941
if (lstat(path, &st) < 0) {
usr/src/cmd/fs.d/nfs/mountd/mountd.c
948
if (realpath(path, rpath) == NULL) {
usr/src/cmd/fs.d/nfs/mountd/mountd.c
951
path);
usr/src/cmd/fs.d/nfs/mountd/mountd.c
983
if (path != NULL)
usr/src/cmd/fs.d/nfs/mountd/mountd.c
984
(void) svc_freeargs(transp, xdr_dirpath, (caddr_t)&path);
usr/src/cmd/fs.d/nfs/mountd/mountd.h
46
extern void mntlist_new(char *host, char *path);
usr/src/cmd/fs.d/nfs/mountd/mountd.h
47
extern void mntlist_delete(char *host, char *path);
usr/src/cmd/fs.d/nfs/mountd/nfs_cmd.c
178
sh = findentry(args->arg.charmap.path);
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
108
mntlist_contains(char *host, char *path)
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
113
m.m_path = path;
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
126
mntlist_insert(char *host, char *path)
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
128
if (!mntlist_contains(host, path)) {
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
134
m->m_path = exstrdup(path);
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
135
m->m_pos = rmtab_insert(host, path);
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
141
mntlist_new(char *host, char *path)
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
144
mntlist_insert(host, path);
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
153
mntlist_delete(char *host, char *path)
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
158
mm.m_path = path;
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
354
char *path;
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
389
path = s;
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
394
if (*host && *path)
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
395
mntlist_insert(host, path);
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
398
if (*host && *path)
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
399
mntlist_insert(host, path);
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
484
rmtab_insert(char *host, char *path)
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
499
if (fprintf(rmtabf, "[%s]:%s\n", host, path) == EOF) {
usr/src/cmd/fs.d/nfs/mountd/rmtab.c
503
if (fprintf(rmtabf, "%s:%s\n", host, path) == EOF) {
usr/src/cmd/fs.d/nfs/nfsd/nfsd.c
90
static void dss_mkleafdir(char *dir, char *leaf, char *path);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
1321
name, dbp->path);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
1696
if (strncmp(fhpath, dbp->path, len))
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
238
if ((newp->path = malloc(strlen(fhpath) + 2 + strlen(fsidstr)))
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
246
(void) sprintf(newp->path, "%s.%s", fhpath, fsidstr);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
250
if ((newp->db = dbm_open(newp->path, create_flag | O_RDWR, 0666))
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
255
newp->path, strerror(*errorp));
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
277
(void) printf("db_get_db: db %s opened\n", newp->path);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
286
if (newp->path != NULL) {
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
287
free(newp->path);
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
313
if (strncmp(fhpath, dbp->path, strlen(fhpath)) == 0)
usr/src/cmd/fs.d/nfs/nfslog/dbtab.c
66
char *path; /* dbm filepair path */
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
100
static void add_fh_to_export_cache(fhandle_t *fh, char *path);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
101
static char *update_export_point(char *fhpath, fhandle_t *fh, char *path);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
483
#define FH_ADD(path, dfh, fh, name) \
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
484
fh_add(path, dfh, fh, name)
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
766
add_fh_to_export_cache(fhandle_t *fh, char *path)
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
773
((path != NULL) ? path : ""), strerror(errno));
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
776
if (path != NULL) {
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
777
if ((new->name = malloc(strlen(path) + 1)) == NULL) {
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
780
" Error %s\n"), path, strerror(errno));
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
784
(void) strcpy(new->name, path);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
807
update_export_point(char *fhpath, fhandle_t *fh, char *path)
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
828
if ((path == NULL) &&
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
829
((path = malloc(strlen(p->name) + 1)) == NULL)) {
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
835
(void) strcpy(path, p->name);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
836
return (path);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
838
if ((path = get_export_path(fh, path)) == NULL) {
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
844
PRINT_LINK_DATA(stdout, "update_export_point", fh, path, "")
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
846
if (FH_ADD(fhpath, fh, fh, path)) {
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
848
add_fh_to_export_cache(fh, path);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
850
return (path);
usr/src/cmd/fs.d/nfs/nfslog/fhtab.c
858
get_export_path(fhandle_t *fh, char *path)
usr/src/cmd/fs.d/nfs/nfslog/nfslog_elf.c
1537
if (elfrec->path != NULL)
usr/src/cmd/fs.d/nfs/nfslog/nfslog_elf.c
1538
free(elfrec->path);
usr/src/cmd/fs.d/nfs/nfslog/nfslog_elf.c
1585
if ((elfrec->path = strdup(elfpath)) == NULL) {
usr/src/cmd/fs.d/nfs/nfslog/nfslog_elf.c
563
elfrec->path, strerror(errno));
usr/src/cmd/fs.d/nfs/nfslog/nfslog_elf.c
568
elfbufoffset, elfrec->path, rc);
usr/src/cmd/fs.d/nfs/nfslog/nfslog_trans.c
103
char *path; /* pathname of file */
usr/src/cmd/fs.d/nfs/nfslog/nfslog_trans.c
269
if (transrec->path != NULL) {
usr/src/cmd/fs.d/nfs/nfslog/nfslog_trans.c
272
transrec->path);
usr/src/cmd/fs.d/nfs/nfslog/nfslog_trans.c
273
free(transrec->path);
usr/src/cmd/fs.d/nfs/nfslog/nfslog_trans.c
286
char *path,
usr/src/cmd/fs.d/nfs/nfslog/nfslog_trans.c
293
if ((strcmp(path, tfp->path) == 0) &&
usr/src/cmd/fs.d/nfs/nfslog/nfslog_trans.c
297
(void) printf("Found transfile '%s'\n", path);
usr/src/cmd/fs.d/nfs/nfslog/nfslog_trans.c
377
if ((transrec->path = strdup(transpath)) == NULL) {
usr/src/cmd/fs.d/nfs/nfslog/nfslog_trans.c
457
(void) printf("New transfile '%s'\n", transrec->path);
usr/src/cmd/fs.d/nfs/nfslog/nfslogd.c
698
is_cycle_needed(char *path, void **list, boolean_t need2free, int *error)
usr/src/cmd/fs.d/nfs/nfslog/nfslogd.c
718
assert(path != NULL);
usr/src/cmd/fs.d/nfs/nfslog/nfslogd.c
724
if (strcmp(p->log, path) == 0)
usr/src/cmd/fs.d/nfs/nfslog/nfslogd.c
736
p->log = path;
usr/src/cmd/fs.d/nfs/nfslog/nfslogd.h
80
char *path; /* pathname of file */
usr/src/cmd/fs.d/nfs/nfsref/nfsref.c
198
char uuid[UUID_PRINTABLE_STRING_LENGTH], path[256], loc[2048];
usr/src/cmd/fs.d/nfs/nfsstat/nfsstat.c
1072
if (path[0] != NULL) {
usr/src/cmd/fs.d/nfs/nfsstat/nfsstat.c
1074
for (path_count = 0; path[path_count] != NULL;
usr/src/cmd/fs.d/nfs/nfsstat/nfsstat.c
1076
if (strcmp(path[path_count], m.mnt_mountp)
usr/src/cmd/fs.d/nfs/nfsstat/nfsstat.c
129
static char *path [MAX_PATHS] = {NULL}; /* array to store the multiple paths */
usr/src/cmd/fs.d/nfs/nfsstat/nfsstat.c
260
path[j] = argv[optind];
usr/src/cmd/fs.d/nfs/nfsstat/nfsstat.c
261
if (*path[j] != '/')
usr/src/cmd/fs.d/nfs/nfsstat/nfsstat.c
266
path[j] = NULL;
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1022
char path[MAXPATHLEN+MAXNAMELEN+SM_MAXPATHLEN]; /* why > MAXPATHLEN? */
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1040
(void) strcpy(path, dir1);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1041
(void) strcat(path, "/");
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1043
(void) strcat(path, dir2);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1044
(void) strcat(path, "/");
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1046
(void) strcpy(dirpath, path); /* save here - we may need it shortly */
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1047
(void) strcat(path, name);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1054
if (is_symlink(path)) {
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1055
n = readlink(path, rname, MAXNAMELEN);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1085
"statd: can't read link %s: %m\n", path);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1094
delete_file(path);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1175
char path[MAXPATHLEN+MAXNAMELEN+SM_MAXPATHLEN];
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1228
(void) strcpy(path, CURRENT);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1229
(void) strcat(path, "/");
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1230
(void) strcat(path, name);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1231
(void) create_file(path);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1247
(void) strcpy(path, path_name[i]);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1248
(void) strcat(path, "/statmon/sm/");
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1249
(void) strcat(path, name);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1250
(void) create_file(path);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1300
char path[MAXPATHLEN];
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1385
(void) strcpy(path, path_name[i]);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1386
(void) strcat(path, "/statmon/sm");
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
1387
(void) create_symlink(path, name, ascii_addr);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
461
char path[MAXPATHLEN];
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
486
(void) strcpy(path, BACKUP);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
487
(void) strcat(path, "/");
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
488
(void) strcat(path, name);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
489
if (is_symlink(path)) {
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
490
n = readlink(path, rname, MAXNAMELEN);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
495
"link %s\n", path);
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
500
tail = strrchr(path, '/') + 1;
usr/src/cmd/fs.d/nfs/statd/sm_statd.c
505
delete_file(path);
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
356
char path[MAXPATHLEN+MAXNAMELEN+2];
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
372
(void) strcpy(path, from_dir);
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
373
(void) strcat(path, "/");
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
374
(void) strcat(path, dirp->d_name);
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
376
if (is_symlink(path)) {
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
381
n = readlink(path, rname, MAXNAMELEN);
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
385
"read link %s\n", path);
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
396
(void) strcpy(path, to_dir);
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
397
(void) strcat(path, "/");
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
398
(void) strcat(path, dirp->d_name);
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
399
(void) create_file(path);
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
931
nftw_owner(const char *path, const struct stat *statp, int info,
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
946
printf("chmod %03o %s\n", newmode, path);
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
947
if (chmod(path, newmode) < 0) {
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
951
path, newmode);
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
963
printf("lchown %s daemon:daemon\n", path);
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
964
if (lchown(path, daemon_uid, daemon_gid) < 0) {
usr/src/cmd/fs.d/nfs/statd/sm_svc.c
968
path);
usr/src/cmd/fs.d/nfs/umount/umount.c
284
if (strcmp(list[i].host, "nfs") == 0 && strncmp(list[i].path,
usr/src/cmd/fs.d/nfs/umount/umount.c
305
pr_err("%s:%s %s\n", list[i].host, list[i].path,
usr/src/cmd/fs.d/nfs/umount/umount.c
336
(char *)&list[i].path, xdr_void, (char *)NULL,
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
108
if (InUse[clusterNum - FIRST_CLUSTER]->path != NULL) {
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
112
InUse[clusterNum - FIRST_CLUSTER]->path->fullName);
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
1398
InUse[clusterNum - FIRST_CLUSTER]->path = pathInfo;
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
450
if (newCl->path)
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
451
newCl->path->references++;
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
472
if (old->path && --old->path->references <= 0) {
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
473
free(old->path->fullName);
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
474
free(old->path);
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
91
if (InUse[clusterNum - FIRST_CLUSTER]->path != NULL) {
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
92
if (InUse[clusterNum - FIRST_CLUSTER]->path->references > 1) {
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
93
InUse[clusterNum - FIRST_CLUSTER]->path->references--;
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
95
free(InUse[clusterNum - FIRST_CLUSTER]->path->fullName);
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
96
free(InUse[clusterNum - FIRST_CLUSTER]->path);
usr/src/cmd/fs.d/pcfs/fsck/clusters.c
98
InUse[clusterNum - FIRST_CLUSTER]->path = NULL;
usr/src/cmd/fs.d/pcfs/fsck/fsck_pcfs.h
110
struct nameinfo *path;
usr/src/cmd/fs.d/smbclnt/fksmbcl/shares.c
251
static char path[] = "/srvsvc";
usr/src/cmd/fs.d/smbclnt/fksmbcl/shares.c
256
printf("open pipe: %s\n", path);
usr/src/cmd/fs.d/smbclnt/fksmbcl/shares.c
257
fd = smb_fh_open(ctx, path, O_RDWR);
usr/src/cmd/fs.d/smbclnt/fksmbcl/shares.c
259
perror(path);
usr/src/cmd/fs.d/udfs/fsdb/fsdb.c
963
inode_from_path(char *path, uint32_t *in, uint8_t *fl)
usr/src/cmd/fs.d/udfs/fsdb/fsdb.c
977
if (strcmp(path, "/") == 0) {
usr/src/cmd/fs.d/udfs/fsdb/fsdb.c
985
(void) strcpy(dname, path);
usr/src/cmd/fs.d/udfs/fsdb/fsdb.c
999
gettext("Path %s is not a directory\n"), path);
usr/src/cmd/fs.d/ufs/df/df.c
661
zap_chroot(char *path)
usr/src/cmd/fs.d/ufs/df/df.c
663
return (pathsuffix(path, chrootpath));
usr/src/cmd/fs.d/ufs/df/df.c
768
findmntent(char *path, struct stat64 *pstat, struct mntlist *mlist)
usr/src/cmd/fs.d/ufs/df/df.c
781
if (*path != '/' && cwd[0] == '\0') {
usr/src/cmd/fs.d/ufs/df/df.c
798
if (abspath(cwd, path, scratch) < 0)
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
388
open_backpath(int mountfd, u_offset_t max_bf_size, char **path,
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
408
if (stat(*path, &st) < 0) {
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
414
(void) open_multi_backfile(*path, num_back_files, fd_array, 1);
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
415
*unlinkpath = strdup(*path);
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
422
len = strlen(*path) - 1;
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
423
if ((*path)[len] == '/')
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
424
(*path)[len] = '\0';
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
430
*path, uniq);
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
437
die(gettext("Could not find unique name in %s"), *path);
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
440
free(*path);
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
441
*path = *unlinkpath;
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
443
die(gettext("%s already exists."), *path);
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
446
"or a directory."), *path);
usr/src/cmd/fs.d/ufs/fssnap/fssnap.c
469
"does not support large files.\n"), *path);
usr/src/cmd/fs.d/ufs/quota/quota.c
354
strncmp(rl[0].path, "//", 2) == 0) {
usr/src/cmd/fs.d/ufs/quota/quota.c
381
rc = getnfsquota(rl[0].host, rl[0].path, uid, &dqblk);
usr/src/cmd/fs.d/ufs/quota/quota.c
762
getnfsquota(char *hostp, char *path, uid_t uid, struct dqblk *dqp)
usr/src/cmd/fs.d/ufs/quota/quota.c
770
gq_args.gqa_pathp = path;
usr/src/cmd/fstyp/fstyp.c
188
char *path;
usr/src/cmd/fstyp/fstyp.c
192
if ((path = getexecpathname()) == NULL) {
usr/src/cmd/fstyp/fstyp.c
195
if ((p = strrchr(path, '/')) != NULL) {
usr/src/cmd/fstyp/fstyp.c
197
if ((p = strrchr(path, '/')) != NULL) {
usr/src/cmd/fstyp/fstyp.c
200
if ((strcmp(path, FSTYP_LIBFS_DIR) == 0) &&
usr/src/cmd/fstyp/fstyp.c
208
free(path);
usr/src/cmd/fstyp/fstyp.c
221
char *path;
usr/src/cmd/fstyp/fstyp.c
225
path = malloc(size);
usr/src/cmd/fstyp/fstyp.c
228
if ((path == NULL) || (rpath == NULL) || (cwd == NULL)) {
usr/src/cmd/fstyp/fstyp.c
234
(void) snprintf(path, size, "%s", execname);
usr/src/cmd/fstyp/fstyp.c
236
(void) snprintf(path, size, "%s/%s", cwd, execname);
usr/src/cmd/fstyp/fstyp.c
238
if (realpath(path, rpath) == NULL) {
usr/src/cmd/fstyp/fstyp.c
244
if (path != NULL) {
usr/src/cmd/fstyp/fstyp.c
245
free(path);
usr/src/cmd/fstyp/fstyp.c
257
dos_to_dev(char *path, char **devpath, int *num)
usr/src/cmd/fstyp/fstyp.c
261
if ((p = strrchr(path, ':')) == NULL) {
usr/src/cmd/fstyp/fstyp.c
268
*devpath = getfullrawname(path);
usr/src/cmd/fstyp/fstyp.c
413
char *path;
usr/src/cmd/fstyp/fstyp.c
435
path = calloc(1, name_max + 1);
usr/src/cmd/fstyp/fstyp.c
436
if ((path == NULL)) {
usr/src/cmd/fstyp/fstyp.c
444
(void) snprintf(path, name_max, "%s/%s", lib_dir, dp->d_name);
usr/src/cmd/fstyp/fstyp.c
447
error = fstyp_init(fd, 0, path, &h);
usr/src/cmd/fstyp/fstyp.c
456
(void) snprintf(path, name_max,
usr/src/cmd/fstyp/fstyp.c
458
if ((stat(path, &st) < 0) ||
usr/src/cmd/fstyp/fstyp.c
463
if ((error = run_cmd(path, "fstyp", arg1, arg2)) == 0) {
usr/src/cmd/fstyp/fstyp.c
469
if (path != NULL) {
usr/src/cmd/fstyp/fstyp.c
470
free(path);
usr/src/cmd/fstyp/fstyp.c
476
run_cmd(char *path, char *arg0, char *arg1, char *arg2)
usr/src/cmd/fstyp/fstyp.c
486
(void) execl(path, arg0, arg1, arg2, 0);
usr/src/cmd/fstyp/fstyp.c
53
static boolean_t dos_to_dev(char *path, char **devpath, int *num);
usr/src/cmd/fstyp/fstyp.c
56
static int run_cmd(char *path, char *arg0, char *arg1, char *arg2);
usr/src/cmd/fuser/fuser.c
232
char *path;
usr/src/cmd/fuser/fuser.c
267
path = di_devfs_minor_path(di_minor);
usr/src/cmd/fuser/fuser.c
268
if (path == NULL) {
usr/src/cmd/fuser/fuser.c
273
return (path);
usr/src/cmd/fuser/fuser.c
280
path = di_devfs_path(di_node);
usr/src/cmd/fuser/fuser.c
281
if (path == NULL) {
usr/src/cmd/fuser/fuser.c
285
return (path);
usr/src/cmd/fuser/fuser.c
296
char *path;
usr/src/cmd/fuser/fuser.c
323
path = i_get_dev_path(f_user, modinfo.mi_name, major, di_root);
usr/src/cmd/fuser/fuser.c
324
if (path == (char *)-1)
usr/src/cmd/fuser/fuser.c
328
if (path == NULL) {
usr/src/cmd/fuser/fuser.c
355
modinfo.mi_name, path);
usr/src/cmd/fuser/fuser.c
362
modinfo.mi_name, major, f_user->fu_minor, path);
usr/src/cmd/fuser/fuser.c
365
di_devfs_path_free(path);
usr/src/cmd/gcore/gcore.c
126
path = p + 1;
usr/src/cmd/gcore/gcore.c
129
(void) strncpy(fname, path, size);
usr/src/cmd/gcore/gcore.c
157
char path[MAXPATHLEN];
usr/src/cmd/gcore/gcore.c
247
(void) snprintf(path, sizeof (path), "%s.%%p", prefix);
usr/src/cmd/gcore/gcore.c
248
convert_path(path, fname, sizeof (fname), P);
usr/src/cmd/gcore/gcore.c
255
(void) core_get_process_path(path, sizeof (path), pid);
usr/src/cmd/gcore/gcore.c
256
convert_path(path, fname, sizeof (fname), P);
usr/src/cmd/gcore/gcore.c
271
(void) core_get_global_path(path, sizeof (path));
usr/src/cmd/gcore/gcore.c
272
convert_path(path, fname, sizeof (fname), P);
usr/src/cmd/gcore/gcore.c
43
convert_path(const char *path, char *fname, size_t size,
usr/src/cmd/gcore/gcore.c
56
while ((p = strchr(path, '%')) != NULL && size != 0) {
usr/src/cmd/gcore/gcore.c
57
len = MIN(size, p - path);
usr/src/cmd/gcore/gcore.c
58
bcopy(path, fname, len);
usr/src/cmd/geniconvtbl/itmcomp.c
558
char path[MAXPATHLEN];
usr/src/cmd/geniconvtbl/itmcomp.c
563
path[0] = '\0';
usr/src/cmd/geniconvtbl/itmcomp.c
576
(void) memcpy(path, p, dir_len);
usr/src/cmd/geniconvtbl/itmcomp.c
578
('/' != path[dir_len - 1])) {
usr/src/cmd/geniconvtbl/itmcomp.c
579
path[dir_len] = '/';
usr/src/cmd/geniconvtbl/itmcomp.c
583
(void) memcpy(path + dir_len, base_name, base_len + 1);
usr/src/cmd/geniconvtbl/itmcomp.c
584
if (0 == access(path, X_OK)) {
usr/src/cmd/geniconvtbl/itmcomp.c
585
return (strdup_vital(path));
usr/src/cmd/grep/grep.c
541
process_path(const char *path)
usr/src/cmd/grep/grep.c
548
if (stat(path, &st) != -1 &&
usr/src/cmd/grep/grep.c
557
if (path[strlen(path) - 1] != '/') {
usr/src/cmd/grep/grep.c
558
(void) asprintf(&buf, "%s/", path);
usr/src/cmd/grep/grep.c
560
path = buf;
usr/src/cmd/grep/grep.c
570
if (nftw(path, recursive, MAX_DEPTH, walkflags) != 0) {
usr/src/cmd/grep/grep.c
574
cmdname, path);
usr/src/cmd/grep/grep.c
580
process_file(path, 0);
usr/src/cmd/hal/addons/network-devices/addon-network-discovery.c
156
const char *path = dbus_message_get_path(message);
usr/src/cmd/hal/addons/network-devices/addon-network-discovery.c
161
HAL_DEBUG(("DBus message: %s, %s ", member, path));
usr/src/cmd/hal/addons/network-devices/addon-network-discovery.c
202
HAL_WARNING(("Unknown DBus message: %s, %s ", member, path));
usr/src/cmd/hal/addons/storage/addon-storage.c
114
path = phys_path + sizeof ("/devices") - 1;
usr/src/cmd/hal/addons/storage/addon-storage.c
116
path = phys_path;
usr/src/cmd/hal/addons/storage/addon-storage.c
118
if ((p = strrchr (path, ':')) == NULL)
usr/src/cmd/hal/addons/storage/addon-storage.c
120
len = (uintptr_t)p - (uintptr_t)path;
usr/src/cmd/hal/addons/storage/addon-storage.c
121
if (strncmp (path, devfs_path, len) != 0)
usr/src/cmd/hal/addons/storage/addon-storage.c
90
char *phys_path, *path;
usr/src/cmd/hal/hald-runner/runner.c
220
char *path = NULL;
usr/src/cmd/hal/hald-runner/runner.c
228
path = g_find_program_in_path (program);
usr/src/cmd/hal/hald-runner/runner.c
230
if (path == NULL)
usr/src/cmd/hal/hald-runner/runner.c
235
argv[0] = path;
usr/src/cmd/hal/hald/device_info.c
179
resolve_udiprop_path (const char *path, const char *source_udi,
usr/src/cmd/hal/hald/device_info.c
192
tokens = g_strsplit (path, ":", 64);
usr/src/cmd/hal/hald/device_info.c
197
strncpy (prop_result, path, prop_result_size);
usr/src/cmd/hal/hald/device_info.c
532
const char *path = NULL;
usr/src/cmd/hal/hald/device_info.c
545
path = hal_device_property_get_string (d, prop_to_check);
usr/src/cmd/hal/hald/device_info.c
546
if (g_path_is_absolute (path))
usr/src/cmd/hal/hald/hald.c
364
char *path;
usr/src/cmd/hal/hald/hald.c
380
path = getenv ("PATH");
usr/src/cmd/hal/hald/hald.c
381
if (path != NULL) {
usr/src/cmd/hal/hald/hald.c
382
g_strlcpy (newpath, path, sizeof (newpath));
usr/src/cmd/hal/hald/hald_dbus.c
3528
const char *path;
usr/src/cmd/hal/hald/hald_dbus.c
3535
path = dbus_message_get_path (message);
usr/src/cmd/hal/hald/hald_dbus.c
3546
if (strcmp (path, "/") == 0) {
usr/src/cmd/hal/hald/hald_dbus.c
3551
} else if (strcmp (path, "/org") == 0) {
usr/src/cmd/hal/hald/hald_dbus.c
3556
} else if (strcmp (path, "/org/freedesktop") == 0) {
usr/src/cmd/hal/hald/hald_dbus.c
3561
} else if (strcmp (path, "/org/freedesktop/Hal") == 0) {
usr/src/cmd/hal/hald/hald_dbus.c
3567
} else if (strcmp (path, "/org/freedesktop/Hal/devices") == 0) {
usr/src/cmd/hal/hald/hald_dbus.c
3573
} else if (strcmp (path, "/org/freedesktop/Hal/Manager") == 0) {
usr/src/cmd/hal/hald/hald_dbus.c
3616
d = hal_device_store_find (hald_get_gdl (), path);
usr/src/cmd/hal/hald/hald_dbus.c
3618
d = hal_device_store_find (hald_get_tdl (), path);
usr/src/cmd/hal/hald/hald_dbus.c
3621
raise_no_such_device (connection, message, path);
usr/src/cmd/hal/hald/hald_dbus.c
3777
if (strcmp (hih->udi, path) == 0) {
usr/src/cmd/hal/hald/hald_dbus.c
3808
name, ifname, path));
usr/src/cmd/hal/hald/ids.c
284
pci_ids_load (const char *path)
usr/src/cmd/hal/hald/ids.c
289
fp = fopen (path, "r");
usr/src/cmd/hal/hald/ids.c
291
HAL_ERROR (("couldn't open PCI database at %s,", path));
usr/src/cmd/hal/hald/ids.c
501
usb_ids_load (const char *path)
usr/src/cmd/hal/hald/ids.c
506
fp = fopen (path, "r");
usr/src/cmd/hal/hald/ids.c
508
printf ("couldn't open USB database at %s,", path);
usr/src/cmd/hal/hald/solaris/devinfo.c
414
char **path= (char **)arg;
usr/src/cmd/hal/hald/solaris/devinfo.c
416
*path = strdup(di_devlink_path(devlink));
usr/src/cmd/hal/hald/solaris/devinfo.c
42
devinfo_add(HalDevice *parent, gchar *path)
usr/src/cmd/hal/hald/solaris/devinfo.c
422
get_devlink(di_devlink_handle_t devlink_hdl, char *re, char *path)
usr/src/cmd/hal/hald/solaris/devinfo.c
426
(void) di_devlink_walk(devlink_hdl, re, path,
usr/src/cmd/hal/hald/solaris/devinfo.c
46
if (strcmp (path, "/") == 0) {
usr/src/cmd/hal/hald/solaris/devinfo.c
47
if ((root = di_init(path, DINFOCACHE)) == DI_NODE_NIL) {
usr/src/cmd/hal/hald/solaris/devinfo.c
52
if ((root = di_init(path, DINFOCPYALL)) == DI_NODE_NIL) {
usr/src/cmd/hal/hald/solaris/devinfo.h
53
void devinfo_add (HalDevice *parent, gchar *path);
usr/src/cmd/hal/hald/solaris/devinfo.h
61
void devinfo_remove (gchar *path);
usr/src/cmd/hal/hald/solaris/devinfo.h
62
void devinfo_remove_branch (gchar *path, HalDevice *d);
usr/src/cmd/hal/hald/solaris/devinfo.h
69
char *get_devlink(di_devlink_handle_t devlink_hdl, char *re, char *path);
usr/src/cmd/hal/hald/solaris/devinfo_storage.c
1402
is_dos_path(char *path, int *partnum)
usr/src/cmd/hal/hald/solaris/devinfo_storage.c
1406
if ((p = strrchr (path, ':')) == NULL) {
usr/src/cmd/hal/hald/solaris/devinfo_storage.c
1413
dos_to_dev(char *path, char **devpath, int *partnum)
usr/src/cmd/hal/hald/solaris/devinfo_storage.c
1417
if ((p = strrchr (path, ':')) == NULL) {
usr/src/cmd/hal/hald/solaris/devinfo_storage.c
1424
*devpath = strdup(path);
usr/src/cmd/hal/hald/solaris/devinfo_storage.c
84
static gboolean dos_to_dev(char *path, char **devpath, int *partnum);
usr/src/cmd/hal/hald/solaris/devinfo_storage.c
85
static gboolean is_dos_path(char *path, int *partnum);
usr/src/cmd/hal/hald/solaris/devinfo_usb.c
105
char path[MAXPATHLEN], lpath[MAXPATHLEN];
usr/src/cmd/hal/hald/solaris/devinfo_usb.c
107
strncpy(path, dir_name, strlen(dir_name));
usr/src/cmd/hal/hald/solaris/devinfo_usb.c
108
strncat(path, ep->d_name, strlen(ep->d_name));
usr/src/cmd/hal/hald/solaris/devinfo_usb.c
110
if ((readlink(path, lpath, sizeof (lpath)) > 0) &&
usr/src/cmd/hal/hald/solaris/devinfo_usb.c
112
result = strdup(path);
usr/src/cmd/hal/hald/solaris/devinfo_usb.c
115
memset(path, 0, sizeof (path));
usr/src/cmd/hal/hald/solaris/sysevent.c
415
gchar *path = NULL;
usr/src/cmd/hal/hald/solaris/sysevent.c
419
path = strdup (devfs_path);
usr/src/cmd/hal/hald/solaris/sysevent.c
420
p = strrchr (path, '/');
usr/src/cmd/hal/hald/solaris/sysevent.c
422
free (path);
usr/src/cmd/hal/hald/solaris/sysevent.c
429
"solaris.devfs_path", path);
usr/src/cmd/hal/hald/solaris/sysevent.c
434
"solaris.devfs_path", path);
usr/src/cmd/hal/hald/solaris/sysevent.c
437
free (path);
usr/src/cmd/hal/hald/util.c
123
hal_util_get_parent_path (const gchar *path)
usr/src/cmd/hal/hald/util.c
130
parent_path = g_strndup (path, HAL_PATH_MAX);
usr/src/cmd/hal/hald/util.c
178
gchar path[HAL_PATH_MAX];
usr/src/cmd/hal/hald/util.c
184
g_snprintf (path, sizeof (path), "%s/%s", directory, file);
usr/src/cmd/hal/hald/util.c
186
f = fopen (path, "rb");
usr/src/cmd/hal/hald/util.c
188
HAL_ERROR (("Cannot open '%s'", path));
usr/src/cmd/hal/hald/util.c
193
HAL_ERROR (("Cannot read from '%s'", path));
usr/src/cmd/hal/hald/util.c
228
gchar path[HAL_PATH_MAX];
usr/src/cmd/hal/hald/util.c
234
g_snprintf (path, sizeof (path), "%s/%s", directory, file);
usr/src/cmd/hal/hald/util.c
236
f = fopen (path, "rb");
usr/src/cmd/hal/hald/util.c
238
HAL_ERROR (("Cannot open '%s'", path));
usr/src/cmd/hal/hald/util.c
243
HAL_ERROR (("Cannot read from '%s'", path));
usr/src/cmd/hal/hald/util.c
278
gchar path[HAL_PATH_MAX];
usr/src/cmd/hal/hald/util.c
291
g_snprintf (path, sizeof (path), "%s/%s", directory, file);
usr/src/cmd/hal/hald/util.c
293
f = fopen (path, "rb");
usr/src/cmd/hal/hald/util.c
295
HAL_ERROR (("Cannot open '%s'", path));
usr/src/cmd/hal/hald/util.c
300
HAL_ERROR (("Cannot read from '%s'", path));
usr/src/cmd/hal/hald/util.c
368
gchar path[HAL_PATH_MAX];
usr/src/cmd/hal/hald/util.c
376
g_snprintf (path, sizeof (path), "%s/%s", directory, file);
usr/src/cmd/hal/hald/util.c
378
f = fopen (path, "rb");
usr/src/cmd/hal/hald/util.c
380
HAL_ERROR (("Cannot open '%s'", path));
usr/src/cmd/hal/hald/util.c
386
HAL_ERROR (("Cannot read from '%s'", path));
usr/src/cmd/hal/hald/util.c
457
hal_util_path_ascend (gchar *path)
usr/src/cmd/hal/hald/util.c
461
if (path == NULL)
usr/src/cmd/hal/hald/util.c
464
p = strrchr (path, '/');
usr/src/cmd/hal/hald/util.c
76
hal_util_remove_trailing_slash (gchar *path)
usr/src/cmd/hal/hald/util.c
80
if (path == NULL) {
usr/src/cmd/hal/hald/util.c
84
c = strrchr (path, '/');
usr/src/cmd/hal/hald/util.c
86
HAL_WARNING (("Invalid path %s", path));
usr/src/cmd/hal/hald/util.h
44
gboolean hal_util_remove_trailing_slash (gchar *path);
usr/src/cmd/hal/hald/util.h
48
gchar *hal_util_get_parent_path (const gchar *path);
usr/src/cmd/hal/hald/util.h
70
gboolean hal_util_path_ascend (gchar *path);
usr/src/cmd/hal/probing/printer/probe-printer.c
85
char path[MAXPATHLEN], lpath[MAXPATHLEN];
usr/src/cmd/hal/probing/printer/probe-printer.c
87
snprintf(path, sizeof (path), "/dev/printers/%s",
usr/src/cmd/hal/probing/printer/probe-printer.c
90
if ((readlink(path, lpath, sizeof (lpath)) > 0) &&
usr/src/cmd/hal/probing/printer/probe-printer.c
92
result = strdup(path);
usr/src/cmd/hal/utils/acpi.c
722
char path[HAL_PATH_MAX] = "/devices";
usr/src/cmd/hal/utils/acpi.c
733
strlcat(path, devfs_path, HAL_PATH_MAX);
usr/src/cmd/hal/utils/acpi.c
735
return (open(path, O_RDONLY | O_NONBLOCK));
usr/src/cmd/hal/utils/fsutils.c
38
dos_to_dev(char *path, char **devpath, int *num)
usr/src/cmd/hal/utils/fsutils.c
42
if ((p = strrchr(path, ':')) == NULL) {
usr/src/cmd/hal/utils/fsutils.c
49
*devpath = strdup(path);
usr/src/cmd/hal/utils/fsutils.h
18
boolean_t dos_to_dev(char *path, char **devpath, int *num);
usr/src/cmd/halt/halt.c
922
halt_exec(const char *path, ...)
usr/src/cmd/halt/halt.c
937
argv[0] = path;
usr/src/cmd/halt/halt.c
940
va_start(vp, path);
usr/src/cmd/halt/halt.c
950
(void) execve(path, (char * const *)argv, NULL);
usr/src/cmd/halt/halt.c
952
path, strerror(errno));
usr/src/cmd/hotplug/hotplug.c
1074
char path[MAXPATHLEN];
usr/src/cmd/hotplug/hotplug.c
1078
if (hp_path(node, path, connection) != 0)
usr/src/cmd/hotplug/hotplug.c
1080
(void) printf("%s", path);
usr/src/cmd/hotplug/hotplug.c
1116
static char path[MAXPATHLEN];
usr/src/cmd/hotplug/hotplug.c
1121
if (hp_path(node, path, connection) == 0)
usr/src/cmd/hotplug/hotplug.c
1122
(void) printf("%s:\n", path);
usr/src/cmd/hotplug/hotplug.c
246
char *path = NULL;
usr/src/cmd/hotplug/hotplug.c
267
parse_target(argc, argv, &path, &connection, usage_str);
usr/src/cmd/hotplug/hotplug.c
270
if (path == NULL)
usr/src/cmd/hotplug/hotplug.c
271
path = "/";
usr/src/cmd/hotplug/hotplug.c
274
if ((root = hp_init(path, connection, flags)) == NULL) {
usr/src/cmd/hotplug/hotplug.c
298
char *path = NULL;
usr/src/cmd/hotplug/hotplug.c
304
parse_target(argc, argv, &path, &connection, usage_str);
usr/src/cmd/hotplug/hotplug.c
307
if ((path == NULL) || (connection == NULL)) {
usr/src/cmd/hotplug/hotplug.c
314
if ((root = hp_init(path, connection, 0)) == NULL) {
usr/src/cmd/hotplug/hotplug.c
358
char *path = NULL;
usr/src/cmd/hotplug/hotplug.c
366
parse_target(argc, argv, &path, &connection, usage_str);
usr/src/cmd/hotplug/hotplug.c
369
if ((path == NULL) || (connection == NULL)) {
usr/src/cmd/hotplug/hotplug.c
376
if ((root = hp_init(path, connection, 0)) == NULL) {
usr/src/cmd/hotplug/hotplug.c
415
char *path = NULL;
usr/src/cmd/hotplug/hotplug.c
421
parse_target(argc, argv, &path, &connection, usage_str);
usr/src/cmd/hotplug/hotplug.c
424
if ((path == NULL) || (connection == NULL)) {
usr/src/cmd/hotplug/hotplug.c
431
if ((root = hp_init(path, connection, 0)) == NULL) {
usr/src/cmd/hotplug/hotplug.c
470
char *path = NULL;
usr/src/cmd/hotplug/hotplug.c
478
parse_target(argc, argv, &path, &connection, usage_str);
usr/src/cmd/hotplug/hotplug.c
481
if ((path == NULL) || (connection == NULL)) {
usr/src/cmd/hotplug/hotplug.c
488
if ((root = hp_init(path, connection, 0)) == NULL) {
usr/src/cmd/hotplug/hotplug.c
536
char *path = NULL;
usr/src/cmd/hotplug/hotplug.c
542
parse_target(argc, argv, &path, &connection, usage_str);
usr/src/cmd/hotplug/hotplug.c
545
if ((path == NULL) || (connection == NULL)) {
usr/src/cmd/hotplug/hotplug.c
552
if ((root = hp_init(path, connection, 0)) == NULL) {
usr/src/cmd/hotplug/hotplug.c
600
char *path = NULL;
usr/src/cmd/hotplug/hotplug.c
608
parse_target(argc, argv, &path, &connection, usage_str);
usr/src/cmd/hotplug/hotplug.c
611
if ((path == NULL) || (connection == NULL)) {
usr/src/cmd/hotplug/hotplug.c
618
if ((root = hp_init(path, connection, 0)) == NULL) {
usr/src/cmd/hotplug/hotplug.c
656
char *path = NULL;
usr/src/cmd/hotplug/hotplug.c
665
parse_target(argc, argv, &path, &connection, usage_str);
usr/src/cmd/hotplug/hotplug.c
668
if ((options == NULL) || (path == NULL) || (connection == NULL)) {
usr/src/cmd/hotplug/hotplug.c
675
if ((root = hp_init(path, connection, 0)) == NULL) {
usr/src/cmd/hotplug/hotplug.c
720
char *path = NULL;
usr/src/cmd/hotplug/hotplug.c
729
parse_target(argc, argv, &path, &connection, usage_str);
usr/src/cmd/hotplug/hotplug.c
732
if ((options == NULL) || (path == NULL) || (connection == NULL)) {
usr/src/cmd/hotplug/hotplug.c
739
if ((root = hp_init(path, connection, 0)) == NULL) {
usr/src/cmd/hotplug/hotplug.c
787
char *path = NULL;
usr/src/cmd/hotplug/hotplug.c
815
parse_target(argc, argv, &path, &connection, usage_str);
usr/src/cmd/hotplug/hotplug.c
818
if ((state == -1) || (path == NULL) || (connection == NULL)) {
usr/src/cmd/hotplug/hotplug.c
832
if ((root = hp_init(path, connection, 0)) == NULL) {
usr/src/cmd/hotplugd/hotplugd_door.c
294
char *path;
usr/src/cmd/hotplugd/hotplugd_door.c
304
if (nvlist_lookup_string(args, HPD_PATH, &path) != 0) {
usr/src/cmd/hotplugd/hotplugd_door.c
314
if ((rv = getinfo(path, connection, flags, &root)) == 0) {
usr/src/cmd/hotplugd/hotplugd_door.c
367
char *path, *connection;
usr/src/cmd/hotplugd/hotplugd_door.c
375
if ((nvlist_lookup_string(args, HPD_PATH, &path) != 0) ||
usr/src/cmd/hotplugd/hotplugd_door.c
393
audit_changestate(uc, HP_MODIFY_AUTH, path, connection,
usr/src/cmd/hotplugd/hotplugd_door.c
400
status = changestate(path, connection, state, flags, &old_state, &root);
usr/src/cmd/hotplugd/hotplugd_door.c
404
audit_changestate(uc, HP_MODIFY_AUTH, path, connection, state,
usr/src/cmd/hotplugd/hotplugd_door.c
466
char *path, *connection, *options;
usr/src/cmd/hotplugd/hotplugd_door.c
479
if ((nvlist_lookup_string(args, HPD_PATH, &path) != 0) ||
usr/src/cmd/hotplugd/hotplugd_door.c
490
audit_setprivate(uc, HP_MODIFY_AUTH, path, connection, options,
usr/src/cmd/hotplugd/hotplugd_door.c
497
status = private_options(path, connection, cmd, options, &values);
usr/src/cmd/hotplugd/hotplugd_door.c
502
audit_setprivate(uc, HP_MODIFY_AUTH, path, connection, options,
usr/src/cmd/hotplugd/hotplugd_door.c
647
audit_changestate(ucred_t *ucred, char *auth, char *path, char *connection,
usr/src/cmd/hotplugd/hotplugd_door.c
671
event->adt_hotplug_state.device_path = path;
usr/src/cmd/hotplugd/hotplugd_door.c
690
audit_setprivate(ucred_t *ucred, char *auth, char *path, char *connection,
usr/src/cmd/hotplugd/hotplugd_door.c
714
event->adt_hotplug_set.device_path = path;
usr/src/cmd/hotplugd/hotplugd_impl.c
134
if (modctl(MODHPOPS, MODHPOPS_CHANGE_STATE, path, connection, state))
usr/src/cmd/hotplugd/hotplugd_impl.c
166
private_options(const char *path, const char *connection, hp_cmd_t cmd,
usr/src/cmd/hotplugd/hotplugd_impl.c
175
path, connection, options);
usr/src/cmd/hotplugd/hotplugd_impl.c
199
if (modctl(MODHPOPS, MODHPOPS_BUS_GET, path, connection,
usr/src/cmd/hotplugd/hotplugd_impl.c
205
if (modctl(MODHPOPS, MODHPOPS_BUS_SET, path, connection,
usr/src/cmd/hotplugd/hotplugd_impl.c
64
changestate(const char *path, const char *connection, int state, uint_t flags,
usr/src/cmd/hotplugd/hotplugd_impl.c
73
"flags=0x%x)\n", path, connection, state, flags);
usr/src/cmd/hotplugd/hotplugd_impl.c
82
if ((rv = getinfo(path, connection, 0, &root)) != 0) {
usr/src/cmd/hotplugd/hotplugd_impl.h
64
int getinfo(const char *path, const char *connection, uint_t flags,
usr/src/cmd/hotplugd/hotplugd_impl.h
66
int changestate(const char *path, const char *connection, int state,
usr/src/cmd/hotplugd/hotplugd_impl.h
68
int private_options(const char *path, const char *connection,
usr/src/cmd/hotplugd/hotplugd_info.c
136
copy_devinfo(const char *path, const char *connection, uint_t flags,
usr/src/cmd/hotplugd/hotplugd_info.c
144
if ((di_root = di_init(path, DINFOSUBTREE | DINFOHP)) == DI_NODE_NIL)
usr/src/cmd/hotplugd/hotplugd_info.c
148
if (strcmp(path, "/") == 0) {
usr/src/cmd/hotplugd/hotplugd_info.c
372
base_path(const char *path)
usr/src/cmd/hotplugd/hotplugd_info.c
379
if (strncmp(path, S_DEVICES, devices_len) == 0)
usr/src/cmd/hotplugd/hotplugd_info.c
380
base_path = strdup(&path[devices_len]);
usr/src/cmd/hotplugd/hotplugd_info.c
382
base_path = strdup(path);
usr/src/cmd/hotplugd/hotplugd_info.c
68
getinfo(const char *path, const char *connection, uint_t flags, hp_node_t *retp)
usr/src/cmd/hotplugd/hotplugd_info.c
75
if ((path == NULL) || (retp == NULL))
usr/src/cmd/hotplugd/hotplugd_info.c
78
hp_dprintf("getinfo: path=%s, connection=%s, flags=0x%x\n", path,
usr/src/cmd/hotplugd/hotplugd_info.c
82
if ((basepath = base_path(path)) == NULL)
usr/src/cmd/hotplugd/hotplugd_rcm.c
396
if (hp_path(node, arg->path, arg->connection) != 0) {
usr/src/cmd/hotplugd/hotplugd_rcm.c
403
(void) snprintf(arg->dev_path, MAXPATHLEN, "/devices%s", arg->path);
usr/src/cmd/hotplugd/hotplugd_rcm.c
462
if ((rv = hp_path(node, arg->path, arg->connection)) != 0) {
usr/src/cmd/hotplugd/hotplugd_rcm.c
469
lookup.path = arg->path;
usr/src/cmd/hotplugd/hotplugd_rcm.c
49
char *path;
usr/src/cmd/hotplugd/hotplugd_rcm.c
526
char path[MAXPATHLEN];
usr/src/cmd/hotplugd/hotplugd_rcm.c
573
if ((rsrc2path(rsrc, path) == 0) &&
usr/src/cmd/hotplugd/hotplugd_rcm.c
574
((slot == NULL) || (strcmp(slot->path, path) != 0))) {
usr/src/cmd/hotplugd/hotplugd_rcm.c
576
if ((slot->path = strdup(path)) == NULL) {
usr/src/cmd/hotplugd/hotplugd_rcm.c
60
char path[MAXPATHLEN];
usr/src/cmd/hotplugd/hotplugd_rcm.c
637
if (table[index].path != NULL)
usr/src/cmd/hotplugd/hotplugd_rcm.c
638
free(table[index].path);
usr/src/cmd/hotplugd/hotplugd_rcm.c
659
rsrc2path(const char *rsrc, char *path)
usr/src/cmd/hotplugd/hotplugd_rcm.c
675
(void) strlcpy(path, &tmp[strlen(S_DEVICES)], MAXPATHLEN);
usr/src/cmd/hotplugd/hotplugd_rcm.c
678
if ((s = strrchr(path, ':')) != NULL)
usr/src/cmd/hotplugd/hotplugd_rcm.c
702
return (strcmp(slot_a->path, slot_b->path));
usr/src/cmd/hotplugd/hotplugd_rcm.c
72
char path[MAXPATHLEN];
usr/src/cmd/hotplugd/hotplugd_rcm.c
86
static int rsrc2path(const char *rsrc, char *path);
usr/src/cmd/i2cadm/i2cadm_device.c
103
if (len < pathlen && strncmp(path, filts[i], len) == 0) {
usr/src/cmd/i2cadm/i2cadm_device.c
46
const char *name, *path, *driver;
usr/src/cmd/i2cadm/i2cadm_device.c
54
path = i2c_device_info_path(info);
usr/src/cmd/i2cadm/i2cadm_device.c
55
pathlen = strlen(path);
usr/src/cmd/i2cadm/i2cadm_device.c
96
if (strcmp(path, filts[i]) == 0) {
usr/src/cmd/i2cadm/i2cadm_port.c
519
const char *type, *name, *path;
usr/src/cmd/i2cadm/i2cadm_port.c
526
path = i2c_port_path(arg->ipl_port);
usr/src/cmd/i2cadm/i2cadm_port.c
527
size_t pathlen = strlen(path);
usr/src/cmd/i2cadm/i2cadm_port.c
547
if (strcmp(filts[i], path) == 0) {
usr/src/cmd/i2cadm/i2cadm_port.c
554
if (len < pathlen && strncmp(path, filts[i], len) == 0) {
usr/src/cmd/idmap/idmapd/init.c
426
create_directory(const char *path, uid_t uid, gid_t gid)
usr/src/cmd/idmap/idmapd/init.c
430
if ((rc = mkdir(path, 0700)) < 0 && errno != EEXIST) {
usr/src/cmd/idmap/idmapd/init.c
432
path, strerror(errno));
usr/src/cmd/idmap/idmapd/init.c
436
if (lchown(path, uid, gid) < 0) {
usr/src/cmd/idmap/idmapd/init.c
438
path, strerror(errno));
usr/src/cmd/idmap/idmapd/init.c
440
(void) rmdir(path);
usr/src/cmd/iscsiadm/sun_ima.c
1175
char *path;
usr/src/cmd/iscsiadm/sun_ima.c
1310
warg.path = NULL;
usr/src/cmd/iscsiadm/sun_ima.c
1314
warg.path = lunpath;
usr/src/cmd/iscsiadm/sun_ima.c
1356
if (warg->path) {
usr/src/cmd/iscsiadm/sun_ima.c
1360
strncmp(start, warg->path, warg->len) != 0 ||
usr/src/cmd/keyserv/update.c
211
basename(char *path)
usr/src/cmd/keyserv/update.c
215
p = strrchr(path, '/');
usr/src/cmd/keyserv/update.c
217
return (path);
usr/src/cmd/keyserv/update.c
59
static char *basename(char *path);
usr/src/cmd/ktest/ktest.c
619
ktest_read_file(const char *path, uchar_t **bytes, size_t *len, char **err)
usr/src/cmd/ktest/ktest.c
621
FILE *fp = fopen(path, "r");
usr/src/cmd/lastcomm/lc_utils.c
149
srch_dir(char *path)
usr/src/cmd/lastcomm/lc_utils.c
156
if ((dirp = opendir(path)) == NULL)
usr/src/cmd/lastcomm/lc_utils.c
163
(void) strcpy(file_name, path);
usr/src/cmd/ldap/common/fileurl.c
102
if ( str_starts_with( path, "localhost/" )) {
usr/src/cmd/ldap/common/fileurl.c
103
path += 9;
usr/src/cmd/ldap/common/fileurl.c
109
--path;
usr/src/cmd/ldap/common/fileurl.c
117
if ( isalpha( path[1] ) && ( path[2] == '|' || path[2] == ':' )) {
usr/src/cmd/ldap/common/fileurl.c
118
++path;
usr/src/cmd/ldap/common/fileurl.c
126
if (( pathcopy = strdup( path )) == NULL ) {
usr/src/cmd/ldap/common/fileurl.c
171
ldaptool_path2fileurl( char *path, char **urlp )
usr/src/cmd/ldap/common/fileurl.c
175
if ( NULL == path ) {
usr/src/cmd/ldap/common/fileurl.c
176
path = "/";
usr/src/cmd/ldap/common/fileurl.c
183
if (( url = malloc( strlen( prefix ) + 3 * strlen( path ) + 1 )) == NULL ) {
usr/src/cmd/ldap/common/fileurl.c
195
if ( isalpha( path[0] ) && path[1] == ':' ) {
usr/src/cmd/ldap/common/fileurl.c
196
*p++ = path[0];
usr/src/cmd/ldap/common/fileurl.c
198
path += 2;
usr/src/cmd/ldap/common/fileurl.c
208
strcpy_escaped_and_convert( p, path );
usr/src/cmd/ldap/common/fileurl.c
262
char *path;
usr/src/cmd/ldap/common/fileurl.c
264
rc = ldaptool_fileurl2path( url, &path );
usr/src/cmd/ldap/common/fileurl.c
289
if ( stat( path, &fstats ) != 0 ) {
usr/src/cmd/ldap/common/fileurl.c
290
if ( reporterrs ) perror( path );
usr/src/cmd/ldap/common/fileurl.c
294
ldaptool_progname, path );
usr/src/cmd/ldap/common/fileurl.c
297
rc = berval_from_file( path, bvp, reporterrs );
usr/src/cmd/ldap/common/fileurl.c
299
free( path );
usr/src/cmd/ldap/common/fileurl.c
360
berval_from_file( const char *path, struct berval *bvp, int reporterrs )
usr/src/cmd/ldap/common/fileurl.c
371
if (( fp = fopen( path, mode )) == NULL ) {
usr/src/cmd/ldap/common/fileurl.c
373
if (( fp = ldaptool_open_file( path, mode )) == NULL ) {
usr/src/cmd/ldap/common/fileurl.c
375
if ( reporterrs ) perror( path );
usr/src/cmd/ldap/common/fileurl.c
380
if ( reporterrs ) perror( path );
usr/src/cmd/ldap/common/fileurl.c
394
if ( reporterrs ) perror( path );
usr/src/cmd/ldap/common/fileurl.c
403
if ( reporterrs ) perror( path );
usr/src/cmd/ldap/common/fileurl.c
49
static int berval_from_file( const char *path, struct berval *bvp,
usr/src/cmd/ldap/common/fileurl.c
78
const char *path;
usr/src/cmd/ldap/common/fileurl.c
88
path = fileurl + 5; /* skip past "file:" scheme prefix */
usr/src/cmd/ldap/common/fileurl.c
90
if ( *path != '/' ) {
usr/src/cmd/ldap/common/fileurl.c
94
++path; /* skip past '/' at end of "file:/" */
usr/src/cmd/ldap/common/fileurl.c
96
if ( *path == '/' ) {
usr/src/cmd/ldap/common/fileurl.c
97
++path; /* remainder is now host/path or /path */
usr/src/cmd/ldap/common/fileurl.c
98
if ( *path != '/' ) {
usr/src/cmd/ldap/common/fileurl.h
47
int ldaptool_path2fileurl( char *path, char **urlp );
usr/src/cmd/ldap/common/ldaptest.c
104
if (( fp = fopen( path, "r" )) == NULL ) {
usr/src/cmd/ldap/common/ldaptest.c
105
perror( path );
usr/src/cmd/ldap/common/ldaptest.c
110
perror( path );
usr/src/cmd/ldap/common/ldaptest.c
124
perror( path );
usr/src/cmd/ldap/common/ldaptest.c
134
perror( path );
usr/src/cmd/ldap/common/ldaptest.c
98
file_read( char *path, struct berval *bv )
usr/src/cmd/ldmad/ldma_device.c
112
if (stat(path, &st) != 0) {
usr/src/cmd/ldmad/ldma_device.c
115
path, errno);
usr/src/cmd/ldmad/ldma_device.c
145
LDMA_DBG("VALIDATE_PATH(%s): file mode = 0x%lx", path, st.st_mode);
usr/src/cmd/ldmad/ldma_device.c
164
if ((fd = open(path, O_RDWR)) != -1) {
usr/src/cmd/ldmad/ldma_device.c
169
path, errno);
usr/src/cmd/ldmad/ldma_device.c
172
if ((fd = open(path, O_RDONLY)) != -1) {
usr/src/cmd/ldmad/ldma_device.c
177
"with error %d", path, errno);
usr/src/cmd/ldmad/ldma_device.c
193
(path)? path : "<none>", status);
usr/src/cmd/ldmad/ldma_device.c
196
path, reply->msg_info, *path_type);
usr/src/cmd/ldmad/ldma_device.c
199
free(path);
usr/src/cmd/ldmad/ldma_device.c
77
char *path = NULL;
usr/src/cmd/ldmad/ldma_device.c
88
path = malloc(plen + 1);
usr/src/cmd/ldmad/ldma_device.c
89
if (path == NULL) {
usr/src/cmd/ldmad/ldma_device.c
94
(void) strncpy(path, LDMA_HDR2DATA(request), plen);
usr/src/cmd/ldmad/ldma_device.c
95
path[plen] = '\0';
usr/src/cmd/ldmad/ldma_device.c
97
LDMA_DBG("VALIDATE_PATH(%s)", path);
usr/src/cmd/ldmad/ldma_dio.c
205
di_prom_handle_t ph, di_node_t di, md_node_t *node, char *path)
usr/src/cmd/ldmad/ldma_dio.c
214
if (md_add_string_property(mdp, np, "dev_path", path) != 0)
usr/src/cmd/ldmad/ldma_dio.c
250
char *path;
usr/src/cmd/ldmad/ldma_dio.c
253
path = di_devfs_path(di_parent);
usr/src/cmd/ldmad/ldma_dio.c
254
if (path == NULL)
usr/src/cmd/ldmad/ldma_dio.c
257
md_node = link_device_node(mdp, ph, di_parent, md_parent, path);
usr/src/cmd/ldmad/ldma_dio.c
258
di_devfs_path_free(path);
usr/src/cmd/ldmad/ldma_dio.c
264
path = di_devfs_path(di_child);
usr/src/cmd/ldmad/ldma_dio.c
265
if (path != NULL) {
usr/src/cmd/ldmad/ldma_dio.c
267
ph, di_child, md_node, path);
usr/src/cmd/ldmad/ldma_dio.c
268
di_devfs_path_free(path);
usr/src/cmd/ldmad/ldma_dio.c
49
di_prom_handle_t ph, di_node_t di, md_node_t *node, char *path);
usr/src/cmd/listen/listen.c
1332
char *path;
usr/src/cmd/listen/listen.c
1343
path = *argvp;
usr/src/cmd/listen/listen.c
1476
execve(path, argvp, environ);
usr/src/cmd/listen/lsdbf.c
339
scan_dbf(path)
usr/src/cmd/listen/lsdbf.c
340
register char *path;
usr/src/cmd/listen/lsdbf.c
361
DEBUG((9, "In scan_dbf. Scanning data base file %s.", path));
usr/src/cmd/listen/lsdbf.c
363
if (!(dbfilep = fopen(path,"r"))) {
usr/src/cmd/listen/nlps_serv.c
620
char *path;
usr/src/cmd/listen/nlps_serv.c
646
path = *argvp;
usr/src/cmd/listen/nlps_serv.c
649
(dbp)?dbp->dbf_svc_code:DBF_SMB_CODE, path);
usr/src/cmd/listen/nlps_serv.c
770
execve(path, argvp, environ);
usr/src/cmd/lofiadm/main.c
339
make_blkdevname(struct lofi_ioctl *li, char *path, size_t len)
usr/src/cmd/lofiadm/main.c
346
(void) strlcpy(path, "unknown", len);
usr/src/cmd/lofiadm/main.c
348
(void) snprintf(path, len,
usr/src/cmd/lofiadm/main.c
352
(void) strlcpy(path, li->li_devpath, len);
usr/src/cmd/lofiadm/main.c
353
r1 = strchr(path, 'r');
usr/src/cmd/lofiadm/main.c
354
l1 = r1 - path;
usr/src/cmd/lofiadm/main.c
359
(void) strlcat(path, "p0", len);
usr/src/cmd/lofiadm/main.c
475
char path[MAXPATHLEN];
usr/src/cmd/lofiadm/main.c
480
make_blkdevname(&li, path, sizeof (path));
usr/src/cmd/lofiadm/main.c
483
(void) printf("%s\n", path);
usr/src/cmd/lofiadm/main.c
582
char path[MAXPATHLEN];
usr/src/cmd/lofiadm/main.c
601
make_blkdevname(&li, path, sizeof (path));
usr/src/cmd/lofiadm/main.c
635
(void) printf(FORMAT, path, li.li_filename, options);
usr/src/cmd/login/login.c
2257
(void) strlcat(path, DEF_PATH, sizeof (path));
usr/src/cmd/login/login.c
2259
ENVSTRNCAT(path, Def_path);
usr/src/cmd/login/login.c
233
static char path[MAXPATHLEN] = { "PATH=" };
usr/src/cmd/login/login.c
235
{home, path, logname, hertz, term, 0, 0};
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
729
static int root_can_write (path)
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
730
char *path;
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
739
if (lstat(path, &statbuf) == -1) {
usr/src/cmd/lp/cmd/lpadmin/chkopts.c
750
if (Stat(path, &statbuf) == -1) {
usr/src/cmd/lp/cmd/lpadmin/do_printer.c
625
char *path;
usr/src/cmd/lp/cmd/lpadmin/do_printer.c
636
path = makepath(cur_dir, str, (char *)0);
usr/src/cmd/lp/cmd/lpadmin/do_printer.c
643
return (path);
usr/src/cmd/lp/cmd/lpsched/disp1.c
1093
char *path;
usr/src/cmd/lp/cmd/lpsched/disp1.c
1122
path = makepath(Local_System, cp, NULL);
usr/src/cmd/lp/cmd/lpsched/disp1.c
1125
path = Strdup(cp);
usr/src/cmd/lp/cmd/lpsched/disp1.c
1130
path = makepath(file, NULL);
usr/src/cmd/lp/cmd/lpsched/disp1.c
1132
path = makepath(Local_System, file, NULL);
usr/src/cmd/lp/cmd/lpsched/disp1.c
1135
cp = strrchr(path, '/');
usr/src/cmd/lp/cmd/lpsched/disp1.c
1146
return (path);
usr/src/cmd/lp/cmd/lpsched/disp1.c
115
path = makepath(Lp_Tmp, req_file, (char *)0);
usr/src/cmd/lp/cmd/lpsched/disp1.c
116
(void) chownmod(path, Lp_Uid, Lp_Gid, 0644);
usr/src/cmd/lp/cmd/lpsched/disp1.c
117
Free(path);
usr/src/cmd/lp/cmd/lpsched/disp1.c
270
path = makepath(Lp_Temp, tmpName, (char *)0);
usr/src/cmd/lp/cmd/lpsched/disp1.c
272
if (stat(path, &tmpBuf) == 0) {
usr/src/cmd/lp/cmd/lpsched/disp1.c
275
"attribute file ='%s'", path);
usr/src/cmd/lp/cmd/lpsched/disp1.c
283
(void) chownmod(path, Lp_Uid,
usr/src/cmd/lp/cmd/lpsched/disp1.c
285
Free(path);
usr/src/cmd/lp/cmd/lpsched/disp1.c
343
char *path;
usr/src/cmd/lp/cmd/lpsched/disp1.c
390
path = makepath(Lp_Tmp, rp->req_file, (char *)0);
usr/src/cmd/lp/cmd/lpsched/disp1.c
391
(void) Chown(path, md->uid, rp->secure->gid);
usr/src/cmd/lp/cmd/lpsched/disp1.c
392
Free(path);
usr/src/cmd/lp/cmd/lpsched/disp1.c
409
path = makepath(Lp_Tmp, tmpName, (char *)0);
usr/src/cmd/lp/cmd/lpsched/disp1.c
411
if (stat(path, &tmpBuf) == 0) {
usr/src/cmd/lp/cmd/lpsched/disp1.c
414
path);
usr/src/cmd/lp/cmd/lpsched/disp1.c
420
(void) Chown(path, md->uid, rp->secure->gid);
usr/src/cmd/lp/cmd/lpsched/disp1.c
421
Free(path);
usr/src/cmd/lp/cmd/lpsched/disp1.c
455
char *path;
usr/src/cmd/lp/cmd/lpsched/disp1.c
472
path = makepath(Lp_Tmp, rp->req_file, (char *)0);
usr/src/cmd/lp/cmd/lpsched/disp1.c
473
(void) chownmod(path, Lp_Uid, Lp_Gid, 0644);
usr/src/cmd/lp/cmd/lpsched/disp1.c
474
Free(path);
usr/src/cmd/lp/cmd/lpsched/disp1.c
488
path = makepath(Lp_Tmp, tmpName, (char *)0);
usr/src/cmd/lp/cmd/lpsched/disp1.c
490
if (stat(path, &tmpBuf) == 0) {
usr/src/cmd/lp/cmd/lpsched/disp1.c
493
path);
usr/src/cmd/lp/cmd/lpsched/disp1.c
499
(void) chownmod(path, Lp_Uid, Lp_Gid, 0644);
usr/src/cmd/lp/cmd/lpsched/disp1.c
500
Free(path);
usr/src/cmd/lp/cmd/lpsched/disp1.c
83
char *path;
usr/src/cmd/lp/cmd/lpsched/exec.c
204
char *path = NULL;
usr/src/cmd/lp/cmd/lpsched/exec.c
529
path = makepath(Lp_Temp, tmpName, (char *)0);
usr/src/cmd/lp/cmd/lpsched/exec.c
530
if ((path != NULL) && (stat(path, &tmpBuf) == 0))
usr/src/cmd/lp/cmd/lpsched/exec.c
536
addenv(&envp, "ATTRPATH", path);
usr/src/cmd/lp/cmd/lpsched/exec.c
538
Free(path);
usr/src/cmd/lp/cmd/lpsched/exec.c
551
path = makepath(ETCDIR, "ppd", tmpName, (char *)0);
usr/src/cmd/lp/cmd/lpsched/exec.c
552
if ((path != NULL) && (stat(path, &tmpBuf) == 0))
usr/src/cmd/lp/cmd/lpsched/exec.c
554
addenv(&envp, "PPD", path);
usr/src/cmd/lp/cmd/lpsched/exec.c
556
Free(path);
usr/src/cmd/lp/cmd/lpsched/exec.c
907
path = makepath(Lp_Temp, tmpName, (char *)0);
usr/src/cmd/lp/cmd/lpsched/exec.c
908
if ((path != NULL) && (stat(path, &tmpBuf) == 0))
usr/src/cmd/lp/cmd/lpsched/exec.c
914
addenv(&envp, "ATTRPATH", path);
usr/src/cmd/lp/cmd/lpsched/exec.c
916
Free(path);
usr/src/cmd/lp/cmd/lpsched/exec.c
930
path = makepath(ETCDIR, "ppd", tmpName, (char *)0);
usr/src/cmd/lp/cmd/lpsched/exec.c
931
if ((path != NULL) && (stat(path, &tmpBuf) == 0))
usr/src/cmd/lp/cmd/lpsched/exec.c
933
addenv(&envp, "PPD", path);
usr/src/cmd/lp/cmd/lpsched/exec.c
935
Free(path);
usr/src/cmd/lp/cmd/lpsched/files.c
117
char *path;
usr/src/cmd/lp/cmd/lpsched/files.c
136
path = makepath(Lp_Requests, rp->req_file, (char *)0);
usr/src/cmd/lp/cmd/lpsched/files.c
137
(void) Unlink(path);
usr/src/cmd/lp/cmd/lpsched/files.c
138
Free(path);
usr/src/cmd/lp/cmd/lpsched/files.c
144
path = makepath(Lp_Tmp, rp->req_file, (char *)0);
usr/src/cmd/lp/cmd/lpsched/files.c
148
if ((fd >= 0) && (reqfd = Open(path, O_RDONLY, 0)) != -1) {
usr/src/cmd/lp/cmd/lpsched/files.c
168
(void)Unlink (path); /* remove request file */
usr/src/cmd/lp/cmd/lpsched/files.c
169
Free (path);
usr/src/cmd/lp/cmd/lpsched/files.c
174
path = makepath(Lp_Tmp, p, NULL);
usr/src/cmd/lp/cmd/lpsched/files.c
175
(void) Unlink(path);
usr/src/cmd/lp/cmd/lpsched/files.c
176
Free(path);
usr/src/cmd/lp/cmd/lpsched/files.c
184
path = makepath(Lp_Temp, tmpName, (char *)0);
usr/src/cmd/lp/cmd/lpsched/files.c
186
if (((path != NULL) && (idno != NULL)) && (stat(path, &tmpBuf) == 0))
usr/src/cmd/lp/cmd/lpsched/files.c
189
(void) Unlink(path);
usr/src/cmd/lp/cmd/lpsched/files.c
193
Free(path);
usr/src/cmd/lp/cmd/lpsched/files.c
228
path = makestr(Lp_Temp, "/F", p, "-", num, (char *)0);
usr/src/cmd/lp/cmd/lpsched/files.c
229
Unlink(path);
usr/src/cmd/lp/cmd/lpsched/files.c
230
Free(path);
usr/src/cmd/lp/cmd/lpsched/files.c
236
path = makepath(Lp_Temp, p, (char *)0);
usr/src/cmd/lp/cmd/lpsched/files.c
237
(void) Unlink(path);
usr/src/cmd/lp/cmd/lpsched/files.c
238
Free(path);
usr/src/cmd/lp/cmd/lpsched/log.c
43
char path[80];
usr/src/cmd/lp/cmd/lpsched/log.c
45
snprintf(path, sizeof (path), "%s/%s", Lp_Logs, name);
usr/src/cmd/lp/cmd/lpsched/log.c
46
return (open_locked(path, "a", 0640));
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
219
char *path,
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
236
if ((err = va_makepath(&ap, &path)) < 0)
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
237
fail ("\"%s\" is a truncated name!\n", path);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
239
exist = (stat(path, &stbuf) == 0);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
245
fail ("%s is missing!\n", path);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
248
Symlink (path, symbolic);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
250
Free (path);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
256
fail ("%s is not a directory!\n", path);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
258
Unlink (path);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
263
Mkdir (path, 0);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
269
fail ("%s is not a file!\n", path);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
271
Unlink (path);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
276
Close(Creat(path, 0));
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
286
fail ("%s is not a file or pipe!\n", path);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
288
Unlink (path);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
293
Close(Creat(path, 0));
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
301
(void) chownmod(path, uid, gid, mode);
usr/src/cmd/lp/cmd/lpsched/lpfsck.c
303
Free (path);
usr/src/cmd/lp/filter/postscript/download/download.c
261
char *path;
usr/src/cmd/lp/filter/postscript/download/download.c
281
if ( (path = malloc(strlen(hostfontdir) + strlen(mapname) +
usr/src/cmd/lp/filter/postscript/download/download.c
284
sprintf(path, "%s/%s%s", hostfontdir, mapname, suffix);
usr/src/cmd/lp/filter/postscript/download/download.c
285
} else path = mapname;
usr/src/cmd/lp/filter/postscript/download/download.c
287
if ( (fd = open(path, 0)) != -1 ) {
usr/src/cmd/lp/filter/postscript/download/download.c
289
error(FATAL, "can't fstat %s", path);
usr/src/cmd/lp/filter/postscript/download/download.c
293
error(FATAL, "can't read %s", path);
usr/src/cmd/lp/filter/postscript/download/download.c
312
error(FATAL, "map table format error - check %s", path);
usr/src/cmd/lp/filter/postscript/download/download.c
324
char *path;
usr/src/cmd/lp/filter/postscript/download/download.c
342
path = buf;
usr/src/cmd/lp/filter/postscript/download/download.c
343
} else path = residentfonts;
usr/src/cmd/lp/filter/postscript/download/download.c
345
if ( (fp = fopen(path, "r")) != NULL ) {
usr/src/cmd/lp/filter/postscript/download/download.c
464
char *path;
usr/src/cmd/lp/filter/postscript/download/download.c
485
if ( (path = malloc(strlen(hostfontdir)+strlen(map[n].file)+2)) == NULL )
usr/src/cmd/lp/filter/postscript/download/download.c
487
sprintf(path, "%s/%s", hostfontdir, map[n].file);
usr/src/cmd/lp/filter/postscript/download/download.c
488
cat(path);
usr/src/cmd/lp/filter/postscript/download/download.c
489
free(path);
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
882
char *path; /* start of the pathname */
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
897
for ( path = name; *path; path++ )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
898
if ( *path == ':' || *path == ' ' ) {
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
899
while ( *path == ':' || *path == ' ' ) path++;
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
903
if ( *path == '\0' ) /* didn't find a "name:" prefix */
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
904
path = name;
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
906
if ( path == name || strncmp(name, "prologue", strlen("prologue")) == 0 )
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
907
prologue = path;
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
909
drawfile = path;
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
911
colorfile = path;
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
913
formfile = path;
usr/src/cmd/lp/filter/postscript/dpost/dpost.c
915
baselinefile = path;
usr/src/cmd/lp/filter/postscript/dpost/pictures.c
207
picopen(char *path)
usr/src/cmd/lp/filter/postscript/dpost/pictures.c
231
if ( strcmp(path, name) == 0 ) {
usr/src/cmd/lp/filter/postscript/dpost/pictures.c
246
return(fopen(path, "r"));
usr/src/cmd/lp/lib/class/delclass.c
78
char *path;
usr/src/cmd/lp/lib/class/delclass.c
80
if (!(path = getclassfile(name)))
usr/src/cmd/lp/lib/class/delclass.c
82
if (rmfile(path) == -1) {
usr/src/cmd/lp/lib/class/delclass.c
83
Free (path);
usr/src/cmd/lp/lib/class/delclass.c
86
Free (path);
usr/src/cmd/lp/lib/forms/delform.c
105
if (!(path = getformfile(name, (char *)0)))
usr/src/cmd/lp/lib/forms/delform.c
107
if (Rmdir(path) == -1) {
usr/src/cmd/lp/lib/forms/delform.c
108
Free (path);
usr/src/cmd/lp/lib/forms/delform.c
111
Free (path);
usr/src/cmd/lp/lib/forms/delform.c
88
register char *path;
usr/src/cmd/lp/lib/forms/delform.c
90
#define RMFILE(X) if (!(path = getformfile(name, X))) \
usr/src/cmd/lp/lib/forms/delform.c
92
if (rmfile(path) == -1) { \
usr/src/cmd/lp/lib/forms/delform.c
93
Free (path); \
usr/src/cmd/lp/lib/forms/delform.c
96
Free (path)
usr/src/cmd/lp/lib/forms/getform.c
133
path = getformfile(name, ALIGN_PTRN);
usr/src/cmd/lp/lib/forms/getform.c
134
if (!path) {
usr/src/cmd/lp/lib/forms/getform.c
140
!(*align_fp = open_lpfile(path, "r", 0))
usr/src/cmd/lp/lib/forms/getform.c
143
Free (path);
usr/src/cmd/lp/lib/forms/getform.c
147
Free (path);
usr/src/cmd/lp/lib/forms/getform.c
54
register char * path;
usr/src/cmd/lp/lib/forms/getform.c
77
path = getformfile(name, DESCRIBE);
usr/src/cmd/lp/lib/forms/getform.c
78
if (!path)
usr/src/cmd/lp/lib/forms/getform.c
80
if ((fd = open_locked(path, "r", 0)) < 0) {
usr/src/cmd/lp/lib/forms/getform.c
81
Free (path);
usr/src/cmd/lp/lib/forms/getform.c
84
Free (path);
usr/src/cmd/lp/lib/forms/putform.c
126
if (!(path = getformfile(name, ALIGN_PTRN)))
usr/src/cmd/lp/lib/forms/putform.c
128
if ((fd = open_locked(path, "w", MODE_READ)) < 0) {
usr/src/cmd/lp/lib/forms/putform.c
129
Free (path);
usr/src/cmd/lp/lib/forms/putform.c
140
Unlink(path);
usr/src/cmd/lp/lib/forms/putform.c
142
Free(path);
usr/src/cmd/lp/lib/forms/putform.c
49
register char * path;
usr/src/cmd/lp/lib/forms/putform.c
70
if (!(path = getformfile(name, (char *)0)))
usr/src/cmd/lp/lib/forms/putform.c
72
if (Stat(path, &statbuf) == 0) {
usr/src/cmd/lp/lib/forms/putform.c
74
Free (path);
usr/src/cmd/lp/lib/forms/putform.c
78
} else if (errno != ENOENT || mkdir_lpdir(path, MODE_DIR) == -1) {
usr/src/cmd/lp/lib/forms/putform.c
79
Free (path);
usr/src/cmd/lp/lib/forms/putform.c
82
Free (path);
usr/src/cmd/lp/lib/forms/putform.c
89
if (!(path = getformfile(name, DESCRIBE)))
usr/src/cmd/lp/lib/forms/putform.c
91
if ((fd = open_locked(path, "w", MODE_READ)) < 0) {
usr/src/cmd/lp/lib/forms/putform.c
92
Free (path);
usr/src/cmd/lp/lib/forms/putform.c
95
Free (path);
usr/src/cmd/lp/lib/forms/rdform.c
357
char * path;
usr/src/cmd/lp/lib/forms/rdform.c
360
if (!(path = getformfile(name, COMMENTFILE))) {
usr/src/cmd/lp/lib/forms/rdform.c
366
!(formp->comment = loadstring(path))
usr/src/cmd/lp/lib/forms/rdform.c
369
Free (path);
usr/src/cmd/lp/lib/forms/rdform.c
373
Free (path);
usr/src/cmd/lp/lib/forms/wrform.c
159
char * path;
usr/src/cmd/lp/lib/forms/wrform.c
162
if (!(path = getformfile(name, COMMENT)))
usr/src/cmd/lp/lib/forms/wrform.c
166
if (dumpstring(path, formp->comment) == -1) {
usr/src/cmd/lp/lib/forms/wrform.c
167
Free (path);
usr/src/cmd/lp/lib/forms/wrform.c
172
Unlink (path);
usr/src/cmd/lp/lib/forms/wrform.c
174
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
113
if (!(path = makepath(parent, name, (char *)0)))
usr/src/cmd/lp/lib/lp/alerts.c
116
if (Access(path, F_OK) == -1) {
usr/src/cmd/lp/lib/lp/alerts.c
119
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
122
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
128
if (!(path = makepath(parent, name, ALERTSHFILE, (char *)0)))
usr/src/cmd/lp/lib/lp/alerts.c
131
if ((fdout = open_locked(path, "w", MODE_NOEXEC)) < 0) {
usr/src/cmd/lp/lib/lp/alerts.c
132
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
135
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
151
if (!(path = makepath(Lp_Bin, ALERTPROTOFILE, (char *)0)))
usr/src/cmd/lp/lib/lp/alerts.c
154
if ((fdin = open_locked(path, "r", 0)) < 0) {
usr/src/cmd/lp/lib/lp/alerts.c
155
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
158
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
246
if (!(path = makepath(parent, name, ALERTVARSFILE, (char *)0)))
usr/src/cmd/lp/lib/lp/alerts.c
249
if ((fdout = open_locked(path, "w", MODE_NOREAD)) < 0) {
usr/src/cmd/lp/lib/lp/alerts.c
250
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
253
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
273
register char *path;
usr/src/cmd/lp/lib/lp/alerts.c
286
if (!(path = makepath(parent, name, (char *)0)))
usr/src/cmd/lp/lib/lp/alerts.c
289
if (Access(path, F_OK) == -1) {
usr/src/cmd/lp/lib/lp/alerts.c
292
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
295
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
301
if (!(path = makepath(parent, name, ALERTSHFILE, (char *)0)))
usr/src/cmd/lp/lib/lp/alerts.c
304
if ((fd = open_locked(path, "r", 0)) < 0) {
usr/src/cmd/lp/lib/lp/alerts.c
305
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
308
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
344
if (!(path = makepath(parent, name, ALERTVARSFILE, (char *)0)))
usr/src/cmd/lp/lib/lp/alerts.c
347
if ((fd = open_locked(path, "r", 0)) < 0) {
usr/src/cmd/lp/lib/lp/alerts.c
348
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
351
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
386
char *path;
usr/src/cmd/lp/lib/lp/alerts.c
398
if (!(path = makepath(parent, name, (char *)0)))
usr/src/cmd/lp/lib/lp/alerts.c
401
if (Access(path, F_OK) == -1) {
usr/src/cmd/lp/lib/lp/alerts.c
404
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
407
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
413
if (!(path = makepath(parent, name, ALERTSHFILE, (char *)0)))
usr/src/cmd/lp/lib/lp/alerts.c
415
if (rmfile(path) == -1) {
usr/src/cmd/lp/lib/lp/alerts.c
416
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
419
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
421
if (!(path = makepath(parent, name, ALERTVARSFILE, (char *)0)))
usr/src/cmd/lp/lib/lp/alerts.c
423
if (rmfile(path) == -1) {
usr/src/cmd/lp/lib/lp/alerts.c
424
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
427
Free (path);
usr/src/cmd/lp/lib/lp/alerts.c
87
char *path,
usr/src/cmd/lp/lib/lp/dirs.c
41
char * path,
usr/src/cmd/lp/lib/lp/dirs.c
45
mkdir_lpdir (path, mode)
usr/src/cmd/lp/lib/lp/dirs.c
46
char *path;
usr/src/cmd/lp/lib/lp/dirs.c
55
ret = Mkdir(path, mode);
usr/src/cmd/lp/lib/lp/dirs.c
57
ret = chown_lppath(path);
usr/src/cmd/lp/lib/lp/files.c
122
open_locked(char *path, char *type, mode_t mode)
usr/src/cmd/lp/lib/lp/files.c
130
if (!path || !type) {
usr/src/cmd/lp/lib/lp/files.c
154
if ((fd = Open(path, oflag, mode)) == -1)
usr/src/cmd/lp/lib/lp/files.c
159
if ((fd = Open(path, oflag|O_CREAT, mode)) != -1)
usr/src/cmd/lp/lib/lp/files.c
160
chown_lppath(path);
usr/src/cmd/lp/lib/lp/files.c
203
open_lpfile(char *path, char *type, mode_t mode)
usr/src/cmd/lp/lib/lp/files.c
208
if ((fd = open_locked(path, type, mode)) >= 0) {
usr/src/cmd/lp/lib/lp/files.c
227
chown_lppath(char *path)
usr/src/cmd/lp/lib/lp/files.c
248
return (Chown(path, lp_uid, lp_gid));
usr/src/cmd/lp/lib/lp/files.c
256
rmfile(char *path)
usr/src/cmd/lp/lib/lp/files.c
258
return (Unlink(path) == 0 || errno == ENOENT);
usr/src/cmd/lp/lib/lp/files.c
266
loadline(char *path)
usr/src/cmd/lp/lib/lp/files.c
273
if ((fd = open_locked(path, "r", MODE_READ)) < 0)
usr/src/cmd/lp/lib/lp/files.c
295
loadstring(char *path)
usr/src/cmd/lp/lib/lp/files.c
301
if ((fd = open_locked(path, "r", MODE_READ)) < 0)
usr/src/cmd/lp/lib/lp/files.c
319
dumpstring(char *path, char *str)
usr/src/cmd/lp/lib/lp/files.c
324
return (rmfile(path));
usr/src/cmd/lp/lib/lp/files.c
326
if ((fd = open_locked(path, "w", MODE_READ)) < 0)
usr/src/cmd/lp/lib/lp/files.c
67
chownmod(char *path, uid_t owner, gid_t group, mode_t mode)
usr/src/cmd/lp/lib/lp/files.c
71
if ((rc = Chown(path, owner, group)) == 0)
usr/src/cmd/lp/lib/lp/files.c
72
rc = Chmod(path, mode);
usr/src/cmd/lp/lib/lp/getpaths.c
100
char *path;
usr/src/cmd/lp/lib/lp/getpaths.c
105
path = makepath(Lp_A_Systems, name, component, NULL);
usr/src/cmd/lp/lib/lp/getpaths.c
107
return (path);
usr/src/cmd/lp/lib/lp/getpaths.c
117
char *path;
usr/src/cmd/lp/lib/lp/getpaths.c
122
path = makepath(Lp_A_Classes, name, NULL);
usr/src/cmd/lp/lib/lp/getpaths.c
124
return (path);
usr/src/cmd/lp/lib/lp/getpaths.c
134
char *path;
usr/src/cmd/lp/lib/lp/getpaths.c
139
path = makepath(ETCDIR, table, NULL);
usr/src/cmd/lp/lib/lp/getpaths.c
141
return (path);
usr/src/cmd/lp/lib/lp/getpaths.c
151
char *path;
usr/src/cmd/lp/lib/lp/getpaths.c
156
path = makepath(Lp_A_Forms, name, component, NULL);
usr/src/cmd/lp/lib/lp/getpaths.c
158
return (path);
usr/src/cmd/lp/lib/lp/getpaths.c
83
char *path;
usr/src/cmd/lp/lib/lp/getpaths.c
88
path = makepath(Lp_A_Printers, name, component, NULL);
usr/src/cmd/lp/lib/lp/getpaths.c
90
return (path);
usr/src/cmd/lp/lib/lp/isterminfo.c
178
char *path,
usr/src/cmd/lp/lib/lp/isterminfo.c
189
if (!(path = makepath(parent, type_letter, type, (char *)0)))
usr/src/cmd/lp/lib/lp/isterminfo.c
193
if (!(fd = Open(path, O_RDONLY))) {
usr/src/cmd/lp/lib/lp/isterminfo.c
201
if (errno == EMFILE && Access(path, R_OK) == 0)
usr/src/cmd/lp/lib/lp/isterminfo.c
219
ret = (Access(path, R_OK) == 0);
usr/src/cmd/lp/lib/lp/isterminfo.c
222
Free (path);
usr/src/cmd/lp/lib/lp/next.c
110
char *path;
usr/src/cmd/lp/lib/lp/next.c
114
if (!(path = makepath(parent, name, (char *)0)))
usr/src/cmd/lp/lib/lp/next.c
116
if (Stat(path, &statbuf) == -1) {
usr/src/cmd/lp/lib/lp/next.c
117
Free (path);
usr/src/cmd/lp/lib/lp/next.c
120
Free (path);
usr/src/cmd/lp/lib/lp/tidbit.c
442
*path;
usr/src/cmd/lp/lib/lp/tidbit.c
447
path = makepath(terminfo, first_letter, term, (char *)0);
usr/src/cmd/lp/lib/lp/tidbit.c
450
if (path == NULL) {
usr/src/cmd/lp/lib/lp/tidbit.c
455
fd = Open(path, 0);
usr/src/cmd/lp/lib/lp/tidbit.c
456
Free(path);
usr/src/cmd/lp/lib/lp/which.c
53
char *path = 0;
usr/src/cmd/lp/lib/lp/which.c
60
&& (path = getprinterfile(str, CONFIGFILE))
usr/src/cmd/lp/lib/lp/which.c
61
&& Access(path, F_OK) == 0
usr/src/cmd/lp/lib/lp/which.c
63
if (path)
usr/src/cmd/lp/lib/lp/which.c
64
Free (path);
usr/src/cmd/lp/lib/lp/which.c
82
char *path = 0;
usr/src/cmd/lp/lib/lp/which.c
89
&& (path = getclassfile(str))
usr/src/cmd/lp/lib/lp/which.c
90
&& Access(path, F_OK) == 0
usr/src/cmd/lp/lib/lp/which.c
92
if (path)
usr/src/cmd/lp/lib/lp/which.c
93
Free (path);
usr/src/cmd/lp/lib/msgs/mconnect.c
56
MESG * mconnect ( char * path, int id1, int id2 )
usr/src/cmd/lp/lib/msgs/mconnect.c
59
char *path;
usr/src/cmd/lp/lib/msgs/mconnect.c
77
if (path)
usr/src/cmd/lp/lib/msgs/mconnect.c
87
Again: if (stat(path, &stbuf) == -1)
usr/src/cmd/lp/lib/msgs/mconnect.c
96
if ((fd = Open(path, O_RDWR, 0)) == -1)
usr/src/cmd/lp/lib/msgs/mconnect.c
97
if ((fd = Open(path, O_WRONLY, 0)) == -1)
usr/src/cmd/lp/lib/msgs/mcreate.c
40
MESG * mcreate ( char * path )
usr/src/cmd/lp/lib/msgs/mcreate.c
42
MESG * mcreate (path)
usr/src/cmd/lp/lib/msgs/mcreate.c
43
char *path;
usr/src/cmd/lp/lib/msgs/mcreate.c
57
if (fattach(fds[1], path) != 0)
usr/src/cmd/lp/lib/msgs/mcreate.c
65
md->file = Strdup(path);
usr/src/cmd/lp/lib/papi/job.c
1369
char path[MAXPATHLEN];
usr/src/cmd/lp/lib/papi/job.c
1377
snprintf(path, sizeof (path), "/var/spool/lp/temp/%d-XXXXXX", id);
usr/src/cmd/lp/lib/papi/job.c
1378
if ((s->fd = mkstemp(path)) < 0) {
usr/src/cmd/lp/lib/papi/job.c
1380
path, strerror(errno));
usr/src/cmd/lp/lib/papi/job.c
1390
unlink(path);
usr/src/cmd/lp/lib/papi/job.c
1399
unlink(path);
usr/src/cmd/lp/lib/papi/job.c
1403
addlist(&(s->request->file_list), path);
usr/src/cmd/lp/lib/papi/job.c
1410
unlink(path);
usr/src/cmd/lp/lib/papi/job.c
700
char path[MAXPATHLEN];
usr/src/cmd/lp/lib/papi/job.c
702
if (getcwd(path, sizeof (path)) == NULL) {
usr/src/cmd/lp/lib/papi/job.c
709
strlcat(path, "/", sizeof (path));
usr/src/cmd/lp/lib/papi/job.c
710
if (strlcat(path, files[file_no], sizeof (path))
usr/src/cmd/lp/lib/papi/job.c
711
>= sizeof (path)) {
usr/src/cmd/lp/lib/papi/job.c
717
addlist(&file_list, path);
usr/src/cmd/lp/lib/papi/lpsched-misc.c
121
char path[32];
usr/src/cmd/lp/lib/papi/lpsched-misc.c
123
snprintf(path, sizeof (path), "%d-0", id);
usr/src/cmd/lp/lib/papi/lpsched-misc.c
124
if ((request = getrequest(path)) != NULL)
usr/src/cmd/lp/lib/papi/service.c
42
char *path = Lp_FIFO;
usr/src/cmd/lp/lib/papi/service.c
50
svc->md = mconnect(path, 0, 0);
usr/src/cmd/lp/lib/printers/delprinter.c
103
#define RMFILE(X) if (!(path = getprinterfile(name, X))) \
usr/src/cmd/lp/lib/printers/delprinter.c
105
if (rmfile(path) == -1) { \
usr/src/cmd/lp/lib/printers/delprinter.c
106
Free (path); \
usr/src/cmd/lp/lib/printers/delprinter.c
109
Free (path)
usr/src/cmd/lp/lib/printers/delprinter.c
121
if (!(path = makepath(Lp_A_Interfaces, name, (char *)0)))
usr/src/cmd/lp/lib/printers/delprinter.c
123
if (rmfile(path) == -1) {
usr/src/cmd/lp/lib/printers/delprinter.c
124
Free (path);
usr/src/cmd/lp/lib/printers/delprinter.c
127
Free (path);
usr/src/cmd/lp/lib/printers/delprinter.c
133
if (!(path = makepath(ETCDIR, "ppd", ppdfile, (char *)0)))
usr/src/cmd/lp/lib/printers/delprinter.c
137
if (rmfile(path) == -1)
usr/src/cmd/lp/lib/printers/delprinter.c
139
Free(path);
usr/src/cmd/lp/lib/printers/delprinter.c
142
Free(path);
usr/src/cmd/lp/lib/printers/delprinter.c
145
if (!(path = getprinterfile(name, (char *)0)))
usr/src/cmd/lp/lib/printers/delprinter.c
147
if (Rmdir(path) == -1) {
usr/src/cmd/lp/lib/printers/delprinter.c
148
Free (path);
usr/src/cmd/lp/lib/printers/delprinter.c
151
Free (path);
usr/src/cmd/lp/lib/printers/delprinter.c
98
register char *path;
usr/src/cmd/lp/lib/printers/getpentry.c
103
if ((fd = open_locked(path, "r", 0)) < 0) {
usr/src/cmd/lp/lib/printers/getpentry.c
104
Free(path);
usr/src/cmd/lp/lib/printers/getpentry.c
119
Free(path);
usr/src/cmd/lp/lib/printers/getpentry.c
59
register char * path;
usr/src/cmd/lp/lib/printers/getpentry.c
96
path = getprinterfile(name, CONFIGFILE);
usr/src/cmd/lp/lib/printers/getpentry.c
97
if (!path) {
usr/src/cmd/lp/lib/printers/getprinter.c
108
path = getprinterfile(name, CONFIGFILE);
usr/src/cmd/lp/lib/printers/getprinter.c
109
if (!path) {
usr/src/cmd/lp/lib/printers/getprinter.c
115
if ((fd = open_locked(path, "r", 0)) < 0) {
usr/src/cmd/lp/lib/printers/getprinter.c
116
Free(path); /*
usr/src/cmd/lp/lib/printers/getprinter.c
129
Free (path);
usr/src/cmd/lp/lib/printers/getprinter.c
298
if (!(path = getprinterfile(prp->name, COMMENTFILE)))
usr/src/cmd/lp/lib/printers/getprinter.c
300
if (!(prp->description = loadstring(path)) && errno != ENOENT) {
usr/src/cmd/lp/lib/printers/getprinter.c
301
Free (path);
usr/src/cmd/lp/lib/printers/getprinter.c
305
Free (path);
usr/src/cmd/lp/lib/printers/getprinter.c
72
register char * path;
usr/src/cmd/lp/lib/printers/okprinter.c
128
canread(char *path)
usr/src/cmd/lp/lib/printers/okprinter.c
130
return ((access(path, R_OK) < 0) ? 0 : 1);
usr/src/cmd/lp/lib/printers/okprinter.c
138
register char *path;
usr/src/cmd/lp/lib/printers/okprinter.c
145
if (!(path = makepath(Lp_A_Interfaces, name, (char *)0)))
usr/src/cmd/lp/lib/printers/okprinter.c
148
ret = canread(path);
usr/src/cmd/lp/lib/printers/okprinter.c
149
Free (path);
usr/src/cmd/lp/lib/printers/printwheels.c
116
register char *path;
usr/src/cmd/lp/lib/printers/printwheels.c
135
if (!(path = makepath(Lp_A_PrintWheels, name, (char *)0)))
usr/src/cmd/lp/lib/printers/printwheels.c
137
if (Stat(path, &statbuf) == 0) {
usr/src/cmd/lp/lib/printers/printwheels.c
139
Free (path);
usr/src/cmd/lp/lib/printers/printwheels.c
143
} else if (errno != ENOENT || mkdir_lpdir(path, MODE_DIR) == -1) {
usr/src/cmd/lp/lib/printers/printwheels.c
144
Free (path);
usr/src/cmd/lp/lib/printers/printwheels.c
147
Free (path);
usr/src/cmd/lp/lib/printers/printwheels.c
210
register char *path;
usr/src/cmd/lp/lib/printers/printwheels.c
214
if (!(path = makepath(Lp_A_PrintWheels, name, (char *)0)))
usr/src/cmd/lp/lib/printers/printwheels.c
216
if (Rmdir(path)) {
usr/src/cmd/lp/lib/printers/printwheels.c
217
Free (path);
usr/src/cmd/lp/lib/printers/printwheels.c
220
Free (path);
usr/src/cmd/lp/lib/printers/putprinter.c
136
if (!(path = getprinterfile(name, (char *)0)))
usr/src/cmd/lp/lib/printers/putprinter.c
138
if (Stat(path, &statbuf1) == 0) {
usr/src/cmd/lp/lib/printers/putprinter.c
140
Free (path);
usr/src/cmd/lp/lib/printers/putprinter.c
144
} else if (errno != ENOENT || mkdir_lpdir(path, MODE_DIR) == -1) {
usr/src/cmd/lp/lib/printers/putprinter.c
145
Free (path);
usr/src/cmd/lp/lib/printers/putprinter.c
148
Free (path);
usr/src/cmd/lp/lib/printers/putprinter.c
157
if (!(path = makepath(Lp_A_Interfaces, name, (char *)0)))
usr/src/cmd/lp/lib/printers/putprinter.c
159
(void)rmfile (path);
usr/src/cmd/lp/lib/printers/putprinter.c
160
Free (path);
usr/src/cmd/lp/lib/printers/putprinter.c
165
if (!(path = makepath(Lp_A_Interfaces, name, (char *)0)))
usr/src/cmd/lp/lib/printers/putprinter.c
168
Stat(path, &statbuf2) == -1
usr/src/cmd/lp/lib/printers/putprinter.c
175
Free (path);
usr/src/cmd/lp/lib/printers/putprinter.c
178
if ((fdout = open_locked(path, "w", MODE_EXEC)) < 0) {
usr/src/cmd/lp/lib/printers/putprinter.c
179
Free (path);
usr/src/cmd/lp/lib/printers/putprinter.c
188
Free (path);
usr/src/cmd/lp/lib/printers/putprinter.c
299
if (!(path = getprinterfile(name, CONFIGFILE))) {
usr/src/cmd/lp/lib/printers/putprinter.c
306
if ((fdout = open_locked(path, "w", MODE_READ)) < 0) {
usr/src/cmd/lp/lib/printers/putprinter.c
307
Free (path);
usr/src/cmd/lp/lib/printers/putprinter.c
314
Free (path);
usr/src/cmd/lp/lib/printers/putprinter.c
472
if (!(path = getprinterfile(name, COMMENTFILE)))
usr/src/cmd/lp/lib/printers/putprinter.c
475
if (dumpstring(path, prbufp->description) == -1) {
usr/src/cmd/lp/lib/printers/putprinter.c
476
Free (path);
usr/src/cmd/lp/lib/printers/putprinter.c
479
Free (path);
usr/src/cmd/lp/lib/printers/putprinter.c
550
char *path = NULL;
usr/src/cmd/lp/lib/printers/putprinter.c
559
if (!(path = makepath(ETCDIR, "ppd", buf, (char *)0)))
usr/src/cmd/lp/lib/printers/putprinter.c
565
(void) rmfile(path);
usr/src/cmd/lp/lib/printers/putprinter.c
625
if (!(path = makepath(ETCDIR, "ppd", buf, (char *)0)))
usr/src/cmd/lp/lib/printers/putprinter.c
641
result = copyPPDFile(ppd, path);
usr/src/cmd/lp/lib/printers/putprinter.c
645
result = unzipPPDFile(ppd, path);
usr/src/cmd/lp/lib/printers/putprinter.c
648
(void) chown_lppath(path);
usr/src/cmd/lp/lib/printers/putprinter.c
649
(void) chmod(path, 0644);
usr/src/cmd/lp/lib/printers/putprinter.c
656
if (path != NULL)
usr/src/cmd/lp/lib/printers/putprinter.c
658
Free(path);
usr/src/cmd/lp/lib/printers/putprinter.c
91
register char * path;
usr/src/cmd/lp/lib/requests/getrequest.c
100
if ((fd = open_locked(path, "r", 0)) < 0) {
usr/src/cmd/lp/lib/requests/getrequest.c
101
Free (path);
usr/src/cmd/lp/lib/requests/getrequest.c
104
Free (path);
usr/src/cmd/lp/lib/requests/getrequest.c
63
*path,
usr/src/cmd/lp/lib/requests/getrequest.c
80
path = Strdup(file);
usr/src/cmd/lp/lib/requests/getrequest.c
88
if (!(path = makepath(Lp_Tmp, file, (char *)0)))
usr/src/cmd/lp/lib/requests/getrequest.c
96
} else if (!(path = makepath(Lp_Temp, file, (char *)0)))
usr/src/cmd/lp/lib/requests/putrequest.c
106
if (!(path = makepath(Lp_Tmp, file, (char *)0)))
usr/src/cmd/lp/lib/requests/putrequest.c
114
} else if (!(path = makepath(Lp_Temp, file, (char *)0)))
usr/src/cmd/lp/lib/requests/putrequest.c
117
if ((fd = open_locked(path, "w", MODE_NOREAD)) < 0) {
usr/src/cmd/lp/lib/requests/putrequest.c
118
Free (path);
usr/src/cmd/lp/lib/requests/putrequest.c
121
Free (path);
usr/src/cmd/lp/lib/requests/putrequest.c
63
*path;
usr/src/cmd/lp/lib/requests/putrequest.c
98
path = Strdup(file);
usr/src/cmd/lp/lib/secure/secure.c
147
char *path;
usr/src/cmd/lp/lib/secure/secure.c
154
path = Strdup(file);
usr/src/cmd/lp/lib/secure/secure.c
156
path = makepath(Lp_Requests, file, (char *)0);
usr/src/cmd/lp/lib/secure/secure.c
157
if (!path)
usr/src/cmd/lp/lib/secure/secure.c
160
if ((fd = open_locked(path, "w", MODE_NOREAD)) < 0) {
usr/src/cmd/lp/lib/secure/secure.c
161
Free (path);
usr/src/cmd/lp/lib/secure/secure.c
164
Free (path);
usr/src/cmd/lp/lib/secure/secure.c
50
*path;
usr/src/cmd/lp/lib/secure/secure.c
58
path = Strdup(file);
usr/src/cmd/lp/lib/secure/secure.c
60
path = makepath(Lp_Requests, file, (char *)0);
usr/src/cmd/lp/lib/secure/secure.c
61
if (!path)
usr/src/cmd/lp/lib/secure/secure.c
64
if ((fd = open_locked(path, "r", MODE_NOREAD)) < 0) {
usr/src/cmd/lp/lib/secure/secure.c
65
Free (path);
usr/src/cmd/lp/lib/secure/secure.c
68
Free (path);
usr/src/cmd/lp/lib/users/loadpri.c
72
struct user_priority * ld_priority_file ( char * path )
usr/src/cmd/lp/lib/users/loadpri.c
83
if ((fd = open_locked(path, "r", 0)) < 0) {
usr/src/cmd/lp/model/lp.tsol_separator.c
356
char path[PATH_MAX];
usr/src/cmd/lp/model/lp.tsol_separator.c
361
(void) strlcpy(path, ArgPSLib, sizeof (path));
usr/src/cmd/lp/model/lp.tsol_separator.c
362
(void) strlcat(path, "/", sizeof (path));
usr/src/cmd/lp/model/lp.tsol_separator.c
363
(void) strlcat(path, name, sizeof (path));
usr/src/cmd/lp/model/lp.tsol_separator.c
365
(void) strlcpy(path, name, sizeof (path));
usr/src/cmd/lp/model/lp.tsol_separator.c
368
file = fopen(path, "r");
usr/src/cmd/lp/model/lp.tsol_separator.c
372
ME, path, strerror(errno));
usr/src/cmd/lp/model/lp.tsol_separator.c
381
ME, path);
usr/src/cmd/luxadm/common.h
452
int adm_reserve(char *path);
usr/src/cmd/luxadm/common.h
453
int adm_release(char *path);
usr/src/cmd/luxadm/common.h
472
int get_mode_page(char *path, uchar_t **pg_buf);
usr/src/cmd/luxadm/common.h
475
int scsi_release(char *path);
usr/src/cmd/luxadm/common.h
476
int scsi_reserve(char *path);
usr/src/cmd/luxadm/fabric_conf.c
152
ret = parse_line(line, path, wwn, repos_filename);
usr/src/cmd/luxadm/fabric_conf.c
154
ret = create_ap_instance(path,
usr/src/cmd/luxadm/fabric_conf.c
177
parse_line(char *line, char *path, char *wwn, char *filename)
usr/src/cmd/luxadm/fabric_conf.c
196
if (strlcpy(path, p_path, MAXPATHLEN) >= MAXPATHLEN) {
usr/src/cmd/luxadm/fabric_conf.c
43
static int parse_line(char *line, char *path, char *wwn, char *filename);
usr/src/cmd/luxadm/fabric_conf.c
96
char path[MAXPATHLEN];
usr/src/cmd/luxadm/fchba.c
1452
HBA_WWN pwwn, char *path)
usr/src/cmd/luxadm/fchba.c
1480
path);
usr/src/cmd/luxadm/fchba.c
1495
path);
usr/src/cmd/luxadm/fchba.c
1749
struct lun_tracking *path;
usr/src/cmd/luxadm/fchba.c
1992
for (path = first_time; path != NULL;
usr/src/cmd/luxadm/fchba.c
1993
path = path->next_path) {
usr/src/cmd/luxadm/fchba.c
1996
path->hba_path);
usr/src/cmd/luxadm/fchba.c
2001
path->map.FcpId.PortWWN.wwn),
usr/src/cmd/luxadm/fchba.c
2002
path->map.ScsiId.ScsiOSLun);
usr/src/cmd/luxadm/fchba.c
2006
wwnConversion(path->hba_pwwn.wwn));
usr/src/cmd/luxadm/fchba.c
2010
" Class\t\t\t%s\n"), path->info.pathClass);
usr/src/cmd/luxadm/fchba.c
2012
" State\t\t\t%s\n"), path->info.pathState);
usr/src/cmd/luxadm/fchba.c
283
char path[MAXPATHLEN];
usr/src/cmd/luxadm/fchba.c
325
(void) snprintf(path, MAXPATHLEN, "%s:devctl",
usr/src/cmd/luxadm/fchba.c
328
(void) snprintf(path, MAXPATHLEN, "%s",
usr/src/cmd/luxadm/fchba.c
333
(void) printf("%-65s ", path);
usr/src/cmd/luxadm/fchba.c
353
char path[MAXPATHLEN];
usr/src/cmd/luxadm/fchba.c
363
struct path_entry *is_duplicate_path(struct path_entry *head, char *path) {
usr/src/cmd/luxadm/fchba.c
366
if (strncmp(tmp->path, path, sizeof (tmp->path)) == 0) {
usr/src/cmd/luxadm/fchba.c
581
strncpy(head->path,
usr/src/cmd/luxadm/fchba.c
598
strncpy(tmpPath->path,
usr/src/cmd/luxadm/fchba.c
649
printf(MSGSTR(31, "Logical Path:%s"), tmp->path);
usr/src/cmd/luxadm/fchba.c
656
tmp->path,
usr/src/cmd/luxadm/g_adm.c
2794
adm_display_verbose_disk(char *path, int verbose)
usr/src/cmd/luxadm/g_adm.c
2803
if ((err = l_get_mode_pg(path, &pg_buf, verbose)) == 0) {
usr/src/cmd/luxadm/g_adm.c
2865
(void) print_errString(err, path);
usr/src/cmd/luxadm/g_adm.c
5834
compare_multipath(char *path, struct mplist_struct *pathlist)
usr/src/cmd/luxadm/g_adm.c
5838
if (strncmp(path, pathlist->devpath, MAXPATHLEN) == 0) {
usr/src/cmd/luxadm/g_adm.c
6586
adm_reserve(char *path)
usr/src/cmd/luxadm/g_adm.c
6591
g_get_physical_name(path)) == NULL) {
usr/src/cmd/luxadm/g_adm.c
6596
path);
usr/src/cmd/luxadm/g_adm.c
6602
(void) print_errString(err, path);
usr/src/cmd/luxadm/g_adm.c
6609
adm_release(char *path)
usr/src/cmd/luxadm/g_adm.c
6614
g_get_physical_name(path)) == NULL) {
usr/src/cmd/luxadm/g_adm.c
6619
path);
usr/src/cmd/luxadm/g_adm.c
6625
(void) print_errString(err, path);
usr/src/cmd/luxadm/g_adm.c
6636
int adm_check_file(char **path, int flag) {
usr/src/cmd/luxadm/g_adm.c
6638
if (err = l_check_file(*path, flag)) {
usr/src/cmd/luxadm/g_adm.c
6639
(void) print_errString(err, *path);
usr/src/cmd/luxadm/hotplug.c
1001
cleanup_dotdot_path(char *path)
usr/src/cmd/luxadm/hotplug.c
1008
dotdot = strstr(path, "/../");
usr/src/cmd/luxadm/hotplug.c
1021
if (dotdot == path) {
usr/src/cmd/luxadm/hotplug.c
1022
strcpy(holder, &path[3]); /* strip "/.." */
usr/src/cmd/luxadm/hotplug.c
1023
strcpy(path, holder);
usr/src/cmd/luxadm/hotplug.c
1034
previous_slash = strrchr(path, '/');
usr/src/cmd/luxadm/hotplug.c
1047
(void) strcat(path, dotdot+4);
usr/src/cmd/luxadm/hotplug.c
1065
h_get_physical_name_from_link(char *path)
usr/src/cmd/luxadm/hotplug.c
1075
if (path == NULL) {
usr/src/cmd/luxadm/hotplug.c
1079
strcpy(source, path);
usr/src/cmd/luxadm/hotplug.c
1198
h_get_physical_name(char *path)
usr/src/cmd/luxadm/hotplug.c
1207
if (path == NULL) {
usr/src/cmd/luxadm/hotplug.c
1211
(void) strcpy(s, path);
usr/src/cmd/luxadm/hotplug.c
1246
result = h_get_physical_name_from_link(path);
usr/src/cmd/luxadm/hotplug.c
2531
char link[MAXPATHLEN], path[MAXPATHLEN];
usr/src/cmd/luxadm/hotplug.c
2566
(void) strcpy(path, dlist->dev_path);
usr/src/cmd/luxadm/hotplug.c
2567
ptr = strrchr(path, ':');
usr/src/cmd/luxadm/hotplug.c
2570
if (strstr(link, path)) {
usr/src/cmd/luxadm/hotplug.c
2720
char link[MAXPATHLEN], path[MAXPATHLEN];
usr/src/cmd/luxadm/hotplug.c
2746
(void) strcpy(path, dl->dev_path);
usr/src/cmd/luxadm/hotplug.c
2747
d1 = strrchr(path, ':');
usr/src/cmd/luxadm/hotplug.c
2750
if (strstr(link, path)) {
usr/src/cmd/luxadm/lux_util.c
1115
cleanup_dotdot_path(char *path)
usr/src/cmd/luxadm/lux_util.c
1122
dotdot = strstr(path, "/../");
usr/src/cmd/luxadm/lux_util.c
1135
if (dotdot == path) {
usr/src/cmd/luxadm/lux_util.c
1136
strcpy(holder, &path[3]); /* strip "/.." */
usr/src/cmd/luxadm/lux_util.c
1137
strcpy(path, holder);
usr/src/cmd/luxadm/lux_util.c
1148
previous_slash = strrchr(path, '/');
usr/src/cmd/luxadm/lux_util.c
1161
(void) strcat(path, dotdot+4);
usr/src/cmd/luxadm/lux_util.c
1509
get_mode_page(char *path, uchar_t **pg_buf)
usr/src/cmd/luxadm/lux_util.c
1515
if ((fd = open(path, O_NDELAY | O_RDWR)) == -1)
usr/src/cmd/luxadm/lux_util.c
658
scsi_release(char *path)
usr/src/cmd/luxadm/lux_util.c
665
P_DPRINTF(" scsi_release: Release: Path %s\n", path);
usr/src/cmd/luxadm/lux_util.c
666
if ((fd = open(path, O_NDELAY | O_RDONLY)) == -1)
usr/src/cmd/luxadm/lux_util.c
67
static int cleanup_dotdot_path(char *path);
usr/src/cmd/luxadm/lux_util.c
685
scsi_reserve(char *path)
usr/src/cmd/luxadm/lux_util.c
692
P_DPRINTF(" scsi_reserve: Reserve: Path %s\n", path);
usr/src/cmd/luxadm/lux_util.c
693
if ((fd = open(path, O_NDELAY | O_RDONLY)) == -1)
usr/src/cmd/luxadm/lux_util.c
743
print_inq_data(char *arg_path, char *path, L_inquiry inq, uchar_t *serial,
usr/src/cmd/luxadm/lux_util.c
841
if (strcmp(arg_path, path) != 0 &&
usr/src/cmd/luxadm/lux_util.c
846
(void) fprintf(stdout, "\n %s\n", path);
usr/src/cmd/luxadm/qlgcupdate.c
1057
char phys_path[PATH_MAX], *path;
usr/src/cmd/luxadm/qlgcupdate.c
1190
path = di_devfs_path(sib_node);
usr/src/cmd/luxadm/qlgcupdate.c
1192
(void) strncat(phys_path, path, strlen(path));
usr/src/cmd/luxadm/qlgcupdate.c
1193
di_devfs_path_free(path);
usr/src/cmd/luxadm/x86_adm.c
222
int adm_reserve(char *path) {
usr/src/cmd/luxadm/x86_adm.c
228
int adm_release(char *path) {
usr/src/cmd/mail/createmf.c
101
mbfd = open(path, O_APPEND|O_WRONLY, 0);
usr/src/cmd/mail/createmf.c
107
fprintf(stderr, "%s: security violation, '%s' inode changed after open\n", program, path);
usr/src/cmd/mail/createmf.c
64
int accessmf(path)
usr/src/cmd/mail/createmf.c
65
char *path;
usr/src/cmd/mail/createmf.c
71
if (lstat(path, &sb)) {
usr/src/cmd/mail/createmf.c
73
mbfd = open(path,
usr/src/cmd/mail/createmf.c
75
chmod(path, 0660);
usr/src/cmd/mail/createmf.c
89
"%s: security violation, '%s' should not be linked to other file\n", program, path);
usr/src/cmd/mailx/optim.c
624
char path[STSIZ], rpath[STSIZ];
usr/src/cmd/mailx/optim.c
638
*path = '\0';
usr/src/cmd/mailx/optim.c
643
stradd(path, sizeof (path), *cp++);
usr/src/cmd/mailx/optim.c
648
nstrcpy(rpath, sizeof (rpath), path);
usr/src/cmd/mailx/optim.c
652
optimimp(path, rpath);
usr/src/cmd/mailx/optim.c
656
optimex(path, rpath);
usr/src/cmd/make/bin/files.cc
451
wchar_t path[MAXPATHLEN];
usr/src/cmd/make/bin/files.cc
465
MBSTOWCS(path, mb_path);
usr/src/cmd/make/bin/files.cc
466
(void) wcscpy(file_name, path);
usr/src/cmd/make/bin/main.cc
1580
static char path[MAXPATHLEN];
usr/src/cmd/make/bin/main.cc
1601
(void) sprintf(path, "%s/src", pwent->pw_dir);
usr/src/cmd/make/bin/main.cc
1602
if (access(path, F_OK) == 0) {
usr/src/cmd/make/bin/main.cc
1603
sccs_dir_path = path;
usr/src/cmd/make/bin/main.cc
1606
(void) sprintf(path, "%s/source", pwent->pw_dir);
usr/src/cmd/make/bin/main.cc
1607
if (access(path, F_OK) == 0) {
usr/src/cmd/make/bin/main.cc
1608
sccs_dir_path = path;
usr/src/cmd/make/bin/main.cc
1616
(void) sprintf(path, "%s/%s", cwdpath,sccs_dir_path);
usr/src/cmd/make/bin/main.cc
1617
if (access(path, F_OK) == 0) {
usr/src/cmd/make/bin/main.cc
1618
sccs_dir_path = path;
usr/src/cmd/make/bin/read.cc
104
char *path;
usr/src/cmd/make/bin/read.cc
140
char *path;
usr/src/cmd/make/bin/read.cc
147
asprintf(&path, "%s/../share/lib/make", pfx);
usr/src/cmd/make/bin/read.cc
148
add_dir_to_path(path, &makefile_path, -1);
usr/src/cmd/make/bin/read.cc
149
free(path);
usr/src/cmd/make/bin/read.cc
152
asprintf(&path, "%s/../../share/", pfx);
usr/src/cmd/make/bin/read.cc
153
add_dir_to_path(path, &makefile_path, -1);
usr/src/cmd/make/bin/read.cc
154
free(path);
usr/src/cmd/make/bin/read.cc
181
&path,
usr/src/cmd/make/bin/read.cc
183
if ((path[0] == (int) period_char) &&
usr/src/cmd/make/bin/read.cc
184
(path[1] == (int) slash_char)) {
usr/src/cmd/make/bin/read.cc
185
path += 2;
usr/src/cmd/make/bin/read.cc
187
MBSTOWCS(wcs_buffer, path);
usr/src/cmd/make/include/mk/defs.h
375
char **pgm, char **run, char *path);
usr/src/cmd/make/include/vroot/vroot.h
36
char *path;
usr/src/cmd/make/lib/mksh/dosys.cc
77
my_open(const char *path, int oflag, mode_t mode) {
usr/src/cmd/make/lib/mksh/dosys.cc
78
int res = open(path, oflag, mode);
usr/src/cmd/make/lib/mksh/dosys.cc
81
res = open(path, oflag, mode);
usr/src/cmd/make/lib/vroot/access.cc
31
static int access_thunk(char *path)
usr/src/cmd/make/lib/vroot/access.cc
33
vroot_result= access(path, vroot_args.access.mode);
usr/src/cmd/make/lib/vroot/access.cc
37
int access_vroot(char *path, int mode, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/access.cc
40
translate_with_thunk(path, access_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/chdir.cc
31
static int chdir_thunk(char *path)
usr/src/cmd/make/lib/vroot/chdir.cc
33
vroot_result= chdir(path);
usr/src/cmd/make/lib/vroot/chdir.cc
37
int chdir_vroot(char *path, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/chdir.cc
39
translate_with_thunk(path, chdir_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/chmod.cc
30
extern int chmod(const char *path, mode_t mode);
usr/src/cmd/make/lib/vroot/chmod.cc
35
static int chmod_thunk(char *path)
usr/src/cmd/make/lib/vroot/chmod.cc
37
vroot_result= chmod(path, vroot_args.chmod.mode);
usr/src/cmd/make/lib/vroot/chmod.cc
41
int chmod_vroot(char *path, int mode, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/chmod.cc
44
translate_with_thunk(path, chmod_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/chown.cc
30
extern int chown(const char *path, uid_t owner, gid_t group);
usr/src/cmd/make/lib/vroot/chown.cc
35
static int chown_thunk(char *path)
usr/src/cmd/make/lib/vroot/chown.cc
37
vroot_result= chown(path, vroot_args.chown.user, vroot_args.chown.group);
usr/src/cmd/make/lib/vroot/chown.cc
41
int chown_vroot(char *path, int user, int group, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/chown.cc
45
translate_with_thunk(path, chown_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/chroot.cc
29
extern int chroot(const char *path);
usr/src/cmd/make/lib/vroot/chroot.cc
34
static int chroot_thunk(char *path)
usr/src/cmd/make/lib/vroot/chroot.cc
36
vroot_result= chroot(path);
usr/src/cmd/make/lib/vroot/chroot.cc
40
int chroot_vroot(char *path, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/chroot.cc
42
translate_with_thunk(path, chroot_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/creat.cc
31
extern int creat(const char *path, mode_t mode);
usr/src/cmd/make/lib/vroot/creat.cc
36
static int creat_thunk(char *path)
usr/src/cmd/make/lib/vroot/creat.cc
38
vroot_result= creat(path, vroot_args.creat.mode);
usr/src/cmd/make/lib/vroot/creat.cc
42
int creat_vroot(char *path, int mode, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/creat.cc
45
translate_with_thunk(path, creat_thunk, vroot_path, vroot_vroot, rw_write);
usr/src/cmd/make/lib/vroot/execve.cc
29
extern int execve (const char *path, char *const argv[], char *const envp[]);
usr/src/cmd/make/lib/vroot/execve.cc
34
static int execve_thunk(char *path)
usr/src/cmd/make/lib/vroot/execve.cc
36
execve(path, vroot_args.execve.argv, vroot_args.execve.environ);
usr/src/cmd/make/lib/vroot/execve.cc
44
int execve_vroot(char *path, char **argv, char **environ, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/execve.cc
48
translate_with_thunk(path, execve_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/lstat.cc
30
extern int lstat(const char *path, struct stat *buf);
usr/src/cmd/make/lib/vroot/lstat.cc
35
static int lstat_thunk(char *path)
usr/src/cmd/make/lib/vroot/lstat.cc
37
vroot_result= lstat(path, vroot_args.lstat.buffer);
usr/src/cmd/make/lib/vroot/lstat.cc
41
int lstat_vroot(char *path, struct stat *buffer, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/lstat.cc
44
translate_with_thunk(path, lstat_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/mkdir.cc
30
extern int mkdir(const char *path, mode_t mode);
usr/src/cmd/make/lib/vroot/mkdir.cc
35
static int mkdir_thunk(char *path)
usr/src/cmd/make/lib/vroot/mkdir.cc
37
vroot_result= mkdir(path, vroot_args.mkdir.mode);
usr/src/cmd/make/lib/vroot/mkdir.cc
41
int mkdir_vroot(char *path, int mode, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/mkdir.cc
44
translate_with_thunk(path, mkdir_thunk, vroot_path, vroot_vroot, rw_write);
usr/src/cmd/make/lib/vroot/mount.cc
35
static int mount_thunk(char *path)
usr/src/cmd/make/lib/vroot/mount.cc
37
vroot_result= mount(path, vroot_args.mount.name, vroot_args.mount.mode);
usr/src/cmd/make/lib/vroot/open.cc
31
extern int open(const char *path, int oflag, ...);
usr/src/cmd/make/lib/vroot/open.cc
36
static int open_thunk(char *path)
usr/src/cmd/make/lib/vroot/open.cc
38
vroot_result= open(path, vroot_args.open.flags, vroot_args.open.mode);
usr/src/cmd/make/lib/vroot/open.cc
42
int open_vroot(char *path, int flags, int mode, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/open.cc
46
translate_with_thunk(path, open_thunk, vroot_path, vroot_vroot,
usr/src/cmd/make/lib/vroot/readlink.cc
29
extern int readlink(const char *path, void *buf, size_t bufsiz);
usr/src/cmd/make/lib/vroot/readlink.cc
34
static int readlink_thunk(char *path)
usr/src/cmd/make/lib/vroot/readlink.cc
36
vroot_result= readlink(path, vroot_args.readlink.buffer, vroot_args.readlink.buffer_size);
usr/src/cmd/make/lib/vroot/readlink.cc
40
int readlink_vroot(char *path, char *buffer, int buffer_size, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/readlink.cc
44
translate_with_thunk(path, readlink_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/rmdir.cc
29
extern int rmdir(const char *path);
usr/src/cmd/make/lib/vroot/rmdir.cc
34
static int rmdir_thunk(char *path)
usr/src/cmd/make/lib/vroot/rmdir.cc
36
vroot_result= rmdir(path);
usr/src/cmd/make/lib/vroot/rmdir.cc
40
int rmdir_vroot(char *path, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/rmdir.cc
42
translate_with_thunk(path, rmdir_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/stat.cc
30
extern int stat(const char *path, struct stat *buf);
usr/src/cmd/make/lib/vroot/stat.cc
35
static int stat_thunk(char *path)
usr/src/cmd/make/lib/vroot/stat.cc
37
vroot_result= stat(path, vroot_args.stat.buffer);
usr/src/cmd/make/lib/vroot/stat.cc
41
int stat_vroot(char *path, struct stat *buffer, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/stat.cc
44
translate_with_thunk(path, stat_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/truncate.cc
29
extern int truncate(const char *path, off_t length);
usr/src/cmd/make/lib/vroot/truncate.cc
34
static int truncate_thunk(char *path)
usr/src/cmd/make/lib/vroot/truncate.cc
36
vroot_result= truncate(path, vroot_args.truncate.length);
usr/src/cmd/make/lib/vroot/truncate.cc
40
int truncate_vroot(char *path, int length, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/truncate.cc
43
translate_with_thunk(path, truncate_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/unlink.cc
29
extern int unlink(const char *path);
usr/src/cmd/make/lib/vroot/unlink.cc
34
static int unlink_thunk(char *path)
usr/src/cmd/make/lib/vroot/unlink.cc
36
vroot_result= unlink(path);
usr/src/cmd/make/lib/vroot/unlink.cc
40
int unlink_vroot(char *path, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/unlink.cc
42
translate_with_thunk(path, unlink_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/utimes.cc
35
static int utimes_thunk(char *path)
usr/src/cmd/make/lib/vroot/utimes.cc
37
vroot_result= utimes(path, vroot_args.utimes.time);
usr/src/cmd/make/lib/vroot/utimes.cc
41
int utimes_vroot(char *path, struct timeval *time, pathpt vroot_path, pathpt vroot_vroot)
usr/src/cmd/make/lib/vroot/utimes.cc
44
translate_with_thunk(path, utimes_thunk, vroot_path, vroot_vroot, rw_read);
usr/src/cmd/make/lib/vroot/vroot.cc
117
return(vroot_data.path.env_var);
usr/src/cmd/make/lib/vroot/vroot.cc
123
vroot_data.path.init= 0;
usr/src/cmd/make/lib/vroot/vroot.cc
151
get_vroot_path(char **vroot, char **path, char **filename)
usr/src/cmd/make/lib/vroot/vroot.cc
157
if (path != NULL) {
usr/src/cmd/make/lib/vroot/vroot.cc
158
if ((*path= vroot_data.path_start) == NULL)
usr/src/cmd/make/lib/vroot/vroot.cc
159
*path= vroot_data.filename_start;};
usr/src/cmd/make/lib/vroot/vroot.cc
179
if (!vroot_data.path.init) {
usr/src/cmd/make/lib/vroot/vroot.cc
180
vroot_data.path.init= 1;
usr/src/cmd/make/lib/vroot/vroot.cc
181
vroot_data.path.vector= parse_path_string(getenv(vroot_data.path.env_var), 0);};
usr/src/cmd/make/lib/vroot/vroot.cc
182
path_vector= vroot_data.path.vector;};
usr/src/cmd/make/lib/vroot/vroot.cc
213
for (; vp->path != NULL; vp++) {
usr/src/cmd/make/lib/vroot/vroot.cc
219
(void)strcpy(vroot_data.vroot_start= p, vp->path);
usr/src/cmd/make/lib/vroot/vroot.cc
231
for (; pp1->path != NULL; pp1++) {
usr/src/cmd/make/lib/vroot/vroot.cc
238
(void)strcpy(vroot_data.path_start= p, pp1->path);
usr/src/cmd/make/lib/vroot/vroot.cc
244
pp1->path);
usr/src/cmd/make/lib/vroot/vroot.cc
256
for (pp= pp1; pp->path != NULL; pp++) path_len++;
usr/src/cmd/make/lib/vroot/vroot.cc
259
for (; vp->path != NULL; vp++)
usr/src/cmd/make/lib/vroot/vroot.cc
260
for (pp= pp1, path_len= 0; pp->path != NULL; pp++, path_len++) {
usr/src/cmd/make/lib/vroot/vroot.cc
263
if (pp->path[0] != '/') rel_path[path_len]= 1;
usr/src/cmd/make/lib/vroot/vroot.cc
265
if ((filename[0] == '/') || (pp->path[0] == '/')) {
usr/src/cmd/make/lib/vroot/vroot.cc
270
(void)strcpy(vroot_data.vroot_start= p, vp->path); p+= vp->length;
usr/src/cmd/make/lib/vroot/vroot.cc
279
(void)strcpy(vroot_data.path_start= p, pp->path); p+= pp->length;
usr/src/cmd/make/lib/vroot/vroot.cc
291
pp->path);
usr/src/cmd/make/lib/vroot/vroot.cc
301
for (pp= pp1, path_len= 0; pp->path != NULL; pp++, path_len++)
usr/src/cmd/make/lib/vroot/vroot.cc
302
for (vp= vp1; vp->path != NULL; vp++) {
usr/src/cmd/make/lib/vroot/vroot.cc
305
if ((filename[0] == '/') || (pp->path[0] == '/')) {
usr/src/cmd/make/lib/vroot/vroot.cc
310
(void)strcpy(vroot_data.vroot_start= p, vp->path); p+= vp->length;
usr/src/cmd/make/lib/vroot/vroot.cc
319
(void)strcpy(vroot_data.path_start= p, pp->path); p+= pp->length;
usr/src/cmd/make/lib/vroot/vroot.cc
329
(void)strcpy(vroot_data.path_start= p, pp->path); p+= pp->length;
usr/src/cmd/make/lib/vroot/vroot.cc
45
vroot_patht path;
usr/src/cmd/make/lib/vroot/vroot.cc
60
add_dir_to_path(const char *path, pathpt *pointer, int position)
usr/src/cmd/make/lib/vroot/vroot.cc
69
for (p= &((*pointer)[0]); p->path != NULL; p++, size++);
usr/src/cmd/make/lib/vroot/vroot.cc
81
length= strlen(path);
usr/src/cmd/make/lib/vroot/vroot.cc
83
(void)strcpy(name, path);
usr/src/cmd/make/lib/vroot/vroot.cc
84
if ((*pointer)[position].path != NULL)
usr/src/cmd/make/lib/vroot/vroot.cc
85
free((*pointer)[position].path);
usr/src/cmd/make/lib/vroot/vroot.cc
86
(*pointer)[position].path= name;
usr/src/cmd/man/makewhatis.c
271
char path[MAXPATHLEN];
usr/src/cmd/man/makewhatis.c
278
(void) snprintf(path, MAXPATHLEN, "%s/%s.%s%s",
usr/src/cmd/man/makewhatis.c
280
if (access(path, F_OK) == 0) {
usr/src/cmd/man/makewhatis.c
814
mwpath(char *path)
usr/src/cmd/man/makewhatis.c
829
nsections = scandir(path, &entries, select_sections, alphasort);
usr/src/cmd/man/makewhatis.c
830
if ((fp = open_whatis(path)) == NULL)
usr/src/cmd/man/makewhatis.c
836
path, entries[i]->d_name);
usr/src/cmd/man/makewhatis.c
841
finish_whatis(fp, path);
usr/src/cmd/man/man.c
1001
DPRINTF("-- Searching mandir: %s\n", p->path);
usr/src/cmd/man/man.c
1004
ldir = addlocale(p->path);
usr/src/cmd/man/man.c
1023
mandir(p->secv, p->path, name, 0);
usr/src/cmd/man/man.c
1050
mandir(char **secv, char *path, char *name, int lspec)
usr/src/cmd/man/man.c
1057
if ((dp = opendir(path)) == NULL)
usr/src/cmd/man/man.c
1061
DPRINTF("-- Searching mandir: %s\n", path);
usr/src/cmd/man/man.c
1077
(newsection = map_section(*secv, path))
usr/src/cmd/man/man.c
1088
if (searchdir(path, *dv, name) == 0)
usr/src/cmd/man/man.c
1163
searchdir(char *path, char *dir, char *name)
usr/src/cmd/man/man.c
1173
(void) snprintf(sectpath, sizeof (sectpath), "%s/%s", path, dir);
usr/src/cmd/man/man.c
1214
(void) format(path, dir, name, sd->d_name);
usr/src/cmd/man/man.c
1233
map_section(char *section, char *path)
usr/src/cmd/man/man.c
1244
"%s/man%s", path, map[i].new_name);
usr/src/cmd/man/man.c
1260
format(char *path, char *dir, char *name, char *pg)
usr/src/cmd/man/man.c
1270
(void) printf(gettext("%s(%s)\t-M %s\n"), name, dir + 3, path);
usr/src/cmd/man/man.c
1274
(void) snprintf(manpname, sizeof (manpname), "%s/man%s/%s", path,
usr/src/cmd/man/man.c
1276
(void) snprintf(catpname, sizeof (catpname), "%s/cat%s/%s", path,
usr/src/cmd/man/man.c
1301
path, cattool, manpname);
usr/src/cmd/man/man.c
1307
path, cattool, manpname);
usr/src/cmd/man/man.c
1328
path, cattool, manpname, (manwidth > 0) ? tmpbuf : "", pager);
usr/src/cmd/man/man.c
1343
addlocale(char *path)
usr/src/cmd/man/man.c
1347
if (asprintf(&tmp, "%s/%s", path, localedir) == -1)
usr/src/cmd/man/man.c
1357
check_config(char *path)
usr/src/cmd/man/man.c
1367
(void) snprintf(fname, MAXPATHLEN, "%s/%s", path, CONFIG);
usr/src/cmd/man/man.c
1422
if (stat(mnp->path, &sb) != 0)
usr/src/cmd/man/man.c
159
char *path; /* mandir path */
usr/src/cmd/man/man.c
1622
(void) printf("%s%s", colon, manp->path);
usr/src/cmd/man/man.c
552
if ((manp->path = (char *)malloc(i + 1)) == NULL)
usr/src/cmd/man/man.c
554
(void) strlcpy(manp->path, *pv, i + 1);
usr/src/cmd/man/man.c
570
DPRINTF("-- Adding %s\n", manp->path);
usr/src/cmd/man/man.c
574
DPRINTF("-- Adding %s: sections=%s\n", manp->path,
usr/src/cmd/man/man.c
581
DPRINTF("-- Adding %s: sections=%s\n", manp->path, sections);
usr/src/cmd/man/man.c
589
DPRINTF("-- Adding %s: sections=%s (from %s)\n", manp->path,
usr/src/cmd/man/man.c
598
DPRINTF("-- Adding %s: default search order\n", manp->path);
usr/src/cmd/man/man.c
619
if ((dp = opendir(manp->path)) == 0)
usr/src/cmd/man/man.c
680
ldir = addlocale(p->path);
usr/src/cmd/man/man.c
684
mwpath(p->path);
usr/src/cmd/man/man.c
692
getdirs(char *path, char ***dirv, int flag)
usr/src/cmd/man/man.c
700
if ((dp = opendir(path)) == NULL)
usr/src/cmd/man/man.c
747
ldir = addlocale(b->path);
usr/src/cmd/man/man.c
755
(void) snprintf(whatpath, sizeof (whatpath), "%s/%s", b->path,
usr/src/cmd/man/man.c
895
if (*(b->path) == '/') {
usr/src/cmd/man/man.c
907
if (asprintf(&p, "%s/%s", cwd, b->path) == -1)
usr/src/cmd/man/man.c
909
free(b->path);
usr/src/cmd/man/man.c
910
b->path = p;
usr/src/cmd/man/man.c
932
free(manp->path);
usr/src/cmd/man/man.h
37
void mwpath(char *path);
usr/src/cmd/mandoc/mandocdb.c
586
const char *path;
usr/src/cmd/mandoc/mandocdb.c
604
path = ff->fts_path + 2;
usr/src/cmd/mandoc/mandocdb.c
612
if (realpath(path, buf) == NULL) {
usr/src/cmd/mandoc/mandocdb.c
614
say(path, "&realpath");
usr/src/cmd/mandoc/mandocdb.c
627
if (stat(path, ff->fts_statp) == -1) {
usr/src/cmd/mandoc/mandocdb.c
629
say(path, "&stat");
usr/src/cmd/mandoc/mandocdb.c
641
if ( ! strcmp(path, MANDOC_DB))
usr/src/cmd/mandoc/mandocdb.c
645
say(path, "Extraneous file");
usr/src/cmd/mandoc/mandocdb.c
661
say(path,
usr/src/cmd/mandoc/mandocdb.c
667
say(path, "Skip html");
usr/src/cmd/mandoc/mandocdb.c
671
say(path, "Skip ps");
usr/src/cmd/mandoc/mandocdb.c
675
say(path, "Skip pdf");
usr/src/cmd/mandoc/mandocdb.c
682
say(path, "Wrong filename suffix");
usr/src/cmd/mandoc/mandocdb.c
688
if (strlcpy(mlink->file, path,
usr/src/cmd/mandoc/mandocdb.c
691
say(path, "Filename too long");
usr/src/cmd/mandoc/mandocdb.c
710
say(path, "Not a regular file");
usr/src/cmd/mandoc/mandocdb.c
746
say(path, "Unknown directory part");
usr/src/cmd/mandoc/mandocdb.c
763
say(path, "Extraneous directory part");
usr/src/cmd/mandoc/manpath.c
104
manpath_parseline(struct manpaths *dirs, char *path, char option)
usr/src/cmd/mandoc/manpath.c
108
if (NULL == path)
usr/src/cmd/mandoc/manpath.c
111
for (dir = strtok(path, ":"); dir; dir = strtok(NULL, ":"))
usr/src/cmd/mdb/common/kmdb/kctl/kctl_dmod.c
100
(void) snprintf(fullname, fullnamelen, "%s/%s", path, modname);
usr/src/cmd/mdb/common/kmdb/kctl/kctl_dmod.c
92
const char *path = kctl_dmod_path->dpth_path[i];
usr/src/cmd/mdb/common/kmdb/kctl/kctl_dmod.c
94
if (strlen(path) + 1 + strlen(modname) + 1 > fullnamelen) {
usr/src/cmd/mdb/common/kmdb/kctl/kctl_dmod.c
96
"name too long", path, modname);
usr/src/cmd/mdb/common/kmdb/kmdb_fdio.c
42
mdb_fdio_create_path(const char *path[], const char *fname,
usr/src/cmd/mdb/common/kmdb/kmdb_module.c
48
kmdb_module_path_set(const char **path, size_t pathlen)
usr/src/cmd/mdb/common/kmdb/kmdb_module.c
54
wr->dpth_path = mdb_path_dup(path, pathlen, &wr->dpth_pathlen);
usr/src/cmd/mdb/common/mdb/mdb.c
151
const char **path;
usr/src/cmd/mdb/common/mdb/mdb.c
303
if ((path = mdb_alloc(sizeof (char *) * (i + 1), UM_NOSLEEP)) == NULL) {
usr/src/cmd/mdb/common/mdb/mdb.c
309
path[i++] = q;
usr/src/cmd/mdb/common/mdb/mdb.c
311
path[i] = NULL;
usr/src/cmd/mdb/common/mdb/mdb.c
313
return (path);
usr/src/cmd/mdb/common/mdb/mdb.c
324
mdb_path_dup(const char *path[], size_t pathlen, size_t *npathlenp)
usr/src/cmd/mdb/common/mdb/mdb.c
329
for (i = 0; path[i] != NULL; i++)
usr/src/cmd/mdb/common/mdb/mdb.c
335
bcopy(path[0], npath[0], pathlen);
usr/src/cmd/mdb/common/mdb/mdb.c
339
npath[j] = npath[0] + (path[j] - path[0]);
usr/src/cmd/mdb/common/mdb/mdb.c
347
mdb_path_free(const char *path[], size_t pathlen)
usr/src/cmd/mdb/common/mdb/mdb.c
351
for (i = 0; path[i] != NULL; i++)
usr/src/cmd/mdb/common/mdb/mdb.c
355
mdb_free((void *)path[0], pathlen);
usr/src/cmd/mdb/common/mdb/mdb.c
356
mdb_free(path, sizeof (char *) * (i + 1));
usr/src/cmd/mdb/common/mdb/mdb.c
366
path_canon(char *path, const char *s)
usr/src/cmd/mdb/common/mdb/mdb.c
368
char *p = path;
usr/src/cmd/mdb/common/mdb/mdb.c
394
return (path);
usr/src/cmd/mdb/common/mdb/mdb.c
398
mdb_set_ipath(const char *path)
usr/src/cmd/mdb/common/mdb/mdb.c
403
path = path_canon(mdb.m_ipathstr, path);
usr/src/cmd/mdb/common/mdb/mdb.c
404
mdb.m_ipath = mdb_path_alloc(path, &mdb.m_ipathlen);
usr/src/cmd/mdb/common/mdb/mdb.c
408
mdb_set_lpath(const char *path)
usr/src/cmd/mdb/common/mdb/mdb.c
413
path = path_canon(mdb.m_lpathstr, path);
usr/src/cmd/mdb/common/mdb/mdb.c
414
mdb.m_lpath = mdb_path_alloc(path, &mdb.m_lpathlen);
usr/src/cmd/mdb/common/mdb/mdb_fdio.c
122
mdb_fdio_create_path(const char *path[], const char *fname,
usr/src/cmd/mdb/common/mdb/mdb_fdio.c
128
if (path != NULL && strchr(fname, '/') == NULL) {
usr/src/cmd/mdb/common/mdb/mdb_fdio.c
131
for (fd = -1, i = 0; path[i] != NULL; i++) {
usr/src/cmd/mdb/common/mdb/mdb_fdio.c
133
path[i], fname);
usr/src/cmd/mdb/common/mdb/mdb_proc.c
259
char path[MAXPATHLEN];
usr/src/cmd/mdb/common/mdb/mdb_proc.c
274
path[0] = '\0';
usr/src/cmd/mdb/common/mdb/mdb_proc.c
275
(void) strlcat(path, mdb.m_root, sizeof (path));
usr/src/cmd/mdb/common/mdb/mdb_proc.c
276
(void) strlcat(path, tdb_map[libn].tm_db_dir, sizeof (path));
usr/src/cmd/mdb/common/mdb/mdb_proc.c
278
(void) strlcat(path, "64/", sizeof (path));
usr/src/cmd/mdb/common/mdb/mdb_proc.c
280
(void) strlcat(path, tdb_map[libn].tm_db_name, sizeof (path));
usr/src/cmd/mdb/common/mdb/mdb_proc.c
283
(void) strlcat(path, strrchr(name, '.'), sizeof (path));
usr/src/cmd/mdb/common/mdb/mdb_proc.c
285
if ((ops = mdb_tdb_load(path)) == NULL) {
usr/src/cmd/mdb/common/mdb/mdb_proc.c
287
warn("failed to load %s", path);
usr/src/cmd/mdb/common/mdb/mdb_proc.c
300
warn("failed to initialize %s", path);
usr/src/cmd/mdb/common/mdb/mdb_proc.c
304
mdb_dprintf(MDB_DBG_TGT, "loaded %s for debugging %s\n", path, name);
usr/src/cmd/mdb/common/mdb/mdb_set.c
228
print_path(const char **path, int indent)
usr/src/cmd/mdb/common/mdb/mdb_set.c
230
if (path != NULL && *path != NULL) {
usr/src/cmd/mdb/common/mdb/mdb_set.c
231
for (mdb_printf("%s\n", *path++); *path != NULL; path++)
usr/src/cmd/mdb/common/mdb/mdb_set.c
232
mdb_printf("%*s%s\n", indent, " ", *path);
usr/src/cmd/mdb/common/mdb/mdb_tdb.c
121
(void) strncpy(t->tdb_pathname, path, MAXPATHLEN);
usr/src/cmd/mdb/common/mdb/mdb_tdb.c
72
mdb_tdb_load(const char *path)
usr/src/cmd/mdb/common/mdb/mdb_tdb.c
84
if (strcmp(path, t->tdb_pathname) == 0)
usr/src/cmd/mdb/common/mdb/mdb_tdb.c
95
if (access(path, F_OK) == -1)
usr/src/cmd/mdb/common/mdb/mdb_tdb.c
98
if ((hdl = dlmopen(LM_ID_BASE, path, RTLD_LAZY | RTLD_LOCAL)) == NULL) {
usr/src/cmd/mdb/common/modules/genunix/ndievents.c
214
char path[MAXPATHLEN];
usr/src/cmd/mdb/common/modules/genunix/ndievents.c
233
if (dip_to_pathname(&devi, path, sizeof (path)) == -1) {
usr/src/cmd/mdb/common/modules/genunix/ndievents.c
241
"dip %</b>(%p) \n", addr, path, handle.ndi_evthdl_dip);
usr/src/cmd/mdb/common/modules/genunix/ndievents.c
41
dip_to_pathname(struct dev_info *device, char *path, int buflen)
usr/src/cmd/mdb/common/modules/genunix/ndievents.c
60
if (sizeof (nodename) > (buflen - strlen(path))) {
usr/src/cmd/mdb/common/modules/genunix/ndievents.c
64
strncpy(path, nodename, sizeof (nodename));
usr/src/cmd/mdb/common/modules/genunix/ndievents.c
75
if (dip_to_pathname(&devi_parent, path, buflen) == -1) {
usr/src/cmd/mdb/common/modules/genunix/ndievents.c
94
bp = path + strlen(path);
usr/src/cmd/mdb/common/modules/genunix/ndievents.c
97
(void) mdb_snprintf(bp, buflen - strlen(path), "/%s", nodename);
usr/src/cmd/mdb/common/modules/genunix/ndievents.c
99
(void) mdb_snprintf(bp, buflen - strlen(path), "/%s@%s",
usr/src/cmd/mdb/common/modules/genunix/vfs.c
459
pfiles_dig_pathname(uintptr_t vp, char *path)
usr/src/cmd/mdb/common/modules/genunix/vfs.c
463
bzero(path, MAXPATHLEN);
usr/src/cmd/mdb/common/modules/genunix/vfs.c
512
(void) mdb_vnode2path(vp, path, MAXPATHLEN);
usr/src/cmd/mdb/common/modules/genunix/vfs.c
520
if (strncmp("/dev/../devices/", path, strlen("/dev/../devices/")) == 0)
usr/src/cmd/mdb/common/modules/genunix/vfs.c
521
strcpy(path, path + 7);
usr/src/cmd/mdb/common/modules/genunix/vfs.c
523
if (strncmp("/dev/pts/../../devices/", path,
usr/src/cmd/mdb/common/modules/genunix/vfs.c
525
strcpy(path, path + 14);
usr/src/cmd/mdb/common/modules/genunix/vfs.c
931
char path[MAXPATHLEN];
usr/src/cmd/mdb/common/modules/genunix/vfs.c
977
if (pfiles_dig_pathname(top_vnodep, path) == -1)
usr/src/cmd/mdb/common/modules/genunix/vfs.c
980
mdb_printf("%s\n", path);
usr/src/cmd/mdb/common/modules/genunix/vfs.c
988
path[0] = '\0';
usr/src/cmd/mdb/common/modules/genunix/vfs.c
990
if (pfiles_dig_pathname(top_vnodep, path) == -1)
usr/src/cmd/mdb/common/modules/genunix/vfs.c
993
mdb_printf("%s%s", path, path[0] == '\0' ? "" : " ");
usr/src/cmd/mdb/common/modules/genunix/zone.c
155
len = mdb_readstr(path, ZONE_PATHLEN,
usr/src/cmd/mdb/common/modules/genunix/zone.c
159
(void) strcpy(&path[len - 4], "...");
usr/src/cmd/mdb/common/modules/genunix/zone.c
161
(void) strcpy(path, "??");
usr/src/cmd/mdb/common/modules/genunix/zone.c
169
statusp, name, path);
usr/src/cmd/mdb/common/modules/genunix/zone.c
89
char path[ZONE_PATHLEN];
usr/src/cmd/mdb/common/modules/libpython/libpython.c
354
char path[PATH_MAX];
usr/src/cmd/mdb/common/modules/libpython/libpython.c
362
(void) strcpy(path, obj);
usr/src/cmd/mdb/common/modules/libpython/libpython.c
365
s2 = path + (s1 - obj);
usr/src/cmd/mdb/common/modules/libpython/libpython.c
372
s2 = strstr(path, ".so");
usr/src/cmd/mdb/common/modules/libpython/libpython.c
377
if ((pydb_dlhdl = dlopen(path, RTLD_LAZY|RTLD_GLOBAL)) != NULL)
usr/src/cmd/mdb/common/modules/libtopo/libtopo.c
156
char name[36], path[36], root[36];
usr/src/cmd/mdb/common/modules/libtopo/libtopo.c
171
if (mdb_readstr(path, sizeof (path), (uintptr_t)tm.tm_path) < 0) {
usr/src/cmd/mdb/common/modules/libtopo/libtopo.c
172
(void) mdb_snprintf(path, sizeof (path), "<%p>", tm.tm_path);
usr/src/cmd/mdb/common/modules/libtopo/libtopo.c
206
mdb_printf("%-12s %-36s %-30s\n", "tm_path", path,
usr/src/cmd/mdb/common/modules/mdb_ds/mdb_ds.c
302
char path[MAXPATHLEN];
usr/src/cmd/mdb/common/modules/mdb_ds/mdb_ds.c
329
if (mdb_readstr(path, sizeof (path),
usr/src/cmd/mdb/common/modules/mdb_ds/mdb_ds.c
333
*path = '\0';
usr/src/cmd/mdb/common/modules/mdb_ds/mdb_ds.c
337
dlr.dlr_modctl, path);
usr/src/cmd/mdb/common/modules/mdb_ds/mdb_ds.c
353
if (mdb_readstr(path, sizeof (path),
usr/src/cmd/mdb/common/modules/mdb_ds/mdb_ds.c
357
*path = '\0';
usr/src/cmd/mdb/common/modules/mdb_ds/mdb_ds.c
361
dur.dur_modctl, path);
usr/src/cmd/mdb/common/modules/mdb_ds/mdb_ds.c
389
if (mdb_readstr(path, sizeof (path), pathp) < 0) {
usr/src/cmd/mdb/common/modules/mdb_ds/mdb_ds.c
391
*path = '\0';
usr/src/cmd/mdb/common/modules/mdb_ds/mdb_ds.c
395
path);
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
1639
mdb_ddi_pathname(uintptr_t dip_addr, char *path, size_t pathlen)
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
1648
*path = '\0';
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
1649
return (path);
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
1658
(void) mdb_ddi_pathname(parent_dip, path, pathlen);
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
1660
bp = path + strlen(path);
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
1661
buf_left = pathlen - strlen(path);
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
1663
return (path);
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
367
mdb_sprintpath(char *buf, size_t len, mdb_path_t *path)
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
375
if (!path->mdp_complete) {
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
379
if (path->mdp_nelem == 0)
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
383
if (path->mdp_nelem == 0) {
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
388
for (i = path->mdp_nelem - 1; i >= 0; i--) {
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
399
(void) strncpy(s, path->mdp_name[i], left);
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
403
if (left < strlen(path->mdp_name[i]))
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
414
mdb_autonode2path(uintptr_t addr, mdb_path_t *path)
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
446
size_t elem = path->mdp_nelem++;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
451
path->mdp_nelem--;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
456
path->mdp_nelem--;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
468
path->mdp_vnode[elem] = (uintptr_t)fn.fn_vnode;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
471
path->mdp_name[elem] = &c[1];
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
472
path->mdp_complete = TRUE;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
477
path->mdp_name[elem] = p + 1;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
479
path->mdp_name[elem] = c;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
493
mdb_path_t path;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
511
bzero(&path, sizeof (mdb_path_t));
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
513
if ((addr == 0) && (path.mdp_nelem == 0)) {
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
517
path.mdp_complete = TRUE;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
522
path.mdp_complete = TRUE;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
532
path.mdp_vnode[path.mdp_nelem] = (uintptr_t)ent->vp;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
533
path.mdp_name[path.mdp_nelem] = ent->name;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
534
path.mdp_nelem++;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
536
if (path.mdp_nelem == MDB_PATH_NELEM) {
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
537
path.mdp_nelem--;
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
548
(void) mdb_autonode2path(addr, &path);
usr/src/cmd/mdb/common/modules/mdb_ks/mdb_ks.c
551
return (mdb_sprintpath(buf, buflen, &path));
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
1415
char path[MAXPATHLEN];
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
1416
char *p = path + sizeof (path) - 1;
usr/src/cmd/mdb/common/modules/nfs/nfs_clnt.c
1425
p - fn.fn_len - 1 < path || mdb_readstr(name, sizeof (name),
usr/src/cmd/mdb/common/modules/nfs/nfssrv.c
165
char *path;
usr/src/cmd/mdb/common/modules/nfs/nfssrv.c
188
path = mdb_alloc(exi.exi_export.ex_pathlen + 1, UM_SLEEP | UM_GC);
usr/src/cmd/mdb/common/modules/nfs/nfssrv.c
189
if (mdb_readstr(path, exi.exi_export.ex_pathlen + 1,
usr/src/cmd/mdb/common/modules/nfs/nfssrv.c
195
mdb_printf("\n%s %p\n", path, addr);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
2075
mdb_printf("Path: %s\n", phy.path);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
504
mdb_printf(" Path: %s\n", phy.path);
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
886
char *path;
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
910
path = phy.path;
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
912
path = "N/A";
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
920
wp->htag, state, path, wp->timer,
usr/src/cmd/mdb/common/modules/pmcs/pmcs.c
924
wp->htag, state, path, tgt, wp->timer,
usr/src/cmd/mdb/common/modules/smbsrv/smbsrv.c
2229
char path[MAXPATHLEN];
usr/src/cmd/mdb/common/modules/smbsrv/smbsrv.c
2259
if (mdb_readstr(args->path, sizeof (args->path),
usr/src/cmd/mdb/common/modules/smbsrv/smbsrv.c
2261
strcpy(args->path, "?");
usr/src/cmd/mdb/common/modules/smbsrv/smbsrv.c
2265
mdb_printf("%-s\n", args->path);
usr/src/cmd/mdb/common/modules/smbsrv/smbsrv.c
2368
char path[MAXPATHLEN];
usr/src/cmd/mdb/common/modules/smbsrv/smbsrv.c
2400
strcpy(args->path, "?");
usr/src/cmd/mdb/common/modules/smbsrv/smbsrv.c
2403
(void) mdb_readstr(args->path, sizeof (args->path),
usr/src/cmd/mdb/common/modules/smbsrv/smbsrv.c
2410
mdb_printf("%-s\n", args->path);
usr/src/cmd/mdb/common/modules/ufs/ufs.c
215
char path[MAXPATHLEN];
usr/src/cmd/mdb/common/modules/ufs/ufs.c
285
if (mdb_vnode2path((uintptr_t)inode.i_vnode, path,
usr/src/cmd/mdb/common/modules/ufs/ufs.c
286
sizeof (path)) == 0 && *path != '\0')
usr/src/cmd/mdb/common/modules/ufs/ufs.c
287
mdb_printf("%s\n", path);
usr/src/cmd/mdb/common/modules/ufs/ufs.c
306
if (mdb_vnode2path((uintptr_t)inode.i_vnode, path,
usr/src/cmd/mdb/common/modules/ufs/ufs.c
307
sizeof (path)) == 0 && *path != '\0') {
usr/src/cmd/mdb/common/modules/ufs/ufs.c
308
if (strlen(path) <= 21)
usr/src/cmd/mdb/common/modules/ufs/ufs.c
309
mdb_printf(" %-21s\n", path);
usr/src/cmd/mdb/common/modules/ufs/ufs.c
311
mdb_printf(" ...%-18s\n", path + strlen(path) - 18);
usr/src/cmd/mdb/common/modules/zfs/zfs.c
2081
char path[MAXNAMELEN];
usr/src/cmd/mdb/common/modules/zfs/zfs.c
2083
if (mdb_readstr(path, sizeof (path),
usr/src/cmd/mdb/common/modules/zfs/zfs.c
2090
if ((slash = strrchr(path, '/')) != NULL) {
usr/src/cmd/mdb/common/modules/zfs/zfs.c
2093
strcpy(desc, path);
usr/src/cmd/mdb/common/modules/zfs/zfs.c
654
char path[ZFS_MAX_DATASET_NAME_LEN];
usr/src/cmd/mdb/common/modules/zfs/zfs.c
677
if (objset_name(db.db_objset, path)) {
usr/src/cmd/mdb/common/modules/zfs/zfs.c
683
db.db_holds.rc_count, path);
usr/src/cmd/mdb/intel/libstand/stat.c
47
_xstat(const int ver, const char *path, struct stat *st)
usr/src/cmd/mdb/intel/libstand/stat.c
54
_lxstat(const int ver, const char *path, struct stat *st)
usr/src/cmd/mdb/intel/libstand/stat.c
61
_xmknod(const int ver, const char *path, mode_t mode, dev_t dev)
usr/src/cmd/mdb/intel/modules/smbios/smbios.c
38
smbios_mdb_write(const char *path, uintptr_t addr)
usr/src/cmd/mdb/intel/modules/smbios/smbios.c
71
if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
usr/src/cmd/mdb/intel/modules/smbios/smbios.c
72
mdb_warn("failed to open output file %s: %s\n", path,
usr/src/cmd/mdb/intel/modules/smbios/smbios.c
78
mdb_warn("failed to write smbios data to %s: %s\n", path,
usr/src/cmd/mkdir/mkdir.c
64
*simplify(char *path);
usr/src/cmd/mkdir/mkdir.c
70
newmode(char *ms, mode_t new_mode, mode_t umsk, char *file, char *path);
usr/src/cmd/mkfifo/mkfifo.c
52
newmode(char *modestr, mode_t basemode, mode_t umask, char *file, char *path);
usr/src/cmd/mkfifo/mkfifo.c
57
char *path;
usr/src/cmd/mkfifo/mkfifo.c
95
path = argv[i];
usr/src/cmd/mkfifo/mkfifo.c
96
if (mkfifo(path, mode) < 0) {
usr/src/cmd/mkmsgs/mkmsgs.c
383
char *path;
usr/src/cmd/mkmsgs/mkmsgs.c
385
if ((path = malloc(strlen(localdir)+1)) == NULL)
usr/src/cmd/mkmsgs/mkmsgs.c
387
*path = '\0';
usr/src/cmd/mkmsgs/mkmsgs.c
390
(void)strcat(path, "/");
usr/src/cmd/mkmsgs/mkmsgs.c
391
(void)strcat(path, dirp);
usr/src/cmd/mkmsgs/mkmsgs.c
392
if (access(path, 3) == 0)
usr/src/cmd/mkmsgs/mkmsgs.c
394
if (mkdir(path, 0777) == -1) {
usr/src/cmd/mkmsgs/mkmsgs.c
396
cmdname, path, syserr());
usr/src/cmd/mkmsgs/mkmsgs.c
397
free(path);
usr/src/cmd/mkmsgs/mkmsgs.c
401
free(path);
usr/src/cmd/mknod/mknod.c
118
domk(const char *path, const mode_t mode, const dev_t arg)
usr/src/cmd/mknod/mknod.c
122
if ((ec = mknod(path, mode, arg)) == -1) {
usr/src/cmd/mknod/mknod.c
126
(void) chown(path, getuid(), getgid());
usr/src/cmd/mknod/mknod.c
59
static int domk(const char *path, const mode_t mode, const dev_t arg);
usr/src/cmd/modload/add_drv.c
1009
pathlen = strlen(path);
usr/src/cmd/modload/add_drv.c
1010
if ((pathlen > 1) && path[pathlen - 1] == '/')
usr/src/cmd/modload/add_drv.c
1011
path[pathlen - 1] = '\0';
usr/src/cmd/modload/add_drv.c
995
remove_slashes(char *path)
usr/src/cmd/modload/add_drv.c
997
char *slash = path;
usr/src/cmd/modload/drvsubr.c
1181
exec_command(char *path, char *cmdline[MAX_CMD_LINE])
usr/src/cmd/modload/drvsubr.c
1190
(void) execv(path, cmdline);
usr/src/cmd/modload/drvsubr.c
1869
char path[MAXPATHLEN];
usr/src/cmd/modload/drvsubr.c
1892
(void) snprintf(path, sizeof (path), "/devices/%s", one_entry);
usr/src/cmd/modload/drvsubr.c
1893
if (stat(path, &buf) == 0)
usr/src/cmd/modload/modload.c
58
char path[1024];
usr/src/cmd/modload/modload.c
88
if (getcwd(path, 1023 - strlen(modpath)) == NULL)
usr/src/cmd/modload/modload.c
90
(void) strcat(path, "/");
usr/src/cmd/modload/modload.c
91
(void) strcat(path, modpath);
usr/src/cmd/modload/modload.c
93
(void) strcpy(path, modpath);
usr/src/cmd/modload/modload.c
98
if (modctl(MODLOAD, use_path, path, &id) != 0) {
usr/src/cmd/modload/rem_drv.c
271
char path[MAXPATHLEN];
usr/src/cmd/modload/rem_drv.c
276
if (snprintf(path, MAXPATHLEN, "%s/devices%s",
usr/src/cmd/modload/rem_drv.c
278
rv = devfs_walk_minor_nodes(path,
usr/src/cmd/more/more.c
661
tailequ(char *path, char *string)
usr/src/cmd/more/more.c
663
return (!strcmp(basename(path), string));
usr/src/cmd/mv/mv.c
1539
getrealpath(const char *path, char *rpath)
usr/src/cmd/mv/mv.c
1541
if (realpath(path, rpath) == NULL) {
usr/src/cmd/mv/mv.c
1544
"%s: cannot resolve path %s: "), cmd, path);
usr/src/cmd/ndmpd/include/tlm.h
537
char *path;
usr/src/cmd/ndmpd/include/tlm.h
573
unsigned long long *offset, char **path);
usr/src/cmd/ndmpd/include/tlm.h
575
unsigned long long offset, char *path, int is_tmp);
usr/src/cmd/ndmpd/include/tlm_buffers.h
182
char *path);
usr/src/cmd/ndmpd/ndmp/ndmpd.h
723
extern void ndmpd_audit_backup(ndmp_connection_t *conn, char *path,
usr/src/cmd/ndmpd/ndmp/ndmpd.h
726
char *path, int dest, char *local_path, int result);
usr/src/cmd/ndmpd/ndmp/ndmpd_comm.c
1513
char *path, int dest, char *local_path, int result)
usr/src/cmd/ndmpd/ndmp/ndmpd_comm.c
1521
event->adt_ndmp_backup.source = path;
usr/src/cmd/ndmpd/ndmp/ndmpd_comm.c
1549
char *path, int dest, char *local_path, int result)
usr/src/cmd/ndmpd/ndmp/ndmpd_comm.c
1558
event->adt_ndmp_restore.destination = path;
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
1003
path, level, ddate);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
1008
(get_zfsvolname(vol, sizeof (vol), path) == 0) &&
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
1021
rv = append_dumptime(fname, path, level, ddate);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
641
putdumptime(char *path, int level, time_t ddate)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
650
if (!path)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
654
NDMP_LOG(LOG_DEBUG, "Lbr: [%s][%c][%u]", path, level, ddate);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
656
NDMP_LOG(LOG_DEBUG, "[%s][%d][%u]", path, level, ddate);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
701
if (strcmp(path, ddp->dd_name))
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
724
(void) strlcpy(tmpdd.dd_name, path, TLM_MAX_PATH_NAME);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
743
append_dumptime(char *fname, char *path, int level, time_t ddate)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
749
if (!fname || !*fname || !path || !*path)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
755
fname, path, level, ddate);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
758
fname, path, level, ddate);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
792
(void) strlcpy(tmpdd.dd_name, path, TLM_MAX_PATH_NAME);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
810
find_date(dumpdates_t *ddp, char *path, int level, time_t t)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
814
strcmp(path, ddp->dd_name) == 0)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
832
ndmpd_get_dumptime(char *path, int *level, time_t *ddate)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
842
if (!path || !level || !ddate)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
846
path, *level);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
856
(get_zfsvolname(vol, sizeof (vol), path) == 0) &&
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
914
save = find_date(ddp, path, *level, *ddate);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
927
save = find_date(ddp, path, i, *ddate);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
958
ndmpd_put_dumptime(char *path, int level, time_t ddate)
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
965
NDMP_LOG(LOG_DEBUG, "[%s][%d][%u]", path, level,
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
971
(get_zfsvolname(vol, sizeof (vol), path) == 0) &&
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
984
rv = putdumptime(path, level, ddate);
usr/src/cmd/ndmpd/ndmp/ndmpd_dtime.c
995
ndmpd_append_dumptime(char *fname, char *path, int level, time_t ddate)
usr/src/cmd/ndmpd/ndmp/ndmpd_fhistory.c
1332
ndmpd_file_history_path(lbr_fhlog_call_backs_t *cbp, char *path,
usr/src/cmd/ndmpd/ndmp/ndmpd_fhistory.c
1344
} else if (!path) {
usr/src/cmd/ndmpd/ndmp/ndmpd_fhistory.c
1356
NDMP_LOG(LOG_DEBUG, "path: \"%s\"", path);
usr/src/cmd/ndmpd/ndmp/ndmpd_fhistory.c
1364
fh_cookie, path, stp, 0)) < 0)
usr/src/cmd/ndmpd/ndmp/ndmpd_fhistory.c
1365
NDMP_LOG(LOG_DEBUG, "\"%s\": %d", path, err);
usr/src/cmd/ndmpd/ndmp/ndmpd_fhistory.c
733
ndmpd_fhpath_v3_cb(lbr_fhlog_call_backs_t *cbp, char *path, struct stat64 *stp,
usr/src/cmd/ndmpd/ndmp/ndmpd_fhistory.c
746
} else if (!path) {
usr/src/cmd/ndmpd/ndmp/ndmpd_fhistory.c
758
NDMP_LOG(LOG_DEBUG, "pname(%s)", path);
usr/src/cmd/ndmpd/ndmp/ndmpd_fhistory.c
773
path);
usr/src/cmd/ndmpd/ndmp/ndmpd_fhistory.c
776
NDMP_LOG(LOG_DEBUG, "\"%s\" %d", path, err);
usr/src/cmd/ndmpd/ndmp/ndmpd_log.c
100
mk_pathname(char *fname, char *path, int idx)
usr/src/cmd/ndmpd/ndmp/ndmpd_log.c
107
len = strnlen(path, PATH_MAX);
usr/src/cmd/ndmpd/ndmp/ndmpd_log.c
108
fmt = (path[len - 1] == '/') ? "%s%s" : "%s/%s";
usr/src/cmd/ndmpd/ndmp/ndmpd_log.c
114
(void) snprintf(buf, PATH_MAX, fmt, path, name);
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
155
count_set_bits(char *path, int bmd)
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
164
NDMP_LOG(LOG_DEBUG, "%s %llu inodes marked", path, cnt);
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
407
mark_inodes_v2(ndmpd_session_t *session, ndmp_lbr_params_t *nlp, char *path)
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
412
if (!session || !nlp || !path || !*path) {
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
417
NDMP_LOG(LOG_DEBUG, "path \"%s\"", path);
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
424
ft.ft_path = path;
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
448
create_bitmap(char *path, int value)
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
455
NDMP_LOG(LOG_DEBUG, "path \"%s\"", path);
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
457
if (fs_is_chkpntvol(path))
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
458
livepath = (char *)tlm_remove_checkpoint(path, buf);
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
460
livepath = path;
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
680
mark_tokv3(ndmpd_session_t *session, ndmp_lbr_params_t *nlp, char *path)
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
685
if (!session || !nlp || !path || !*path) {
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
704
ft.ft_path = path;
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
833
mark_lbrv3(ndmpd_session_t *session, ndmp_lbr_params_t *nlp, char *path)
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
839
if (!session || !nlp || !path || !*path) {
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
860
ft.ft_path = path;
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
888
mark_levelv3(ndmpd_session_t *session, ndmp_lbr_params_t *nlp, char *path)
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
894
if (!session || !nlp || !path || !*path) {
usr/src/cmd/ndmpd/ndmp/ndmpd_mark.c
920
ft.ft_path = path;
usr/src/cmd/ndmpd/ndmp/ndmpd_tape.c
1365
tape_open(char *path, int flags)
usr/src/cmd/ndmpd/ndmp/ndmpd_tape.c
1370
while ((fd = open(path, flags)) == -1 &&
usr/src/cmd/ndmpd/ndmp/ndmpd_tar3.c
508
mknewname(struct rs_name_maker *rnp, char *buf, int idx, char *path)
usr/src/cmd/ndmpd/ndmp/ndmpd_tar3.c
517
} else if (!path) {
usr/src/cmd/ndmpd/ndmp/ndmpd_tar3.c
534
rv = mkrsp(buf, path, ep->nm3_opath,
usr/src/cmd/ndmpd/ndmp/ndmpd_tar3.c
542
"path \"%s\": \"%s\"", path, rv);
usr/src/cmd/ndmpd/ndmp/ndmpd_tar3.c
545
"path \"%s\": NULL", path);
usr/src/cmd/ndmpd/ndmp/ndmpd_tar3.c
549
if (!tlm_cat_path(buf, nlp->nlp_restore_path, path)) {
usr/src/cmd/ndmpd/ndmp/ndmpd_tar3.c
551
nlp->nlp_restore_path, path);
usr/src/cmd/ndmpd/ndmp/ndmpd_tar3.c
556
"path \"%s\": \"%s\"", path, rv);
usr/src/cmd/ndmpd/ndmp/ndmpd_tar3.c
616
voliswr(char *path)
usr/src/cmd/ndmpd/ndmp/ndmpd_tar3.c
620
if (!path)
usr/src/cmd/ndmpd/ndmp/ndmpd_tar3.c
623
rv = !fs_is_rdonly(path) && !fs_is_chkpntvol(path);
usr/src/cmd/ndmpd/ndmp/ndmpd_tar3.c
624
NDMP_LOG(LOG_DEBUG, "%d path \"%s\"", rv, path);
usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
2099
fs_is_valid_logvol(char *path)
usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
2103
if (stat64(path, &st) < 0)
usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
2176
char path[PATH_MAX];
usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
2186
(void) strlcpy(path, (char *)p, PATH_MAX);
usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
2187
(void) trim_whitespace(path);
usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
2192
(void) tlm_cat_path(buf, path, name);
usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
2204
ndmp_is_chkpnt_root(char *path)
usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
2208
if (stat64(path, &st) != 0) {
usr/src/cmd/ndmpd/ndmp/ndmpd_util.c
2209
NDMP_LOG(LOG_DEBUG, "Couldn't stat path \"%s\"", path);
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
106
if (hl->path)
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
107
free(hl->path);
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
121
unsigned long long *offset, char **path)
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
143
if (path)
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
144
*path = hl->path;
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
159
unsigned long long offset, char *path, int is_tmp_file)
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
166
hl_q, inode, path, path? path : "(--)");
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
184
if (path)
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
185
hl->path = strdup(path);
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
187
hl->path = NULL;
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
192
hl->inode, hl->path, hl->path? hl->path : "(--)");
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
212
hl->inode, hl->offset, hl->path? hl->path : "--",
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
93
if (hl->path) {
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
95
hl->path);
usr/src/cmd/ndmpd/tlm/tlm_hardlink.c
96
if (remove(hl->path)) {
usr/src/cmd/ndmpd/tlm/tlm_lib.c
1236
get_zfsvolname(char *volname, int len, char *path)
usr/src/cmd/ndmpd/tlm/tlm_lib.c
1244
if (stat64(path, &stbuf) != 0) {
usr/src/cmd/ndmpd/tlm/tlm_lib.c
1272
fs_is_chkpntvol(char *path)
usr/src/cmd/ndmpd/tlm/tlm_lib.c
1277
if (!path || !*path)
usr/src/cmd/ndmpd/tlm/tlm_lib.c
1280
if (get_zfsvolname(vol, sizeof (vol), path) == -1)
usr/src/cmd/ndmpd/tlm/tlm_lib.c
1304
fs_is_chkpnt_enabled(char *path)
usr/src/cmd/ndmpd/tlm/tlm_lib.c
1309
if (!path || !*path)
usr/src/cmd/ndmpd/tlm/tlm_lib.c
1313
if (get_zfsvolname(vol, sizeof (vol), path) == -1) {
usr/src/cmd/ndmpd/tlm/tlm_lib.c
1332
fs_is_rdonly(char *path)
usr/src/cmd/ndmpd/tlm/tlm_lib.c
1334
return (fs_is_chkpntvol(path));
usr/src/cmd/ndmpd/tlm/tlm_lib.c
649
tlm_get_chkpnt_time(char *path, int auto_checkpoint, time_t *tp, char *jname)
usr/src/cmd/ndmpd/tlm/tlm_lib.c
656
path, auto_checkpoint);
usr/src/cmd/ndmpd/tlm/tlm_lib.c
658
if (path == NULL || *path == '\0' || tp == NULL)
usr/src/cmd/ndmpd/tlm/tlm_lib.c
662
path) == -1)
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
1126
mkbasedir(char *path)
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
1132
if (!path || !*path) {
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
1137
cp = strrchr(path, '/');
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
1140
rv = lstat64(path, &st);
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
1142
rv = make_dirs(path);
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
131
char *path);
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
136
char *path);
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
139
char *path,
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
2256
catnames(struct rs_name_maker *rnp, char *buf, int pos, char *path)
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
2263
} else if (!path) {
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
2266
NDMP_LOG(LOG_DEBUG, "rn_nlp is NULL [%s]", path);
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
2267
} else if (!tlm_cat_path(buf, rnp->rn_nlp, path)) {
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
2269
rnp->rn_nlp, path);
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
2281
rs_new_name(struct rs_name_maker *rnp, char *buf, int pos, char *path)
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
2286
return (*rnp->rn_fp)(rnp, buf, pos, path);
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
2293
rs_create_new_bkpath(char *bk_path, char *path, char *pbuf)
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
2297
if ((p = strstr(path, bk_path)) == NULL) {
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
2298
(void) strlcpy(pbuf, path, TLM_MAX_PATH_NAME);
usr/src/cmd/ndmpd/tlm/tlm_restore_writer.c
2310
NDMP_LOG(LOG_DEBUG, "old path [%s] new path [%s]", path, pbuf);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
1018
"Poped pl %d \"%s\"", pl, path);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
1021
pl = tsp->ts_end - path;
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
183
new_tsp(char *path)
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
190
tsp->ts_end = strchr(path, '\0');
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
203
fs_getstat(char *path, fs_fhandle_t *fh, struct stat64 *st)
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
205
if (lstat64(path, st) == -1)
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
213
fh->fh_fpath = strdup(path);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
286
fs_readdir(fs_fhandle_t *ts_fh, char *path, long *dpos,
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
302
(void) snprintf(file_path, PATH_MAX, "%s/", path);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
329
char path[PATH_MAX + 1]; /* full path name of the current dir */
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
365
(void) strcpy(path, ftp->ft_lpath);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
395
tsp = new_tsp(path);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
405
pn.tn_path = path;
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
417
NDMP_LOG(LOG_DEBUG, "pl %d \"%s\"", pl, path);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
433
rv, path, tsp->ts_dpos);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
463
path, nm);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
502
tsp = new_tsp(path);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
562
pl = tsp->ts_end - path;
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
566
pl, tsp, path);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
747
char path[PATH_MAX + 1]; /* full path name of the current dir */
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
782
(void) strcpy(path, ftp->ft_lpath);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
812
tsp = new_tsp(path);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
833
pn.tn_path = path;
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
859
NDMP_LOG(LOG_DEBUG, "pl %d \"%s\"", pl, path);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
900
rv, path, tsp->ts_dpos);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
931
path, nm);
usr/src/cmd/ndmpd/tlm/tlm_traverse.c
978
tsp = new_tsp(path);
usr/src/cmd/ndmpd/tlm/tlm_util.c
455
get_volname(char *path)
usr/src/cmd/ndmpd/tlm/tlm_util.c
460
if (!path)
usr/src/cmd/ndmpd/tlm/tlm_util.c
463
if (!(save = strdup(path)))
usr/src/cmd/ndmpd/tlm/tlm_util.c
466
sp = strspn(path, "/");
usr/src/cmd/ndmpd/tlm/tlm_util.c
467
if (*(path + sp) == '\0') {
usr/src/cmd/ndmpd/tlm/tlm_util.c
484
fs_volexist(char *path)
usr/src/cmd/ndmpd/tlm/tlm_util.c
489
if ((p = get_volname(path)) == NULL)
usr/src/cmd/newgrp/newgrp.c
169
envinit[1] = path;
usr/src/cmd/newgrp/newgrp.c
70
char *path = PATH;
usr/src/cmd/newtask/newtask.c
239
env[2] = (pw->pw_uid == 0 ? supath : path);
usr/src/cmd/newtask/newtask.c
67
static char *path = PATH;
usr/src/cmd/nlsadmin/nlsadmin.c
535
prt_cmd(char *path, long flags, char *modules, char *addr, char *rpcp)
usr/src/cmd/nlsadmin/nlsadmin.c
549
if (*path != '/') {
usr/src/cmd/nlsadmin/nlsadmin.c
554
if ((tmp = strchr(path, ' ')) != NULL)
usr/src/cmd/nlsadmin/nlsadmin.c
557
if (stat(path, &sbuf) < 0) {
usr/src/cmd/nlsadmin/nlsadmin.c
559
sprintf(mesgbuf, "%s does not exist", path);
usr/src/cmd/nlsadmin/nlsadmin.c
570
pflags(flags), (modules ? modules : ""), path);
usr/src/cmd/nscd/nscd_selfcred.c
1111
char *path,
usr/src/cmd/nscd/nscd_selfcred.c
1122
execpath = strdup(path);
usr/src/cmd/nscd/nscd_selfcred.c
1133
(void) execv(path, execargv);
usr/src/cmd/nscd/nscd_selfcred.h
66
void _nscd_start_forker(char *path, int argc, char **argv);
usr/src/cmd/nvmeadm/nvmeadm.c
1093
char *disk_ctd, *path = NULL;
usr/src/cmd/nvmeadm/nvmeadm.c
1101
path = di_dim_path_dev(dim, di_driver_name(child),
usr/src/cmd/nvmeadm/nvmeadm.c
1108
if (path == NULL || strlen(path) < 2) {
usr/src/cmd/nvmeadm/nvmeadm.c
1113
path[strlen(path) - 2] = '\0';
usr/src/cmd/nvmeadm/nvmeadm.c
1114
disk_ctd = strrchr(path, '/');
usr/src/cmd/nvmeadm/nvmeadm.c
1116
errx(-1, "encountered malformed minor path: %s", path);
usr/src/cmd/nvmeadm/nvmeadm.c
1124
free(path);
usr/src/cmd/nvmeadm/nvmeadm_ofmt.c
109
path = di_devfs_path(list->nloa_dip);
usr/src/cmd/nvmeadm/nvmeadm_ofmt.c
110
if (path == NULL) {
usr/src/cmd/nvmeadm/nvmeadm_ofmt.c
113
ret = strlcat(buf, path, buflen);
usr/src/cmd/nvmeadm/nvmeadm_ofmt.c
114
di_devfs_path_free(path);
usr/src/cmd/nvmeadm/nvmeadm_ofmt.c
83
char *path;
usr/src/cmd/pathchk/pathchk.c
136
checkPathConf(const char *path, int type, long *valp)
usr/src/cmd/pathchk/pathchk.c
139
*valp = pathconf(path, type);
usr/src/cmd/pathchk/pathchk.c
152
(void) fprintf(stderr, gettext(pathconfprob), path,
usr/src/cmd/pathchk/pathchk.c
180
checkpathname(char *path, int pflag)
usr/src/cmd/pathchk/pathchk.c
189
p = path;
usr/src/cmd/pathchk/pathchk.c
215
(void) fprintf(stderr, gettext(pathtoolong), path);
usr/src/cmd/pathchk/pathchk.c
257
gettext(badchar), path, *p, *p);
usr/src/cmd/pathchk/pathchk.c
260
gettext(badbyte), path, *p);
usr/src/cmd/pathchk/pathchk.c
288
if (stat(path, &sb) == -1) {
usr/src/cmd/pathchk/pathchk.c
300
path);
usr/src/cmd/pathchk/pathchk.c
312
if (checkPathConf(path, _PC_NAME_MAX,
usr/src/cmd/pathchk/pathchk.c
315
gettext(notsrch), path);
usr/src/cmd/pcidr/pcidr.c
366
char *path, *pathp, *pathend;
usr/src/cmd/pcidr/pcidr.c
374
path = strdup(opath);
usr/src/cmd/pcidr/pcidr.c
375
lp = parse_macros(path, &lplen);
usr/src/cmd/pcidr/pcidr.c
377
return (path);
usr/src/cmd/pcidr/pcidr.c
381
pathlen = strlen(path);
usr/src/cmd/pcidr/pcidr.c
382
pathend = &path[pathlen - 1];
usr/src/cmd/pcidr/pcidr.c
383
pathp = path;
usr/src/cmd/pcidr/pcidr.c
418
free(path);
usr/src/cmd/pcidr/pcidr.c
435
char *path = NULL;
usr/src/cmd/pcidr/pcidr.c
440
path = parse_path(plugin_paths[i]);
usr/src/cmd/pcidr/pcidr.c
441
if (path == NULL) {
usr/src/cmd/pcidr/pcidr.c
443
path);
usr/src/cmd/pcidr/pcidr.c
447
rv = stat(path, &statbuf);
usr/src/cmd/pcidr/pcidr.c
450
"errno = %d\n", fn, path, errno);
usr/src/cmd/pcidr/pcidr.c
453
"file\n", fn, path);
usr/src/cmd/pcidr/pcidr.c
455
return (path);
usr/src/cmd/pcidr/pcidr.c
457
free(path);
usr/src/cmd/pcidr/pcidr.c
469
do_plugin(char *path, nvlist_t *attrlistp, pcidr_opt_t *optp)
usr/src/cmd/pcidr/pcidr.c
477
dlh = dlopen(path, RTLD_LAZY | RTLD_GLOBAL);
usr/src/cmd/pcieadm/pcieadm.c
236
char *path = NULL, *driver;
usr/src/cmd/pcieadm/pcieadm.c
241
path = di_devfs_path(node);
usr/src/cmd/pcieadm/pcieadm.c
242
if (path == NULL) {
usr/src/cmd/pcieadm/pcieadm.c
256
path);
usr/src/cmd/pcieadm/pcieadm.c
264
if (strcmp(pia->pia_devstr, path) == 0 ||
usr/src/cmd/pcieadm/pcieadm.c
278
if (path != NULL) {
usr/src/cmd/pcieadm/pcieadm.c
279
di_devfs_path_free(path);
usr/src/cmd/pcieadm/pcieadm.c
360
pcieadm_init_ops_file(pcieadm_t *pcip, const char *path,
usr/src/cmd/pcieadm/pcieadm.c
371
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/cmd/pcieadm/pcieadm.c
372
err(EXIT_FAILURE, "failed to open input file %s", path);
usr/src/cmd/pcieadm/pcieadm.c
377
path);
usr/src/cmd/pcieadm/pcieadm.c
386
"to read data", path);
usr/src/cmd/pcieadm/pcieadm.c
391
"to read data", path);
usr/src/cmd/pcieadm/pcieadm.c
396
"to read data", path);
usr/src/cmd/pcieadm/pcieadm.c
401
"to read data", path);
usr/src/cmd/pcieadm/pcieadm_devs.c
426
char *path = NULL;
usr/src/cmd/pcieadm/pcieadm_devs.c
435
path = di_devfs_path(node);
usr/src/cmd/pcieadm/pcieadm_devs.c
436
if (path == NULL) {
usr/src/cmd/pcieadm/pcieadm_devs.c
444
path);
usr/src/cmd/pcieadm/pcieadm_devs.c
447
oarg.psdo_path = path;
usr/src/cmd/pcieadm/pcieadm_devs.c
604
if (path != NULL) {
usr/src/cmd/pcieadm/pcieadm_devs.c
605
di_devfs_path_free(path);
usr/src/cmd/pcitool/pcitool.c
1418
iget_p->dev[i].path);
usr/src/cmd/pcitool/pcitool.c
1423
iget_p->dev[i].path);
usr/src/cmd/pcitool/pcitool.c
196
char *path; /* For building full nexus pathname. */
usr/src/cmd/pcitool/pcitool.c
236
path = malloc(stringsize);
usr/src/cmd/pcitool/pcitool.c
239
(void) snprintf(path, stringsize, format, prefix, device, suffix);
usr/src/cmd/pcitool/pcitool.c
242
if ((fd = open(path, O_RDWR)) == -1) {
usr/src/cmd/pcitool/pcitool.c
246
path, strerror(errno));
usr/src/cmd/pfexecd/pfexecd.c
145
removeisapath(char *path)
usr/src/cmd/pfexecd/pfexecd.c
149
if (!cansplice || regexec(&regc, path, NMATCH, match, 0) != 0)
usr/src/cmd/pfexecd/pfexecd.c
162
(void) memmove(path + match[1].rm_so, path + match[1].rm_eo,
usr/src/cmd/pfexecd/pfexecd.c
203
get_uid(const char *v, boolean_t *ok, char *path)
usr/src/cmd/pfexecd/pfexecd.c
215
syslog(LOG_ERR, "%s: %s: unknown username\n", path, v);
usr/src/cmd/pfexecd/pfexecd.c
220
get_gid(const char *v, boolean_t *ok, char *path)
usr/src/cmd/pfexecd/pfexecd.c
232
syslog(LOG_ERR, "%s: %s: unknown groupname\n", path, v);
usr/src/cmd/pfexecd/pfexecd.c
237
get_privset(const char *s, boolean_t *ok, char *path)
usr/src/cmd/pfexecd/pfexecd.c
242
syslog(LOG_ERR, "%s: %s: bad privilege set\n", path, s);
usr/src/cmd/pfexecd/pfexecd.c
362
char *path = pap->pfa_path;
usr/src/cmd/pfexecd/pfexecd.c
384
exec = getexecuser(pwd->pw_name, KV_COMMAND, path, GET_ONE);
usr/src/cmd/pfexecd/pfexecd.c
386
if ((exec == NULL || exec->attr == NULL) && removeisapath(path)) {
usr/src/cmd/pfexecd/pfexecd.c
388
exec = getexecuser(pwd->pw_name, KV_COMMAND, path, GET_ONE);
usr/src/cmd/pfexecd/pfexecd.c
411
euid = uid = get_uid(value, &res->pfr_allowed, path);
usr/src/cmd/pfexecd/pfexecd.c
414
egid = gid = get_gid(value, &res->pfr_allowed, path);
usr/src/cmd/pfexecd/pfexecd.c
417
euid = get_uid(value, &res->pfr_allowed, path);
usr/src/cmd/pfexecd/pfexecd.c
420
egid = get_gid(value, &res->pfr_allowed, path);
usr/src/cmd/pfexecd/pfexecd.c
423
lset = get_privset(value, &res->pfr_allowed, path);
usr/src/cmd/pfexecd/pfexecd.c
426
iset = get_privset(value, &res->pfr_allowed, path);
usr/src/cmd/picl/plugins/common/memcfg/piclmemcfg_comm.c
707
char path[PATH_MAX];
usr/src/cmd/picl/plugins/common/memcfg/piclmemcfg_comm.c
730
(void) strcpy(path, MC_DIR);
usr/src/cmd/picl/plugins/common/memcfg/piclmemcfg_comm.c
731
(void) strcat(path, retp->d_name);
usr/src/cmd/picl/plugins/common/memcfg/piclmemcfg_comm.c
733
if ((fd = open(path, O_RDONLY, 0)) != -1) {
usr/src/cmd/picl/plugins/lib/picld_pluginutil/picld_pluginutil_impl.h
105
path_cmd_t path;
usr/src/cmd/picl/plugins/lib/picld_pluginutil/picld_pluginutil_impl.h
130
#define pathcmd_name u.path.path
usr/src/cmd/picl/plugins/lib/picld_pluginutil/picld_pluginutil_impl.h
55
char *path;
usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcplugin/psvcplugin.c
260
err = ptree_get_node_by_path(dev_pr_info[i].path, &dev_pr_node);
usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcplugin/psvcplugin.c
262
syslog(LOG_ERR, "Bad path: %s", dev_pr_info[i].path);
usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcplugin/psvcplugin.c
91
char path[256];
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1025
char path[PATH_MAX];
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1058
(void) strcpy(path, "/devices");
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1059
(void) strlcat(path, fanp->devfs_path, sizeof (path));
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1060
fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1222
char path[PATH_MAX];
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1251
(void) strcpy(path, "/devices");
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1252
(void) strlcat(path, sensorp->devfs_path,
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1253
sizeof (path));
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
1254
sensorp->fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
593
char path[PATH_MAX];
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
604
(void) snprintf(path, sizeof (path), "%s%s", I2C_DEVFS, MBFRU_DEV);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
605
fd = open(path, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
607
envd_log(LOG_ERR, ENV_FRU_OPEN_FAIL, errno, path);
usr/src/cmd/picl/plugins/sun4u/enchilada/envd/piclenvd.c
616
envd_log(LOG_ERR, ENV_FRU_BAD_ENVSEG, path);
usr/src/cmd/picl/plugins/sun4u/envmon/piclenvmon.c
1529
char path[MAXPATHLEN];
usr/src/cmd/picl/plugins/sun4u/envmon/piclenvmon.c
1549
path, sizeof (path));
usr/src/cmd/picl/plugins/sun4u/envmon/piclenvmon.c
1570
if (strcmp(str_SC, path) == 0) {
usr/src/cmd/picl/plugins/sun4u/envmon/piclenvmon.c
1592
PICL_PROP_NAME, path, sizeof (path));
usr/src/cmd/picl/plugins/sun4u/envmon/piclenvmon.c
1601
retval = ptree_create_node(path,
usr/src/cmd/picl/plugins/sun4u/envmon/piclenvmon.c
1632
path, sizeof (path));
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1401
char path[PATH_MAX];
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1414
(void) strcpy(path, "/devices");
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1415
(void) strlcat(path, fanp->devfs_path, sizeof (path));
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1416
fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1608
char path[PATH_MAX];
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1637
(void) strcpy(path, "/devices");
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1638
(void) strlcat(path, sensorp->devfs_path,
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1639
sizeof (path));
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
1641
sensorp->fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
807
fru_present(char *path)
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
818
(void) strlcpy(physpath, path, sizeof (physpath));
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
926
char path[PATH_MAX];
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
954
(void) strcpy(path, "/devices");
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
955
(void) strlcat(path, sensorp->fru, sizeof (path));
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
958
fd = open(path, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/excalibur/envd/piclenvd.c
962
path, fd, errno);
usr/src/cmd/picl/plugins/sun4u/grover/envd/piclenvd.c
400
char path[FILENAME_MAX];
usr/src/cmd/picl/plugins/sun4u/grover/envd/piclenvd.c
408
(void) strcpy(path, "/devices");
usr/src/cmd/picl/plugins/sun4u/grover/envd/piclenvd.c
409
(void) strlcat(path, fanp->devfs_path, sizeof (path));
usr/src/cmd/picl/plugins/sun4u/grover/envd/piclenvd.c
410
fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/grover/envd/piclenvd.c
451
char path[FILENAME_MAX];
usr/src/cmd/picl/plugins/sun4u/grover/envd/piclenvd.c
464
(void) strcpy(path, "/devices");
usr/src/cmd/picl/plugins/sun4u/grover/envd/piclenvd.c
465
(void) strlcat(path, sensorp->devfs_path, sizeof (path));
usr/src/cmd/picl/plugins/sun4u/grover/envd/piclenvd.c
466
sensorp->fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/littleneck/psvcplugin/psvcplugin.c
182
err = ptree_get_node_by_path(dev_pr_info[i].path, &dev_pr_node);
usr/src/cmd/picl/plugins/sun4u/littleneck/psvcplugin/psvcplugin.c
87
char path[256];
usr/src/cmd/picl/plugins/sun4u/lw8/frutree/piclfrutree.c
2156
char path[MAXPATHLEN];
usr/src/cmd/picl/plugins/sun4u/lw8/frutree/piclfrutree.c
2196
sprintf_buf2(path, CHASSIS_LOC_PATH, &ap_id[AP_ID_PREAMBLE_LEN]);
usr/src/cmd/picl/plugins/sun4u/lw8/frutree/piclfrutree.c
2287
if (ptree_get_node_by_path(path, &locnodeh) != PICL_SUCCESS) {
usr/src/cmd/picl/plugins/sun4u/lw8/frutree/piclfrutree.c
3854
char path[MAXPATHLEN];
usr/src/cmd/picl/plugins/sun4u/lw8/frutree/piclfrutree.c
3857
sprintf_buf2(path, CHASSIS_LOC_PATH, fruname);
usr/src/cmd/picl/plugins/sun4u/lw8/frutree/piclfrutree.c
3858
if (ptree_get_node_by_path(path, &slotndh) != PICL_SUCCESS) {
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1422
get_fantray_path(char *ap_id, char *path, int bufsz)
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1433
(void) snprintf(path, bufsz, SEATTLE_FCB0_1U, ft_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1437
(void) snprintf(path, bufsz, SEATTLE_FCB1_1U, ft_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1439
(void) snprintf(path, bufsz, SEATTLE_PDB_1U, ft_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1447
(void) snprintf(path, bufsz, SEATTLE_FCB0_2U, ft_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1451
(void) snprintf(path, bufsz, SEATTLE_FCB1_2U, ft_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1453
(void) snprintf(path, bufsz, SEATTLE_PDB_2U, ft_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1458
(void) snprintf(path, bufsz, SYS_BOARD_PATH, ft_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1462
(void) snprintf(path, bufsz, CHASSIS_LOC_PATH, ft_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1478
char path[MAXPATHLEN];
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1539
sprintf_buf2(path, SYS_BOARD_PATH, ap_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1543
sprintf_buf2(path, CHASSIS_LOC_PATH,
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1548
sprintf_buf2(path, SEATTLE1U_HDDBP_PATH, ap_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1551
sprintf_buf2(path, SEATTLE2U_HDDBP_PATH, ap_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1554
sprintf_buf2(path, BOSTON_HDDBP_PATH, ap_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1557
sprintf_buf2(path, CHASSIS_LOC_PATH, ap_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1561
get_fantray_path(ap_id, path, MAXPATHLEN);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1563
sprintf_buf2(path, CHASSIS_LOC_PATH, ap_id);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1567
if (ptree_get_node_by_path(path, &locnodeh) != PICL_SUCCESS) {
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1671
char path[MAXPATHLEN];
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1683
path, sizeof (path));
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1687
fru_name = strdup(path);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1722
if (get_config_file(path, fru_name) == 0) {
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1724
(picld_pluginutil_parse_config_file(rooth, path) !=
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1726
syslog(LOG_ERR, PARSE_CONF_FAIL, path);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1743
char path[MAXPATHLEN];
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1793
if (get_config_file(path, fru_name) == 0) {
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1796
path) != PICL_SUCCESS)) {
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1797
syslog(LOG_ERR, PARSE_CONF_FAIL, path);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1843
if (get_config_file(path, fru_name) == 0) {
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1845
(picld_pluginutil_parse_config_file(rooth, path) !=
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1847
syslog(LOG_ERR, PARSE_CONF_FAIL, path);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1858
char path[MAXPATHLEN];
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1874
sprintf_buf2(path, CHASSIS_LOC_PATH, name);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1877
sprintf_buf2(path, SEATTLE1U_HDDBP_PATH, name);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1880
sprintf_buf2(path, SEATTLE2U_HDDBP_PATH, name);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1883
sprintf_buf2(path, BOSTON_HDDBP_PATH, name);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1886
sprintf_buf2(path, CHASSIS_LOC_PATH, name);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
1890
if (ptree_get_node_by_path(path, &locnodeh) != PICL_SUCCESS) {
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2322
char path[MAXPATHLEN];
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2327
sprintf_buf2(path, CHASSIS_LOC_PATH, fruname);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2330
sprintf_buf2(path, SEATTLE1U_HDDBP_PATH, fruname);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2333
sprintf_buf2(path, SEATTLE2U_HDDBP_PATH, fruname);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2336
sprintf_buf2(path, BOSTON_HDDBP_PATH, fruname);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2339
sprintf_buf2(path, CHASSIS_LOC_PATH, fruname);
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
2343
if (ptree_get_node_by_path(path, &slotndh) != PICL_SUCCESS) {
usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
386
static void get_fantray_path(char *ap_id, char *path, int bufsz);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvc_objects_class.h
176
char path[PATHLEN];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1647
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1651
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1655
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1677
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1681
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1685
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1707
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1710
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1714
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1735
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1738
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1742
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1763
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1766
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1770
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1791
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1794
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1798
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1819
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1822
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1826
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1847
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1851
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1855
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1877
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1880
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1884
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1905
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1908
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1912
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1933
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1937
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1941
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1964
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1968
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1971
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
1998
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2002
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2006
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2033
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2039
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2047
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2083
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2089
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2097
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2133
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2137
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2144
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2167
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2171
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2177
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2200
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2204
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2211
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2234
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2238
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2245
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2266
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2270
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2276
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2297
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2301
status = i_psvc_get_devpath(hdlp, aspec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2309
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2331
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2339
status = i_psvc_get_devpath(hdlp, objp->addr_spec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2344
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2366
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2375
status = i_psvc_get_devpath(hdlp, objp->addr_spec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2379
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2401
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2410
status = i_psvc_get_devpath(hdlp, objp->addr_spec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2415
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2438
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2446
status = i_psvc_get_devpath(hdlp, objp->addr_spec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2451
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2479
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2488
status = i_psvc_get_devpath(hdlp, objp->addr_spec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2493
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2515
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2524
status = i_psvc_get_devpath(hdlp, objp->addr_spec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2531
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2553
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2562
status = i_psvc_get_devpath(hdlp, objp->addr_spec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2566
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2587
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2596
status = i_psvc_get_devpath(hdlp, objp->addr_spec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2602
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2624
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2632
status = i_psvc_get_devpath(hdlp, objp->addr_spec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2636
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2658
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2667
status = i_psvc_get_devpath(hdlp, objp->addr_spec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2672
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2862
i_psvc_get_devpath(EHdl_t *hp, uint64_t addr_spec, char *path)
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
2879
strcpy(path, dp->path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
3731
char path[1024], *data;
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
3742
status = i_psvc_get_devpath(hdlp, objp->addr_spec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
3746
fp = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
4741
char path[1024];
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
4755
status = i_psvc_get_devpath(hdlp, (*objpp)->addr_spec, path);
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
4767
if (open(path, O_RDWR) == -1) {
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
5127
strcpy(hdlp->dev_tbl[i].path, strchr(buf, forward_slash));
usr/src/cmd/picl/plugins/sun4u/psvc/psvcobj/psvcobj.c
5131
nl_char = strchr(hdlp->dev_tbl[i].path, new_line);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
448
char path[PATH_MAX];
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
459
(void) snprintf(path, sizeof (path), "%s%s", I2C_DEVFS, MBFRU_DEV);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
460
fd = open(path, O_RDONLY);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
462
envd_log(LOG_ERR, ENV_FRU_OPEN_FAIL, errno, path);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
471
envd_log(LOG_ERR, ENV_FRU_BAD_ENVSEG, path);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
490
envd_log(LOG_CRIT, ENV_FRU_BAD_ENVSEG, path);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
826
char path[PATH_MAX];
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
831
(void) strcpy(path, "/devices");
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
832
(void) strlcat(path, fanp->devfs_path, sizeof (path));
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
833
fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
869
char path[PATH_MAX];
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
883
(void) strcpy(path, "/devices");
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
884
(void) strlcat(path, sensorp->devfs_path,
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
885
sizeof (path));
usr/src/cmd/picl/plugins/sun4u/taco/envd/piclenvd.c
886
sensorp->fd = open(path, O_RDWR);
usr/src/cmd/picl/plugins/sun4v/mdesc/disk_discovery.c
214
device_get_disk_name_from_dir(char *basedir, char *path)
usr/src/cmd/picl/plugins/sun4v/mdesc/disk_discovery.c
223
loc_err = stat(path, &srcstat);
usr/src/cmd/picl/plugins/sun4v/mdesc/disk_discovery.c
30
static char *device_get_disk_name_from_dir(char *basedir, char *path);
usr/src/cmd/picl/plugins/sun4v/mdesc/mdescplugin.c
171
char *path;
usr/src/cmd/picl/plugins/sun4v/mdesc/mdescplugin.c
181
if (nvlist_lookup_string(nvlp, "devfs-path", &path))
usr/src/cmd/picl/plugins/sun4v/mdesc/mdescplugin.c
184
lookup.path = strdup(path);
usr/src/cmd/picl/plugins/sun4v/mdesc/mdescplugin.c
70
char *path;
usr/src/cmd/picl/plugins/sun4v/mdesc/mdescplugin.c
80
char path[PICL_PROPNAMELEN_MAX];
usr/src/cmd/picl/plugins/sun4v/mdesc/mdescplugin.c
82
status = ptree_get_propval_by_name(node, "Path", (void *)&path,
usr/src/cmd/picl/plugins/sun4v/mdesc/mdescplugin.c
88
if (strcmp(path, lookup->path) == 0) {
usr/src/cmd/picl/plugins/sun4v/piclsbl/piclsbl.c
119
char path[PICL_PROPNAMELEN_MAX];
usr/src/cmd/picl/plugins/sun4v/piclsbl/piclsbl.c
121
status = ptree_get_propval_by_name(node, "Path", (void *)&path,
usr/src/cmd/picl/plugins/sun4v/piclsbl/piclsbl.c
127
if (strcmp(path, lookup->path) == 0) {
usr/src/cmd/picl/plugins/sun4v/piclsbl/piclsbl.c
132
n = strstr(path, "/sd");
usr/src/cmd/picl/plugins/sun4v/piclsbl/piclsbl.c
135
path);
usr/src/cmd/picl/plugins/sun4v/piclsbl/piclsbl.c
250
lookup.path = strdup(devfs_path);
usr/src/cmd/picl/plugins/sun4v/piclsbl/piclsbl.h
37
char *path;
usr/src/cmd/picl/plugins/sun4v/pri/io_dev_label.c
133
(void) strlcpy(path, pri_path, sizeof (path));
usr/src/cmd/picl/plugins/sun4v/pri/io_dev_label.c
137
path);
usr/src/cmd/picl/plugins/sun4v/pri/io_dev_label.c
149
for (busaddr_match = 1, p = q = (char *)path; q; p = q + 1) {
usr/src/cmd/picl/plugins/sun4v/pri/io_dev_label.c
49
char path[PICL_PROPNAMELEN_MAX];
usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/DecisionHistory.java
488
public static DecisionHistory loadFromFile(String path)
usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/DecisionHistory.java
491
return (load(new FileInputStream(path)));
usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/DecisionHistory.java
498
public void syncToFile(String path) throws IOException
usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/DecisionHistory.java
500
FileOutputStream fos = new FileOutputStream(path);
usr/src/cmd/ppgsz/ppgsz.c
253
char path[PATH_MAX];
usr/src/cmd/ppgsz/ppgsz.c
255
Pr = Pcreate(argv[0], &argv[0], &err, path, sizeof (path));
usr/src/cmd/ppgsz/ppgsz.c
262
command, path);
usr/src/cmd/ppgsz/ppgsz.c
267
"program: %s\n", command, path);
usr/src/cmd/ppgsz/ppgsz.c
442
char path[PATH_MAX];
usr/src/cmd/ppgsz/ppgsz.c
464
(void) snprintf(path, PATH_MAX, "/proc/%d/map", (int)psinfo->pr_pid);
usr/src/cmd/ppgsz/ppgsz.c
465
if ((fd = open(path, O_RDONLY)) < 0)
usr/src/cmd/ppgsz/ppgsz.c
549
char path[PATH_MAX];
usr/src/cmd/ppgsz/ppgsz.c
551
(void) snprintf(path, PATH_MAX, "/proc/%d/xmap", (int)pid);
usr/src/cmd/ppgsz/ppgsz.c
552
if ((fd = open(path, O_RDONLY)) < 0)
usr/src/cmd/praudit/token.c
608
char *path; /* path */
usr/src/cmd/praudit/token.c
620
if ((path = (char *)malloc(length + 1)) == NULL) {
usr/src/cmd/praudit/token.c
622
} else if (pr_adr_char(context, path, length) == 0) {
usr/src/cmd/praudit/token.c
623
path[length] = '\0';
usr/src/cmd/praudit/token.c
625
if (*path != '/') {
usr/src/cmd/praudit/token.c
626
apath = anchor_path(path);
usr/src/cmd/praudit/token.c
627
free(path);
usr/src/cmd/praudit/token.c
629
apath = path;
usr/src/cmd/praudit/token.c
635
free(path);
usr/src/cmd/prstat/prstat.c
883
char *path = NULL;
usr/src/cmd/prstat/prstat.c
888
if (asprintf(&path, "/proc/%d/lwp/%d/lwpname",
usr/src/cmd/prstat/prstat.c
892
if ((fd = open(path, O_RDONLY)) != -1) {
usr/src/cmd/prstat/prstat.c
898
free(path);
usr/src/cmd/prtconf/pdevinfo.c
1331
char *path, *type;
usr/src/cmd/prtconf/pdevinfo.c
1335
if ((path = di_devfs_minor_path(minor)) == NULL)
usr/src/cmd/prtconf/pdevinfo.c
1340
(void) printf("dev_path=%s\n", path);
usr/src/cmd/prtconf/pdevinfo.c
1370
(void) di_devlink_walk(devlink_hdl, NULL, path,
usr/src/cmd/prtconf/pdevinfo.c
1374
di_devfs_path_free(path);
usr/src/cmd/prtconf/pdevinfo.c
1464
char *name, *path;
usr/src/cmd/prtconf/pdevinfo.c
1522
if ((path = di_devfs_path(node)) == NULL)
usr/src/cmd/prtconf/pdevinfo.c
1526
(void) printf("dev_path=%s\n", path);
usr/src/cmd/prtconf/pdevinfo.c
1527
di_devfs_path_free(path);
usr/src/cmd/prtconf/pdevinfo.c
316
char *path;
usr/src/cmd/prtconf/pdevinfo.c
318
if ((path = di_devfs_path(node)) == NULL)
usr/src/cmd/prtconf/pdevinfo.c
321
if (strcmp(opts.o_devices_path, path) == 0) {
usr/src/cmd/prtconf/pdevinfo.c
322
di_devfs_path_free(path);
usr/src/cmd/prtconf/pdevinfo.c
327
di_devfs_path_free(path);
usr/src/cmd/prtconf/pdevinfo.c
756
char *path = di_devfs_path(node);
usr/src/cmd/prtconf/pdevinfo.c
757
dbgprintf("Dump node %s\n", path);
usr/src/cmd/prtconf/pdevinfo.c
758
di_devfs_path_free(path);
usr/src/cmd/prtconf/prtconf.c
194
char *path = argv[optind];
usr/src/cmd/prtconf/prtconf.c
204
if (strlen(path) >= MAXPATHLEN) {
usr/src/cmd/prtconf/prtconf.c
210
if ((error = stat(path, &sinfo)) != 0) {
usr/src/cmd/prtconf/prtconf.c
226
if (realpath(path, new_path) == NULL) {
usr/src/cmd/prtfru/prtfru.c
1003
char path[16384];
usr/src/cmd/prtfru/prtfru.c
1013
(void) snprintf(path, sizeof (path),
usr/src/cmd/prtfru/prtfru.c
1015
parent_path = path;
usr/src/cmd/prtfru/prtfru.c
1026
output("%*s%s: ", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
1131
print_node_path(fru_node_t fru_type, const char *path, const char *name,
usr/src/cmd/prtfru/prtfru.c
1134
output("%s%s\n", path,
usr/src/cmd/prtfru/prtfru.c
1144
end_location_xml(fru_nodehdl_t node, const char *path, const char *name,
usr/src/cmd/prtfru/prtfru.c
1156
end_fru_xml(fru_nodehdl_t node, const char *path, const char *name, void *args)
usr/src/cmd/prtfru/prtfru.c
1167
end_container_xml(fru_nodehdl_t node, const char *path, const char *name,
usr/src/cmd/prtfru/prtfru.c
1179
print_node_xml(fru_node_t fru_type, const char *path, const char *name,
usr/src/cmd/prtfru/prtfru.c
1205
process_node(fru_nodehdl_t node, const char *path, const char *name,
usr/src/cmd/prtfru/prtfru.c
1222
name = path;
usr/src/cmd/prtfru/prtfru.c
1227
print_node(fru_type, path, name, end_node, end_args);
usr/src/cmd/prtfru/prtfru.c
1254
process_matching_node(fru_nodehdl_t node, const char *path, const char *name,
usr/src/cmd/prtfru/prtfru.c
1260
if (!fru_pathmatch(path, args))
usr/src/cmd/prtfru/prtfru.c
1263
status = process_node(node, path, path, args, end_node, end_args);
usr/src/cmd/prtfru/prtfru.c
142
static void (*print_node)(fru_node_t fru_type, const char *path,
usr/src/cmd/prtfru/prtfru.c
482
char *errmsg = NULL, timestring[TIMESTRINGLEN], path[16384];
usr/src/cmd/prtfru/prtfru.c
582
(void) snprintf(path, sizeof (path),
usr/src/cmd/prtfru/prtfru.c
585
parent_path = path;
usr/src/cmd/prtfru/prtfru.c
702
char *path;
usr/src/cmd/prtfru/prtfru.c
722
path = alloca(len);
usr/src/cmd/prtfru/prtfru.c
723
(void) snprintf(path, len,
usr/src/cmd/prtfru/prtfru.c
727
path = "Index";
usr/src/cmd/prtfru/prtfru.c
730
path = (char *)parent_path;
usr/src/cmd/prtfru/prtfru.c
733
path = (char *)def->name;
usr/src/cmd/prtfru/prtfru.c
738
path = alloca(len);
usr/src/cmd/prtfru/prtfru.c
739
bytes = snprintf(path, len,
usr/src/cmd/prtfru/prtfru.c
745
(strcmp(path, "E_1_46") == 0) || (strcmp(path, "/E_1_46") == 0)) {
usr/src/cmd/prtfru/prtfru.c
765
(void) sprintf(path, "Fault_Install_DataR");
usr/src/cmd/prtfru/prtfru.c
766
output("%*s<%s>\n", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
768
(void) sprintf(path, "UNIX_Timestamp32");
usr/src/cmd/prtfru/prtfru.c
769
output("%*s<%s value=\"", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
772
(void) sprintf(path, "MACADDR");
usr/src/cmd/prtfru/prtfru.c
773
output("%*s<%s value=\"", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
781
(void) sprintf(path, "Status");
usr/src/cmd/prtfru/prtfru.c
782
output("%*s<%s value=\"", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
785
(void) sprintf(path, "Initiator");
usr/src/cmd/prtfru/prtfru.c
786
output("%*s<%s value=\"", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
789
(void) sprintf(path, "Message_Type");
usr/src/cmd/prtfru/prtfru.c
790
output("%*s<%s value=\"", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
793
(void) sprintf(path, "Message_32");
usr/src/cmd/prtfru/prtfru.c
794
output("%*s<%s value=\"", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
800
(void) sprintf(path, "Fault_Install_DataR");
usr/src/cmd/prtfru/prtfru.c
801
output("%*s</%s>\n", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
803
(void) sprintf(path, "/Fault_Install_DataR");
usr/src/cmd/prtfru/prtfru.c
804
output("%*s%s\n", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
805
(void) sprintf(path,
usr/src/cmd/prtfru/prtfru.c
807
output("%*s%s: ", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
809
(void) sprintf(path, "/Fault_Install_DataR/MACADDR");
usr/src/cmd/prtfru/prtfru.c
810
output("%*s%s: ", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
817
(void) sprintf(path, "/Fault_Install_DataR/Status");
usr/src/cmd/prtfru/prtfru.c
818
output("%*s%s: ", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
820
(void) sprintf(path, "/Fault_Install_DataR/Initiator");
usr/src/cmd/prtfru/prtfru.c
821
output("%*s%s: ", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
823
(void) sprintf(path,
usr/src/cmd/prtfru/prtfru.c
825
output("%*s%s: ", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
827
(void) sprintf(path, "/Fault_Install_DataR/Message_32");
usr/src/cmd/prtfru/prtfru.c
828
output("%*s%s: ", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
836
strcmp(path, "C_10_8") == 0 ||
usr/src/cmd/prtfru/prtfru.c
837
(strcmp(path, "/C_10_8") == 0))) {
usr/src/cmd/prtfru/prtfru.c
857
(void) sprintf(path, "Power_On_DataR");
usr/src/cmd/prtfru/prtfru.c
858
output("%*s<%s>\n", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
860
(void) sprintf(path, "UNIX_Timestamp32");
usr/src/cmd/prtfru/prtfru.c
861
output("%*s<%s value=\"", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
864
(void) sprintf(path, "Power_On_Minutes");
usr/src/cmd/prtfru/prtfru.c
865
output("%*s<%s value=\"", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
871
(void) sprintf(path, "Power_On_DataR");
usr/src/cmd/prtfru/prtfru.c
872
output("%*s</%s>\n", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
874
(void) sprintf(path, "/Power_On_DataR");
usr/src/cmd/prtfru/prtfru.c
875
output("%*s%s\n", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
876
(void) sprintf(path,
usr/src/cmd/prtfru/prtfru.c
878
output("%*s%s: ", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
880
(void) sprintf(path,
usr/src/cmd/prtfru/prtfru.c
882
output("%*s%s: ", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
919
path, data[HEAD_ITER], def->iterationCount);
usr/src/cmd/prtfru/prtfru.c
926
path, data[NUM_ITER], def->iterationCount);
usr/src/cmd/prtfru/prtfru.c
933
path, data[MAX_ITER], def->iterationCount);
usr/src/cmd/prtfru/prtfru.c
942
error(gettext("%s: Showing all iterations\n"), path);
usr/src/cmd/prtfru/prtfru.c
946
output("%*s<%s>\n", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
948
output("%*s%s (%d iterations)\n", indent, "", path,
usr/src/cmd/prtfru/prtfru.c
957
if (!xml) (void) sprintf((path + bytes), "[%d]", n);
usr/src/cmd/prtfru/prtfru.c
959
print_element((data + i*iterlen), &newdef, path,
usr/src/cmd/prtfru/prtfru.c
963
if (xml) output("%*s</%s>\n", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
969
output("%*s<%s>\n", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
971
output("%*s%s\n", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
981
print_element(data, component, path, indent);
usr/src/cmd/prtfru/prtfru.c
984
if (xml) output("%*s</%s>\n", indent, "", path);
usr/src/cmd/prtfru/prtfru.c
993
output(format, indent, "", path);
usr/src/cmd/ps/ps.c
1759
char *path = NULL;
usr/src/cmd/ps/ps.c
1762
if (asprintf(&path, "%s/%d/lwp/%d/lwpname", procdir,
usr/src/cmd/ps/ps.c
1764
(fd = open(path, O_RDONLY)) != -1) {
usr/src/cmd/ps/ps.c
1770
free(path);
usr/src/cmd/ptools/pmap/pmap_common.c
100
(void) snprintf(path, sizeof (path),
usr/src/cmd/ptools/pmap/pmap_common.c
102
if (stat(path, &statb) == 0) {
usr/src/cmd/ptools/pmap/pmap_common.c
71
char path[PATH_MAX];
usr/src/cmd/ptools/pmap/pmap_common.c
91
(void) snprintf(path, sizeof (path), "/proc/%d/path/%s",
usr/src/cmd/ptools/pmap/pmap_common.c
93
len = readlink(path, buf, bufsz - 1);
usr/src/cmd/ptools/preap/preap.c
54
char path[64];
usr/src/cmd/ptools/preap/preap.c
58
(void) snprintf(path, sizeof (path), "/proc/%d/usage", (int)pid);
usr/src/cmd/ptools/preap/preap.c
64
if ((fd = open64(path, O_RDONLY)) >= 0) {
usr/src/cmd/ptools/pstack/pstack.c
717
char path[PATH_MAX];
usr/src/cmd/ptools/pstack/pstack.c
726
(void) strcpy(path, obj);
usr/src/cmd/ptools/pstack/pstack.c
729
s2 = path + (s1 - obj);
usr/src/cmd/ptools/pstack/pstack.c
736
s2 = strstr(path, ".so");
usr/src/cmd/ptools/pstack/pstack.c
741
if ((libjvm = dlopen(path, RTLD_LAZY|RTLD_GLOBAL)) != NULL)
usr/src/cmd/ptools/pstack/pstack.c
813
char path[PATH_MAX];
usr/src/cmd/ptools/pstack/pstack.c
821
(void) strcpy(path, obj);
usr/src/cmd/ptools/pstack/pstack.c
824
s2 = path + (s1 - obj);
usr/src/cmd/ptools/pstack/pstack.c
831
s2 = strstr(path, ".so");
usr/src/cmd/ptools/pstack/pstack.c
836
if ((libpython = dlopen(path, RTLD_LAZY|RTLD_GLOBAL)) != NULL)
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
173
free(reg->phci.path);
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
250
(void) rcm_unregister_interest(hdl, reg->phci.path, 0);
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
474
phci.path = rsrc;
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
515
if (strcmp(reg->phci.path, rsrc) == 0)
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
543
if (strcmp(group->phcis[i].path, rsrc) == 0)
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
554
if (rcm_get_rsrcstate(hdl, group->phcis[i].path, &state)
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
561
group->phcis[i].path, state);
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
62
char *path;
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
675
if ((reg = lookup_phci(group->phcis[i].path)) != NULL) {
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
692
reg->phci.path = strdup(group->phcis[i].path);
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
693
if (reg->phci.path == NULL) {
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
719
(void) rcm_unregister_interest(hdl, reg->phci.path, 0);
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
720
free(reg->phci.path);
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
735
if (rcm_register_interest(hdl, reg->phci.path, 0, NULL)
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
739
reg->phci.path, strerror(errno));
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
798
if ((phcis[i].path = get_rsrcname(phcinode)) == NULL) {
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
820
if (strcmp(phcis[i].path, group->phcis[i].path) != 0)
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
884
return (strcmp(p1->path, p2->path));
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
946
if (phcis[i].path)
usr/src/cmd/rcm_daemon/common/mpxio_rcm.c
947
free(phcis[i].path);
usr/src/cmd/rcm_daemon/common/rcm_subr.c
1643
char path[64];
usr/src/cmd/rcm_daemon/common/rcm_subr.c
1651
(void) snprintf(path, sizeof (path), "%s/%ld", procfs, pid);
usr/src/cmd/rcm_daemon/common/rcm_subr.c
1652
return (stat(path, &sb) == 0);
usr/src/cmd/rcm_daemon/common/swap_rcm.c
163
(void) rcm_unregister_interest(hdl, sf->path, 0);
usr/src/cmd/rcm_daemon/common/swap_rcm.c
351
(void) snprintf(cmd, sizeof (cmd), SWAP_DELETE, sf->path,
usr/src/cmd/rcm_daemon/common/swap_rcm.c
379
sf->path, sa->start, sa->len);
usr/src/cmd/rcm_daemon/common/swap_rcm.c
420
SWAP_ADD, sf->path, sa->start, sa->len);
usr/src/cmd/rcm_daemon/common/swap_rcm.c
534
if (rcm_unregister_interest(hdl, sf->path, 0) !=
usr/src/cmd/rcm_daemon/common/swap_rcm.c
537
"%s\n", sf->path);
usr/src/cmd/rcm_daemon/common/swap_rcm.c
551
if (rcm_register_interest(hdl, sf->path, 0, NULL) !=
usr/src/cmd/rcm_daemon/common/swap_rcm.c
554
sf->path);
usr/src/cmd/rcm_daemon/common/swap_rcm.c
558
sf->path);
usr/src/cmd/rcm_daemon/common/swap_rcm.c
60
char path[MAXPATHLEN];
usr/src/cmd/rcm_daemon/common/swap_rcm.c
686
if (strcmp(rsrc, sf->path) == 0) {
usr/src/cmd/rcm_daemon/common/swap_rcm.c
755
(void) strlcpy(sf->path, rsrc, sizeof (sf->path));
usr/src/cmd/rcm_daemon/common/swap_rcm.c
784
assert(strcmp(sf->path, swt_ent->ste_path) == 0);
usr/src/cmd/rmdir/rmdir.c
105
if (((rc = rmdirp(path, remain)) != 0) && !sflag) {
usr/src/cmd/rmdir/rmdir.c
128
free(path);
usr/src/cmd/rmdir/rmdir.c
53
char *ptr, *remain, *msg, *path;
usr/src/cmd/rmdir/rmdir.c
93
if ((path = (char *)malloc(pathlen + 4)) == NULL ||
usr/src/cmd/rmdir/rmdir.c
98
(void) strcpy(path, ptr);
usr/src/cmd/rmformat/rmf_misc.c
1872
get_physical_name(char *path)
usr/src/cmd/rmformat/rmf_misc.c
1889
(void) strcpy(s, path);
usr/src/cmd/rmformat/rmf_misc.c
1903
(void) strcpy(s, path);
usr/src/cmd/rmformat/rmf_misc.c
84
int _dev_mounted(char *path);
usr/src/cmd/rmformat/rmf_misc.c
94
static char *get_physical_name(char *path);
usr/src/cmd/rmmount/rmmount.c
233
get_progname(char *path)
usr/src/cmd/rmmount/rmmount.c
238
if ((s = strdup(path)) == NULL) {
usr/src/cmd/rmmount/rmmount.c
239
perror(path);
usr/src/cmd/rpcsvc/rwall.c
107
path = buf;
usr/src/cmd/rpcsvc/rwall.c
223
(void) fprintf(stderr, "sending message to %s\n%s\n", hostname, path);
usr/src/cmd/rpcsvc/rwall.c
242
if (wallproc_wall_1(&path, vp, clnt) != RPC_SUCCESS) {
usr/src/cmd/rpcsvc/rwall.c
69
static char *path;
usr/src/cmd/sendmail/db/db/db_appinit.c
643
__db_tmp_open(dbenv, flags, path, fdp)
usr/src/cmd/sendmail/db/db/db_appinit.c
646
char *path;
usr/src/cmd/sendmail/db/db/db_appinit.c
658
if ((ret = __os_exists(path, &isdir)) != 0) {
usr/src/cmd/sendmail/db/db/db_appinit.c
659
__db_err(dbenv, "%s: %s", path, strerror(ret));
usr/src/cmd/sendmail/db/db/db_appinit.c
663
__db_err(dbenv, "%s: %s", path, strerror(EINVAL));
usr/src/cmd/sendmail/db/db/db_appinit.c
668
for (trv = path; *trv != '\0'; ++trv)
usr/src/cmd/sendmail/db/db/db_appinit.c
699
if ((ret = __db_open(path, flags, flags, mode, fdp)) == 0)
usr/src/cmd/sendmail/db/db/db_appinit.c
711
"tmp_open: %s: %s", path, strerror(ret));
usr/src/cmd/sendmail/db/db/db_region.c
128
if ((ret = __db_appname(infop->dbenv, infop->appname, infop->path,
usr/src/cmd/sendmail/db/db/db_region.c
624
infop->path, infop->file, infop->dbflags, NULL, &name)) != 0)
usr/src/cmd/sendmail/db/db_int.h
251
char *path; /* Region naming info. */
usr/src/cmd/sendmail/db/dbm/dbm.c
191
char path[MAXPATHLEN];
usr/src/cmd/sendmail/db/dbm/dbm.c
204
if (strlen(file) + strlen(DBM_SUFFIX) + 1 > sizeof(path)) {
usr/src/cmd/sendmail/db/dbm/dbm.c
208
(void)strcpy(path, file);
usr/src/cmd/sendmail/db/dbm/dbm.c
209
(void)strcat(path, DBM_SUFFIX);
usr/src/cmd/sendmail/db/dbm/dbm.c
210
if ((errno = db_open(path,
usr/src/cmd/sendmail/db/lock/lock_region.c
111
"lock_open: %s: bad magic number", path);
usr/src/cmd/sendmail/db/lock/lock_region.c
145
(void)lock_unlink(path, 1, dbenv);
usr/src/cmd/sendmail/db/lock/lock_region.c
148
if (lt->reginfo.path != NULL)
usr/src/cmd/sendmail/db/lock/lock_region.c
149
__os_freestr(lt->reginfo.path);
usr/src/cmd/sendmail/db/lock/lock_region.c
276
if (lt->reginfo.path != NULL)
usr/src/cmd/sendmail/db/lock/lock_region.c
277
__os_freestr(lt->reginfo.path);
usr/src/cmd/sendmail/db/lock/lock_region.c
284
lock_unlink(path, force, dbenv)
usr/src/cmd/sendmail/db/lock/lock_region.c
285
const char *path;
usr/src/cmd/sendmail/db/lock/lock_region.c
295
if (path != NULL && (ret = __os_strdup(path, &reginfo.path)) != 0)
usr/src/cmd/sendmail/db/lock/lock_region.c
299
if (reginfo.path != NULL)
usr/src/cmd/sendmail/db/lock/lock_region.c
300
__os_freestr(reginfo.path);
usr/src/cmd/sendmail/db/lock/lock_region.c
38
lock_open(path, flags, mode, dbenv, ltp)
usr/src/cmd/sendmail/db/lock/lock_region.c
39
const char *path;
usr/src/cmd/sendmail/db/lock/lock_region.c
81
if (path == NULL)
usr/src/cmd/sendmail/db/lock/lock_region.c
82
lt->reginfo.path = NULL;
usr/src/cmd/sendmail/db/lock/lock_region.c
84
if ((ret = __os_strdup(path, &lt->reginfo.path)) != 0)
usr/src/cmd/sendmail/db/log/log.c
147
(void)log_unlink(path, 1, dbenv);
usr/src/cmd/sendmail/db/log/log.c
150
if (dblp->reginfo.path != NULL)
usr/src/cmd/sendmail/db/log/log.c
151
__os_freestr(dblp->reginfo.path);
usr/src/cmd/sendmail/db/log/log.c
38
log_open(path, flags, mode, dbenv, lpp)
usr/src/cmd/sendmail/db/log/log.c
39
const char *path;
usr/src/cmd/sendmail/db/log/log.c
472
if (dblp->reginfo.path != NULL)
usr/src/cmd/sendmail/db/log/log.c
473
__os_freestr(dblp->reginfo.path);
usr/src/cmd/sendmail/db/log/log.c
484
log_unlink(path, force, dbenv)
usr/src/cmd/sendmail/db/log/log.c
485
const char *path;
usr/src/cmd/sendmail/db/log/log.c
495
if (path != NULL && (ret = __os_strdup(path, &reginfo.path)) != 0)
usr/src/cmd/sendmail/db/log/log.c
499
if (reginfo.path != NULL)
usr/src/cmd/sendmail/db/log/log.c
500
__os_freestr(reginfo.path);
usr/src/cmd/sendmail/db/log/log.c
62
if (path != NULL && (ret = __os_strdup(path, &dblp->dir)) != 0)
usr/src/cmd/sendmail/db/log/log.c
80
if (path == NULL)
usr/src/cmd/sendmail/db/log/log.c
81
dblp->reginfo.path = NULL;
usr/src/cmd/sendmail/db/log/log.c
83
if ((ret = __os_strdup(path, &dblp->reginfo.path)) != 0)
usr/src/cmd/sendmail/db/mp/mp_fopen.c
130
if (path == NULL) {
usr/src/cmd/sendmail/db/mp/mp_fopen.c
141
DB_APP_DATA, NULL, path, 0, NULL, &rpath)) != 0)
usr/src/cmd/sendmail/db/mp/mp_fopen.c
207
path, pagesize, last_pgno, finfop, &mfp);
usr/src/cmd/sendmail/db/mp/mp_fopen.c
249
if (path == NULL)
usr/src/cmd/sendmail/db/mp/mp_fopen.c
298
__memp_mf_open(dbmp, path, pagesize, last_pgno, finfop, retp)
usr/src/cmd/sendmail/db/mp/mp_fopen.c
300
const char *path;
usr/src/cmd/sendmail/db/mp/mp_fopen.c
310
#define ISTEMPORARY (path == NULL)
usr/src/cmd/sendmail/db/mp/mp_fopen.c
328
path);
usr/src/cmd/sendmail/db/mp/mp_fopen.c
35
memp_fopen(dbmp, path, flags, mode, pagesize, finfop, retp)
usr/src/cmd/sendmail/db/mp/mp_fopen.c
364
strlen(path) + 1, &mfp->path_off, &p)) != 0)
usr/src/cmd/sendmail/db/mp/mp_fopen.c
366
memcpy(p, path, strlen(path) + 1);
usr/src/cmd/sendmail/db/mp/mp_fopen.c
37
const char *path;
usr/src/cmd/sendmail/db/mp/mp_fopen.c
62
NULL, path, flags, mode, pagesize, 1, finfop, retp));
usr/src/cmd/sendmail/db/mp/mp_fopen.c
73
__memp_fopen(dbmp, mfp, path, flags, mode, pagesize, needlock, finfop, retp)
usr/src/cmd/sendmail/db/mp/mp_fopen.c
76
const char *path;
usr/src/cmd/sendmail/db/mp/mp_open.c
142
if (dbmp->reginfo.path != NULL)
usr/src/cmd/sendmail/db/mp/mp_open.c
143
__os_freestr(dbmp->reginfo.path);
usr/src/cmd/sendmail/db/mp/mp_open.c
168
memp_unlink(path, force, dbenv)
usr/src/cmd/sendmail/db/mp/mp_open.c
169
const char *path;
usr/src/cmd/sendmail/db/mp/mp_open.c
179
if (path != NULL && (ret = __os_strdup(path, &reginfo.path)) != 0)
usr/src/cmd/sendmail/db/mp/mp_open.c
183
if (reginfo.path != NULL)
usr/src/cmd/sendmail/db/mp/mp_open.c
184
__os_freestr(reginfo.path);
usr/src/cmd/sendmail/db/mp/mp_open.c
31
memp_open(path, flags, mode, dbenv, retp)
usr/src/cmd/sendmail/db/mp/mp_open.c
32
const char *path;
usr/src/cmd/sendmail/db/mp/mp_open.c
64
(dbenv == NULL && path == NULL) || LF_ISSET(DB_MPOOL_PRIVATE);
usr/src/cmd/sendmail/db/mp/mp_open.c
72
path, cachesize, mode, is_private, LF_ISSET(DB_CREATE))) != 0)
usr/src/cmd/sendmail/db/mp/mp_region.c
205
__memp_ropen(dbmp, path, cachesize, mode, is_private, flags)
usr/src/cmd/sendmail/db/mp/mp_region.c
207
const char *path;
usr/src/cmd/sendmail/db/mp/mp_region.c
245
if (path == NULL)
usr/src/cmd/sendmail/db/mp/mp_region.c
246
dbmp->reginfo.path = NULL;
usr/src/cmd/sendmail/db/mp/mp_region.c
248
if ((ret = __os_strdup(path, &dbmp->reginfo.path)) != 0)
usr/src/cmd/sendmail/db/mp/mp_region.c
269
if (dbmp->reginfo.path != NULL)
usr/src/cmd/sendmail/db/mp/mp_region.c
270
__os_freestr(dbmp->reginfo.path);
usr/src/cmd/sendmail/db/mp/mp_region.c
326
(void)memp_unlink(path, 1, dbmp->dbenv);
usr/src/cmd/sendmail/db/mp/mp_region.c
328
if (dbmp->reginfo.path != NULL)
usr/src/cmd/sendmail/db/mp/mp_region.c
329
__os_freestr(dbmp->reginfo.path);
usr/src/cmd/sendmail/db/os/os_abs.c
27
__os_abspath(path)
usr/src/cmd/sendmail/db/os/os_abs.c
28
const char *path;
usr/src/cmd/sendmail/db/os/os_abs.c
30
return (path[0] == '/');
usr/src/cmd/sendmail/db/os/os_map.c
115
__db_mapregion(path, infop)
usr/src/cmd/sendmail/db/os/os_map.c
116
char *path;
usr/src/cmd/sendmail/db/os/os_map.c
127
return (__db_jump.j_map(path, infop->fd, infop->size,
usr/src/cmd/sendmail/db/os/os_map.c
162
ret = __os_map(path,
usr/src/cmd/sendmail/db/os/os_map.c
186
ret = __os_map(path,
usr/src/cmd/sendmail/db/os/os_map.c
204
ret = __os_map(path,
usr/src/cmd/sendmail/db/os/os_map.c
293
__db_mapfile(path, fd, len, is_rdonly, addr)
usr/src/cmd/sendmail/db/os/os_map.c
294
char *path;
usr/src/cmd/sendmail/db/os/os_map.c
300
return (__db_jump.j_map(path, fd, len, 0, 0, is_rdonly, addr));
usr/src/cmd/sendmail/db/os/os_map.c
303
return (__os_map(path, fd, len, 0, 0, is_rdonly, addr));
usr/src/cmd/sendmail/db/os/os_map.c
336
__os_map(path, fd, len, is_region, is_anonymous, is_rdonly, addr)
usr/src/cmd/sendmail/db/os/os_map.c
337
char *path;
usr/src/cmd/sendmail/db/os/os_map.c
345
COMPQUIET(path, NULL);
usr/src/cmd/sendmail/db/os/os_rpath.c
32
__db_rpath(path)
usr/src/cmd/sendmail/db/os/os_rpath.c
33
const char *path;
usr/src/cmd/sendmail/db/os/os_rpath.c
39
for (s = path; s[0] != '\0'; ++s)
usr/src/cmd/sendmail/db/os/os_rpath.c
43
for (s = path; s[0] != '\0'; ++s)
usr/src/cmd/sendmail/db/os/os_stat.c
31
__os_exists(path, isdirp)
usr/src/cmd/sendmail/db/os/os_stat.c
32
const char *path;
usr/src/cmd/sendmail/db/os/os_stat.c
38
return (__db_jump.j_exists(path, isdirp));
usr/src/cmd/sendmail/db/os/os_stat.c
40
if (stat(path, &sb) != 0)
usr/src/cmd/sendmail/db/os/os_stat.c
65
__os_ioinfo(path, fd, mbytesp, bytesp, iosizep)
usr/src/cmd/sendmail/db/os/os_stat.c
66
const char *path;
usr/src/cmd/sendmail/db/os/os_stat.c
73
return (__db_jump.j_ioinfo(path, fd, mbytesp, bytesp, iosizep));
usr/src/cmd/sendmail/db/os/os_unlink.c
31
__os_unlink(path)
usr/src/cmd/sendmail/db/os/os_unlink.c
32
const char *path;
usr/src/cmd/sendmail/db/os/os_unlink.c
37
__db_jump.j_unlink(path) : unlink(path);
usr/src/cmd/sendmail/db/txn/txn.c
115
txn_open(path, flags, mode, dbenv, mgrpp)
usr/src/cmd/sendmail/db/txn/txn.c
116
const char *path;
usr/src/cmd/sendmail/db/txn/txn.c
154
if (path == NULL)
usr/src/cmd/sendmail/db/txn/txn.c
155
tmgrp->reginfo.path = NULL;
usr/src/cmd/sendmail/db/txn/txn.c
157
if ((ret = __os_strdup(path, &tmgrp->reginfo.path)) != 0)
usr/src/cmd/sendmail/db/txn/txn.c
209
(void)txn_unlink(path, 1, dbenv);
usr/src/cmd/sendmail/db/txn/txn.c
212
if (tmgrp->reginfo.path != NULL)
usr/src/cmd/sendmail/db/txn/txn.c
213
__os_freestr(tmgrp->reginfo.path);
usr/src/cmd/sendmail/db/txn/txn.c
544
if (tmgrp->reginfo.path != NULL)
usr/src/cmd/sendmail/db/txn/txn.c
545
__os_freestr(tmgrp->reginfo.path);
usr/src/cmd/sendmail/db/txn/txn.c
556
txn_unlink(path, force, dbenv)
usr/src/cmd/sendmail/db/txn/txn.c
557
const char *path;
usr/src/cmd/sendmail/db/txn/txn.c
567
if (path != NULL && (ret = __os_strdup(path, &reginfo.path)) != 0)
usr/src/cmd/sendmail/db/txn/txn.c
571
if (reginfo.path != NULL)
usr/src/cmd/sendmail/db/txn/txn.c
572
__os_freestr(reginfo.path);
usr/src/cmd/sendmail/include/sm/cf.h
25
char *path,
usr/src/cmd/sendmail/include/sm/path.h
30
# define sm_path_isdevnull(path) (strcmp(path, "/dev/null") == 0)
usr/src/cmd/sendmail/libsm/cf.c
40
sm_cf_getopt(path, optc, optv)
usr/src/cmd/sendmail/libsm/cf.c
41
char *path;
usr/src/cmd/sendmail/libsm/cf.c
53
cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, path, SM_IO_RDONLY, NULL);
usr/src/cmd/sendmail/libsm/path.c
13
#include <sm/path.h>
usr/src/cmd/sendmail/libsm/stdio.c
66
char *path = (char *) info;
usr/src/cmd/sendmail/libsm/stdio.c
97
fp->f_file = open(path, oflags,
usr/src/cmd/sendmail/libsm/t-path.c
14
#include <sm/path.h>
usr/src/cmd/sendmail/src/mci.c
1465
mci_generate_persistent_path(host, path, pathlen, createflag)
usr/src/cmd/sendmail/src/mci.c
1467
char *path;
usr/src/cmd/sendmail/src/mci.c
1488
if (path == NULL)
usr/src/cmd/sendmail/src/mci.c
1546
(void) sm_strlcpy(path, HostStatDir, pathlen);
usr/src/cmd/sendmail/src/mci.c
1547
p = path + strlen(path);
usr/src/cmd/sendmail/src/mci.c
1550
if (!path_is_dir(path, createflag))
usr/src/cmd/sendmail/src/mci.c
1577
sm_dprintf("SUCCESS %s\n", path);
usr/src/cmd/sendmail/src/queue.c
6361
filesys_find(name, path, add)
usr/src/cmd/sendmail/src/queue.c
6363
const char *path;
usr/src/cmd/sendmail/src/queue.c
6369
if (stat(path, &st) < 0)
usr/src/cmd/sendmail/src/queue.c
6371
syserr("cannot stat queue directory %s", path);
usr/src/cmd/sendmail/src/sendmail.h
2029
# define SYNC_DIR(path, panic) sync_dir(path, panic)
usr/src/cmd/sendmail/src/sendmail.h
2032
# define SYNC_DIR(path, panic) ((void) 0)
usr/src/cmd/sendmail/util/mail.local.c
717
handle_error(err_num, bouncequota, path)
usr/src/cmd/sendmail/util/mail.local.c
720
char *path;
usr/src/cmd/sendmail/util/mail.local.c
724
mailerr("552 5.2.2", "%s: %s", path, sm_errstring(err_num));
usr/src/cmd/sendmail/util/mail.local.c
727
mailerr("450 4.2.0", "%s: %s", path, sm_errstring(err_num));
usr/src/cmd/sendmail/util/mail.local.c
739
char biffmsg[100], buf[8*1024], path[MAXPATHLEN];
usr/src/cmd/sendmail/util/mail.local.c
777
path[0] = '\0';
usr/src/cmd/sendmail/util/mail.local.c
778
(void) snprintf(path, sizeof (path), "%s/%s", _PATH_MAILDIR, name);
usr/src/cmd/sendmail/util/mail.local.c
810
if (lstat(path, &sb)) {
usr/src/cmd/sendmail/util/mail.local.c
811
mbfd = open(path, O_APPEND|O_CREAT|O_EXCL|O_WRONLY,
usr/src/cmd/sendmail/util/mail.local.c
824
mailerr("550 5.2.0", "%s: too many links", path);
usr/src/cmd/sendmail/util/mail.local.c
827
mailerr("550 5.2.0", "%s: irregular file", path);
usr/src/cmd/sendmail/util/mail.local.c
830
mbfd = open(path, O_APPEND|O_WRONLY, 0);
usr/src/cmd/sendmail/util/mail.local.c
837
"%s: fstat: file changed after open", path);
usr/src/cmd/sendmail/util/mail.local.c
843
mailerr("450 4.2.0", "%s: %s", path, strerror(errno));
usr/src/cmd/sendmail/util/mail.local.c
867
handle_error(errno, bouncequota, path);
usr/src/cmd/sendmail/util/mail.local.c
880
handle_error(errno, bouncequota, path);
usr/src/cmd/sendmail/util/mail.local.c
884
handle_error(errno, bouncequota, path);
usr/src/cmd/sendmail/util/mail.local.c
897
handle_error(errno, bouncequota, path);
usr/src/cmd/sendmail/util/mail.local.c
909
handle_error(errno, bouncequota, path);
usr/src/cmd/sendmail/util/mail.local.c
918
handle_error(errno, bouncequota, path);
usr/src/cmd/sendmail/util/mail.local.c
924
handle_error(errno, bouncequota, path);
usr/src/cmd/sendmail/util/mail.local.c
950
handle_error(errno, bouncequota, path);
usr/src/cmd/sendmail/util/mail.local.c
951
mbfd = open(path, O_WRONLY, 0);
usr/src/cmd/sgs/ar/common/file.c
1187
ar_outfile.path = new_archive ? name : make_tmpname(name);
usr/src/cmd/sgs/ar/common/file.c
1188
ar_outfile.fd = open(ar_outfile.path, O_RDWR|O_CREAT|O_LARGEFILE, 0666);
usr/src/cmd/sgs/ar/common/file.c
1193
ar_outfile.path, strerror(err));
usr/src/cmd/sgs/ar/common/file.c
131
(void) unlink(ar_outfile.path);
usr/src/cmd/sgs/ar/common/file.c
1324
(void) fprintf(stderr, MSG_INTL(MSG_SYS_CLOSE), ar_outfile.path,
usr/src/cmd/sgs/ar/common/file.c
1344
if (rename(ar_outfile.path, name) < 0) {
usr/src/cmd/sgs/ar/common/file.c
1347
ar_outfile.path, name, strerror(err));
usr/src/cmd/sgs/ar/common/file.c
1348
(void) unlink(ar_outfile.path);
usr/src/cmd/sgs/ar/common/file.c
70
const char *path; /* Path to open file */
usr/src/cmd/sgs/crle/common/inspect.c
449
enternoexistfile(Crle_desc *crle, const char *path, const char *file,
usr/src/cmd/sgs/crle/common/inspect.c
459
if ((rent = get_hash(crle->c_strtbl, (Addr)path, 0,
usr/src/cmd/sgs/crle/common/inspect.c
472
if (_enterfile(crle, path, 0, rent, 0, dent, obj) == 0)
usr/src/cmd/sgs/crle/common/inspect.c
476
if ((obj->o_path = strdup(path)) == NULL)
usr/src/cmd/sgs/crle/common/inspect.c
484
off = file - path;
usr/src/cmd/sgs/crle/common/inspect.c
652
inspect_file(Crle_desc *crle, const char *path, const char *file, Half flags,
usr/src/cmd/sgs/crle/common/inspect.c
679
if ((ent = enterfile(crle, path, file, flags, dent,
usr/src/cmd/sgs/crle/common/inspect.c
690
if (enteralt(crle, path, file, flags, obj) == 0)
usr/src/cmd/sgs/crle/common/inspect.c
699
if ((fd = open(path, O_RDONLY, 0)) == -1) {
usr/src/cmd/sgs/crle/common/inspect.c
703
crle->c_name, path, strerror(err));
usr/src/cmd/sgs/crle/common/inspect.c
714
crle->c_name, path, elf_errmsg(-1));
usr/src/cmd/sgs/crle/common/inspect.c
725
crle->c_name, path);
usr/src/cmd/sgs/crle/common/inspect.c
76
enteralt(Crle_desc *crle, const char *path, const char *file, Half flags,
usr/src/cmd/sgs/crle/common/inspect.c
761
crle->c_name, path);
usr/src/cmd/sgs/crle/common/inspect.c
774
crle->c_name, crle->c_app, path);
usr/src/cmd/sgs/crle/common/inspect.c
783
if ((ent = enterfile(crle, path, file, flags, dent, status)) == NULL) {
usr/src/cmd/sgs/crle/common/inspect.c
799
if (enteralt(crle, path, file, flags, obj) == 0) {
usr/src/cmd/sgs/crle/common/inspect.c
822
ent = get_hash(crle->c_strtbl, (Addr)path, 0,
usr/src/cmd/sgs/crle/common/inspect.c
835
if (depend(crle, path, flags, &ehdr)) {
usr/src/cmd/sgs/crle/common/inspect.c
857
char path[PATH_MAX], * dst;
usr/src/cmd/sgs/crle/common/inspect.c
88
if (strcmp(path, obj->o_path))
usr/src/cmd/sgs/crle/common/inspect.c
880
for (dst = path, dst--, src = name; *src; src++)
usr/src/cmd/sgs/crle/common/inspect.c
912
if (stat(path, &_status) == -1)
usr/src/cmd/sgs/crle/common/inspect.c
918
if (inspect_file(crle, path, file, flags, ent, &_status, 0)) {
usr/src/cmd/sgs/crle/common/print.c
135
const char *path;
usr/src/cmd/sgs/crle/common/print.c
141
path = MSG_ORIG(MSG_PTH_NEWDLP_64);
usr/src/cmd/sgs/crle/common/print.c
143
path = MSG_ORIG(MSG_PTH_NEWDLP);
usr/src/cmd/sgs/crle/common/print.c
150
path = MSG_ORIG(MSG_PTH_NEWTD_64);
usr/src/cmd/sgs/crle/common/print.c
152
path = MSG_ORIG(MSG_PTH_NEWTD);
usr/src/cmd/sgs/crle/common/print.c
161
return (addlib(crle, list, path));
usr/src/cmd/sgs/dump/common/dump.c
216
unsigned char *path, buf[1024];
usr/src/cmd/sgs/dump/common/dump.c
234
path = strtab + (topath*sizeof (long));
usr/src/cmd/sgs/dump/common/dump.c
235
(void) strncpy((char *)buf, (char *)path,
usr/src/cmd/sgs/elfedit/common/elfedit.c
1310
printf(" path: >%s<\n", m->path ? m->path : "<builtin>");
usr/src/cmd/sgs/elfedit/common/elfedit.c
1374
path_is_so(const char *path)
usr/src/cmd/sgs/elfedit/common/elfedit.c
1380
len = strlen(path);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1383
tail = path + len;
usr/src/cmd/sgs/elfedit/common/elfedit.c
1385
while ((tail > path) && isdigit(*(tail - 1)))
usr/src/cmd/sgs/elfedit/common/elfedit.c
1387
if ((tail <= path) || (*tail != '.'))
usr/src/cmd/sgs/elfedit/common/elfedit.c
1391
if ((tail - path) < dotso_len)
usr/src/cmd/sgs/elfedit/common/elfedit.c
1421
elfedit_basename(const char *path, const char *tail, char *buf, size_t bufsiz)
usr/src/cmd/sgs/elfedit/common/elfedit.c
1426
tail = path + strlen(path);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1428
while ((s > path) && (*(s - 1) != '/'))
usr/src/cmd/sgs/elfedit/common/elfedit.c
1523
load_module_dlopen(const char *path, MODLIST_T *moddef, int must_exist)
usr/src/cmd/sgs/elfedit/common/elfedit.c
1533
fd = open(path, O_RDONLY);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1541
if ((hdl = dlopen(path, RTLD_LAZY|RTLD_FIRST)) == NULL)
usr/src/cmd/sgs/elfedit/common/elfedit.c
1543
MSG_INTL(MSG_ERR_CNTDLOPEN), path, dlerror(), NULL, NULL);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1732
const char *path;
usr/src/cmd/sgs/elfedit/common/elfedit.c
1781
path = name;
usr/src/cmd/sgs/elfedit/common/elfedit.c
1785
path = path_buf;
usr/src/cmd/sgs/elfedit/common/elfedit.c
1793
hdl = load_module_dlopen(path, moddef, 0);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1813
load_module_err(moddef, hdl, path,
usr/src/cmd/sgs/elfedit/common/elfedit.c
1814
MSG_INTL(MSG_ERR_SONOTMOD), path, NULL, NULL, NULL);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1823
load_module_err(moddef, hdl, path,
usr/src/cmd/sgs/elfedit/common/elfedit.c
1824
MSG_INTL(MSG_ERR_BADMODLOAD), path, NULL, NULL, NULL);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1836
load_module_err(moddef, hdl, path,
usr/src/cmd/sgs/elfedit/common/elfedit.c
1842
cmd->cmd_name[0], hdl, path);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1845
cmd->cmd_name[0], hdl, path);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1862
load_module_err(NULL, hdl, path,
usr/src/cmd/sgs/elfedit/common/elfedit.c
1877
(void) strlcpy((char *)old_moddef->ml_path, path,
usr/src/cmd/sgs/elfedit/common/elfedit.c
1881
old_moddef->ml_mod->mod_name, path);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1891
load_module_err(moddef, hdl, path,
usr/src/cmd/sgs/elfedit/common/elfedit.c
1893
mod->mod_name, name, path, NULL);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1910
(void) strlcpy((char *)moddef->ml_path, path, PATH_MAX + 1);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1913
moddef->ml_mod->mod_name, path);
usr/src/cmd/sgs/elfedit/common/elfedit.c
1977
char path[PATH_MAX + 1];
usr/src/cmd/sgs/elfedit/common/elfedit.c
1996
(void) snprintf(path, sizeof (path),
usr/src/cmd/sgs/elfedit/common/elfedit.c
2001
path, sizeof (path));
usr/src/cmd/sgs/elfedit/common/elfedit.c
2003
(void) elfedit_load_module(path, must_exist, 1);
usr/src/cmd/sgs/elfedit/common/elfedit.c
2638
modpath_strlen(const char *path, const char *origin_root)
usr/src/cmd/sgs/elfedit/common/elfedit.c
2643
s = path;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2645
for (s = path; *s != '\0'; s++) {
usr/src/cmd/sgs/elfedit/common/elfedit.c
2697
modpath_expand(const char *path, const char *origin_root, char *buf)
usr/src/cmd/sgs/elfedit/common/elfedit.c
2702
for (; *path != '\0'; path++) {
usr/src/cmd/sgs/elfedit/common/elfedit.c
2703
if (*path == '%') {
usr/src/cmd/sgs/elfedit/common/elfedit.c
2704
path++;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2706
switch (*path) {
usr/src/cmd/sgs/elfedit/common/elfedit.c
2721
*buf++ = *path;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2725
MSG_INTL(MSG_ERR_BADPATHCODE), *path);
usr/src/cmd/sgs/elfedit/common/elfedit.c
2734
*buf++ = *path;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2763
const char *path; /* Initial path */
usr/src/cmd/sgs/elfedit/common/elfedit.c
2768
path = getenv(MSG_ORIG(MSG_STR_ENVVAR));
usr/src/cmd/sgs/elfedit/common/elfedit.c
2769
if (path == NULL)
usr/src/cmd/sgs/elfedit/common/elfedit.c
2770
path = cmdline_path;
usr/src/cmd/sgs/elfedit/common/elfedit.c
2771
if (path == NULL)
usr/src/cmd/sgs/elfedit/common/elfedit.c
2772
path = MSG_ORIG(MSG_STR_MODPATH);
usr/src/cmd/sgs/elfedit/common/elfedit.c
2814
len = modpath_strlen(path, origin_root);
usr/src/cmd/sgs/elfedit/common/elfedit.c
2817
(void) modpath_expand(path, origin_root, expath);
usr/src/cmd/sgs/gprof/common/gprof.c
1133
so_path = (caddr_t)modlp + newmodp->path;
usr/src/cmd/sgs/gprof/common/gprof.c
484
prof_mod.path = off_path;
usr/src/cmd/sgs/include/monv.h
114
Index path;
usr/src/cmd/sgs/ldd/common/ldd.c
135
path[] = "LD_TRACE_SEARCH_PATHS= ",
usr/src/cmd/sgs/ldd/common/ldd.c
301
path[sizeof (path) - 2] = (sflag) ? '1' : '\0';
usr/src/cmd/sgs/ldd/common/ldd.c
656
(putenv(path) != 0) || (putenv(verb) != 0) ||
usr/src/cmd/sgs/lex/common/main.c
58
char path[PATH_MAX];
usr/src/cmd/sgs/lex/common/main.c
62
(void) snprintf(path, PATH_MAX, "%s/%s", dir, fname);
usr/src/cmd/sgs/lex/common/main.c
63
fp = fopen(path, "r");
usr/src/cmd/sgs/lex/common/main.c
65
error("Lex driver missing, file %s", path);
usr/src/cmd/sgs/libld/common/args.c
2101
char *path;
usr/src/cmd/sgs/libld/common/args.c
2119
path = argv[optind];
usr/src/cmd/sgs/libld/common/args.c
2120
if ((fd = open(path, O_RDONLY)) == -1) {
usr/src/cmd/sgs/libld/common/args.c
2124
MSG_INTL(MSG_SYS_OPEN), path, strerror(err));
usr/src/cmd/sgs/libld/common/args.c
2128
DBG_CALL(Dbg_args_file(ofl->ofl_lml, optind, path));
usr/src/cmd/sgs/libld/common/args.c
2130
open_ret = ld_process_open(path, path, &fd, ofl,
usr/src/cmd/sgs/libld/common/files.c
3494
ld_process_mem(const char *path, const char *file, char *addr, size_t size,
usr/src/cmd/sgs/libld/common/files.c
3502
ld_eprintf(ofl, ERR_ELF, MSG_INTL(MSG_ELF_MEMORY), path);
usr/src/cmd/sgs/libld/common/files.c
3506
open_ret = ld_process_ifl(path, file, 0, elf, 0, ofl, rej, &ifl);
usr/src/cmd/sgs/libld/common/files.c
3523
char path[PATH_MAX];
usr/src/cmd/sgs/libld/common/files.c
3545
(void) strcpy(path, _dir);
usr/src/cmd/sgs/libld/common/files.c
3546
(void) strcat(path, MSG_ORIG(MSG_STR_SLASH));
usr/src/cmd/sgs/libld/common/files.c
3547
(void) strcat(path, file);
usr/src/cmd/sgs/libld/common/files.c
3549
sdf->sdf_rfile, path));
usr/src/cmd/sgs/libld/common/files.c
3551
if ((fd = open(path, O_RDONLY)) == -1)
usr/src/cmd/sgs/libld/common/files.c
3558
if ((_path = libld_malloc(strlen(path) + 1)) == NULL)
usr/src/cmd/sgs/libld/common/files.c
3560
(void) strcpy(_path, path);
usr/src/cmd/sgs/libld/common/files.c
3597
char *path, *slash = NULL;
usr/src/cmd/sgs/libld/common/files.c
3627
for (path = file; *path; path++) {
usr/src/cmd/sgs/libld/common/files.c
3628
if (*path == '/')
usr/src/cmd/sgs/libld/common/files.c
3629
slash = path;
usr/src/cmd/sgs/libld/common/files.c
3667
for (APLIST_TRAVERSE(ofl->ofl_ulibdirs, idx2, path)) {
usr/src/cmd/sgs/libld/common/files.c
3670
ifl = process_req_lib(sdf, path, file, ofl, &_rej);
usr/src/cmd/sgs/libld/common/files.c
3701
if ((path = strtok_r(rpath,
usr/src/cmd/sgs/libld/common/files.c
3706
path = expand(sdf->sdf_rfile, path,
usr/src/cmd/sgs/libld/common/files.c
3709
ifl = process_req_lib(sdf, path,
usr/src/cmd/sgs/libld/common/files.c
3724
} while ((path = strtok_r(NULL,
usr/src/cmd/sgs/libld/common/files.c
3734
for (APLIST_TRAVERSE(ofl->ofl_dlibdirs, idx2, path)) {
usr/src/cmd/sgs/libld/common/files.c
3737
ifl = process_req_lib(sdf, path, file, ofl, &rej);
usr/src/cmd/sgs/libld/common/ldlibs.c
101
if (*path == '\0') {
usr/src/cmd/sgs/libld/common/ldlibs.c
109
compat_YL_YU(ofl, path, i) : path),
usr/src/cmd/sgs/libld/common/ldlibs.c
118
if (cp == path) {
usr/src/cmd/sgs/libld/common/ldlibs.c
125
compat_YL_YU(ofl, path, i) : path),
usr/src/cmd/sgs/libld/common/ldlibs.c
129
path = cp + 1;
usr/src/cmd/sgs/libld/common/ldlibs.c
136
if (cp != path) {
usr/src/cmd/sgs/libld/common/ldlibs.c
138
compat_YL_YU(ofl, path, i) : path),
usr/src/cmd/sgs/libld/common/ldlibs.c
158
ld_add_libdir(Ofl_desc *ofl, const char *path)
usr/src/cmd/sgs/libld/common/ldlibs.c
160
if (aplist_insert(&ofl->ofl_ulibdirs, path,
usr/src/cmd/sgs/libld/common/ldlibs.c
183
char *_path, path[PATH_MAX + 2];
usr/src/cmd/sgs/libld/common/ldlibs.c
204
(void) snprintf(path, (PATH_MAX + 2), MSG_ORIG(MSG_STR_LIB_SO),
usr/src/cmd/sgs/libld/common/ldlibs.c
206
DBG_CALL(Dbg_libs_l(ofl->ofl_lml, file, path));
usr/src/cmd/sgs/libld/common/ldlibs.c
207
if ((fd = open(path, O_RDONLY)) != -1) {
usr/src/cmd/sgs/libld/common/ldlibs.c
209
if ((_path = libld_malloc(strlen(path) + 1)) == NULL)
usr/src/cmd/sgs/libld/common/ldlibs.c
211
(void) strcpy(_path, path);
usr/src/cmd/sgs/libld/common/ldlibs.c
230
rej->rej_name = strdup(path);
usr/src/cmd/sgs/libld/common/ldlibs.c
238
(void) snprintf(path, (PATH_MAX + 2), MSG_ORIG(MSG_STR_LIB_A),
usr/src/cmd/sgs/libld/common/ldlibs.c
240
DBG_CALL(Dbg_libs_l(ofl->ofl_lml, file, path));
usr/src/cmd/sgs/libld/common/ldlibs.c
241
if ((fd = open(path, O_RDONLY)) != -1) {
usr/src/cmd/sgs/libld/common/ldlibs.c
243
if ((_path = libld_malloc(strlen(path) + 1)) == NULL)
usr/src/cmd/sgs/libld/common/ldlibs.c
245
(void) strcpy(_path, path);
usr/src/cmd/sgs/libld/common/ldlibs.c
260
rej->rej_name = strdup(path);
usr/src/cmd/sgs/libld/common/ldlibs.c
287
char *path;
usr/src/cmd/sgs/libld/common/ldlibs.c
295
for (APLIST_TRAVERSE(ofl->ofl_ulibdirs, idx, path)) {
usr/src/cmd/sgs/libld/common/ldlibs.c
298
if ((open_ret = find_lib_name(path, name, ofl, &_rej,
usr/src/cmd/sgs/libld/common/ldlibs.c
309
for (APLIST_TRAVERSE(ofl->ofl_assdeflib, idx, path)) {
usr/src/cmd/sgs/libld/common/ldlibs.c
310
if (strncmp(name, path + MSG_STR_LIB_SIZE,
usr/src/cmd/sgs/libld/common/ldlibs.c
311
MAX(strlen(path + MSG_STR_LIB_SIZE) -
usr/src/cmd/sgs/libld/common/ldlibs.c
322
for (APLIST_TRAVERSE(ofl->ofl_dlibdirs, idx, path)) {
usr/src/cmd/sgs/libld/common/ldlibs.c
325
if ((open_ret = find_lib_name(path, name, ofl, &_rej,
usr/src/cmd/sgs/libld/common/ldlibs.c
373
char *path, *cp = NULL;
usr/src/cmd/sgs/libld/common/ldlibs.c
388
if ((path = libld_malloc(strlen(cp) + 1)) == NULL)
usr/src/cmd/sgs/libld/common/ldlibs.c
390
(void) strcpy(path, cp);
usr/src/cmd/sgs/libld/common/ldlibs.c
391
DBG_CALL(Dbg_libs_path(ofl->ofl_lml, path, LA_SER_DEFAULT, 0));
usr/src/cmd/sgs/libld/common/ldlibs.c
397
path = process_lib_path(ofl, &ofl->ofl_ulibdirs, path, FALSE);
usr/src/cmd/sgs/libld/common/ldlibs.c
406
if (path) {
usr/src/cmd/sgs/libld/common/ldlibs.c
408
*path = '\0';
usr/src/cmd/sgs/libld/common/ldlibs.c
409
++path;
usr/src/cmd/sgs/libld/common/ldlibs.c
410
cp = process_lib_path(ofl, &ofl->ofl_ulibdirs, path,
usr/src/cmd/sgs/libld/common/ldlibs.c
62
compat_YL_YU(Ofl_desc *ofl, char *path, int index)
usr/src/cmd/sgs/libld/common/ldlibs.c
72
path, index));
usr/src/cmd/sgs/libld/common/ldlibs.c
83
path, index));
usr/src/cmd/sgs/libld/common/ldlibs.c
87
return (path);
usr/src/cmd/sgs/libld/common/ldlibs.c
91
process_lib_path(Ofl_desc *ofl, APlist **apl, char *path, Boolean subsflag)
usr/src/cmd/sgs/libld/common/ldlibs.c
99
cp = strpbrk(path, MSG_ORIG(MSG_STR_PATHTOK));
usr/src/cmd/sgs/libld/common/libs.c
347
char *path;
usr/src/cmd/sgs/libld/common/libs.c
350
if ((path = libld_malloc(len)) == NULL) {
usr/src/cmd/sgs/libld/common/libs.c
355
(void) snprintf(path, len, MSG_ORIG(MSG_FMT_ARMEM), name, arname);
usr/src/cmd/sgs/libld/common/libs.c
356
return (path);
usr/src/cmd/sgs/libld/common/map_core.c
2325
char path[PATH_MAX];
usr/src/cmd/sgs/libld/common/map_core.c
2333
(void) snprintf(path, PATH_MAX, MSG_ORIG(MSG_STR_PATH),
usr/src/cmd/sgs/libld/common/map_core.c
2335
if (!ld_map_parse(path, ofl))
usr/src/cmd/sgs/liblddbg/common/libs.c
105
dbg_print(lml, MSG_INTL(MSG_LIB_LOPT), name, path);
usr/src/cmd/sgs/liblddbg/common/libs.c
109
Dbg_libs_path(Lm_list *lml, const char *path, uint_t orig, const char *obj)
usr/src/cmd/sgs/liblddbg/common/libs.c
114
if (path == NULL)
usr/src/cmd/sgs/liblddbg/common/libs.c
152
dbg_print(lml, fmt, path, obj);
usr/src/cmd/sgs/liblddbg/common/libs.c
179
Dbg_libs_yp(Lm_list *lml, const char *path)
usr/src/cmd/sgs/liblddbg/common/libs.c
184
dbg_print(lml, MSG_INTL(MSG_LIB_LIBPATH), path);
usr/src/cmd/sgs/liblddbg/common/libs.c
188
Dbg_libs_ylu(Lm_list *lml, const char *path, const char *orig, int index)
usr/src/cmd/sgs/liblddbg/common/libs.c
193
dbg_print(lml, MSG_INTL(MSG_LIB_YPATH), path, orig,
usr/src/cmd/sgs/liblddbg/common/libs.c
55
Dbg_libs_found(Lm_list *lml, const char *path, int alter)
usr/src/cmd/sgs/liblddbg/common/libs.c
60
dbg_print(lml, MSG_INTL(MSG_LIB_TRYING), path, alter ?
usr/src/cmd/sgs/liblddbg/common/libs.c
65
Dbg_libs_insecure(Lm_list *lml, const char *path, int usable)
usr/src/cmd/sgs/liblddbg/common/libs.c
71
dbg_print(lml, MSG_INTL(MSG_LIB_INUSE), path);
usr/src/cmd/sgs/liblddbg/common/libs.c
73
dbg_print(lml, MSG_INTL(MSG_LIB_IGNORE), path);
usr/src/cmd/sgs/liblddbg/common/libs.c
98
Dbg_libs_l(Lm_list *lml, const char *name, const char *path)
usr/src/cmd/sgs/liblddbg/common/unused.c
117
dbg_print(lml, fmt, path, obj);
usr/src/cmd/sgs/liblddbg/common/unused.c
90
Dbg_unused_path(Lm_list *lml, const char *path, uint_t orig, uint_t dup,
usr/src/cmd/sgs/m4/common/m4macs.c
352
char *path;
usr/src/cmd/sgs/m4/common/m4macs.c
355
path = wstr2str(ap[1], 1);
usr/src/cmd/sgs/m4/common/m4macs.c
356
mkpid(path);
usr/src/cmd/sgs/m4/common/m4macs.c
357
pbstr(str2wstr(path, 0));
usr/src/cmd/sgs/m4/common/m4macs.c
358
free(path);
usr/src/cmd/sgs/rtld/common/analyze.c
1184
char path[PATH_MAX];
usr/src/cmd/sgs/rtld/common/analyze.c
1224
((size = resolvepath(nname, path, (PATH_MAX - 1))) > 0)) {
usr/src/cmd/sgs/rtld/common/analyze.c
1225
path[size] = '\0';
usr/src/cmd/sgs/rtld/common/analyze.c
1229
if (strcmp(nname, path)) {
usr/src/cmd/sgs/rtld/common/analyze.c
1231
fpavl_recorded(lml, path, 0, 0)) != NULL) {
usr/src/cmd/sgs/rtld/common/analyze.c
1252
if ((fdp->fd_pname = stravl_insert(path, 0,
usr/src/cmd/sgs/rtld/common/analyze.c
684
_is_so_matched(const char *name, const char *str, int path)
usr/src/cmd/sgs/rtld/common/analyze.c
688
if ((path == 0) && ((_str = strrchr(str, '/')) != NULL))
usr/src/cmd/sgs/rtld/common/analyze.c
730
is_so_matched(Rt_map *lmp, const char *name, int path)
usr/src/cmd/sgs/rtld/common/analyze.c
735
if (_is_so_matched(name, NAME(lmp), path) == 0)
usr/src/cmd/sgs/rtld/common/analyze.c
739
if (_is_so_matched(name, PATHNAME(lmp), path) == 0)
usr/src/cmd/sgs/rtld/common/analyze.c
744
if (_is_so_matched(name, cp, path) == 0)
usr/src/cmd/sgs/rtld/common/analyze.c
789
int path = 0;
usr/src/cmd/sgs/rtld/common/analyze.c
818
path++;
usr/src/cmd/sgs/rtld/common/analyze.c
828
if (is_so_matched(lmp, name, path))
usr/src/cmd/sgs/rtld/common/analyze.c
842
trace_so(Rt_map *clmp, Rej_desc *rej, const char *name, const char *path,
usr/src/cmd/sgs/rtld/common/analyze.c
878
path = rej->rej_name;
usr/src/cmd/sgs/rtld/common/analyze.c
897
(void) printf(MSG_ORIG(MSG_LDD_FIL_PATH), path, str, reject);
usr/src/cmd/sgs/rtld/common/analyze.c
899
(void) printf(MSG_ORIG(MSG_LDD_FIL_EQUIV), name, path, str,
usr/src/cmd/sgs/rtld/common/cap.c
559
char path[PATH_MAX], *dst;
usr/src/cmd/sgs/rtld/common/cap.c
583
for (dst = path, src = dname; *src; dst++, src++)
usr/src/cmd/sgs/rtld/common/cap.c
616
pd.pd_pname = path;
usr/src/cmd/sgs/rtld/common/config_elf.c
205
char path[PATH_MAX];
usr/src/cmd/sgs/rtld/common/config_elf.c
217
(void) snprintf(path, PATH_MAX, MSG_ORIG(MSG_ORG_CONFIG), str);
usr/src/cmd/sgs/rtld/common/config_elf.c
218
str = path;
usr/src/cmd/sgs/rtld/common/dlfcns.c
1006
return (dlmopen_intn(lml, path, mode, clmp, 0, 0));
usr/src/cmd/sgs/rtld/common/dlfcns.c
1017
dlopen(const char *path, int mode)
usr/src/cmd/sgs/rtld/common/dlfcns.c
1029
ghp = dlmopen_check(lml, path, mode, clmp);
usr/src/cmd/sgs/rtld/common/dlfcns.c
1042
dlmopen(Lmid_t lmid, const char *path, int mode)
usr/src/cmd/sgs/rtld/common/dlfcns.c
1052
ghp = dlmopen_check((Lm_list *)lmid, path, mode, clmp);
usr/src/cmd/sgs/rtld/common/dlfcns.c
1945
Dl_serpath_t *path;
usr/src/cmd/sgs/rtld/common/dlfcns.c
1951
path = &info->dls_serpath[0];
usr/src/cmd/sgs/rtld/common/dlfcns.c
2005
path->dls_name = strs;
usr/src/cmd/sgs/rtld/common/dlfcns.c
2006
path->dls_flags = (pdp->pd_flags & LA_SER_MASK);
usr/src/cmd/sgs/rtld/common/dlfcns.c
2009
path++;
usr/src/cmd/sgs/rtld/common/dlfcns.c
641
dlmopen_core(Lm_list *lml, Lm_list *olml, const char *path, int mode,
usr/src/cmd/sgs/rtld/common/dlfcns.c
650
(path ? path : MSG_ORIG(MSG_STR_ZERO)), in_nfavl, mode));
usr/src/cmd/sgs/rtld/common/dlfcns.c
668
if (path == NULL) {
usr/src/cmd/sgs/rtld/common/dlfcns.c
749
if (LM_FIX_NAME(clmp)(path, clmp, &palp, AL_CNT_NEEDED, orig) == 0)
usr/src/cmd/sgs/rtld/common/dlfcns.c
810
remove_lmc(lml, clmp, olmco, path);
usr/src/cmd/sgs/rtld/common/dlfcns.c
857
dlmopen_intn(Lm_list *lml, const char *path, int mode, Rt_map *clmp,
usr/src/cmd/sgs/rtld/common/dlfcns.c
910
ghp = dlmopen_core(lml, olml, path, mode, clmp, flags, orig, &in_nfavl);
usr/src/cmd/sgs/rtld/common/dlfcns.c
922
ghp = dlmopen_core(lml, olml, path, mode, clmp, flags, orig,
usr/src/cmd/sgs/rtld/common/dlfcns.c
974
dlmopen_check(Lm_list *lml, const char *path, int mode, Rt_map *clmp)
usr/src/cmd/sgs/rtld/common/dlfcns.c
979
if (path && (*path == '\0')) {
usr/src/cmd/sgs/rtld/common/dlfcns.c
997
if ((lml == (Lm_list *)LM_ID_NEWLM) && (path == NULL)) {
usr/src/cmd/sgs/rtld/common/external.c
646
open(const char *path, int oflag, ...)
usr/src/cmd/sgs/rtld/common/external.c
655
return (__open(path, oflag, mode));
usr/src/cmd/sgs/rtld/common/external.c
659
openat(int fd, const char *path, int oflag, ...)
usr/src/cmd/sgs/rtld/common/external.c
668
return (__openat(fd, path, oflag, mode));
usr/src/cmd/sgs/rtld/common/locale.c
145
char path[PATH_MAX];
usr/src/cmd/sgs/rtld/common/locale.c
154
(void) snprintf(path, PATH_MAX, MSG_ORIG(MSG_FMT_MSGFILE),
usr/src/cmd/sgs/rtld/common/locale.c
157
if ((fd = open(path, O_RDONLY, 0)) == -1)
usr/src/cmd/sgs/rtld/common/paths.c
1002
is_path_unique(Alist *alp, const char *path)
usr/src/cmd/sgs/rtld/common/paths.c
1008
if (pdp->pd_plen && (strcmp(pdp->pd_pname, path) == 0))
usr/src/cmd/sgs/rtld/common/paths.c
1208
const char *path;
usr/src/cmd/sgs/rtld/common/paths.c
1216
name = path = PATHNAME(lmp);
usr/src/cmd/sgs/rtld/common/paths.c
1219
if (path[0] != '/') {
usr/src/cmd/sgs/rtld/common/paths.c
1229
path = _path;
usr/src/cmd/sgs/rtld/common/paths.c
1230
size = strlen(path);
usr/src/cmd/sgs/rtld/common/paths.c
1237
if ((rsize = resolvepath(path, _path, (PATH_MAX - 1))) > 0) {
usr/src/cmd/sgs/rtld/common/paths.c
1239
path = _path;
usr/src/cmd/sgs/rtld/common/paths.c
1249
stravl_insert(path, 0, (size + 1), 0)) == NULL)
usr/src/cmd/sgs/rtld/common/util.c
3774
rtld_stat(const char *restrict path, rtld_stat_t *restrict buf)
usr/src/cmd/sgs/rtld/common/util.c
3779
r = stat64(path, &lbuf);
usr/src/cmd/sgs/tsort/common/errmsg.h
107
FILE *zfopen(int severity, char *path, char *type);
usr/src/cmd/sgs/tsort/common/zfopen.c
39
zfopen(int severity, char *path, char *type)
usr/src/cmd/sgs/tsort/common/zfopen.c
43
if ((fp = fopen(path, type)) == NULL) {
usr/src/cmd/sgs/tsort/common/zfopen.c
64
path, mode);
usr/src/cmd/sh/hashserv.c
220
unsigned char *path;
usr/src/cmd/sh/hashserv.c
224
path = getpath("");
usr/src/cmd/sh/hashserv.c
226
while (path && *path)
usr/src/cmd/sh/hashserv.c
228
if (*path == '/')
usr/src/cmd/sh/hashserv.c
241
path = nextpath(path);
usr/src/cmd/sh/hashserv.c
399
unsigned char *path;
usr/src/cmd/sh/hashserv.c
407
path = getpath(name);
usr/src/cmd/sh/hashserv.c
413
path = nextpath(path);
usr/src/cmd/sh/hashserv.c
417
catpath(path, name);
usr/src/cmd/sh/hashserv.c
430
while (path)
usr/src/cmd/sh/hashserv.c
432
path = catpath(path, name);
usr/src/cmd/sh/hashserv.c
490
unsigned char *path;
usr/src/cmd/sh/hashserv.c
492
path = getpath(name);
usr/src/cmd/sh/hashserv.c
494
while (--count && path)
usr/src/cmd/sh/hashserv.c
495
path = nextpath(path, name);
usr/src/cmd/sh/hashserv.c
497
catpath(path, name);
usr/src/cmd/sh/name.c
260
unsigned char *path;
usr/src/cmd/sh/name.c
263
path = getpath("");
usr/src/cmd/sh/name.c
264
while (path && *path)
usr/src/cmd/sh/name.c
266
if (patheq(path, "/usr/ucb"))
usr/src/cmd/sh/name.c
271
else if (patheq(path, "/usr/bin"))
usr/src/cmd/sh/name.c
273
else if (patheq(path, "/bin"))
usr/src/cmd/sh/name.c
275
else if (patheq(path, "/usr/5bin"))
usr/src/cmd/sh/name.c
277
path = nextpath(path);
usr/src/cmd/sh/service.c
135
unsigned char *path, *newpath;
usr/src/cmd/sh/service.c
144
} else if ((path = pathnod.namval) == 0)
usr/src/cmd/sh/service.c
147
pathlen = length(path)-1;
usr/src/cmd/sh/service.c
149
if (pathlen > 2 && path[pathlen - 1] == ':' &&
usr/src/cmd/sh/service.c
150
path[pathlen - 2] != ':') {
usr/src/cmd/sh/service.c
152
(void) memcpystak(newpath, path, pathlen);
usr/src/cmd/sh/service.c
157
return (cpystak(path));
usr/src/cmd/sh/service.c
162
pathopen(unsigned char *path, unsigned char *name)
usr/src/cmd/sh/service.c
168
path = catpath(path, name);
usr/src/cmd/sh/service.c
169
} while ((f = open((char *)curstak(), 0)) < 0 && path);
usr/src/cmd/sh/service.c
174
catpath(unsigned char *path, unsigned char *name)
usr/src/cmd/sh/service.c
179
unsigned char *scanp = path;
usr/src/cmd/sh/service.c
187
if (scanp != path) {
usr/src/cmd/sh/service.c
194
path = (*scanp ? scanp : 0);
usr/src/cmd/sh/service.c
203
return (path);
usr/src/cmd/sh/service.c
207
nextpath(unsigned char *path)
usr/src/cmd/sh/service.c
209
unsigned char *scanp = path;
usr/src/cmd/sh/service.c
226
unsigned char *path;
usr/src/cmd/sh/service.c
232
path = getpath(*t);
usr/src/cmd/sh/service.c
239
path = nextpath(path);
usr/src/cmd/sh/service.c
241
execs(path, t);
usr/src/cmd/sh/service.c
242
path = getpath(*t);
usr/src/cmd/sh/service.c
244
while (path = execs(path, t))
usr/src/cmd/smbsrv/fksmbd/fksmbd_shr.c
105
new_share(name, path, comment, 0);
usr/src/cmd/smbsrv/fksmbd/fksmbd_shr.c
43
new_share(char *name, char *path, char *comment, int flags)
usr/src/cmd/smbsrv/fksmbd/fksmbd_shr.c
49
(void) strlcpy(si.shr_path, path, MAXPATHLEN);
usr/src/cmd/smbsrv/fksmbd/fksmbd_shr.c
77
char *name, *path, *comment;
usr/src/cmd/smbsrv/fksmbd/fksmbd_shr.c
93
path = p;
usr/src/cmd/smbsrv/smbd/smbd_doorsvc.c
862
smb_string_t path;
usr/src/cmd/smbsrv/smbd/smbd_doorsvc.c
865
bzero(&path, sizeof (smb_string_t));
usr/src/cmd/smbsrv/smbd/smbd_doorsvc.c
868
if (smb_string_decode(&path, arg->data, arg->datalen) != 0)
usr/src/cmd/smbsrv/smbd/smbd_doorsvc.c
871
if (smbd_vss_get_count(path.buf, &count) == 0)
usr/src/cmd/smbsrv/smbd/smbd_doorsvc.c
875
xdr_free(smb_string_xdr, (char *)&path);
usr/src/cmd/smbsrv/smbd/smbd_spool.c
160
char path[MAXPATHLEN];
usr/src/cmd/smbsrv/smbd/smbd_spool.c
172
path, &ipaddr) == 0) {
usr/src/cmd/smbsrv/smbd/smbd_spool.c
174
username, path, SMBD_CUPS_DOCNAME);
usr/src/cmd/smbsrv/smbd/smbd_spool.c
195
smbd_spool_copyfile(smb_inaddr_t *ipaddr, char *username, char *path,
usr/src/cmd/smbsrv/smbd/smbd_spool.c
209
if (stat(path, &sbuf)) {
usr/src/cmd/smbsrv/smbd/smbd_spool.c
211
path, strerror(errno));
usr/src/cmd/smbsrv/smbd/smbd_spool.c
220
if (remove(path) != 0)
usr/src/cmd/smbsrv/smbd/smbd_spool.c
223
path, strerror(errno));
usr/src/cmd/smbsrv/smbd/smbd_spool.c
246
(void) strlcpy(pjob.pj_filename, path, SMBD_PJOBLEN);
usr/src/cmd/smbsrv/smbd/smbd_vss.c
103
smbd_vss_get_count(const char *path, uint32_t *count)
usr/src/cmd/smbsrv/smbd/smbd_vss.c
116
if (smb_getdataset(libhd, path, dataset, MAXPATHLEN) != 0) {
usr/src/cmd/smbsrv/smbd/smbd_vss.c
148
smbd_vss_get_snapshots(const char *path, uint32_t count,
usr/src/cmd/smbsrv/smbd/smbd_vss.c
179
if (smb_getdataset(libhd, path, dataset, MAXPATHLEN) != 0) {
usr/src/cmd/smbsrv/smbd/smbd_vss.c
238
smbd_vss_map_gmttoken(const char *path, char *gmttoken, time_t toktime,
usr/src/cmd/smbsrv/smbd/smbd_vss.c
261
if (smb_getdataset(libhd, path, dataset, MAXPATHLEN) != 0) {
usr/src/cmd/srchtxt/srchtxt.c
232
attach(path, len, fdescr, size)
usr/src/cmd/srchtxt/srchtxt.c
233
char *path;
usr/src/cmd/srchtxt/srchtxt.c
242
(void) strcpy(&path[len], fname);
usr/src/cmd/srchtxt/srchtxt.c
243
if ((fd = open(path, O_RDONLY)) != -1 &&
usr/src/cmd/stat/common/acquire_iodevs.c
349
char *path;
usr/src/cmd/stat/common/acquire_iodevs.c
366
path = strchr(ifn, '.');
usr/src/cmd/stat/common/acquire_iodevs.c
373
if (path &&
usr/src/cmd/stat/common/acquire_iodevs.c
384
iodev_path_match(struct iodev_snapshot *dev, struct iodev_snapshot *path)
usr/src/cmd/stat/common/acquire_iodevs.c
390
pn = path->is_name;
usr/src/cmd/stat/common/acquire_iodevs.c
786
update_target(struct iodev_snapshot *tgt, struct iodev_snapshot *path)
usr/src/cmd/stat/common/acquire_iodevs.c
788
tgt->is_stats.reads += path->is_stats.reads;
usr/src/cmd/stat/common/acquire_iodevs.c
789
tgt->is_stats.writes += path->is_stats.writes;
usr/src/cmd/stat/common/acquire_iodevs.c
790
tgt->is_stats.nread += path->is_stats.nread;
usr/src/cmd/stat/common/acquire_iodevs.c
791
tgt->is_stats.nwritten += path->is_stats.nwritten;
usr/src/cmd/stat/common/acquire_iodevs.c
792
tgt->is_stats.wcnt += path->is_stats.wcnt;
usr/src/cmd/stat/common/acquire_iodevs.c
793
tgt->is_stats.rcnt += path->is_stats.rcnt;
usr/src/cmd/stat/common/acquire_iodevs.c
800
tgt->is_crtime += hrtime_delta(path->is_crtime, path->is_snaptime);
usr/src/cmd/stat/common/acquire_iodevs.c
801
tgt->is_snaptime += path->is_snaptime;
usr/src/cmd/stat/common/dsr.c
386
char *host, *path;
usr/src/cmd/stat/common/dsr.c
402
path = cur_special(host, cp);
usr/src/cmd/stat/common/dsr.c
403
if (path) {
usr/src/cmd/stat/common/dsr.c
405
len += strlen(path);
usr/src/cmd/stat/common/dsr.c
409
"%s:%s", host, path);
usr/src/cmd/stat/common/dsr.c
486
char *path;
usr/src/cmd/stat/common/dsr.c
516
path = ++cp; /* skip ':' */
usr/src/cmd/stat/common/dsr.c
524
return (path);
usr/src/cmd/stat/common/dsr.c
528
return (path);
usr/src/cmd/stat/fsstat/fsstat.c
633
char path[PATH_MAX];
usr/src/cmd/stat/fsstat/fsstat.c
666
if (realpath(original_name, path) == NULL) {
usr/src/cmd/stat/fsstat/fsstat.c
676
if (strncmp(path, mntp->m_mntpt, strlen(mntp->m_mntpt)) == 0) {
usr/src/cmd/stat/fsstat/fsstat.c
697
"Can't find mount point for %s\n"), path);
usr/src/cmd/stmsboot/stmsboot_util.c
1081
rv = nvlist_lookup_string(devnvl, NVL_MPXPATH, &path);
usr/src/cmd/stmsboot/stmsboot_util.c
1087
path = curpath;
usr/src/cmd/stmsboot/stmsboot_util.c
1094
if (path != NULL) {
usr/src/cmd/stmsboot/stmsboot_util.c
1095
if (nvlist_add_string(mapnvl, path, strdevid) != 0) {
usr/src/cmd/stmsboot/stmsboot_util.c
1098
"%s to mapnvl\n"), path, strdevid);
usr/src/cmd/stmsboot/stmsboot_util.c
1102
path, strdevid);
usr/src/cmd/stmsboot/stmsboot_util.c
1122
char *path;
usr/src/cmd/stmsboot/stmsboot_util.c
1138
if ((path = di_devfs_path(curnode)) == NULL) {
usr/src/cmd/stmsboot/stmsboot_util.c
1154
(void) printf("%s\n", path);
usr/src/cmd/stmsboot/stmsboot_util.c
990
char *path = NULL;
usr/src/cmd/su/su.c
159
char path[PATH_MAX] = "PATH=";
usr/src/cmd/su/su.c
266
(void) strlcat(path, (Path) ? Path : PATH, sizeof (path));
usr/src/cmd/su/su.c
531
envinit[++envidx] = ((uid == (uid_t)ROOT) ? supath : path);
usr/src/cmd/svc/configd/backend.c
474
backend_is_readonly(struct sqlite *db, const char *path)
usr/src/cmd/svc/configd/backend.c
479
if (statvfs64(path, &stat) == 0 && (stat.f_flag & ST_RDONLY))
usr/src/cmd/svc/lsvcrun/lsvcrun.c
104
start_pg_name(const char *path)
usr/src/cmd/svc/lsvcrun/lsvcrun.c
108
if (fnmatch("/etc/rc[0-6S].d/S*", path, FNM_PATHNAME) != 0) {
usr/src/cmd/svc/lsvcrun/lsvcrun.c
109
uu_warn(gettext("couldn't parse name %s.\n"), path);
usr/src/cmd/svc/lsvcrun/lsvcrun.c
113
out = strdup(path + sizeof ("/etc/") - 1);
usr/src/cmd/svc/lsvcrun/lsvcrun.c
131
script_suffix(const char *path)
usr/src/cmd/svc/lsvcrun/lsvcrun.c
136
if (fnmatch("/etc/rc[0-6S].d/[SK]*", path, FNM_PATHNAME) != 0) {
usr/src/cmd/svc/lsvcrun/lsvcrun.c
137
uu_warn(gettext("couldn't parse name %s.\n"), path);
usr/src/cmd/svc/lsvcrun/lsvcrun.c
141
cp = path + sizeof ("/etc/rc0.d/S") - 1;
usr/src/cmd/svc/lsvcrun/lsvcrun.c
147
uu_warn(gettext("couldn't parse name %s.\n"), path);
usr/src/cmd/svc/lsvcrun/lsvcrun.c
162
path_to_svc_name(const char *path)
usr/src/cmd/svc/lsvcrun/lsvcrun.c
166
out = strdup(path);
usr/src/cmd/svc/startd/env.c
124
valid_env_var(const char *var, const restarter_inst_t *inst, const char *path)
usr/src/cmd/svc/startd/env.c
139
} else if (path != NULL && strncmp(var, "PATH=", 5) == 0) {
usr/src/cmd/svc/startd/env.c
203
set_smf_env(char **env, size_t env_sz, const char *path,
usr/src/cmd/svc/startd/env.c
221
if (path != NULL) {
usr/src/cmd/svc/startd/env.c
222
sz = strlen(path) + 1;
usr/src/cmd/svc/startd/env.c
224
(void) strlcpy(*np, path, sz);
usr/src/cmd/svc/startd/env.c
257
if (valid_env_var(*p, inst, path)) {
usr/src/cmd/svc/startd/env.c
269
if (!valid_env_var(*p, inst, path))
usr/src/cmd/svc/startd/fork.c
102
fork_mount(char *path, char *opts)
usr/src/cmd/svc/startd/fork.c
129
(void) execl("/sbin/mount", "mount", "-o", opts, path, NULL);
usr/src/cmd/svc/startd/fork.c
321
char path[PATH_MAX];
usr/src/cmd/svc/startd/fork.c
478
(void) snprintf(path, sizeof (path),
usr/src/cmd/svc/startd/fork.c
481
(void) core_set_process_path(path, strlen(path) + 1, getpid());
usr/src/cmd/svc/startd/fork.c
618
char path[20] = "/sbin/rc.", log[20] = "rc..log", timebuf[20];
usr/src/cmd/svc/startd/fork.c
625
path[8] = rl;
usr/src/cmd/svc/startd/fork.c
644
uu_warn("Could not create contract template for %s.\n", path);
usr/src/cmd/svc/startd/fork.c
661
path, stat);
usr/src/cmd/svc/startd/fork.c
664
"%s failed with status %d.\n", path,
usr/src/cmd/svc/startd/fork.c
683
(void) fprintf(stderr, "%s Executing %s %s\n", timebuf, path, arg);
usr/src/cmd/svc/startd/fork.c
692
(void) execle(path, path, arg, 0, nenv);
usr/src/cmd/svc/startd/graph.c
2714
handle_cycle(const char *fmri, int *path)
usr/src/cmd/svc/startd/graph.c
2721
path_to_str(path, (char **)&cp, &sz);
usr/src/cmd/svc/startd/graph.c
2990
int *path;
usr/src/cmd/svc/startd/graph.c
3019
err = set_dependencies(v, inst, &path);
usr/src/cmd/svc/startd/graph.c
3054
handle_cycle(fmri, path);
usr/src/cmd/svc/startd/graph.c
3127
int *path;
usr/src/cmd/svc/startd/graph.c
3424
err = graph_change_restarter(v, restarter_fmri, h, &path);
usr/src/cmd/svc/startd/graph.c
3442
handle_cycle(v->gv_name, path);
usr/src/cmd/svc/startd/graph.c
684
int *path;
usr/src/cmd/svc/startd/graph.c
695
cs->path = startd_alloc((cs->depth + 1) * sizeof (int));
usr/src/cmd/svc/startd/graph.c
696
cs->path[cs->depth] = -1;
usr/src/cmd/svc/startd/graph.c
710
if (cs->path != NULL)
usr/src/cmd/svc/startd/graph.c
711
cs->path[cs->depth] = v->gv_id;
usr/src/cmd/svc/startd/graph.c
726
cs.path = NULL;
usr/src/cmd/svc/startd/graph.c
730
return (cs.path);
usr/src/cmd/svc/startd/graph.c
739
path_to_str(int *path, char **cpp, size_t *sz)
usr/src/cmd/svc/startd/graph.c
747
assert(path[0] != -1);
usr/src/cmd/svc/startd/graph.c
753
for (i = 0; path[i] != -1; ++i) {
usr/src/cmd/svc/startd/graph.c
756
v = vertex_get_by_id(path[i]);
usr/src/cmd/svc/startd/graph.c
777
startd_free(path, sizeof (int) * (i + 1));
usr/src/cmd/svc/startd/log.c
303
log_dir_writeable(const char *path)
usr/src/cmd/svc/startd/log.c
308
if ((fd = open(path, O_RDONLY, 0644)) == -1)
usr/src/cmd/svc/startd/misc.c
120
fs_is_read_only(char *path, ulong_t *fsidp)
usr/src/cmd/svc/startd/misc.c
126
err = statvfs(path, &sfb);
usr/src/cmd/svc/startd/misc.c
149
fs_remount(char *path)
usr/src/cmd/svc/startd/misc.c
151
if (fork_mount(path, "remount,rw"))
usr/src/cmd/svc/svcadm/synch.c
218
const char *path;
usr/src/cmd/svc/svcadm/synch.c
223
if (scf_parse_file_fmri(fmri, NULL, &path) != 0)
usr/src/cmd/svc/svcadm/synch.c
226
if (stat(path, &st) == 0)
usr/src/cmd/svc/svcadm/synch.c
230
uu_warn(gettext("Unable to access \"%s\".\n"), path);
usr/src/cmd/svc/svcs/explain.c
1081
const char *path;
usr/src/cmd/svc/svcs/explain.c
1087
path = fmri + (sizeof ("file:") - 1);
usr/src/cmd/svc/svcs/explain.c
1089
if (path[0] != '/')
usr/src/cmd/svc/svcs/explain.c
1092
if (path[1] == '/') {
usr/src/cmd/svc/svcs/explain.c
1093
path += 2;
usr/src/cmd/svc/svcs/explain.c
1094
if (strncmp(path, "localhost/", sizeof ("localhost/") - 1) == 0)
usr/src/cmd/svc/svcs/explain.c
1095
path += sizeof ("localhost") - 1;
usr/src/cmd/svc/svcs/explain.c
1096
else if (path[0] != '/')
usr/src/cmd/svc/svcs/explain.c
1100
return (stat(path, &st) == 0 ? 1 : 0);
usr/src/cmd/svc/svcs/svcs.c
2065
const char *svc_name, *inst_name, *pg_name, *path;
usr/src/cmd/svc/svcs/svcs.c
2075
if (scf_parse_file_fmri(lfmri, NULL, &path) == SCF_SUCCESS) {
usr/src/cmd/svc/svcs/svcs.c
2079
if (stat64(path, &statbuf) == 0)
usr/src/cmd/svr4pkg/hdrs/libadm.h
263
extern void set_PKGpaths __P((char *path));
usr/src/cmd/svr4pkg/hdrs/libadm.h
99
extern int ckpath_val __P((char *path, int pflags));
usr/src/cmd/svr4pkg/hdrs/libinst.h
206
extern char *fixpath __P((char *path));
usr/src/cmd/svr4pkg/hdrs/libinst.h
213
char **map_ptr, char *path));
usr/src/cmd/svr4pkg/hdrs/libinst.h
219
extern int set_inst_root __P((char *path));
usr/src/cmd/svr4pkg/hdrs/libinst.h
222
extern void mkbasedir __P((int flag, char *path));
usr/src/cmd/svr4pkg/hdrs/libinst.h
227
extern char *orig_path __P((char *path));
usr/src/cmd/svr4pkg/hdrs/libinst.h
228
extern char *orig_path_ptr __P((char *path));
usr/src/cmd/svr4pkg/hdrs/libinst.h
248
extern uint32_t fsys __P((char *path));
usr/src/cmd/svr4pkg/hdrs/libinst.h
252
extern uint32_t resolved_fsys __P((char *path));
usr/src/cmd/svr4pkg/hdrs/libinst.h
254
extern char *server_map __P((char *path, uint32_t fsys_value));
usr/src/cmd/svr4pkg/hdrs/libinst.h
255
extern int use_srvr_map __P((char *path, uint32_t *fsys_value));
usr/src/cmd/svr4pkg/hdrs/libinst.h
257
extern int is_fs_writeable __P((char *path, uint32_t *fsys_value));
usr/src/cmd/svr4pkg/hdrs/libinst.h
258
extern int is_remote_fs __P((char *path, uint32_t *fsys_value));
usr/src/cmd/svr4pkg/hdrs/libinst.h
259
extern int is_served __P((char *path, uint32_t *fsys_value));
usr/src/cmd/svr4pkg/hdrs/libinst.h
260
extern int is_mounted __P((char *path, uint32_t *fsys_value));
usr/src/cmd/svr4pkg/hdrs/libinst.h
304
extern int seed_pkgobjmap __P((struct cfextra *ext_entry, char *path,
usr/src/cmd/svr4pkg/hdrs/libinst.h
516
SML_TAG *tag, char *path);
usr/src/cmd/svr4pkg/hdrs/libinst.h
554
struct stat *statbuf, char *path);
usr/src/cmd/svr4pkg/installf/dofinal.c
151
} else if (entry->cf_ent.path != NULL) {
usr/src/cmd/svr4pkg/installf/dofinal.c
155
vfpPuts(vfpo, entry->cf_ent.path);
usr/src/cmd/svr4pkg/installf/dofinal.c
164
tp = fixpath(entry->cf_ent.path);
usr/src/cmd/svr4pkg/installf/dofinal.c
166
save_path = entry->cf_ent.path;
usr/src/cmd/svr4pkg/installf/dofinal.c
168
entry->cf_ent.path = tp;
usr/src/cmd/svr4pkg/installf/dofinal.c
182
fs_entry = fsys(entry->cf_ent.path);
usr/src/cmd/svr4pkg/installf/dofinal.c
196
entry->cf_ent.path = save_path;
usr/src/cmd/svr4pkg/installf/dofinal.c
226
entry->cf_ent.path = save_path;
usr/src/cmd/svr4pkg/installf/dofinal.c
81
(entry.cf_ent.path && *(entry.cf_ent.path)) ?
usr/src/cmd/svr4pkg/installf/dofinal.c
82
entry.cf_ent.path : "Unknown");
usr/src/cmd/svr4pkg/installf/dofinal.c
92
entry.cf_ent.path = save_path;
usr/src/cmd/svr4pkg/installf/installf.c
172
ept->path = ext->client_path;
usr/src/cmd/svr4pkg/installf/installf.c
175
if (RELATIVE(ept->path)) {
usr/src/cmd/svr4pkg/installf/installf.c
176
progerr(gettext(ERR_RELPATH), ept->path);
usr/src/cmd/svr4pkg/installf/installf.c
186
progerr(gettext(ERR_LINK), ept->path);
usr/src/cmd/svr4pkg/installf/installf.c
192
progerr(gettext(ERR_LINKARGS), ept->path);
usr/src/cmd/svr4pkg/installf/installf.c
201
progerr(gettext(ERR_LINKFTYPE), ept->ftype, ept->path);
usr/src/cmd/svr4pkg/installf/installf.c
218
progerr(gettext(ERR_LINK), ept->path);
usr/src/cmd/svr4pkg/installf/installf.c
221
progerr(gettext(ERR_FTYPE), ept->ftype, ept->path);
usr/src/cmd/svr4pkg/installf/installf.c
230
ept->path);
usr/src/cmd/svr4pkg/installf/installf.c
238
ept->path);
usr/src/cmd/svr4pkg/installf/installf.c
249
progerr(gettext(ERR_MODE), argv[n-1], ept->path);
usr/src/cmd/svr4pkg/installf/installf.c
260
progerr(gettext(ERR_ARGC), ept->path);
usr/src/cmd/svr4pkg/installf/installf.c
265
progerr(gettext(ERR_ARGC), ept->path);
usr/src/cmd/svr4pkg/installf/installf.c
277
return (strcmp(ext1->cf_ent.path, ext2->cf_ent.path));
usr/src/cmd/svr4pkg/installf/main.c
407
if ((n > 0) && (strncmp(ept->path,
usr/src/cmd/svr4pkg/installf/main.c
408
extlist[n-1]->cf_ent.path, PATH_MAX) == 0)) {
usr/src/cmd/svr4pkg/installf/main.c
432
if (strncmp(ept->path, temp_cl_basedir,
usr/src/cmd/svr4pkg/installf/main.c
438
&(ept->path[c]));
usr/src/cmd/svr4pkg/installf/main.c
442
"%s\n", &(ept->path[c]));
usr/src/cmd/svr4pkg/installf/main.c
447
&(ept->path[c]));
usr/src/cmd/svr4pkg/installf/main.c
450
"%s\n", &(ept->path[c]));
usr/src/cmd/svr4pkg/installf/main.c
461
tp = fixpath(ept->path);
usr/src/cmd/svr4pkg/installf/removef.c
107
&(new->map_path), path);
usr/src/cmd/svr4pkg/installf/removef.c
109
new->cf_ent.path = new->client_path;
usr/src/cmd/svr4pkg/installf/removef.c
50
char *path;
usr/src/cmd/svr4pkg/installf/removef.c
71
path = buf;
usr/src/cmd/svr4pkg/installf/removef.c
75
path = argv[argc];
usr/src/cmd/svr4pkg/installf/removef.c
84
path = orig_path_ptr(path);
usr/src/cmd/svr4pkg/installf/removef.c
86
if (path == NULL) {
usr/src/cmd/svr4pkg/installf/removef.c
92
if (*path != '/') {
usr/src/cmd/svr4pkg/installf/removef.c
94
"WARNING: relative pathname <%s> ignored"), path);
usr/src/cmd/svr4pkg/libinst/cvtpath.c
34
cvtpath(char *path, char *copy)
usr/src/cmd/svr4pkg/libinst/cvtpath.c
37
if (root || (basedir && (*path != '/'))) {
usr/src/cmd/svr4pkg/libinst/cvtpath.c
38
if (root && ((basedir == NULL) || (path[0] == '/') ||
usr/src/cmd/svr4pkg/libinst/cvtpath.c
46
if (basedir && (*path != '/')) {
usr/src/cmd/svr4pkg/libinst/cvtpath.c
54
(void) strcpy(copy, path + (*path == '/' ? 1 : 0));
usr/src/cmd/svr4pkg/libinst/dryrun.c
437
if (!write_string(fd_drb, extptr[n]->cf_ent.path))
usr/src/cmd/svr4pkg/libinst/dryrun.c
586
char path[PATH_MAX], local[PATH_MAX], *local_ptr;
usr/src/cmd/svr4pkg/libinst/dryrun.c
607
if (read_string(fd_cnb, &path[0]) == NULL)
usr/src/cmd/svr4pkg/libinst/dryrun.c
636
seed_pkgobjmap(&ext_entry, path, local_ptr);
usr/src/cmd/svr4pkg/libinst/dryrun.c
678
init_drfile(char **targ_ptr, char *path)
usr/src/cmd/svr4pkg/libinst/dryrun.c
683
*targ_ptr = strdup(path);
usr/src/cmd/svr4pkg/libinst/finalck.c
102
ept->path ? ept->path : "");
usr/src/cmd/svr4pkg/libinst/finalck.c
110
n = averify(1, &ept->ftype, ept->path, &ept->ainfo);
usr/src/cmd/svr4pkg/libinst/finalck.c
113
logerr(ERR_FINALCK_ATTR, ept->path);
usr/src/cmd/svr4pkg/libinst/finalck.c
135
n = cverify(1, &ept->ftype, ept->path, &ept->cinfo, 1);
usr/src/cmd/svr4pkg/libinst/finalck.c
138
logerr(ERR_FINALCK_CONT, ept->path);
usr/src/cmd/svr4pkg/libinst/finalck.c
160
ept->path ? ept->path : "");
usr/src/cmd/svr4pkg/libinst/finalck.c
170
n = averify(1, &ept->ftype, ept->path, &ept->ainfo);
usr/src/cmd/svr4pkg/libinst/finalck.c
173
logerr(WRN_FINALCK_ATTR, ept->path);
usr/src/cmd/svr4pkg/libinst/finalck.c
195
n = cverify(1, &ept->ftype, ept->path, &ept->cinfo, 1);
usr/src/cmd/svr4pkg/libinst/finalck.c
198
logerr(WRN_FINALCK_CONT, ept->path);
usr/src/cmd/svr4pkg/libinst/finalck.c
83
ept->path ? ept->path : "");
usr/src/cmd/svr4pkg/libinst/findscripts.c
102
char path[PATH_MAX];
usr/src/cmd/svr4pkg/libinst/findscripts.c
117
(void) sprintf(path, "%s/install/i.%s", instdir,
usr/src/cmd/svr4pkg/libinst/findscripts.c
119
if (access(path, R_OK) == 0) {
usr/src/cmd/svr4pkg/libinst/findscripts.c
120
(void) sprintf(path, "%s/i.%s", pkgbin,
usr/src/cmd/svr4pkg/libinst/findscripts.c
122
cl_Classes[i]->inst_script = qstrdup(path);
usr/src/cmd/svr4pkg/libinst/findscripts.c
126
(void) sprintf(path, "%s/i.%s", PKGSCR, cl_nam(i));
usr/src/cmd/svr4pkg/libinst/findscripts.c
127
if (access(path, R_OK) == 0) {
usr/src/cmd/svr4pkg/libinst/findscripts.c
128
cl_Classes[i]->inst_script = qstrdup(path);
usr/src/cmd/svr4pkg/libinst/findscripts.c
143
(void) sprintf(path, "%s/%s", PKGSCR, DEF_NONE_SCR);
usr/src/cmd/svr4pkg/libinst/findscripts.c
151
if (access(path, R_OK) == 0) {
usr/src/cmd/svr4pkg/libinst/findscripts.c
153
qstrdup(path);
usr/src/cmd/svr4pkg/libinst/findscripts.c
164
(void) sprintf(path, "%s/install/r.%s", instdir,
usr/src/cmd/svr4pkg/libinst/findscripts.c
166
if (access(path, R_OK) == 0) {
usr/src/cmd/svr4pkg/libinst/findscripts.c
167
(void) sprintf(path, "%s/r.%s", pkgbin,
usr/src/cmd/svr4pkg/libinst/findscripts.c
169
cl_Classes[i]->rem_script = qstrdup(path);
usr/src/cmd/svr4pkg/libinst/findscripts.c
173
(void) sprintf(path, "%s/r.%s", PKGSCR, cl_nam(i));
usr/src/cmd/svr4pkg/libinst/findscripts.c
174
if (access(path, R_OK) == 0) {
usr/src/cmd/svr4pkg/libinst/findscripts.c
175
cl_Classes[i]->rem_script = qstrdup(path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
123
set_inst_root(char *path)
usr/src/cmd/svr4pkg/libinst/fixpath.c
134
if (strcmp(install_root, path))
usr/src/cmd/svr4pkg/libinst/fixpath.c
137
ptext(stderr, gettext(ERR_IRSET), path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
140
ptext(stderr, gettext(MSG_IR_REPL), path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
145
if (path && *path) {
usr/src/cmd/svr4pkg/libinst/fixpath.c
146
if (*path != '/') {
usr/src/cmd/svr4pkg/libinst/fixpath.c
147
ptext(stderr, gettext(ERR_IRNOTABS), path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
151
(void) strlcpy(tmp_path, path, sizeof (tmp_path));
usr/src/cmd/svr4pkg/libinst/fixpath.c
178
fixpath(char *path)
usr/src/cmd/svr4pkg/libinst/fixpath.c
183
if (path && *path) {
usr/src/cmd/svr4pkg/libinst/fixpath.c
186
calloc(1, strlen(path) + install_root_len +
usr/src/cmd/svr4pkg/libinst/fixpath.c
207
if (strcmp(path, "/"))
usr/src/cmd/svr4pkg/libinst/fixpath.c
208
(void) strcpy(npath_ptr, path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
214
npath = strdup(path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
235
fixpath_dup(char *path)
usr/src/cmd/svr4pkg/libinst/fixpath.c
240
if (path && *path) {
usr/src/cmd/svr4pkg/libinst/fixpath.c
242
npath = pathalloc(strlen(path) + install_root_len + 1);
usr/src/cmd/svr4pkg/libinst/fixpath.c
259
if (strcmp(path, "/"))
usr/src/cmd/svr4pkg/libinst/fixpath.c
260
(void) strcpy(npath_ptr, path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
266
npath = pathdup(path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
305
orig_path_ptr(char *path)
usr/src/cmd/svr4pkg/libinst/fixpath.c
309
if (path && *path) { /* as long as we got an argument */
usr/src/cmd/svr4pkg/libinst/fixpath.c
311
retv = path; /* path unchanged */
usr/src/cmd/svr4pkg/libinst/fixpath.c
317
else if (strncmp(path, install_root, install_root_len) == 0) {
usr/src/cmd/svr4pkg/libinst/fixpath.c
318
retv = path + install_root_len;
usr/src/cmd/svr4pkg/libinst/fixpath.c
337
retv = path; /* All else failing, return path. */
usr/src/cmd/svr4pkg/libinst/fixpath.c
351
orig_path(char *path)
usr/src/cmd/svr4pkg/libinst/fixpath.c
355
retv = orig_path_ptr(path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
379
ask_basedir(char *path, int nointeract)
usr/src/cmd/svr4pkg/libinst/fixpath.c
387
path[0] = '\0';
usr/src/cmd/svr4pkg/libinst/fixpath.c
388
if (n = ckpath(path, P_ABSOLUTE|P_DIR|P_WRITE,
usr/src/cmd/svr4pkg/libinst/fixpath.c
393
expand_path(path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
406
char path[PATH_MAX];
usr/src/cmd/svr4pkg/libinst/fixpath.c
445
if (n = ask_basedir(path, nointeract))
usr/src/cmd/svr4pkg/libinst/fixpath.c
488
else if (n = ask_basedir(path, nointeract))
usr/src/cmd/svr4pkg/libinst/fixpath.c
60
static int ask_basedir(char *path, int nointeract);
usr/src/cmd/svr4pkg/libinst/fixpath.c
61
static char *expand_path(char *path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
63
static char *fixpath_dup(char *path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
678
expand_path(char *path)
usr/src/cmd/svr4pkg/libinst/fixpath.c
682
if (!path || !*path)
usr/src/cmd/svr4pkg/libinst/fixpath.c
683
return (path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
685
(void) strlcpy(path_buf, path, sizeof (path_buf));
usr/src/cmd/svr4pkg/libinst/fixpath.c
794
eval_path(char **server_ptr, char **client_ptr, char **map_ptr, char *path)
usr/src/cmd/svr4pkg/libinst/fixpath.c
832
if (RELATIVE(path)) {
usr/src/cmd/svr4pkg/libinst/fixpath.c
838
path_size = orig_offset_rel + strlen(path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
850
rel_fmt[base_sepr], basedir, path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
852
ptext(stderr, gettext(ERR_RELINABS), path);
usr/src/cmd/svr4pkg/libinst/fixpath.c
856
*server_ptr = fixpath_dup(path);
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1049
fsys(char *path)
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1067
(void) strlcpy(path_copy, path, PATH_MAX);
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1079
path2use = path;
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1146
resolved_fsys(char *path)
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1151
(void) strcpy(path2use, path);
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1326
use_srvr_map(char *path, uint32_t *fsys_value)
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1329
*fsys_value = fsys(path);
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1338
is_mounted(char *path, uint32_t *fsys_value)
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1341
*fsys_value = fsys(path);
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1354
is_fs_writeable(char *path, uint32_t *fsys_value)
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1357
*fsys_value = fsys(path);
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1370
is_remote_fs(char *path, uint32_t *fsys_value)
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1373
*fsys_value = fsys(path);
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1385
is_served(char *path, uint32_t *fsys_value)
usr/src/cmd/svr4pkg/libinst/mntinfo.c
1388
*fsys_value = fsys(path);
usr/src/cmd/svr4pkg/libinst/mntinfo.c
565
server_map(char *path, uint32_t fsys_value)
usr/src/cmd/svr4pkg/libinst/mntinfo.c
570
(void) strcpy(server_construction, path);
usr/src/cmd/svr4pkg/libinst/mntinfo.c
575
path+strlen(fs_tab[fsys_value]->name));
usr/src/cmd/svr4pkg/libinst/mntinfo.c
577
(void) strcpy(server_construction, path);
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
146
if ((eptnum > 0) && (strncmp(el_ent->cf_ent.path,
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
147
extlist[eptnum-1]->cf_ent.path, PATH_MAX) == 0)) {
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
213
n = srchcfile(&cf_ent, el_ent->cf_ent.path, server);
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
223
(cf_ent.path && *cf_ent.path) ?
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
224
cf_ent.path : "Unknown");
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
255
int plen = strlen(el_ent->cf_ent.path);
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
257
if (strncmp(el_ent->cf_ent.path,
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
258
extlist[i]->cf_ent.path,
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
371
progerr(gettext(ERR_PINFO), cf_ent->path);
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
567
logerr(WRN_SET_DEF_MODE, el_ent->cf_ent.path,
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
752
logerr(gettext(WRN_TOEXCL), el_ent->path);
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
793
logerr(gettext(WRN_NOTFILE), el_ent->path);
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
797
logerr(gettext(WRN_NOTSYMLN), el_ent->path);
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
801
logerr(gettext(WRN_NOTLINK), el_ent->path);
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
805
logerr(gettext(WRN_NOTDIR), el_ent->path);
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
809
logerr(gettext(WRN_NOTCHAR), el_ent->path);
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
813
logerr(gettext(WRN_NOTBLOCK), el_ent->path);
usr/src/cmd/svr4pkg/libinst/pkgdbmerg.c
817
logerr(gettext(WRN_NOTPIPE), el_ent->path);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
120
(void) strlcpy(&source[1], ept->path,
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
136
mappath(getmapmode(), ept->path); /* evaluate variables */
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
137
canonize(ept->path); /* Fix path as necessary. */
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
142
ept->path);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
144
ept->path = *server_path; /* default */
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
177
*server_path = pathdup(ept->path);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
179
ept->path = *server_path;
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
215
seed_pkgobjmap(struct cfextra *ext_entry, char *path, char *local)
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
239
(ptrdiff_t)ext->cf_ent.path);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
241
(ptrdiff_t)ext->cf_ent.path);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
243
(ptrdiff_t)ext->cf_ent.path);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
250
ext->cf_ent.path = pathdup(path);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
253
ext->client_path = (ext->cf_ent.path + client_path_os);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
254
ext->server_path = (ext->cf_ent.path + server_path_os);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
255
ext->map_path = (ext->cf_ent.path + map_path_os);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
314
(map_entry.path && *map_entry.path) ?
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
315
map_entry.path : "Unknown");
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
411
if (strcmp(ept->path, extlist[index-1]->cf_ent.path) > 0) {
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
428
n = strcmp(ept->path, ept_i->path);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
440
ept->path);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
445
ept->path);
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
575
char *path = ept2->path;
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
586
ept2->path = path;
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
660
char *path = old->path;
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
670
old->path = path;
usr/src/cmd/svr4pkg/libinst/pkgobjmap.c
725
tp->cf_ent.path = el_ent->client_path;
usr/src/cmd/svr4pkg/libinst/procmap.c
116
(void) strcpy(&source[1], ept->path);
usr/src/cmd/svr4pkg/libinst/procmap.c
131
mappath(getmapmode(), ept->path); /* evaluate variables */
usr/src/cmd/svr4pkg/libinst/procmap.c
132
canonize(ept->path); /* Fix path as necessary. */
usr/src/cmd/svr4pkg/libinst/procmap.c
137
ept->path);
usr/src/cmd/svr4pkg/libinst/procmap.c
139
ept->path = *server_path; /* default */
usr/src/cmd/svr4pkg/libinst/procmap.c
172
*server_path = pathdup(ept->path);
usr/src/cmd/svr4pkg/libinst/procmap.c
174
ept->path = *server_path;
usr/src/cmd/svr4pkg/libinst/procmap.c
229
(ept && ept->path && *ept->path) ?
usr/src/cmd/svr4pkg/libinst/procmap.c
230
ept->path : "Unknown");
usr/src/cmd/svr4pkg/libinst/procmap.c
310
if (strcmp(ept->path, eptlist[index-1]->path) > 0) {
usr/src/cmd/svr4pkg/libinst/procmap.c
327
n = strcmp(ept->path, ept_i->path);
usr/src/cmd/svr4pkg/libinst/procmap.c
331
ept->path);
usr/src/cmd/svr4pkg/libinst/setadmin.c
130
char path[PATH_MAX];
usr/src/cmd/svr4pkg/libinst/setadmin.c
141
(void) strcpy(path, file);
usr/src/cmd/svr4pkg/libinst/setadmin.c
143
(void) snprintf(path, sizeof (path), "%s/admin/%s",
usr/src/cmd/svr4pkg/libinst/setadmin.c
145
if (access(path, R_OK)) {
usr/src/cmd/svr4pkg/libinst/setadmin.c
146
(void) snprintf(path, sizeof (path), "%s/admin/%s",
usr/src/cmd/svr4pkg/libinst/setadmin.c
151
if ((fp = fopen(path, "r")) == NULL) {
usr/src/cmd/svr4pkg/libinst/sml.c
1767
smlSetFileStatInfo(SML_TAG **tag, struct stat *statbuf, char *path)
usr/src/cmd/svr4pkg/libinst/sml.c
1797
if (path != (char *)NULL) {
usr/src/cmd/svr4pkg/libinst/sml.c
1798
smlSetParam(rtag, "st_path", path);
usr/src/cmd/svr4pkg/libinst/sml.c
1831
smlFstatCompareEq(struct stat *statbuf, SML_TAG *tag, char *path)
usr/src/cmd/svr4pkg/libinst/sml.c
1843
if (path != (char *)NULL) {
usr/src/cmd/svr4pkg/libinst/sml.c
1845
_sml_fileStatInfoTag, "st_path", path) != B_TRUE) {
usr/src/cmd/svr4pkg/pkgadd/main.c
1236
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkgadd/main.c
1258
(void) snprintf(path, sizeof (path), "%s/pkginstall",
usr/src/cmd/svr4pkg/pkgadd/main.c
1275
arg[nargs++] = path;
usr/src/cmd/svr4pkg/pkgadd/main.c
1482
n = z_zone_exec(a_zoneName, path, arg, a_stdoutPath, (char *)NULL, fds);
usr/src/cmd/svr4pkg/pkgadd/main.c
1544
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkgadd/main.c
1567
(void) snprintf(path, sizeof (path), "%s/pkginstall", PKGBIN);
usr/src/cmd/svr4pkg/pkgadd/main.c
1583
arg[nargs++] = path;
usr/src/cmd/svr4pkg/pkgadd/main.c
1820
n = z_zone_exec(a_zoneName, path, arg, (char *)NULL, (char *)NULL, fds);
usr/src/cmd/svr4pkg/pkgadd/main.c
1875
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkgadd/main.c
1888
(void) snprintf(path, sizeof (path), "%s/pkginstall",
usr/src/cmd/svr4pkg/pkgadd/main.c
1900
arg[nargs++] = path;
usr/src/cmd/svr4pkg/pkgadm/lock.c
1845
char path[MAXPATHLEN];
usr/src/cmd/svr4pkg/pkgadm/lock.c
1871
pkgstrPrintf_r(path, sizeof (path), "/proc/%d", pll->lockPid);
usr/src/cmd/svr4pkg/pkgadm/lock.c
1872
if (access(path, F_OK) == 0) {
usr/src/cmd/svr4pkg/pkgadm/lock.c
1874
pll->lockPid, path);
usr/src/cmd/svr4pkg/pkgadm/lock.c
1879
path);
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
177
if (is_partial_path_in_DB(entry.path, path)) {
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
183
entry.ainfo.local, path)) {
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
199
(entry.path && *entry.path) ? entry.path :
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
239
if (!selpath(entry.path, pathtype))
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
375
selpath(char *path, int partial_path)
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
383
if (path == NULL) {
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
391
} else if (!shellmatch(pathlist[n], path)) {
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
400
shellmatch(char *spec, char *path)
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
403
if (spec == NULL || path == NULL)
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
406
while (*spec && (*spec == *path)) {
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
407
spec++, path++;
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
409
if ((*spec == *path) || (*spec == '*'))
usr/src/cmd/svr4pkg/pkgchk/checkmap.c
93
char *pkginst, char *path, int pathtype)
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
105
if ((path = findspool(ept)) == NULL) {
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
106
logerr(gettext(ERR_SPOOLED), ept->path);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
126
path, &ept->ainfo)) {
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
130
ept->path);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
139
c_err = cverify((!fflag ? (-1) : fflag), &ept->ftype, path,
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
142
logerr(gettext("ERROR: %s"), path);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
150
if (a_err = averify(fflag, &ept->ftype, ept->path,
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
155
ept->path);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
171
&ept->ftype, ept->path, &ept->cinfo, 1)) {
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
176
ept->path);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
188
path = strdup(ept->path);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
189
if (xdir(maptyp, vfp, server, path))
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
191
(void) strcpy(ept->path, path);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
192
free(path);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
196
(void) fprintf(stderr, "%s\n", ept->path);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
238
(mine.path && *mine.path) ?
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
239
mine.path : "Unknown");
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
245
if (strncmp(mine.path, dirname, len) ||
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
246
(mine.path[len] != '/'))
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
248
if (strcmp(drp->d_name, &mine.path[len+1]) ==
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
289
static char path[2*PATH_MAX+1];
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
294
if (strcmp(ept->path, "pkginfo"))
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
296
} else if (ept->path[0] == '/') {
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
302
(void) snprintf(path, sizeof (path), "%s/%s", host,
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
303
ept->path + (ept->path[0] == '/'));
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
305
if (access(path, 0) == 0) {
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
306
return (path);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
310
(void) snprintf(path, sizeof (path),
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
312
ept->path + (ept->path[0] == '/'));
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
313
if (access(path, 0) == 0) {
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
314
return (path);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
66
char *path;
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
71
mappath(2, ept->path);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
73
basepath(ept->path, maptyp ? NULL : basedir, ir);
usr/src/cmd/svr4pkg/pkgchk/ckentry.c
75
canonize(ept->path);
usr/src/cmd/svr4pkg/pkgcond/main.c
223
static int findToken(char *path, char *token);
usr/src/cmd/svr4pkg/pkgcond/main.c
3027
setCmdLinePath(char **path, char **args, int num_args)
usr/src/cmd/svr4pkg/pkgcond/main.c
3032
if (*path != NULL) {
usr/src/cmd/svr4pkg/pkgcond/main.c
3045
*path = strdup(rp);
usr/src/cmd/svr4pkg/pkgcond/main.c
3047
*path = NULL;
usr/src/cmd/svr4pkg/pkgcond/main.c
3407
findToken(char *path, char *token)
usr/src/cmd/svr4pkg/pkgcond/main.c
3413
if (path == NULL || token == NULL) {
usr/src/cmd/svr4pkg/pkgcond/main.c
3416
if ((fp = fopen(path, "r")) == NULL) {
usr/src/cmd/svr4pkg/pkginfo/pkginfo.c
607
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkginfo/pkginfo.c
619
if (!pkginfofind(path, pkgdir, drp->d_name))
usr/src/cmd/svr4pkg/pkginfo/pkginfo.c
65
extern int pkginfofind(char *path, char *pkg_dir, char *pkginst);
usr/src/cmd/svr4pkg/pkginfo/pkginfo.c
684
(entry.path && *entry.path) ? entry.path : "Unknown");
usr/src/cmd/svr4pkg/pkginfo/pkginfo.c
718
(entry.path && *entry.path) ? entry.path : "Unknown");
usr/src/cmd/svr4pkg/pkginstall/backup.c
40
backup(char *path, int mode)
usr/src/cmd/svr4pkg/pkginstall/backup.c
57
(void) fprintf(fp, "%s%s", path, mode ? "\n" :
usr/src/cmd/svr4pkg/pkginstall/check.c
1073
} else if (strcmp(ept->path, PKGINFO) == 0) {
usr/src/cmd/svr4pkg/pkginstall/check.c
1075
"%s/%s", instdir, ept->path);
usr/src/cmd/svr4pkg/pkginstall/check.c
1078
"%s/install/%s", instdir, ept->path);
usr/src/cmd/svr4pkg/pkginstall/check.c
409
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkginstall/check.c
415
(void) snprintf(path, sizeof (path), "%s/%s", instdir, DEPEND_FILE);
usr/src/cmd/svr4pkg/pkginstall/check.c
416
if (access(path, F_OK) != 0) {
usr/src/cmd/svr4pkg/pkginstall/check.c
426
if (dockdeps(path, 0, preinstallCheck)) {
usr/src/cmd/svr4pkg/pkginstall/check.c
487
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkginstall/check.c
499
(void) snprintf(path, sizeof (path), "%s/install/space", instdir);
usr/src/cmd/svr4pkg/pkginstall/check.c
500
if (access(path, F_OK) == 0) {
usr/src/cmd/svr4pkg/pkginstall/check.c
501
n = dockspace(path);
usr/src/cmd/svr4pkg/pkginstall/check.c
543
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkginstall/check.c
554
(void) snprintf(path, sizeof (path), "%s/admin", get_PKGADM());
usr/src/cmd/svr4pkg/pkginstall/check.c
556
if (mkpath(path)) {
usr/src/cmd/svr4pkg/pkginstall/check.c
558
(void) fprintf(stdout, "ckdirs=%s\n", path);
usr/src/cmd/svr4pkg/pkginstall/check.c
560
progerr(gettext(MSG_MKPKGDIR), path);
usr/src/cmd/svr4pkg/pkginstall/check.c
565
(void) snprintf(path, sizeof (path), "%s/logs", get_PKGADM());
usr/src/cmd/svr4pkg/pkginstall/check.c
567
if (mkpath(path)) {
usr/src/cmd/svr4pkg/pkginstall/check.c
569
(void) fprintf(stdout, "ckdirs=%s\n", path);
usr/src/cmd/svr4pkg/pkginstall/check.c
571
progerr(gettext(MSG_MKPKGDIR), path);
usr/src/cmd/svr4pkg/pkginstall/check.c
702
if (is_remote_fs(ept->path, &(extlist[i]->fsys_value)) &&
usr/src/cmd/svr4pkg/pkginstall/check.c
703
!is_fs_writeable(ept->path,
usr/src/cmd/svr4pkg/pkginstall/check.c
741
(mstat->rogue) ? "*" : " ", ept->path);
usr/src/cmd/svr4pkg/pkginstall/check.c
744
"conflict-contents=%s\n", ept->path);
usr/src/cmd/svr4pkg/pkginstall/check.c
758
(mstat->rogue) ? "*" : " ", ept->path);
usr/src/cmd/svr4pkg/pkginstall/check.c
761
"conflict-attributes=%s\n", ept->path);
usr/src/cmd/svr4pkg/pkginstall/check.c
887
extlist[i]->cf_ent.path,
usr/src/cmd/svr4pkg/pkginstall/check.c
892
extlist[i]->cf_ent.path,
usr/src/cmd/svr4pkg/pkginstall/check.c
895
extlist[i]->cf_ent.path,
usr/src/cmd/svr4pkg/pkginstall/check.c
903
extlist[i]->cf_ent.path,
usr/src/cmd/svr4pkg/pkginstall/check.c
907
extlist[i]->cf_ent.path,
usr/src/cmd/svr4pkg/pkginstall/check.c
915
extlist[i]->cf_ent.path,
usr/src/cmd/svr4pkg/pkginstall/check.c
919
extlist[i]->cf_ent.path,
usr/src/cmd/svr4pkg/pkginstall/check.c
990
char ans[MAX_INPUT], path[PATH_MAX];
usr/src/cmd/svr4pkg/pkginstall/check.c
996
(void) snprintf(path, sizeof (path), "%s/install", instdir);
usr/src/cmd/svr4pkg/pkginstall/check.c
997
if ((dirfp = opendir(path)) == NULL) {
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
217
if (strcmp(ept->path, "pkginfo") == 0)
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
218
(void) sprintf(tpath, "%s/%s", pkgloc, ept->path);
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
221
ept->path);
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
282
if (is_remote_fs(ept->path, &(ext->fsys_value)) &&
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
283
!is_fs_writeable(ept->path, &(ext->fsys_value)))
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
308
strcpy(tpath, server_map(ept->path, ext->fsys_value));
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
310
strcpy(tpath, ept->path);
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
374
char *pt, path[PATH_MAX];
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
382
(void) sscanf(line, "%s %ld %ld", path, &blocks, &nodes);
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
383
mappath(2, path);
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
384
basepath(path, get_basedir(), get_inst_root());
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
385
canonize(path);
usr/src/cmd/svr4pkg/pkginstall/dockspace.c
387
n = resolved_fsys(path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1002
if (is_remote_fs(ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1004
!is_fs_writeable(ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1011
if (averify(1, &ept->ftype, ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1015
progerr(ERR_CREATE_PKGOBJ, ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1047
*dstp = ept->path;
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1095
ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1104
if (!is_fs_writeable(ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1109
ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1116
ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1125
backup(ept->path, 0);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1127
echo(MSG_ATTRIB, ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1131
ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1156
ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1158
*r_updated = ept->path;
usr/src/cmd/svr4pkg/pkginstall/instvol.c
118
static boolean_t absolutepath(char *path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
119
static boolean_t parametricpath(char *path, char **relocpath);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1263
entry.cf_ent.path && *entry.cf_ent.path ?
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1264
entry.cf_ent.path : "Unknown");
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1276
progerr(ERR_CFMISSING, ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1292
progerr(ERR_COULD_NOT_INSTALL, ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1314
ept->path, &ept->ainfo)) {
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1316
ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1327
if (is_remote_fs(ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1329
!is_fs_writeable(ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1356
if (flag < 0 || is_served(ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1408
if (cppath(MODE_SRC, ept->path, scrpt_dst, 0644)) {
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1475
progerr(ERR_COULD_NOT_INSTALL, ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1482
(ept->path && *ept->path) ? ept->path : "unknown");
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1488
if (fverify(1, &ept->ftype, ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1526
if (cppath(MODE_SRC, ept->path, scrpt_dst, 0644)) {
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1543
absolutepath(char *path)
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1545
assert(path != NULL);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1546
assert(path[0] != '\0');
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1548
return (path[0] == '/' ? B_TRUE : B_FALSE);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1564
parametricpath(char *path, char **relocpath)
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1566
assert(path != NULL);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1567
assert(path[0] != '\0');
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1574
if (path[0] == '$' || path[1] == '$') {
usr/src/cmd/svr4pkg/pkginstall/instvol.c
1581
*relocpath = (path + 1);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
305
if (is_fs_writeable(ext->cf_ent.path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
338
((is_fs_writeable(ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
441
n = is_remote_fs(ept->path, &(ext->fsys_value));
usr/src/cmd/svr4pkg/pkginstall/instvol.c
443
!is_fs_writeable(ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
459
if (is_mounted(ept->path, &(ext->fsys_value))) {
usr/src/cmd/svr4pkg/pkginstall/instvol.c
544
if (is_fs_writeable(ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
682
cverify(1, &ept->ftype, ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
888
(ept->path && *ept->path) ? ept->path : "unknown");
usr/src/cmd/svr4pkg/pkginstall/instvol.c
890
(ept->path && *ept->path) ? ept->path : "unknown");
usr/src/cmd/svr4pkg/pkginstall/instvol.c
904
if (dir_is_populated(ept->path)) {
usr/src/cmd/svr4pkg/pkginstall/instvol.c
905
logerr(WRN_INSTVOL_NOTDIR, ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
914
if (rmdir(ept->path)) {
usr/src/cmd/svr4pkg/pkginstall/instvol.c
921
progerr(ERR_RMDIR, ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
946
echo(MSG_SHIGN, ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
959
if (is_fs_writeable(ept->path,
usr/src/cmd/svr4pkg/pkginstall/instvol.c
962
echo(MSG_UGMOD, ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
964
echo(MSG_UGID, ept->path);
usr/src/cmd/svr4pkg/pkginstall/instvol.c
984
ept->path, &ept->ainfo))
usr/src/cmd/svr4pkg/pkginstall/instvol.c
985
echo(MSG_SLINK, ept->path);
usr/src/cmd/svr4pkg/pkginstall/main.c
1174
(void) snprintf(path, sizeof (path), "%s:%s", DEFPATH, cmdbin);
usr/src/cmd/svr4pkg/pkginstall/main.c
1176
putparam("PATH", path);
usr/src/cmd/svr4pkg/pkginstall/main.c
1548
(void) snprintf(path, sizeof (path),
usr/src/cmd/svr4pkg/pkginstall/main.c
1550
n = reqexec(update, path, non_abi_scripts,
usr/src/cmd/svr4pkg/pkginstall/main.c
1748
(void) snprintf(path, sizeof (path),
usr/src/cmd/svr4pkg/pkginstall/main.c
1750
if (iscpio(path, &is_comp_arch)) {
usr/src/cmd/svr4pkg/pkginstall/main.c
2671
(void) snprintf(path, sizeof (path), "%s/%s", instdir, REQUEST_FILE);
usr/src/cmd/svr4pkg/pkginstall/main.c
2672
if (access(path, F_OK)) {
usr/src/cmd/svr4pkg/pkginstall/main.c
2681
ckreturn(reqexec(update, path, non_abi_scripts,
usr/src/cmd/svr4pkg/pkginstall/main.c
2728
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkginstall/main.c
2738
(void) snprintf(path, sizeof (path),
usr/src/cmd/svr4pkg/pkginstall/main.c
2740
(void) remove(path);
usr/src/cmd/svr4pkg/pkginstall/main.c
2806
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkginstall/main.c
2809
(void) snprintf(path, sizeof (path), "%s/%s", instdir, COPYRIGHT_FILE);
usr/src/cmd/svr4pkg/pkginstall/main.c
281
(void) memset(path, '\0', sizeof (path));
usr/src/cmd/svr4pkg/pkginstall/main.c
2811
if ((fp = fopen(path, "r")) == NULL) {
usr/src/cmd/svr4pkg/pkginstall/main.c
91
static char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
120
set_infoloc(char *path)
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
122
if (path && *path) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
125
infoloc = orig_path(path);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
127
infoloc = strdup(path);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
138
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
197
i = snprintf(path, PATH_MAX, "%s/%s", pkgloc, PKGINFO);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
213
pkginfoPath, path);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
222
if (strcmp(pkginfoPath, path) == 0) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
224
echoDebug(DBG_MERGINFO_SAME, path);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
226
echoDebug(DBG_MERGINFO_DIFFERENT, pkginfoPath, path);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
239
if ((fp = fopen(path, "w")) == NULL) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
240
progerr(ERR_CANNOT_OPEN_FOR_WRITING, path, strerror(errno));
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
442
i = snprintf(path, PATH_MAX, "%s/install", instdir);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
448
if ((pdirfp = opendir(path)) != NULL) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
455
i = snprintf(path, PATH_MAX, "%s/install/%s",
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
470
if (cppath(MODE_SRC|DIR_DISPLAY, path, temp, 0644)) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
484
i = snprintf(path, PATH_MAX, "%s/install", instdir);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
490
if ((pdirfp = opendir(path)) != NULL) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
507
i = snprintf(path, PATH_MAX, "%s/install/%s",
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
527
if (cppath(MODE_SRC, path, temp, 0644)) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
528
progerr(ERR_CANNOT_COPY, path, temp);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
541
i = snprintf(path, sizeof (path), "%s/%s", instdir, PKGINFO);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
542
if (i > sizeof (path)) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
555
if (cppath(MODE_SRC, path, temp, 0644)) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
556
progerr(ERR_CANNOT_COPY, path, temp);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
560
i = snprintf(path, sizeof (path), "%s/pkgmap", instdir);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
561
if (i > sizeof (path)) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
568
if (i > sizeof (path)) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
574
if (cppath(MODE_SRC, path, temp, 0644)) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
575
progerr(ERR_CANNOT_COPY, path, temp);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
590
i = snprintf(path, sizeof (path), "%s/save", instdir);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
591
if (i > sizeof (path)) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
596
if ((stat(path, &status) == 0) && (status.st_mode & S_IFDIR)) {
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
598
path, pkgsav);
usr/src/cmd/svr4pkg/pkginstall/merginfo.c
605
progerr(ERR_PKGBINCP, path, pkgsav);
usr/src/cmd/svr4pkg/pkginstall/pkgenv.c
101
progerr(gettext(ERR_NOPARAM), "NAME", path);
usr/src/cmd/svr4pkg/pkginstall/pkgenv.c
105
progerr(gettext(ERR_NOPARAM), "ARCH", path);
usr/src/cmd/svr4pkg/pkginstall/pkgenv.c
109
progerr(gettext(ERR_NOPARAM), "VERSION", path);
usr/src/cmd/svr4pkg/pkginstall/pkgenv.c
113
progerr(gettext(ERR_NOPARAM), "CATEGORY", path);
usr/src/cmd/svr4pkg/pkginstall/pkgenv.c
66
path[PATH_MAX],
usr/src/cmd/svr4pkg/pkginstall/pkgenv.c
92
progerr(gettext(ERR_NOPARAM), "PKG", path);
usr/src/cmd/svr4pkg/pkginstall/pkginstall.h
62
extern void backup __P((char *path, int mode));
usr/src/cmd/svr4pkg/pkginstall/pkgvolume.c
50
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkginstall/pkgvolume.c
85
(void) sprintf(path, "%s/%s", devp->dirname, pkg);
usr/src/cmd/svr4pkg/pkginstall/pkgvolume.c
86
if (ckvolseq(path, part, nparts) == 0)
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
144
(void) strlcpy(tpath, path, sizeof (tpath));
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
146
(void) snprintf(path, sizeof (path), "%s/respXXXXXX", tmpdir);
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
148
resppath = mktemp(path);
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
187
(void) snprintf(path, sizeof (path), "%s/respXXXXXX", tmpdir);
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
188
resppath = mktemp(path);
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
196
(void) snprintf(path, sizeof (path),
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
199
(void) strlcpy(path, respfile, sizeof (path));
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
202
resppath = path;
usr/src/cmd/svr4pkg/pkginstall/reqexec.c
55
static char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkginstall/sortmap.c
152
ext[count]->cf_ent.path = ext[count]->client_path;
usr/src/cmd/svr4pkg/pkginstall/sortmap.c
165
ext[count]->cf_ent.path = ext[count]->server_path;
usr/src/cmd/svr4pkg/pkgmk/main.c
165
static void ckmissing(char *path, char type);
usr/src/cmd/svr4pkg/pkgmk/main.c
398
ckmissing(eptlist[i]->path, eptlist[i]->ftype);
usr/src/cmd/svr4pkg/pkgmk/main.c
401
if (strcmp(eptlist[i]->path, "pkginfo") == 0)
usr/src/cmd/svr4pkg/pkgmk/main.c
445
progerr(gettext(ERR_NOPARAM), "PKG", svept->path);
usr/src/cmd/svr4pkg/pkgmk/main.c
458
progerr(gettext(ERR_NOPARAM), "NAME", svept->path);
usr/src/cmd/svr4pkg/pkgmk/main.c
495
progerr(gettext(ERR_NOPARAM), "CATEGORY", svept->path);
usr/src/cmd/svr4pkg/pkgmk/main.c
641
if (strcmp(eptlist[i]->path, "pkginfo") == 0) {
usr/src/cmd/svr4pkg/pkgmk/main.c
707
char *svpt, *path, temp[PATH_MAX];
usr/src/cmd/svr4pkg/pkgmk/main.c
750
eptlist[i]->path);
usr/src/cmd/svr4pkg/pkgmk/main.c
751
path = temp;
usr/src/cmd/svr4pkg/pkgmk/main.c
753
path = srcpath(pkgloc, eptlist[i]->path, part, nparts);
usr/src/cmd/svr4pkg/pkgmk/main.c
755
if (slinkf(eptlist[i]->ainfo.local, path))
usr/src/cmd/svr4pkg/pkgmk/main.c
757
} else if (copyf(eptlist[i]->ainfo.local, path,
usr/src/cmd/svr4pkg/pkgmk/main.c
779
path, &(eptlist[i]->ainfo));
usr/src/cmd/svr4pkg/pkgmk/main.c
783
(void) fprintf(stderr, "%s\n", path);
usr/src/cmd/svr4pkg/pkgmk/main.c
788
ckmissing(char *path, char type)
usr/src/cmd/svr4pkg/pkgmk/main.c
804
dir[ndir] = path;
usr/src/cmd/svr4pkg/pkgmk/main.c
816
pt = path;
usr/src/cmd/svr4pkg/pkgmk/main.c
823
if (strcmp(path, dir[i]) == 0) {
usr/src/cmd/svr4pkg/pkgmk/main.c
829
logerr(gettext(WRN_MISSINGDIR), path);
usr/src/cmd/svr4pkg/pkgmk/main.c
830
ckmissing(qstrdup(path), 'd');
usr/src/cmd/svr4pkg/pkgmk/main.c
889
if (strcmp(eptlist[i]->path, "pkginfo") == 0)
usr/src/cmd/svr4pkg/pkgmk/main.c
903
if (strcmp(eptlist[i]->path, "request") == 0)
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
107
static char *findfile(char *path, char *local);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
108
static char *srchroot(char *path, char *copy);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
125
char *pt, *path, mybuff[PATH_LGTH];
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
220
(entry.path && *entry.path) ? entry.path :
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
233
logerr(gettext(MSG_BPARAMC), entry.path);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
247
entry.path);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
250
path = NULL;
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
252
path = findfile(entry.path, entry.ainfo.local);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
253
if (!path)
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
256
entry.ainfo.local = path;
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
258
if (cverify(0, &entry.ftype, path,
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
261
logerr(gettext(MSG_CONTENTS), path);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
296
entry.path);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
302
entry.path);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
329
if (entry.path[0] == '$' && isupper(entry.path[1]))
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
333
if (mappath(1, entry.path)) {
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
335
logerr(gettext(ERR_PATHVAR), entry.path);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
339
canonize(entry.path);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
362
findfile(char *path, char *local)
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
377
(void) strlcpy(temp, (local && local[0] ? local : path), sizeof (temp));
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
404
logerr(gettext(MSG_SRCHLOC), path);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
442
logerr(gettext(MSG_SRCHSRCH), path);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
805
srchroot(char *path, char *copy)
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
814
cvtpath(path, copy);
usr/src/cmd/svr4pkg/pkgmk/mkpkgmap.c
825
logerr(gettext(MSG_SRCHROOT), path);
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
163
(nodecount(eptlist[i]->path) * DIRSIZE);
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
171
allocnode(eptlist[i]->path);
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
209
if (!bpkginfo && (strcmp(f[i].ept->path, "pkginfo") == 0))
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
231
(strcmp(f[j].ept->path, "pkginfo") == 0 ||
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
232
strcmp(f[j].ept->path, "pkgmap") == 0))
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
236
ftemp += nodecount(f[j].ept->path);
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
238
allocnode(f[j].ept->path);
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
295
progerr(gettext(ERR_INFOFIRST), f[j].ept->path);
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
316
btemp = nodecount(f[j].ept->path) * DIRSIZE;
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
323
progerr(gettext(ERR_TOOBIG), f[j].ept->path, f[j].blks);
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
419
ftemp = nodecount(sf[i]->ept->path);
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
439
allocnode(sf[i]->ept->path);
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
445
allocnode(char *path)
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
451
if (path == NULL) {
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
468
pt = path;
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
479
if (strcmp(path, dirlist[i]) == 0) {
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
486
dirlist[i] = qstrdup(path);
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
502
nodecount(char *path)
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
507
pt = path;
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
524
if (strcmp(path, dirlist[i]) != 0) {
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
569
newnodes = nodecount(sf[i]->ept->path);
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
88
static int nodecount(char *path);
usr/src/cmd/svr4pkg/pkgmk/splpkgmap.c
92
static void allocnode(char *path);
usr/src/cmd/svr4pkg/pkgproto/main.c
153
while (fgets(path, sizeof (path), stdin) != (char *)NULL) {
usr/src/cmd/svr4pkg/pkgproto/main.c
154
output(path, 0, NULL);
usr/src/cmd/svr4pkg/pkgproto/main.c
166
output(char *path, int n, char *local)
usr/src/cmd/svr4pkg/pkgproto/main.c
177
len = strlen(path);
usr/src/cmd/svr4pkg/pkgproto/main.c
178
while ((len > 0) && (path[len-1] == '\n')) {
usr/src/cmd/svr4pkg/pkgproto/main.c
179
path[--len] = '\0';
usr/src/cmd/svr4pkg/pkgproto/main.c
184
entry.path = mypath;
usr/src/cmd/svr4pkg/pkgproto/main.c
186
(void) strlcpy(entry.path, path, PATH_MAX);
usr/src/cmd/svr4pkg/pkgproto/main.c
195
if (cverify(0, &entry.ftype, path, &entry.cinfo, 1)) {
usr/src/cmd/svr4pkg/pkgproto/main.c
197
logerr(gettext("ERROR: %s"), path);
usr/src/cmd/svr4pkg/pkgproto/main.c
210
if ((s = averify(0, &entry.ftype, path, &entry.ainfo)) == VE_EXIST &&
usr/src/cmd/svr4pkg/pkgproto/main.c
214
if ((s = readlink(path, mylocal, PATH_MAX)) > 0) {
usr/src/cmd/svr4pkg/pkgproto/main.c
217
if (averify(0, &entry.ftype, path, &entry.ainfo)) {
usr/src/cmd/svr4pkg/pkgproto/main.c
222
mylocal, path);
usr/src/cmd/svr4pkg/pkgproto/main.c
230
logerr(gettext("ERROR: %s"), path);
usr/src/cmd/svr4pkg/pkgproto/main.c
239
(void) strlcpy(entry.ainfo.local, entry.path,
usr/src/cmd/svr4pkg/pkgproto/main.c
245
(void) strlcpy(entry.path, local, PATH_MAX);
usr/src/cmd/svr4pkg/pkgproto/main.c
246
(void) strcat(entry.path, path+n);
usr/src/cmd/svr4pkg/pkgproto/main.c
248
(void) strlcpy(entry.path,
usr/src/cmd/svr4pkg/pkgproto/main.c
249
(path[n] == '/') ? path+n+1 : path+n,
usr/src/cmd/svr4pkg/pkgproto/main.c
253
canonize(entry.path);
usr/src/cmd/svr4pkg/pkgproto/main.c
254
if (entry.path[0]) {
usr/src/cmd/svr4pkg/pkgproto/main.c
255
findlink(&entry, path, entry.path);
usr/src/cmd/svr4pkg/pkgproto/main.c
267
follow(char *path)
usr/src/cmd/svr4pkg/pkgproto/main.c
279
if (pt = strchr(path, '=')) {
usr/src/cmd/svr4pkg/pkgproto/main.c
281
n = ((unsigned int)pt - (unsigned int)path - 1);
usr/src/cmd/svr4pkg/pkgproto/main.c
292
n = strlen(path);
usr/src/cmd/svr4pkg/pkgproto/main.c
303
if (stat(path, &stbuf)) {
usr/src/cmd/svr4pkg/pkgproto/main.c
304
progerr(gettext(ERR_STAT), path);
usr/src/cmd/svr4pkg/pkgproto/main.c
310
(void) snprintf(cmd, sizeof (cmd), "find %s -print", path);
usr/src/cmd/svr4pkg/pkgproto/main.c
322
output(path, n, local);
usr/src/cmd/svr4pkg/pkgproto/main.c
444
findlink(struct cfent *ept, char *path, char *svpath)
usr/src/cmd/svr4pkg/pkgproto/main.c
451
if (lstat(path, &statbuf)) {
usr/src/cmd/svr4pkg/pkgproto/main.c
452
progerr(gettext(ERR_STAT), path);
usr/src/cmd/svr4pkg/pkgproto/main.c
459
n = readlink(path, buf, PATH_MAX);
usr/src/cmd/svr4pkg/pkgproto/main.c
461
progerr(gettext(ERR_RDLINK), path);
usr/src/cmd/svr4pkg/pkgproto/main.c
473
if (stat(path, &statbuf))
usr/src/cmd/svr4pkg/pkgproto/main.c
484
scan_raw_ln(link->path, ept->path),
usr/src/cmd/svr4pkg/pkgproto/main.c
500
new->path = strdup(svpath);
usr/src/cmd/svr4pkg/pkgproto/main.c
65
char *path;
usr/src/cmd/svr4pkg/pkgproto/main.c
83
static void findlink(struct cfent *ept, char *path, char *svpath);
usr/src/cmd/svr4pkg/pkgproto/main.c
84
static void follow(char *path);
usr/src/cmd/svr4pkg/pkgproto/main.c
85
static void output(char *path, int n, char *local);
usr/src/cmd/svr4pkg/pkgproto/main.c
92
char *pt, path[PATH_MAX];
usr/src/cmd/svr4pkg/pkgremove/check.c
211
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkgremove/check.c
217
(void) snprintf(path, sizeof (path), "%s/install", pkgloc);
usr/src/cmd/svr4pkg/pkgremove/check.c
218
if ((dirfp = opendir(path)) == NULL)
usr/src/cmd/svr4pkg/pkgremove/delmap.c
109
} else if (ept->path != NULL) {
usr/src/cmd/svr4pkg/pkgremove/delmap.c
113
vfpPuts(*tmpfp, ept->path);
usr/src/cmd/svr4pkg/pkgremove/delmap.c
139
ept->path = pathdup(ept->path);
usr/src/cmd/svr4pkg/pkgremove/delmap.c
97
(ept->path && *ept->path) ? ept->path :
usr/src/cmd/svr4pkg/pkgremove/main.c
1087
issymlink(char *path)
usr/src/cmd/svr4pkg/pkgremove/main.c
1095
if (lstat(path, &statbuf) != 0) {
usr/src/cmd/svr4pkg/pkgremove/main.c
1177
save_path = ept->path;
usr/src/cmd/svr4pkg/pkgremove/main.c
1178
tmp_path = fixpath(ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1179
ept->path = tmp_path;
usr/src/cmd/svr4pkg/pkgremove/main.c
1192
echo(MSG_SHARED, ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1199
echo(MSG_SERVER, ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1205
(void) fprintf(fp, "%s\n", ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1207
(lstat(ept->path, &st) == 0 && S_ISDIR(st.st_mode))) {
usr/src/cmd/svr4pkg/pkgremove/main.c
1210
if (rmdir(ept->path)) {
usr/src/cmd/svr4pkg/pkgremove/main.c
1212
echo(MSG_DIRBUSY, ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1214
echo(MSG_NOTEMPTY, ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1216
progerr(ERR_RMDIR, ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1221
echo(MSG_RMSRVR, ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1223
echo("%s", ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1239
echo(MSG_SHARED, ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1245
if (unlink(ept->path)) {
usr/src/cmd/svr4pkg/pkgremove/main.c
1247
progerr(ERR_RMPATH, ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1252
echo(MSG_RMSRVR, ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1254
echo("%s", ept->path);
usr/src/cmd/svr4pkg/pkgremove/main.c
1262
ept->path = save_path;
usr/src/cmd/svr4pkg/pkgremove/main.c
168
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkgremove/main.c
628
(void) snprintf(path, sizeof (path), "%s/pkginfo", pkgloc);
usr/src/cmd/svr4pkg/pkgremove/main.c
629
if ((fp = fopen(path, "r")) == NULL) {
usr/src/cmd/svr4pkg/pkgremove/main.c
630
progerr(ERR_PKGINFO, path);
usr/src/cmd/svr4pkg/pkgremove/main.c
788
progerr(ERR_CLASSES, path);
usr/src/cmd/svr4pkg/pkgremove/main.c
798
(void) snprintf(path, sizeof (path), "%s:%s", DEFPATH, cmdbin);
usr/src/cmd/svr4pkg/pkgremove/main.c
799
putparam("PATH", path);
usr/src/cmd/svr4pkg/pkgrm/main.c
1182
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkgrm/main.c
1201
(void) snprintf(path, sizeof (path), "%s/pkgremove",
usr/src/cmd/svr4pkg/pkgrm/main.c
1218
arg[nargs++] = strdup(path);
usr/src/cmd/svr4pkg/pkgrm/main.c
1378
n = z_zone_exec(a_zoneName, path, arg, a_stdoutPath, (char *)NULL, fds);
usr/src/cmd/svr4pkg/pkgrm/main.c
1405
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkgrm/main.c
1424
(void) snprintf(path, sizeof (path), "%s/pkgremove",
usr/src/cmd/svr4pkg/pkgrm/main.c
1441
arg[nargs++] = strdup(path);
usr/src/cmd/svr4pkg/pkgrm/main.c
1604
n = z_zone_exec(a_zoneName, path, arg, (char *)NULL, (char *)NULL, fds);
usr/src/cmd/svr4pkg/pkgrm/main.c
1654
char path[PATH_MAX];
usr/src/cmd/svr4pkg/pkgrm/main.c
1664
(void) snprintf(path, sizeof (path), "%s/pkgremove",
usr/src/cmd/svr4pkg/pkgrm/main.c
1671
arg[nargs++] = strdup(path);
usr/src/cmd/swap/swap.c
375
char *path, *ptr;
usr/src/cmd/swap/swap.c
396
if ((path = malloc(num * MAXPATHLEN)) == NULL) {
usr/src/cmd/swap/swap.c
404
ptr = path;
usr/src/cmd/swap/swap.c
413
free(path);
usr/src/cmd/swap/swap.c
496
free(path);
usr/src/cmd/swap/swap.c
510
delete(char *path, off_t offset)
usr/src/cmd/swap/swap.c
515
swr.sr_name = path;
usr/src/cmd/swap/swap.c
523
path);
usr/src/cmd/swap/swap.c
526
perror(path);
usr/src/cmd/swap/swap.c
545
"select new dump device\n"), path);
usr/src/cmd/swap/swap.c
570
add(char *path, off_t offset, off_t cnt, int flags)
usr/src/cmd/swap/swap.c
601
if (strcmp(dumpdev, path) == 0) {
usr/src/cmd/swap/swap.c
604
"dump device\n"), path);
usr/src/cmd/swap/swap.c
612
swr.sr_name = path;
usr/src/cmd/swap/swap.c
621
path);
usr/src/cmd/swap/swap.c
626
path);
usr/src/cmd/swap/swap.c
629
perror(path);
usr/src/cmd/sysdef/sysdef.c
579
char line[100], path[100], *pathptr = "";
usr/src/cmd/sysdef/sysdef.c
667
(void) strcpy(path, &line[curr_len]);
usr/src/cmd/sysdef/sysdef.c
668
tmp = strtok(&path[1], ":");
usr/src/cmd/sysdef/sysdef.c
672
pathptr = &path[1];
usr/src/cmd/sysdef/sysdef.c
711
sscanf(line, "%d %s", &ino, path);
usr/src/cmd/sysdef/sysdef.c
714
printf("%s\n", path);
usr/src/cmd/syseventadm/syseventadm.c
433
char path[MAXPATHLEN+1];
usr/src/cmd/syseventadm/syseventadm.c
465
(void) strcpy(path, root_dir);
usr/src/cmd/syseventadm/syseventadm.c
466
(void) strcat(path, SYSEVENT_CONFIG_DIR);
usr/src/cmd/syseventadm/syseventadm.c
468
if ((dir = opendir(path)) == NULL) {
usr/src/cmd/syseventadm/syseventadm.c
470
whoami, path, strerror(errno));
usr/src/cmd/syseventadm/syseventadm.c
482
(void) strcpy(fname, path);
usr/src/cmd/syseventadm/syseventadm.c
492
whoami, path, strerror(errno));
usr/src/cmd/syseventadm/syseventadm.c
819
char *path, *args;
usr/src/cmd/syseventadm/syseventadm.c
846
path = next_field(&lp);
usr/src/cmd/syseventadm/syseventadm.c
861
sep->se_path = sc_strdup(path);
usr/src/cmd/syseventd/daemons/syseventconfd/syseventconfd.c
278
char *path;
usr/src/cmd/syseventd/daemons/syseventconfd/syseventconfd.c
301
if (nvlist_lookup_string(cmd->cmd_nvlist, "path", &path) != 0) {
usr/src/cmd/syseventd/daemons/syseventconfd/syseventconfd.c
335
printmsg(DBG_EXEC, "path=%s\n", path);
usr/src/cmd/syseventd/daemons/syseventconfd/syseventconfd.c
390
if (execv(path, args->arg_args) == -1) {
usr/src/cmd/syseventd/daemons/syseventconfd/syseventconfd.c
392
path, strerror(errno));
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
503
char *path, *args;
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
549
if ((path = next_field(&lp)) == NULL)
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
600
if ((i = access(path, X_OK)) == -1) {
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
602
conf_file, lineno, path, strerror(errno));
usr/src/cmd/syseventd/modules/sysevent_conf_mod/sysevent_conf_mod.c
642
sep->se_path = sc_strdup(path);
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
153
char *path;
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
164
if (nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path) != 0)
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
175
(void) strlcpy(fullpath, path, sizeof (fullpath));
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
216
if (strncmp(path, ZFS_DISK_ROOTD,
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
223
(void) strlcpy(rawpath, path + 9, sizeof (rawpath));
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
255
nvlist_add_string(newvd, ZPOOL_CONFIG_PATH, path) != 0 ||
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
269
(void) zpool_vdev_attach(zhp, fullpath, path, nvroot, B_TRUE);
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
292
char *path;
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
315
if (nvlist_lookup_string(nvl, dp->dd_prop, &path) != 0 ||
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
316
strncmp(dp->dd_compare, path, len) != 0)
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
330
if (path[len] != '\0' && path[len] != ':' &&
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
331
path[len - 1] != '/')
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
474
char path[PATH_MAX], realpath[PATH_MAX];
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
497
(ret = resolvepath(devname, path,
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
498
sizeof (path))) > 0) {
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
499
path[ret] = '\0';
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
500
colon = strchr(path, ':');
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
565
char *path, fullpath[MAXPATHLEN];
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
576
&path) == 0);
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
582
path, zpool_get_name(zhp),
usr/src/cmd/syseventd/modules/zfs_mod/zfs_mod.c
585
(void) strlcpy(fullpath, path, sizeof (fullpath));
usr/src/cmd/tar/tar.c
119
int utimes(const char *path, const struct timeval timeval_ptr[]);
usr/src/cmd/tar/tar.c
440
static int tar_chdir(const char *path);
usr/src/cmd/tar/tar.c
461
static void setPathTimes(int dirfd, char *path, timestruc_t modTime);
usr/src/cmd/tar/tar.c
537
static void get_parent(char *path, char *dir);
usr/src/cmd/tar/tar.c
538
static char *get_component(char *path);
usr/src/cmd/tar/tar.c
542
static void chop_endslashes(char *path);
usr/src/cmd/tar/tar.c
5994
tar_chdir(const char *path)
usr/src/cmd/tar/tar.c
6001
if (chdir(path) == 0) {
usr/src/cmd/tar/tar.c
6005
if (path[0] == '/' && chdir(sep) != 0)
usr/src/cmd/tar/tar.c
6009
if ((path_copy = strdup(path)) == NULL) {
usr/src/cmd/tar/tar.c
6620
setPathTimes(int dirfd, char *path, timestruc_t modTime)
usr/src/cmd/tar/tar.c
6638
if (futimesat(dirfd, path, timebuf) < 0)
usr/src/cmd/tar/tar.c
6639
vperror(0, gettext("can't set time on %s"), path);
usr/src/cmd/tar/tar.c
8375
get_parent(char *path, char *dir)
usr/src/cmd/tar/tar.c
8380
if (strlen(path) > PATH_MAX) {
usr/src/cmd/tar/tar.c
8383
(void) strcpy(tmpdir, path);
usr/src/cmd/tar/tar.c
8400
get_component(char *path)
usr/src/cmd/tar/tar.c
8404
ptr = strrchr(path, '/');
usr/src/cmd/tar/tar.c
8406
return (path);
usr/src/cmd/tar/tar.c
8419
get_component(char *path)
usr/src/cmd/tar/tar.c
8421
return (path);
usr/src/cmd/tar/tar.c
8568
futimesat(int fd, char *path, struct timeval times[2])
usr/src/cmd/tar/tar.c
8570
return (utimes(path, times));
usr/src/cmd/tar/tar.c
8574
unlinkat(int dirfd, char *path, int flag)
usr/src/cmd/tar/tar.c
8577
return (rmdir(path));
usr/src/cmd/tar/tar.c
8579
return (unlink(path));
usr/src/cmd/tar/tar.c
8583
fstatat(int fd, char *path, struct stat *buf, int flag)
usr/src/cmd/tar/tar.c
8586
return (lstat(path, buf));
usr/src/cmd/tar/tar.c
8588
return (stat(path, buf));
usr/src/cmd/tar/tar.c
8600
chop_endslashes(char *path)
usr/src/cmd/tar/tar.c
8610
end = &path[strlen(path) -1];
usr/src/cmd/tar/tar.c
8611
if (*end == '/' && end != path) {
usr/src/cmd/tar/tar.c
8612
ptr = skipslashes(end, path);
usr/src/cmd/tar/tar.c
8613
if (ptr != NULL && ptr != path) {
usr/src/cmd/tcpd/inetcf.c
116
path = user;
usr/src/cmd/tcpd/inetcf.c
118
if ((path = strtok((char *) 0, whitespace)) == 0)
usr/src/cmd/tcpd/inetcf.c
121
if (path[0] == '?') /* IRIX optional service */
usr/src/cmd/tcpd/inetcf.c
122
path++;
usr/src/cmd/tcpd/inetcf.c
123
if (STR_EQ(path, "internal"))
usr/src/cmd/tcpd/inetcf.c
125
if (path[strspn(path, "-0123456789")] == 0) {
usr/src/cmd/tcpd/inetcf.c
131
if ((path = strtok((char *) 0, whitespace)) == 0)
usr/src/cmd/tcpd/inetcf.c
153
inet_chk(protocol, path, arg0, arg1);
usr/src/cmd/tcpd/inetcf.c
162
static void inet_chk(protocol, path, arg0, arg1)
usr/src/cmd/tcpd/inetcf.c
164
char *path;
usr/src/cmd/tcpd/inetcf.c
171
char *base_name_path = base_name(path);
usr/src/cmd/tcpd/inetcf.c
178
if (check_path(path, &st) < 0) {
usr/src/cmd/tcpd/inetcf.c
179
tcpd_warn("%s: not found: %m", path);
usr/src/cmd/tcpd/inetcf.c
181
tcpd_warn("%s: not executable", path);
usr/src/cmd/tcpd/inetcf.c
212
tcpd_warn("%s: file is set-uid or set-gid", path);
usr/src/cmd/tcpd/inetcf.c
219
tcpd_warn("%s inserted before %s", path, arg0);
usr/src/cmd/tcpd/inetcf.c
250
if (STR_EQ(path, daemon)) {
usr/src/cmd/tcpd/inetcf.c
309
static char *base_name(path)
usr/src/cmd/tcpd/inetcf.c
310
char *path;
usr/src/cmd/tcpd/inetcf.c
314
if ((cp = strrchr(path, '/')) != 0)
usr/src/cmd/tcpd/inetcf.c
315
path = cp + 1;
usr/src/cmd/tcpd/inetcf.c
316
return (path);
usr/src/cmd/tcpd/inetcf.c
65
char *path;
usr/src/cmd/tcpd/safe_finger.c
31
char path[] = "PATH=/bin:/usr/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc:/usr/sbin";
usr/src/cmd/tcpd/safe_finger.c
78
if (putenv(path)) {
usr/src/cmd/tcpd/scaffold.c
191
int check_path(path, st)
usr/src/cmd/tcpd/scaffold.c
192
char *path;
usr/src/cmd/tcpd/scaffold.c
198
if (stat(path, st) < 0)
usr/src/cmd/tcpd/scaffold.c
202
tcpd_warn("%s: not owned by root", path);
usr/src/cmd/tcpd/scaffold.c
204
tcpd_warn("%s: group writable", path);
usr/src/cmd/tcpd/scaffold.c
207
tcpd_warn("%s: world writable", path);
usr/src/cmd/tcpd/scaffold.c
208
if (path[0] == '/' && path[1] != 0) {
usr/src/cmd/tcpd/scaffold.c
209
strrchr(strcpy(buf, path), '/')[0] = 0;
usr/src/cmd/tcpd/tcpd.c
126
(void) execv(path, argv);
usr/src/cmd/tcpd/tcpd.c
127
syslog(LOG_ERR, "error: cannot execute %s: %m", path);
usr/src/cmd/tcpd/tcpd.c
50
char path[MAXPATHNAMELEN];
usr/src/cmd/tcpd/tcpd.c
64
strcpy(path, argv[0]);
usr/src/cmd/tcpd/tcpd.c
67
sprintf(path, "%s/%s", REAL_DAEMON_DIR, argv[0]);
usr/src/cmd/th_tools/th_define.c
1671
char *path;
usr/src/cmd/th_tools/th_define.c
1682
char *path;
usr/src/cmd/th_tools/th_define.c
1688
path = di_devfs_path(node);
usr/src/cmd/th_tools/th_define.c
1689
if (path == NULL)
usr/src/cmd/th_tools/th_define.c
1690
warg->path = NULL;
usr/src/cmd/th_tools/th_define.c
1692
(void) strncpy(warg->path, path, warg->pathlen);
usr/src/cmd/th_tools/th_define.c
1700
getpath(char *path, int instance, char *name, int pathlen)
usr/src/cmd/th_tools/th_define.c
1707
warg.path = path;
usr/src/cmd/th_tools/th_define.c
1715
if (warg.path == NULL) {
usr/src/cmd/th_tools/th_manage.c
126
(void) strcpy(path, "/devices/");
usr/src/cmd/th_tools/th_manage.c
127
if (getpath(&path[8], errctl.instance, errctl.name,
usr/src/cmd/th_tools/th_manage.c
150
while (online_device(path) != 0) {
usr/src/cmd/th_tools/th_manage.c
156
while (offline_device(path) != 0) {
usr/src/cmd/th_tools/th_manage.c
162
if (getstate_device(path) != 0) {
usr/src/cmd/th_tools/th_manage.c
170
(void) fprintf(stdout, "%s\n", path);
usr/src/cmd/th_tools/th_manage.c
269
online_device(char *path)
usr/src/cmd/th_tools/th_manage.c
273
if ((dcp = devctl_device_acquire(path, 0)) == NULL) {
usr/src/cmd/th_tools/th_manage.c
286
offline_device(char *path)
usr/src/cmd/th_tools/th_manage.c
290
if ((dcp = devctl_device_acquire(path, 0)) == NULL) {
usr/src/cmd/th_tools/th_manage.c
302
getstate_device(char *path)
usr/src/cmd/th_tools/th_manage.c
307
if ((dcp = devctl_device_acquire(path, 0)) == NULL) {
usr/src/cmd/th_tools/th_manage.c
308
(void) printf("%s unknown unknown\n", path);
usr/src/cmd/th_tools/th_manage.c
312
(void) printf("%s unknown unknown\n", path);
usr/src/cmd/th_tools/th_manage.c
319
(void) printf("%s down not_busy\n", path);
usr/src/cmd/th_tools/th_manage.c
322
(void) printf("%s offline not_busy\n", path);
usr/src/cmd/th_tools/th_manage.c
325
(void) printf("%s online not_busy\n", path);
usr/src/cmd/th_tools/th_manage.c
328
(void) printf("%s online busy\n", path);
usr/src/cmd/th_tools/th_manage.c
331
(void) printf("%s down busy\n", path);
usr/src/cmd/th_tools/th_manage.c
334
(void) printf("%s unknown unknown\n", path);
usr/src/cmd/th_tools/th_manage.c
341
getnameinst(char *path, int *instance, char *name, int namelen)
usr/src/cmd/th_tools/th_manage.c
346
if ((node = di_init(&path[8], DINFOSUBTREE)) == DI_NODE_NIL)
usr/src/cmd/th_tools/th_manage.c
359
char *path;
usr/src/cmd/th_tools/th_manage.c
371
char *path;
usr/src/cmd/th_tools/th_manage.c
377
path = di_devfs_path(node);
usr/src/cmd/th_tools/th_manage.c
378
if (path != NULL) {
usr/src/cmd/th_tools/th_manage.c
380
(void) strncpy(warg->path, path, warg->pathlen);
usr/src/cmd/th_tools/th_manage.c
389
getpath(char *path, int instance, char *name, int pathlen)
usr/src/cmd/th_tools/th_manage.c
396
warg.path = path;
usr/src/cmd/th_tools/th_manage.c
41
static int online_device(char *path);
usr/src/cmd/th_tools/th_manage.c
42
static int offline_device(char *path);
usr/src/cmd/th_tools/th_manage.c
43
static int getstate_device(char *path);
usr/src/cmd/th_tools/th_manage.c
44
static int getnameinst(char *path, int *instance, char *name, int namelen);
usr/src/cmd/th_tools/th_manage.c
45
static int getpath(char *path, int instance, char *name, int pathlen);
usr/src/cmd/th_tools/th_manage.c
84
char path[MAXPATHLEN];
usr/src/cmd/th_tools/th_manage.c
87
(void) strncpy(path, argv[1], MAXPATHLEN);
usr/src/cmd/truss/ipc.c
255
char *path = pri->sys_path;
usr/src/cmd/truss/ipc.c
284
if ((sp1 = strrchr(path, '/')) == NULL) /* last component */
usr/src/cmd/truss/ipc.c
288
while (--sp1 > path && isdigit(*sp1))
usr/src/cmd/truss/ipc.c
300
if (sp1-6 >= path && strncmp(sp1-6, "/agent", 6) == 0)
usr/src/cmd/truss/ipc.c
303
while (--sp1 > path && isdigit(*sp1))
usr/src/cmd/truss/ipc.c
307
(sp1 -= 4) <= path ||
usr/src/cmd/truss/ipc.c
315
if ((sp2 = strrchr(path, '/')) == NULL)
usr/src/cmd/truss/ipc.c
316
dirname = path;
usr/src/cmd/truss/ipc.c
332
dirname = path;
usr/src/cmd/truss/main.c
1962
xcreat(char *path)
usr/src/cmd/truss/main.c
1968
fd = creat(path, mode);
usr/src/cmd/truss/main.c
1969
else if (access(path, F_OK) != 0) { /* file doesn't exist */
usr/src/cmd/truss/main.c
1977
if ((p = strrchr(path, '/')) == NULL) { /* no '/' */
usr/src/cmd/truss/main.c
1981
} else if (p == path) { /* leading '/' */
usr/src/cmd/truss/main.c
1986
dir = path; /* directory path */
usr/src/cmd/truss/main.c
1996
if ((fd = creat(path, mode)) >= 0)
usr/src/cmd/truss/main.c
1997
(void) chown(path, (int)Ruid, (int)Rgid);
usr/src/cmd/truss/main.c
1999
} else if (access(path, W_OK) != 0) /* file not writeable */
usr/src/cmd/truss/main.c
2002
fd = creat(path, mode);
usr/src/cmd/truss/main.c
467
char path[PATH_MAX];
usr/src/cmd/truss/main.c
469
Proc = Pcreate(argv[0], &argv[0], &err, path, sizeof (path));
usr/src/cmd/truss/main.c
476
command, path);
usr/src/cmd/truss/main.c
482
command, path);
usr/src/cmd/tsol/updatehome/setupfiles.c
277
char path[MAXPATHLEN];
usr/src/cmd/tsol/updatehome/setupfiles.c
301
(void) strcpy(path, home);
usr/src/cmd/tsol/updatehome/setupfiles.c
305
(void) strcat(path, "/");
usr/src/cmd/tsol/updatehome/setupfiles.c
306
(void) strcat(path, tok);
usr/src/cmd/tsol/updatehome/setupfiles.c
308
if ((mkdir(path, 0777) != 0) && (errno != EEXIST)) {
usr/src/cmd/tsol/updatehome/setupfiles.c
311
dprintf("setupfiles mkdir path %s\n", path);
usr/src/cmd/tsol/updatehome/setupfiles.c
315
dprintf("setupfiles dir %s made or already exists\n", path);
usr/src/cmd/ttymon/tmexpress.c
152
char path[MAXPATHLEN];
usr/src/cmd/ttymon/tmexpress.c
157
(void) snprintf(path, sizeof (path), "/dev/tty%c",
usr/src/cmd/ttymon/tmexpress.c
159
if (stat(path, &st) < 0)
usr/src/cmd/ttymon/tmexpress.c
165
if (asprintf(&propname, "%s-mode", path + 5) <= 0)
usr/src/cmd/tzreload/tzreload.c
115
char path[sizeof (TZSYNC_FILE) + 16];
usr/src/cmd/tzreload/tzreload.c
129
(void) strcpy(path, TZSYNC_FILE "XXXXXX");
usr/src/cmd/tzreload/tzreload.c
130
if ((fd = mkstemp(path)) == -1) {
usr/src/cmd/tzreload/tzreload.c
140
(void) unlink(path);
usr/src/cmd/tzreload/tzreload.c
153
if (link(path, TZSYNC_FILE) != 0) {
usr/src/cmd/tzreload/tzreload.c
161
(void) unlink(path);
usr/src/cmd/tzreload/tzreload.c
164
(void) unlink(path);
usr/src/cmd/ucodeadm/ucodeadm.c
1073
if (path == NULL) {
usr/src/cmd/ucodeadm/ucodeadm.c
1081
if ((path = malloc(PATH_MAX)) == NULL) {
usr/src/cmd/ucodeadm/ucodeadm.c
1087
(void) snprintf(path, PATH_MAX, "/platform/%s/ucode/%s",
usr/src/cmd/ucodeadm/ucodeadm.c
1091
if (mkdirp(path, 0755) == -1 && errno != EEXIST) {
usr/src/cmd/ucodeadm/ucodeadm.c
1093
ucode_perror(path, rc);
usr/src/cmd/ucodeadm/ucodeadm.c
1097
rc = ucode->us_gen_files(buf, ucode_size, path);
usr/src/cmd/ucodeadm/ucodeadm.c
1181
free(path);
usr/src/cmd/ucodeadm/ucodeadm.c
460
ucode_gen_files_amd(uint8_t *buf, size_t size, const char *path)
usr/src/cmd/ucodeadm/ucodeadm.c
469
n = snprintf(common_path, sizeof (common_path), "%s/container", path);
usr/src/cmd/ucodeadm/ucodeadm.c
503
path, UCODE_AMD_EQUIVALENCE_TABLE_NAME);
usr/src/cmd/ucodeadm/ucodeadm.c
515
"%s/%04X-%02X", path, uh->uh_cpu_rev, counter++);
usr/src/cmd/ucodeadm/ucodeadm.c
557
ucode_gen_files_intel(uint8_t *buf, size_t size, const char *path)
usr/src/cmd/ucodeadm/ucodeadm.c
565
n = snprintf(common_path, sizeof (common_path), "%s/%s", path,
usr/src/cmd/ucodeadm/ucodeadm.c
634
"%s/%08X-%02X", path, uhp->uh_signature, platid);
usr/src/cmd/ucodeadm/ucodeadm.c
677
"%s/%08X-%02X", path,
usr/src/cmd/ucodeadm/ucodeadm.c
862
char *path = NULL;
usr/src/cmd/ucodeadm/ucodeadm.c
943
} else if ((path = strdup(optarg)) == NULL) {
usr/src/cmd/varpd/varpd.c
191
char path[PATH_MAX];
usr/src/cmd/varpd/varpd.c
202
(void) snprintf(path, sizeof (path),
usr/src/cmd/varpd/varpd.c
204
(void) core_set_process_path(path, strlen(path) + 1, getpid());
usr/src/cmd/vi/port/expreserve.c
360
unsigned char path[PATH_MAX+1];
usr/src/cmd/vi/port/expreserve.c
363
strcpy(path, dir);
usr/src/cmd/vi/port/expreserve.c
364
strcat(path, cp);
usr/src/cmd/vi/port/expreserve.c
365
dcp = path + strlen(path) - 1;
usr/src/cmd/vi/port/expreserve.c
386
} while (((fd = open(path, O_CREAT|O_EXCL|O_WRONLY, 0600)) < 0) &&
usr/src/cmd/vi/port/expreserve.c
389
strcpy(cp, path + strlen(dir));
usr/src/cmd/vntsd/common.c
170
char *path;
usr/src/cmd/vntsd/common.c
173
path = calloc(sz, 1);
usr/src/cmd/vntsd/common.c
175
if (path == NULL) {
usr/src/cmd/vntsd/common.c
179
(void) snprintf(path, sz-1, VCC_DEVICE_PATH, dev_name);
usr/src/cmd/vntsd/common.c
182
drvfd = open(path, O_RDWR);
usr/src/cmd/vntsd/common.c
197
free(path);
usr/src/cmd/vntsd/common.c
201
free(path);
usr/src/cmd/vntsd/vntsd.c
332
char *path;
usr/src/cmd/vntsd/vntsd.c
456
path = calloc(sz, 1);
usr/src/cmd/vntsd/vntsd.c
457
if (path == NULL) {
usr/src/cmd/vntsd/vntsd.c
461
(void) snprintf(path, sz-1, VCC_DEVICE_CTL_PATH, vntsdp->devinst,
usr/src/cmd/vntsd/vntsd.c
463
vntsdp->ctrl_fd = open(path, O_RDWR);
usr/src/cmd/vntsd/vntsd.c
469
path);
usr/src/cmd/vntsd/vntsd.c
474
free(path);
usr/src/cmd/w/w.c
681
priv_proc_open(const char *path, int oflag)
usr/src/cmd/w/w.c
689
fd = open(path, oflag);
usr/src/cmd/w/w.c
704
priv_proc_openat(int dfd, const char *path, int mode)
usr/src/cmd/w/w.c
712
fd = openat(dfd, path, mode);
usr/src/cmd/which/which.c
101
char *q = path;
usr/src/cmd/which/which.c
120
free(path);
usr/src/cmd/which/which.c
149
print_matches(char *path, const char *const filename)
usr/src/cmd/which/which.c
158
while ((d = strsep(&path, ":")) != NULL) {
usr/src/cmd/which/which.c
52
char *p, *path;
usr/src/cmd/which/which.c
82
path = strdup(p);
usr/src/cmd/which/which.c
84
if (path == NULL)
usr/src/cmd/which/which.c
88
memcpy(path, p, pathlen + 1);
usr/src/cmd/which/which.c
94
} else if (!print_matches(path, *argv)) {
usr/src/cmd/who/who.c
487
char path[sizeof (utmpp->ut_line) + 6];
usr/src/cmd/who/who.c
553
(void) strcpy(path, "/dev/");
usr/src/cmd/who/who.c
554
(void) strncpy(path + 5, utmpp->ut_line,
usr/src/cmd/who/who.c
556
path[5 + sizeof (utmpp->ut_line)] = '\0';
usr/src/cmd/who/who.c
558
if ((rc = stat(path, stbufp)) == -1) w = '?';
usr/src/cmd/who/who.c
579
(void) strcpy(path, "/dev/");
usr/src/cmd/who/who.c
580
(void) strncpy(path + 5, utmpp->ut_line,
usr/src/cmd/who/who.c
582
path[5 + sizeof (utmpp->ut_line)] = '\0';
usr/src/cmd/who/who.c
583
rc = stat(path, stbufp);
usr/src/cmd/whodo/whodo.c
906
priv_proc_open(const char *path, int oflag)
usr/src/cmd/whodo/whodo.c
914
fd = open(path, oflag);
usr/src/cmd/whodo/whodo.c
929
priv_proc_openat(int dfd, const char *path, int mode)
usr/src/cmd/whodo/whodo.c
937
fd = openat(dfd, path, mode);
usr/src/cmd/xhci/xhci_portsc.c
158
xp_dump(const char *path)
usr/src/cmd/xhci/xhci_portsc.c
163
fd = open(path, O_RDWR);
usr/src/cmd/xhci/xhci_portsc.c
165
err(EXIT_FAILURE, "failed to open %s", path);
usr/src/cmd/xhci/xhci_portsc.c
184
xp_set_pls(const char *path, uint32_t port, const char *state)
usr/src/cmd/xhci/xhci_portsc.c
189
fd = open(path, O_RDWR);
usr/src/cmd/xhci/xhci_portsc.c
191
err(EXIT_FAILURE, "failed to open %s", path);
usr/src/cmd/xhci/xhci_portsc.c
214
xp_clear_change(const char *path, uint32_t port)
usr/src/cmd/xhci/xhci_portsc.c
219
fd = open(path, O_RDWR);
usr/src/cmd/xhci/xhci_portsc.c
221
err(EXIT_FAILURE, "failed to open %s", path);
usr/src/cmd/xhci/xhci_portsc.c
255
char *mname, *path;
usr/src/cmd/xhci/xhci_portsc.c
262
path = di_devfs_minor_path(minor);
usr/src/cmd/xhci/xhci_portsc.c
264
(void) printf("/devices%s\n", path);
usr/src/cmd/xhci/xhci_portsc.c
265
di_devfs_path_free(path);
usr/src/cmd/xhci/xhci_portsc.c
269
xp_devpath = path;
usr/src/cmd/xhci/xhci_portsc.c
271
di_devfs_path_free(path);
usr/src/cmd/ypcmd/ypserv_ancil.c
130
ypmkfilename(domain, mapname, path);
usr/src/cmd/ypcmd/ypserv_ancil.c
136
if (ypcheck_map_existence(path) &&
usr/src/cmd/ypcmd/ypserv_ancil.c
66
char path[MAXNAMLEN + 1];
usr/src/cmd/ypcmd/ypsym.h
118
extern bool_t ypmkfilename(char *domain, char *map, char *path);
usr/src/cmd/ypcmd/ypupdated/openchild.c
124
basename(char *path)
usr/src/cmd/ypcmd/ypupdated/openchild.c
128
p = strrchr(path, '/');
usr/src/cmd/ypcmd/ypupdated/openchild.c
130
return (path);
usr/src/cmd/ypcmd/ypxfrd_server.c
124
char path[MAXNAMLEN + 1];
usr/src/cmd/ypcmd/ypxfrd_server.c
147
(!ypmkfilename(argp->domain, argp->map, (char *)&path))) {
usr/src/cmd/ypcmd/ypxfrd_server.c
170
m.map = (map_ctrl *)shim_dbm_open(path, 0, 0);
usr/src/cmd/ypcmd/ypxfrd_server.c
172
perror(path);
usr/src/cmd/zdb/zdb.c
1969
open_objset(const char *path, dmu_objset_type_t type, void *tag, objset_t **osp)
usr/src/cmd/zdb/zdb.c
1976
err = dmu_objset_own(path, type, B_TRUE, B_FALSE, tag, osp);
usr/src/cmd/zdb/zdb.c
1978
(void) fprintf(stderr, "failed to own dataset '%s': %s\n", path,
usr/src/cmd/zdb/zdb.c
2074
char path[MAXPATHLEN * 2]; /* allow for xattr and failure prefix */
usr/src/cmd/zdb/zdb.c
2124
error = zfs_obj_to_path(os, object, path, sizeof (path));
usr/src/cmd/zdb/zdb.c
2126
(void) snprintf(path, sizeof (path), "on delete queue");
usr/src/cmd/zdb/zdb.c
2129
(void) snprintf(path, sizeof (path),
usr/src/cmd/zdb/zdb.c
2132
(void) printf("\tpath %s\n", path);
usr/src/cmd/zdb/zdb.c
3012
dump_path(char *ds, char *path)
usr/src/cmd/zdb/zdb.c
3032
err = dump_path_impl(os, root_obj, path);
usr/src/cmd/zdb/zdb.c
3198
char path[MAXPATHLEN];
usr/src/cmd/zdb/zdb.c
3212
(void) strlcpy(path, dev, sizeof (path));
usr/src/cmd/zdb/zdb.c
3216
(void) snprintf(path, sizeof (path), "%s%s",
usr/src/cmd/zdb/zdb.c
3219
} else if (stat64(path, &statbuf) != 0) {
usr/src/cmd/zdb/zdb.c
3222
(void) snprintf(path, sizeof (path), "%s%s", ZFS_RDISK_ROOTD,
usr/src/cmd/zdb/zdb.c
3227
(void) strlcat(path, "s0", sizeof (path));
usr/src/cmd/zdb/zdb.c
3230
if ((fd = open64(path, O_RDONLY)) < 0) {
usr/src/cmd/zdb/zdb.c
3231
(void) fprintf(stderr, "cannot open '%s': %s\n", path,
usr/src/cmd/zdb/zdb.c
3237
(void) fprintf(stderr, "failed to stat '%s': %s\n", path,
usr/src/cmd/zdb/zdb.c
3245
"cannot use '%s': character device required\n", path);
usr/src/cmd/zdb/zdb.c
5930
zdb_vdev_lookup(vdev_t *vdev, const char *path)
usr/src/cmd/zdb/zdb.c
5939
i = strtoul(path, &s, 10);
usr/src/cmd/zdb/zdb.c
5940
if (s == path || (s && *s != '.' && *s != '\0'))
usr/src/cmd/zdb/zdb.c
5955
vc = zdb_vdev_lookup(vc, path);
usr/src/cmd/zdb/zdb.c
5966
if (strcmp(vc->vdev_path, path) == 0)
usr/src/cmd/zdb/zdb.c
5968
if (strcmp(p, path) == 0)
usr/src/cmd/zdb/zdb.c
5970
if (strcmp(q, "s0") == 0 && strncmp(p, path, q - p) == 0)
usr/src/cmd/zdb/zdb.c
6484
args.path = searchdirs;
usr/src/cmd/zfs/zfs_main.c
5869
char *path = argv[i];
usr/src/cmd/zfs/zfs_main.c
5871
delim = strchr(path, '@');
usr/src/cmd/zfs/zfs_main.c
5874
gettext("'%s' is not a snapshot\n"), path);
usr/src/cmd/zfs/zfs_main.c
5878
(void) strncpy(parent, path, delim - path);
usr/src/cmd/zfs/zfs_main.c
5879
parent[delim - path] = '\0';
usr/src/cmd/zfs/zfs_main.c
6707
unshare_unmount_path(int op, char *path, int flags, boolean_t is_manual)
usr/src/cmd/zfs/zfs_main.c
6722
if (stat64(path, &statbuf) != 0) {
usr/src/cmd/zfs/zfs_main.c
6724
cmdname, path, strerror(errno));
usr/src/cmd/zfs/zfs_main.c
6741
"currently mounted\n"), cmdname, path);
usr/src/cmd/zfs/zfs_main.c
6745
path);
usr/src/cmd/zfs/zfs_main.c
6746
if ((ret = umount2(path, flags)) != 0)
usr/src/cmd/zfs/zfs_main.c
6747
(void) fprintf(stderr, gettext("%s: %s\n"), path,
usr/src/cmd/zfs/zfs_main.c
6754
"filesystem\n"), cmdname, path);
usr/src/cmd/zfs/zfs_main.c
6765
cmdname, path, strerror(errno));
usr/src/cmd/zfs/zfs_main.c
6769
"%s '%s': not a mountpoint\n"), cmdname, path);
usr/src/cmd/zfs/zfs_main.c
6785
"'%s': legacy share\n"), path);
usr/src/cmd/zfs/zfs_main.c
6790
"not currently shared\n"), path);
usr/src/cmd/zfs/zfs_main.c
6792
ret = zfs_unshareall_bypath(zhp, path);
usr/src/cmd/zfs/zfs_main.c
7139
char *dataset, *path;
usr/src/cmd/zfs/zfs_main.c
7185
path = argv[1];
usr/src/cmd/zfs/zfs_main.c
7197
if (mount(dataset, path, MS_OPTIONSTR | flags, MNTTYPE_ZFS,
usr/src/cmd/zfs/zfs_main.c
7207
"instead.\n"), path);
usr/src/cmd/zhack/zhack.c
478
char *path[MAX_NUM_PATHS];
usr/src/cmd/zhack/zhack.c
483
g_importargs.path = path;
usr/src/cmd/zhack/zhack.c
495
g_importargs.path[g_importargs.paths++] = optarg;
usr/src/cmd/zinject/translate.c
244
char path[MAXPATHLEN];
usr/src/cmd/zinject/translate.c
289
if (parse_pathname(object, dataset, path, &statbuf) != 0)
usr/src/cmd/zinject/translate.c
293
ziprintf(" path: %s\n", path);
usr/src/cmd/zoneadm/zfs.c
1134
char *path;
usr/src/cmd/zoneadm/zfs.c
1144
if ((path = strdup(zonepath)) == NULL)
usr/src/cmd/zoneadm/zfs.c
1147
parent = dirname(path);
usr/src/cmd/zoneadm/zfs.c
1149
free(path);
usr/src/cmd/zoneadm/zfs.c
169
is_mountpnt(char *path)
usr/src/cmd/zoneadm/zfs.c
178
if (strcmp(path, entry.mnt_mountp) == 0) {
usr/src/cmd/zoneadm/zfs.c
534
snap2path(char *snap_name, char *path, int len)
usr/src/cmd/zoneadm/zfs.c
559
if (snprintf(path, len, "%s/.zfs/snapshot/%s", mp, p) >= len)
usr/src/cmd/zoneadm/zoneadm.c
1002
if (strcmp(path, rpath) != 0) {
usr/src/cmd/zoneadm/zoneadm.c
1004
zperror(path, B_TRUE);
usr/src/cmd/zoneadm/zoneadm.c
1059
zperror(path, B_FALSE);
usr/src/cmd/zoneadm/zoneadm.c
1065
(void) snprintf(ppath, sizeof (ppath), "%s/..", path);
usr/src/cmd/zoneadm/zoneadm.c
2245
isregfile(const char *path)
usr/src/cmd/zoneadm/zoneadm.c
2249
if (stat64(path, &st) == -1)
usr/src/cmd/zoneadm/zoneadm.c
868
crosscheck_zonepaths(char *path)
usr/src/cmd/zoneadm/zoneadm.c
917
(void) snprintf(path_copy, sizeof (path_copy), "%s/", path);
usr/src/cmd/zoneadm/zoneadm.c
927
target_zone, path, ze->zone_name, rpath);
usr/src/cmd/zoneadm/zoneadm.c
938
validate_zonepath(char *path, int cmd_num)
usr/src/cmd/zoneadm/zoneadm.c
950
if (path[0] != '/') {
usr/src/cmd/zoneadm/zoneadm.c
952
gettext("%s is not an absolute path.\n"), path);
usr/src/cmd/zoneadm/zoneadm.c
955
if ((res = resolvepath(path, rpath, sizeof (rpath))) == -1) {
usr/src/cmd/zoneadm/zoneadm.c
959
zperror(path, B_FALSE);
usr/src/cmd/zoneadm/zoneadm.c
973
"installed zones.\n"), path,
usr/src/cmd/zoneadm/zoneadm.c
975
path, cmd_to_str(CMD_VERIFY),
usr/src/cmd/zoneadm/zoneadm.c
976
cmd_to_str(CMD_VERIFY), path, path);
usr/src/cmd/zoneadm/zoneadm.c
984
if (mkdirp(path, DEFAULT_DIR_MODE) < 0) {
usr/src/cmd/zoneadm/zoneadm.c
985
zperror(path, B_FALSE);
usr/src/cmd/zoneadm/zoneadm.c
992
if (chmod(path, S_IRWXU) != 0)
usr/src/cmd/zoneadm/zoneadm.c
993
zperror(path, B_FALSE);
usr/src/cmd/zoneadm/zoneadm.c
999
return (validate_zonepath(path, cmd_num));
usr/src/cmd/zoneadmd/vplat.c
1212
char path[MAXPATHLEN];
usr/src/cmd/zoneadmd/vplat.c
1248
(void) snprintf(path, sizeof (path), "%s%s", rootpath,
usr/src/cmd/zoneadmd/vplat.c
1327
fsptr->zone_fs_special, path)) != 0)
usr/src/cmd/zoneadmd/vplat.c
1341
return (mount_one_dev(zlogp, path, mount_cmd));
usr/src/cmd/zoneadmd/vplat.c
2920
char path[MAXPATHLEN];
usr/src/cmd/zoneadmd/vplat.c
2954
(void) snprintf(path, sizeof (path), "%s%s", rootpath,
usr/src/cmd/zoneadmd/vplat.c
2956
if (di_prof_init(path, &prof) != 0) {
usr/src/cmd/zoneadmd/vplat.c
335
resolve_lofs(zlog_t *zlogp, char *path, size_t pathlen)
usr/src/cmd/zoneadmd/vplat.c
342
if ((len = resolvepath(path, tmppath, sizeof (tmppath))) == -1)
usr/src/cmd/zoneadmd/vplat.c
345
(void) strlcpy(path, tmppath, sizeof (tmppath));
usr/src/cmd/zoneadmd/vplat.c
365
if (strncmp(mnp->mnt_mountp, path, len) == 0 &&
usr/src/cmd/zoneadmd/vplat.c
366
(path[len] == '/' || path[len] == '\0'))
usr/src/cmd/zoneadmd/vplat.c
3783
char *path;
usr/src/cmd/zoneadmd/vplat.c
3793
if ((path = strdup(zonepath)) == NULL)
usr/src/cmd/zoneadmd/vplat.c
3796
parent = dirname(path);
usr/src/cmd/zoneadmd/vplat.c
3798
free(path);
usr/src/cmd/zoneadmd/vplat.c
398
mnp->mnt_special, path + len);
usr/src/cmd/zoneadmd/vplat.c
399
if ((len = resolvepath(tmppath, path, pathlen)) == -1)
usr/src/cmd/zoneadmd/vplat.c
401
path[len] = '\0';
usr/src/cmd/zoneadmd/vplat.c
4186
char path[MAXPATHLEN];
usr/src/cmd/zoneadmd/vplat.c
4264
if (snprintf(path, MAXPATHLEN,
usr/src/cmd/zoneadmd/vplat.c
4270
(void) umount(path);
usr/src/cmd/zoneadmd/vplat.c
4278
(void) snprintf(path, MAXPATHLEN, "/zone/%s/home", zone_name);
usr/src/cmd/zoneadmd/vplat.c
4280
(void) umount(path);
usr/src/cmd/zoneadmd/vplat.c
468
char path[MAXPATHLEN];
usr/src/cmd/zoneadmd/vplat.c
471
if (snprintf(path, sizeof (path), "%s%s", prefix, subdir) >
usr/src/cmd/zoneadmd/vplat.c
472
sizeof (path)) {
usr/src/cmd/zoneadmd/vplat.c
478
if (lstat(path, &st) == 0) {
usr/src/cmd/zoneadmd/vplat.c
493
"%s is not in /etc", path);
usr/src/cmd/zoneadmd/vplat.c
498
"%s is not a directory", path);
usr/src/cmd/zoneadmd/vplat.c
505
if (mkdirp(path, mode) != 0) {
usr/src/cmd/zoneadmd/vplat.c
509
"sure %s exists in the global zone.", path, subdir);
usr/src/cmd/zoneadmd/vplat.c
511
zerror(zlogp, B_TRUE, "mkdirp of %s failed", path);
usr/src/cmd/zoneadmd/vplat.c
515
(void) chown(path, userid, groupid);
usr/src/cmd/zoneadmd/vplat.c
692
char *path;
usr/src/cmd/zoneadmd/vplat.c
710
path = mnp->mnt_mountp;
usr/src/cmd/zoneadmd/vplat.c
720
if (umount2(path, MS_FORCE) == 0)
usr/src/cmd/zoneadmd/vplat.c
727
if (umount2(path, MS_FORCE) == 0) {
usr/src/cmd/zoneadmd/vplat.c
739
"unable to unmount '%s'", path);
usr/src/cmd/zoneadmd/vplat.c
747
if (!unmounted && umount2(path, 0) != 0)
usr/src/cmd/zoneadmd/vplat.c
801
forkexec(zlog_t *zlogp, const char *path, char *const argv[])
usr/src/cmd/zoneadmd/vplat.c
821
(void) execv(path, argv);
usr/src/cmd/zoneadmd/vplat.c
836
"signal %d", path, WTERMSIG(child_status));
usr/src/cmd/zoneadmd/vplat.c
841
zerror(zlogp, B_FALSE, "failed to exec %s", path);
usr/src/cmd/zoneadmd/vplat.c
848
isregfile(const char *path)
usr/src/cmd/zoneadmd/vplat.c
852
if (stat64(path, &st) == -1)
usr/src/cmd/zoneadmd/vplat.c
954
valid_mount_point(zlog_t *zlogp, const char *path, const boolean_t leaf)
usr/src/cmd/zoneadmd/vplat.c
960
if (lstat(path, &statbuf) != 0) {
usr/src/cmd/zoneadmd/vplat.c
963
zerror(zlogp, B_TRUE, "can't stat %s", path);
usr/src/cmd/zoneadmd/vplat.c
967
zerror(zlogp, B_FALSE, "%s is a symlink", path);
usr/src/cmd/zoneadmd/vplat.c
971
zerror(zlogp, B_FALSE, "%s is not a directory", path);
usr/src/cmd/zoneadmd/vplat.c
974
if ((res = resolvepath(path, respath, sizeof (respath))) == -1) {
usr/src/cmd/zoneadmd/vplat.c
975
zerror(zlogp, B_TRUE, "unable to resolve path %s", path);
usr/src/cmd/zoneadmd/vplat.c
979
if (strcmp(path, respath) != 0) {
usr/src/cmd/zoneadmd/vplat.c
983
zerror(zlogp, B_FALSE, "%s is not a canonical path", path);
usr/src/cmd/zoneadmd/zcons.c
503
char path[MAXPATHLEN];
usr/src/cmd/zoneadmd/zcons.c
505
(void) snprintf(path, sizeof (path), CONSOLE_SOCKPATH, zone_name);
usr/src/cmd/zoneadmd/zcons.c
506
(void) unlink(path);
usr/src/cmd/zoneadmd/zoneadmd.h
150
extern void resolve_lofs(zlog_t *zlogp, char *path, size_t pathlen);
usr/src/cmd/zonecfg/zonecfg.c
2191
validate_zonepath_syntax(char *path)
usr/src/cmd/zonecfg/zonecfg.c
2193
if (path[0] != '/') {
usr/src/cmd/zonecfg/zonecfg.c
2194
zerr(gettext("%s is not an absolute path."), path);
usr/src/cmd/zonecfg/zonecfg.c
2198
if (strspn(path, "/") == strlen(path)) {
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2527
char path[MAXPATHLEN];
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2567
ret = acctctl(AC_FILE_GET | AC_PROC, path, sizeof (path));
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2573
if ((*fd = open64(path, O_RDONLY, 0)) >= 0 &&
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2629
char path[MAXPATHLEN];
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2669
(void) snprintf(path, sizeof (path), "/proc/%s/psinfo",
usr/src/cmd/zonestat/zonestatd/zonestatd.c
2672
fd = open(path, O_RDONLY);
usr/src/cmd/zonestat/zonestatd/zonestatd.c
3230
char *path;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
3283
path = (char *)swt + (sizeof (int) +
usr/src/cmd/zonestat/zonestatd/zonestatd.c
3286
swent->ste_path = path;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
3287
path += MAXPATHLEN;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
4049
char path[MAXPATHLEN];
usr/src/cmd/zonestat/zonestatd/zonestatd.c
4096
ret = sysinfo(SI_ARCHITECTURE_64, path, sizeof (path));
usr/src/cmd/zonestat/zonestatd/zonestatd.c
515
char *path = ZONESTAT_EXACCT_FILE;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
545
(void) unlink(path);
usr/src/cmd/zonestat/zonestatd/zonestatd.c
546
if (acctctl(AC_PROC | AC_FILE_SET, path, strlen(path) + 1)
usr/src/cmd/zonestat/zonestatd/zonestatd.c
563
char *path = ZONESTAT_EXACCT_FILE;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
570
if (ret == 0 && strcmp(oldfile, path) != 0)
usr/src/cmd/zonestat/zonestatd/zonestatd.c
598
(void) unlink(path);
usr/src/cmd/zonestat/zonestatd/zonestatd.c
614
char *path = ZONESTAT_EXACCT_FILE;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
619
if (ret == 0 && strcmp(oldfile, path) != 0)
usr/src/cmd/zonestat/zonestatd/zonestatd.c
622
if (unlink(path) != 0)
usr/src/cmd/zonestat/zonestatd/zonestatd.c
626
if (acctctl(AC_PROC | AC_FILE_SET, path, strlen(path) + 1) == -1) {
usr/src/cmd/zonestat/zonestatd/zonestatd.c
698
char path[PATH_MAX];
usr/src/cmd/zonestat/zonestatd/zonestatd.c
704
n = snprintf(path, PATH_MAX, CTFS_ROOT "/%s/%ld/%s", type, ctid, file);
usr/src/cmd/zonestat/zonestatd/zonestatd.c
705
if (n >= sizeof (path)) {
usr/src/cmd/zonestat/zonestatd/zonestatd.c
710
fd = open64(path, oflag);
usr/src/cmd/zonestat/zonestatd/zonestatd.c
745
char *path = ZS_DOOR_PATH;
usr/src/cmd/zonestat/zonestatd/zonestatd.c
771
(void) fdetach(path);
usr/src/cmd/zonestat/zonestatd/zonestatd.c
772
(void) unlink(path);
usr/src/cmd/zonestat/zonestatd/zonestatd.c
775
fd = open(path, O_CREAT|O_RDWR, 0644);
usr/src/cmd/zonestat/zonestatd/zonestatd.c
778
if (fattach(door, path) != 0)
usr/src/cmd/zonestat/zonestatd/zonestatd.c
797
zsd_warn(gettext("Unable to create door file: %s"), path);
usr/src/cmd/zonestat/zonestatd/zonestatd.c
799
zsd_warn(gettext("Unable to fattach file: %s"), path);
usr/src/cmd/zpool/zpool_main.c
1907
char *path;
usr/src/cmd/zpool/zpool_main.c
1908
verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) == 0);
usr/src/cmd/zpool/zpool_main.c
1909
(void) printf(" was %s", path);
usr/src/cmd/zpool/zpool_main.c
3054
idata.path = searchdirs;
usr/src/cmd/zpool/zpool_main.c
420
char *path = zpool_vdev_name(g_zfs, zhp, nvroot, 0);
usr/src/cmd/zpool/zpool_main.c
422
if (strcmp(path, VDEV_TYPE_INDIRECT) != 0)
usr/src/cmd/zpool/zpool_main.c
423
fnvlist_add_boolean(res, path);
usr/src/cmd/zpool/zpool_main.c
425
free(path);
usr/src/cmd/zpool/zpool_main.c
5704
char *poolname, *path;
usr/src/cmd/zpool/zpool_main.c
5735
path = argv[1];
usr/src/cmd/zpool/zpool_main.c
5740
ret = zpool_vdev_detach(zhp, path);
usr/src/cmd/zpool/zpool_vdev.c
1007
verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) == 0);
usr/src/cmd/zpool/zpool_vdev.c
1009
diskname = strrchr(path, '/');
usr/src/cmd/zpool/zpool_vdev.c
1037
(void) snprintf(buf, sizeof (buf), "%ss%d", path, slice);
usr/src/cmd/zpool/zpool_vdev.c
1110
is_spare(nvlist_t *config, const char *path)
usr/src/cmd/zpool/zpool_vdev.c
1122
if ((fd = open(path, O_RDONLY)) < 0)
usr/src/cmd/zpool/zpool_vdev.c
1164
char *type, *path;
usr/src/cmd/zpool/zpool_vdev.c
1175
verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) == 0);
usr/src/cmd/zpool/zpool_vdev.c
1186
path);
usr/src/cmd/zpool/zpool_vdev.c
1188
(void) strlcpy(buf, path, sizeof (buf));
usr/src/cmd/zpool/zpool_vdev.c
1195
ret = check_device(path, force, isspare);
usr/src/cmd/zpool/zpool_vdev.c
1197
ret = check_file(path, force, isspare);
usr/src/cmd/zpool/zpool_vdev.c
135
check_slice(const char *path, int force, boolean_t wholedisk, boolean_t isspare)
usr/src/cmd/zpool/zpool_vdev.c
148
if (dm_inuse((char *)path, &msg, who, &error) || error) {
usr/src/cmd/zpool/zpool_vdev.c
1580
char *path;
usr/src/cmd/zpool/zpool_vdev.c
1585
ZPOOL_CONFIG_PATH, &path) == 0);
usr/src/cmd/zpool/zpool_vdev.c
1586
if ((type = is_grouping(path, &min, &max)) != NULL) {
usr/src/cmd/zpool/zpool_vdev.c
165
(dm_isoverlapping((char *)path, &msg, &error) || error)) {
usr/src/cmd/zpool/zpool_vdev.c
168
vdev_error(gettext("%s overlaps with %s\n"), path, msg);
usr/src/cmd/zpool/zpool_vdev.c
258
check_device(const char *path, boolean_t force, boolean_t isspare)
usr/src/cmd/zpool/zpool_vdev.c
267
dev = strrchr(path, '/');
usr/src/cmd/zpool/zpool_vdev.c
271
err = check_disk(path, desc, force, isspare);
usr/src/cmd/zpool/zpool_vdev.c
276
return (check_slice(path, force, B_FALSE, isspare));
usr/src/cmd/zpool/zpool_vdev.c
368
char path[MAXPATHLEN];
usr/src/cmd/zpool/zpool_vdev.c
370
(void) snprintf(path, sizeof (path), "%s%s%s",
usr/src/cmd/zpool/zpool_vdev.c
372
if ((fd = open(path, O_RDWR | O_NDELAY)) < 0)
usr/src/cmd/zpool/zpool_vdev.c
395
char path[MAXPATHLEN];
usr/src/cmd/zpool/zpool_vdev.c
420
(void) strlcpy(path, arg, sizeof (path));
usr/src/cmd/zpool/zpool_vdev.c
428
(void) snprintf(path, sizeof (path), "%s/%s", ZFS_DISK_ROOT,
usr/src/cmd/zpool/zpool_vdev.c
430
wholedisk = is_whole_disk(path);
usr/src/cmd/zpool/zpool_vdev.c
431
if (!wholedisk && (stat64(path, &statbuf) != 0)) {
usr/src/cmd/zpool/zpool_vdev.c
450
path, strerror(errno));
usr/src/cmd/zpool/zpool_vdev.c
465
"block device or regular file\n"), path);
usr/src/cmd/zpool/zpool_vdev.c
475
verify(nvlist_add_string(vdev, ZPOOL_CONFIG_PATH, path) == 0);
usr/src/cmd/zpool/zpool_vdev.c
518
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/cmd/zpool/zpool_vdev.c
520
"%s\n"), path, strerror(errno));
usr/src/cmd/zpool/zpool_vdev.c
667
char *path;
usr/src/cmd/zpool/zpool_vdev.c
702
ZPOOL_CONFIG_PATH, &path) == 0);
usr/src/cmd/zpool/zpool_vdev.c
739
if ((fd = open(path, O_RDONLY)) >= 0) {
usr/src/cmd/zpool/zpool_vdev.c
743
err = stat64(path, &statbuf);
usr/src/cmd/zpool/zpool_vdev.c
985
char *type, *path, *diskname;
usr/src/cmd/ztest/ztest.c
1005
return (make_vdev_raidz(path, aux, pool, size, ashift, r));
usr/src/cmd/ztest/ztest.c
1010
child[c] = make_vdev_raidz(path, aux, pool, size, ashift, r);
usr/src/cmd/ztest/ztest.c
1027
make_vdev_root(char *path, char *aux, char *pool, size_t size, uint64_t ashift,
usr/src/cmd/ztest/ztest.c
1041
child[c] = make_vdev_mirror(path, aux, pool, size, ashift,
usr/src/cmd/ztest/ztest.c
2820
vdev_lookup_by_path(vdev_t *vd, const char *path)
usr/src/cmd/ztest/ztest.c
2824
if (vd->vdev_path != NULL && strcmp(path, vd->vdev_path) == 0)
usr/src/cmd/ztest/ztest.c
2828
if ((mvd = vdev_lookup_by_path(vd->vdev_child[c], path)) !=
usr/src/cmd/ztest/ztest.c
3050
char path[MAXPATHLEN];
usr/src/cmd/ztest/ztest.c
3052
(void) snprintf(path, sizeof (path), ztest_aux_template,
usr/src/cmd/ztest/ztest.c
3057
path) == 0)
usr/src/cmd/ztest/ztest.c
3060
vdev_lookup_by_path(rvd, path) == NULL)
usr/src/cmd/ztest/ztest.c
6112
char *path = strdup(rand_vd->vdev_path);
usr/src/cmd/ztest/ztest.c
6122
fnvlist_add_uint64(vdev_guids, path, guid);
usr/src/cmd/ztest/ztest.c
6130
(void) printf("Cancel initialize %s", path);
usr/src/cmd/ztest/ztest.c
6138
(void) printf("Start initialize %s", path);
usr/src/cmd/ztest/ztest.c
6148
(void) printf("Suspend initialize %s", path);
usr/src/cmd/ztest/ztest.c
6155
free(path);
usr/src/cmd/ztest/ztest.c
6184
char *path = strdup(rand_vd->vdev_path);
usr/src/cmd/ztest/ztest.c
6197
fnvlist_add_uint64(vdev_guids, path, guid);
usr/src/cmd/ztest/ztest.c
6206
(void) printf("Cancel TRIM %s", path);
usr/src/cmd/ztest/ztest.c
6214
(void) printf("Start TRIM %s", path);
usr/src/cmd/ztest/ztest.c
6224
(void) printf("Suspend TRIM %s", path);
usr/src/cmd/ztest/ztest.c
6231
free(path);
usr/src/cmd/ztest/ztest.c
6964
args.path = searchdirs;
usr/src/cmd/ztest/ztest.c
703
char *path;
usr/src/cmd/ztest/ztest.c
772
path = realpath(optarg, NULL);
usr/src/cmd/ztest/ztest.c
773
if (path == NULL) {
usr/src/cmd/ztest/ztest.c
778
(void) strlcpy(zo->zo_dir, path,
usr/src/cmd/ztest/ztest.c
924
make_vdev_file(char *path, char *aux, char *pool, size_t size, uint64_t ashift)
usr/src/cmd/ztest/ztest.c
933
if (path == NULL) {
usr/src/cmd/ztest/ztest.c
934
path = pathbuf;
usr/src/cmd/ztest/ztest.c
938
(void) snprintf(path, sizeof (pathbuf),
usr/src/cmd/ztest/ztest.c
944
(void) snprintf(path, sizeof (pathbuf),
usr/src/cmd/ztest/ztest.c
951
int fd = open(path, O_RDWR | O_CREAT | O_TRUNC, 0666);
usr/src/cmd/ztest/ztest.c
953
fatal(1, "can't open %s", path);
usr/src/cmd/ztest/ztest.c
955
fatal(1, "can't ftruncate %s", path);
usr/src/cmd/ztest/ztest.c
961
VERIFY(nvlist_add_string(file, ZPOOL_CONFIG_PATH, path) == 0);
usr/src/cmd/ztest/ztest.c
968
make_vdev_raidz(char *path, char *aux, char *pool, size_t size,
usr/src/cmd/ztest/ztest.c
975
return (make_vdev_file(path, aux, pool, size, ashift));
usr/src/cmd/ztest/ztest.c
979
child[c] = make_vdev_file(path, aux, pool, size, ashift);
usr/src/cmd/ztest/ztest.c
998
make_vdev_mirror(char *path, char *aux, char *pool, size_t size,
usr/src/common/bzip2/bzlib.c
1568
( const char *path, /* no use when bzdopen */
usr/src/common/bzip2/bzlib.c
1605
if (path==NULL || strcmp(path,"")==0) {
usr/src/common/bzip2/bzlib.c
1609
fp = fopen(path,mode2);
usr/src/common/bzip2/bzlib.c
1645
( const char *path,
usr/src/common/bzip2/bzlib.c
1648
return bzopen_or_bzdopen(path,-1,mode,/*bzopen*/0);
usr/src/common/bzip2/bzlib.h
260
const char *path,
usr/src/common/ficl/emu/loader_emu.c
1464
char *buf, *path;
usr/src/common/ficl/emu/loader_emu.c
1489
path = "";
usr/src/common/ficl/emu/loader_emu.c
1491
path = argv[1];
usr/src/common/ficl/emu/loader_emu.c
1494
fd = ls_getdir(&path);
usr/src/common/ficl/emu/loader_emu.c
1501
(void) pager_output(path);
usr/src/common/ficl/emu/loader_emu.c
1507
if (path[0] == '\0') {
usr/src/common/ficl/emu/loader_emu.c
1510
(void) asprintf(&buf, "%s/%s", path, d->d_name);
usr/src/common/ficl/emu/loader_emu.c
1538
if (path != NULL)
usr/src/common/ficl/emu/loader_emu.c
1539
free(path);
usr/src/common/ficl/emu/loader_emu.c
1552
char *cp, *path;
usr/src/common/ficl/emu/loader_emu.c
1557
path = malloc(strlen(*pathp) + 2);
usr/src/common/ficl/emu/loader_emu.c
1558
(void) strcpy(path, *pathp);
usr/src/common/ficl/emu/loader_emu.c
1561
if ((cp = get_dev(path)) == NULL) {
usr/src/common/ficl/emu/loader_emu.c
1563
"bad path '%s'", path);
usr/src/common/ficl/emu/loader_emu.c
1569
(void) strcat(path, "/");
usr/src/common/ficl/emu/loader_emu.c
1574
"open '%s' failed: %s", path, strerror(errno));
usr/src/common/ficl/emu/loader_emu.c
1584
"%s: %s", path, strerror(ENOTDIR));
usr/src/common/ficl/emu/loader_emu.c
1589
*pathp = path;
usr/src/common/ficl/emu/loader_emu.c
1594
free(path);
usr/src/common/ficl/emu/loader_emu.c
1646
char *path;
usr/src/common/ficl/emu/loader_emu.c
1648
path = get_dev(filename);
usr/src/common/ficl/emu/loader_emu.c
1649
if (((fd = open(path, O_RDONLY)) == -1)) {
usr/src/common/ficl/emu/loader_emu.c
1653
free(path);
usr/src/common/ficl/emu/loader_emu.c
1657
free(path);
usr/src/common/ficl/emu/loader_emu.c
1755
const char *path, *cp, *ep;
usr/src/common/ficl/emu/loader_emu.c
1758
path = getenv("module_path");
usr/src/common/ficl/emu/loader_emu.c
1759
if (path == NULL)
usr/src/common/ficl/emu/loader_emu.c
1760
path = default_searchpath;
usr/src/common/ficl/emu/loader_emu.c
1767
for (ep = path; *ep != 0; ep++) {
usr/src/common/ficl/emu/loader_emu.c
1817
file_lookup(const char *path, const char *name, int namelen)
usr/src/common/ficl/emu/loader_emu.c
1823
pathlen = strlen(path);
usr/src/common/ficl/emu/loader_emu.c
1827
bcopy(path, result, pathlen);
usr/src/common/ficl/emu/loader_emu.c
840
get_dev(const char *path)
usr/src/common/ficl/emu/loader_emu.c
856
return (strdup(path));
usr/src/common/ficl/emu/loader_emu.c
862
buf = strrchr(path, ':');
usr/src/common/ficl/emu/loader_emu.c
865
buf = strchr(path, ':'); /* skip zfs: */
usr/src/common/ficl/emu/loader_emu.c
871
tmppath = (char *)path;
usr/src/common/ficl/emu/loader_emu.c
875
return (strdup(path));
usr/src/common/ficl/emu/loader_emu.c
882
return (strdup(path));
usr/src/common/fs/bootrd_cpio.c
252
const char *path;
usr/src/common/fs/bootrd_cpio.c
269
path = read_ramdisk(off, namesize);
usr/src/common/fs/bootrd_cpio.c
273
if (path == NULL || data == NULL)
usr/src/common/fs/bootrd_cpio.c
276
if (strcmp(path, "TRAILER!!!") == 0)
usr/src/common/fs/bootrd_cpio.c
279
if (strcmp(path, wanted_path) != 0)
usr/src/common/fs/bootrd_cpio.c
290
file->path = path;
usr/src/common/fs/bootrd_cpio.c
298
find_filename(char *path, struct cpio_file *file)
usr/src/common/fs/bootrd_cpio.c
307
if (path[0] != '/')
usr/src/common/fs/bootrd_cpio.c
310
path++;
usr/src/common/fs/bootrd_cpio.c
325
size = scan_archive_hdr(hdr, off, file, path);
usr/src/common/fs/bootrd_cpio.c
365
bcpio_open(char *path, int flags __unused)
usr/src/common/fs/bootrd_cpio.c
371
if (find_filename(path, &temp_file) != 0)
usr/src/common/fs/bootrd_cpio.c
376
file->path = temp_file.path;
usr/src/common/fs/bootrd_cpio.c
55
const char *path; /* pointer into the archive */
usr/src/common/fs/hsfs.c
181
find(char *path, fileid_t *filep)
usr/src/common/fs/hsfs.c
189
kobj_printf("find: %s\n", path);
usr/src/common/fs/hsfs.c
190
if (path == NULL || *path == '\0')
usr/src/common/fs/hsfs.c
196
while (*path) {
usr/src/common/fs/hsfs.c
197
while (*path == '/')
usr/src/common/fs/hsfs.c
198
path++;
usr/src/common/fs/hsfs.c
199
q = path;
usr/src/common/fs/hsfs.c
204
n = dlook(path, filep);
usr/src/common/fs/hsfs.c
206
path = q;
usr/src/common/fs/ufsops.c
134
find(fileid_t *filep, char *path)
usr/src/common/fs/ufsops.c
145
if (path == NULL || *path == '\0') {
usr/src/common/fs/ufsops.c
151
kobj_printf("openi: %s\n", path);
usr/src/common/fs/ufsops.c
154
bcopy(path, lpath, strlen(path));
usr/src/common/fs/ufsops.c
274
dlook(fileid_t *filep, char *path)
usr/src/common/fs/ufsops.c
282
if (path == NULL || *path == '\0')
usr/src/common/fs/ufsops.c
286
kobj_printf("dlook: %s\n", path);
usr/src/common/fs/ufsops.c
294
len = strlen(path);
usr/src/common/fs/ufsops.c
300
if (dp->d_namlen == len && strcmp(path, dp->d_name) == 0) {
usr/src/common/fs/ufsops.c
304
if (strcmp(path, "*") == 0 && bootrd_debug)
usr/src/common/fs/ufsops.c
68
static ino_t find(fileid_t *filep, char *path);
usr/src/common/fs/ufsops.c
69
static ino_t dlook(fileid_t *filep, char *path);
usr/src/common/smbsrv/smb_string.c
451
smb_unc_init(const char *path, smb_unc_t *unc)
usr/src/common/smbsrv/smb_string.c
455
if (path == NULL || unc == NULL || (*path != '\\' && *path != '/'))
usr/src/common/smbsrv/smb_string.c
461
unc->unc_buf = smb_mem_strdup(path);
usr/src/common/smbsrv/smb_string.c
463
if ((unc->unc_buf = strdup(path)) == NULL)
usr/src/common/zfs/zfs_namecheck.c
100
zfs_component_namecheck(const char *path, namecheck_err_t *why, char *what)
usr/src/common/zfs/zfs_namecheck.c
104
if (strlen(path) >= ZFS_MAX_DATASET_NAME_LEN) {
usr/src/common/zfs/zfs_namecheck.c
110
if (path[0] == '\0') {
usr/src/common/zfs/zfs_namecheck.c
116
for (loc = path; *loc; loc++) {
usr/src/common/zfs/zfs_namecheck.c
137
permset_namecheck(const char *path, namecheck_err_t *why, char *what)
usr/src/common/zfs/zfs_namecheck.c
139
if (strlen(path) >= ZFS_PERMSET_MAXLEN) {
usr/src/common/zfs/zfs_namecheck.c
145
if (path[0] != '@') {
usr/src/common/zfs/zfs_namecheck.c
148
*what = path[0];
usr/src/common/zfs/zfs_namecheck.c
153
return (zfs_component_namecheck(&path[1], why, what));
usr/src/common/zfs/zfs_namecheck.c
163
dataset_nestcheck(const char *path)
usr/src/common/zfs/zfs_namecheck.c
165
return ((get_dataset_depth(path) < zfs_max_dataset_nesting) ? 0 : -1);
usr/src/common/zfs/zfs_namecheck.c
184
entity_namecheck(const char *path, namecheck_err_t *why, char *what)
usr/src/common/zfs/zfs_namecheck.c
191
if (strlen(path) >= ZFS_MAX_DATASET_NAME_LEN) {
usr/src/common/zfs/zfs_namecheck.c
198
if (path[0] == '/') {
usr/src/common/zfs/zfs_namecheck.c
204
if (path[0] == '\0') {
usr/src/common/zfs/zfs_namecheck.c
210
const char *start = path;
usr/src/common/zfs/zfs_namecheck.c
279
dataset_namecheck(const char *path, namecheck_err_t *why, char *what)
usr/src/common/zfs/zfs_namecheck.c
281
int ret = entity_namecheck(path, why, what);
usr/src/common/zfs/zfs_namecheck.c
283
if (ret == 0 && strchr(path, '#') != NULL) {
usr/src/common/zfs/zfs_namecheck.c
302
mountpoint_namecheck(const char *path, namecheck_err_t *why)
usr/src/common/zfs/zfs_namecheck.c
314
if (path == NULL || *path != '/') {
usr/src/common/zfs/zfs_namecheck.c
321
start = &path[1];
usr/src/common/zfs/zfs_namecheck.c
72
get_dataset_depth(const char *path)
usr/src/common/zfs/zfs_namecheck.c
74
const char *loc = path;
usr/src/compat/bhyve/sys/kernel.h
20
#define TUNABLE_INT_FETCH(path, var)
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
952
dnode_get_path(dnode_phys_t *mdn, char *path, dnode_phys_t *dn,
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
975
while (*path == '/')
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
976
path++;
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
978
while (*path && !grub_isspace(*path)) {
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
981
cname = path;
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
982
while (*path && !grub_isspace(*path) && *path != '/')
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
983
path++;
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
984
ch = *path;
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
985
*path = 0; /* ensure null termination */
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
994
*path = ch;
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
995
while (*path == '/')
usr/src/grub/grub-0.97/stage2/fsys_zfs.c
996
path++;
usr/src/head/devid.h
59
extern char *devid_str_from_path(const char *path);
usr/src/head/ftw.h
153
#define ftw(path, fn, depth) _xftw(_XFTWVER, (path), (fn), (depth))
usr/src/head/ftw.h
157
#define ftw64(path, fn, depth) _xftw64(_XFTWVER, (path), (fn), (depth))
usr/src/head/pkgstrct.h
83
char *path;
usr/src/head/spawn.h
102
const char *_RESTRICT_KYWD path,
usr/src/head/spawn.h
197
const char *_RESTRICT_KYWD path);
usr/src/head/spawn.h
75
const char *_RESTRICT_KYWD path,
usr/src/head/spawn.h
97
const char *_RESTRICT_KYWD path);
usr/src/lib/abi/apptrace/common/abienv.c
260
build_interceptor_path(char *buf, size_t l, char const *path)
usr/src/lib/abi/apptrace/common/abienv.c
269
if ((p = strdup(path)) == NULL)
usr/src/lib/auditd_plugins/syslog/systoken.c
1167
anchor_path(char *path)
usr/src/lib/auditd_plugins/syslog/systoken.c
1170
(void) memmove((void *)(path + 1), (void *)path, strlen(path) + 1);
usr/src/lib/auditd_plugins/syslog/systoken.c
1171
*path = '/';
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1324
char path[64];
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1328
path[0] = '\0';
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1329
(void) brand_uucopystr(filename, path, sizeof (path));
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1332
if (strncmp(path, "/.SUNWnative/usr/lib/brand/solaris10/s10_native",
usr/src/lib/brand/solaris10/s10_brand/common/s10_brand.c
1333
sizeof (path)) != 0)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
112
s10_openat(sysret_t *rval, int fd, const char *path, int oflag, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
115
fd, path, oflag, mode));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
119
s10_open(sysret_t *rval, char *path, int oflag, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
122
AT_FDCWD, path, oflag, mode));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
126
s10_creat(sysret_t *rval, char *path, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
129
AT_FDCWD, path, O_WRONLY | O_CREAT | O_TRUNC, mode));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
135
s10_openat64(sysret_t *rval, int fd, const char *path, int oflag, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
138
fd, path, oflag, mode));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
142
s10_open64(sysret_t *rval, char *path, int oflag, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
145
AT_FDCWD, path, oflag, mode));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
149
s10_creat64(sysret_t *rval, char *path, mode_t mode)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
152
AT_FDCWD, path, O_WRONLY | O_CREAT | O_TRUNC, mode));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
315
s10_readlink(sysret_t *rval, const char *path, char *buf, size_t bufsize)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
318
AT_FDCWD, path, buf, bufsize));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
336
s10_utime(sysret_t *rval, const char *path, const struct utimbuf *times)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
355
AT_FDCWD, path, tsp, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
359
s10_utimes(sysret_t *rval, const char *path, const struct timeval times[2])
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
378
AT_FDCWD, path, tsp, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
383
int fd, const char *path, const struct timeval times[2])
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
401
if (path == NULL)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
404
return (__systemcall(rval, SYS_utimesys + 1024, 1, fd, path, tsp, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
411
s10_xstat(sysret_t *rval, int version, const char *path, struct stat *statb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
419
AT_FDCWD, path, statb, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
425
s10_lxstat(sysret_t *rval, int version, const char *path, struct stat *statb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
433
AT_FDCWD, path, statb, AT_SYMLINK_NOFOLLOW));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
453
s10_xmknod(sysret_t *rval, int version, const char *path,
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
462
AT_FDCWD, path, mode, dev));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
51
int fd, const char *path, struct stat *sb, int flags)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
524
s10_umount(sysret_t *rval, const char *path)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
526
return (__systemcall(rval, SYS_umount2 + 1024, path, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
54
fd, path, sb, flags));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
58
s10_stat(sysret_t *rval, const char *path, struct stat *sb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
61
AT_FDCWD, path, sb, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
65
s10_lstat(sysret_t *rval, const char *path, struct stat *sb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
68
AT_FDCWD, path, sb, AT_SYMLINK_NOFOLLOW));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
82
int fd, const char *path, struct stat64 *sb, int flags)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
85
fd, path, sb, flags));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
89
s10_stat64(sysret_t *rval, const char *path, struct stat64 *sb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
92
AT_FDCWD, path, sb, 0));
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
96
s10_lstat64(sysret_t *rval, const char *path, struct stat64 *sb)
usr/src/lib/brand/solaris10/s10_brand/common/s10_deleted.c
99
AT_FDCWD, path, sb, AT_SYMLINK_NOFOLLOW));
usr/src/lib/brand/solaris10/s10_support/s10_support.c
338
char path[MAXPATHLEN];
usr/src/lib/brand/solaris10/s10_support/s10_support.c
353
if (snprintf(path, sizeof (path), "%s" S10_REQ_EMULATION_DIR,
usr/src/lib/brand/solaris10/s10_support/s10_support.c
354
zoneroot) >= sizeof (path))
usr/src/lib/brand/solaris10/s10_support/s10_support.c
357
if ((req_emulation_dirp = opendir(path)) == NULL)
usr/src/lib/brand/solaris10/s10_support/s10_support.c
427
if (snprintf(path, sizeof (path), "%s" DELETE_LIST_PATH, zoneroot) >=
usr/src/lib/brand/solaris10/s10_support/s10_support.c
428
sizeof (path))
usr/src/lib/brand/solaris10/s10_support/s10_support.c
431
if ((delete_listp = fopen(path, "r")) != NULL) {
usr/src/lib/brand/solaris10/s10_support/s10_support.c
432
while (fgets(path, sizeof (path), delete_listp) != NULL) {
usr/src/lib/brand/solaris10/s10_support/s10_support.c
433
char *const basenamep = path +
usr/src/lib/brand/solaris10/s10_support/s10_support.c
442
if (strncmp(path, S10_REQ_EMULATION_DIR,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
164
if (fp_rcm_online(lunlistp->path, errstring, flags) !=
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
197
(void) fp_rcm_online(lunlistp->path, errstring, flags);
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
232
int ret = strncmp(lunlistp->path, SCSI_VHCI_ROOT,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
241
if (fp_rcm_offline(lunlistp->path, errstring,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
255
if (fp_rcm_offline(lunlistp->path, errstring,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
301
int ret = strncmp(lunlistp->path, SCSI_VHCI_ROOT,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
310
if (fp_rcm_remove(lunlistp->path, errstring,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
324
if (fp_rcm_remove(lunlistp->path, errstring,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
341
lun_unconf(char *path, int lunnum, char *xport_phys, char *dyncomp,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
348
if (path == NULL)
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
351
if (strncmp(path, SCSI_VHCI_ROOT, strlen(SCSI_VHCI_ROOT)) == 0) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
375
if ((ptr = strrchr(path, '/')) == NULL) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
377
cfga_err(errstring, 0, ERRARG_INVALID_PATH, path, 0);
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
408
ptr = path;
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
443
if (strncmp(lunlistp->path, SCSI_VHCI_ROOT,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
448
if ((ret = lun_unconf(lunlistp->path,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
458
if ((ret = lun_unconf(lunlistp->path,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
471
if ((ret = lun_unconf(lunlistp->path, lunlistp->lunnum,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
502
di_path_t path = DI_PATH_NIL;
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
523
if (strncmp(lunlistp->path, SCSI_VHCI_ROOT,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
529
vhci_path = lunlistp->path;
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
580
for (path = di_path_next_phci(node, DI_PATH_NIL);
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
581
path != DI_PATH_NIL;
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
582
path = di_path_next_phci(node, path)) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
583
if ((phci = di_path_phci_node(path)) == DI_NODE_NIL) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
597
(void) di_path_addr(path, (char *)phci_addr);
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
615
} else if ((di_path_state(path) ==
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
617
(di_path_state(path) == DI_PATH_STATE_STANDBY)) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
655
if (strncmp(lunlistp->path, SCSI_VHCI_ROOT,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
661
if (strcmp(lunlistp->path, temp->path) == 0) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_cs.c
927
apidt->lunlist->path, 0);
usr/src/lib/cfgadm_plugins/fp/common/cfga_cvt.c
194
di_path_t path = DI_PATH_NIL;
usr/src/lib/cfgadm_plugins/fp/common/cfga_cvt.c
259
path = di_path_next_client(root, path);
usr/src/lib/cfgadm_plugins/fp/common/cfga_cvt.c
260
if ((dev_node == DI_NODE_NIL) && (path == DI_PATH_NIL)) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_cvt.c
326
if (path != DI_PATH_NIL) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_cvt.c
331
count = di_path_prop_lookup_bytes(path, PORT_WWN_PROP,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cvt.c
347
client_node = di_path_client_node(path);
usr/src/lib/cfgadm_plugins/fp/common/cfga_cvt.c
353
count = di_path_prop_lookup_ints(path,
usr/src/lib/cfgadm_plugins/fp/common/cfga_cvt.c
359
statep = di_path_state(path);
usr/src/lib/cfgadm_plugins/fp/common/cfga_cvt.c
415
path = di_path_next_client(root, path);
usr/src/lib/cfgadm_plugins/fp/common/cfga_cvt.c
416
} while (path != DI_PATH_NIL);
usr/src/lib/cfgadm_plugins/fp/common/cfga_cvt.c
517
newlun->path = pathp;
usr/src/lib/cfgadm_plugins/fp/common/cfga_fp.h
201
char *path;
usr/src/lib/cfgadm_plugins/fp/common/cfga_fp.h
529
char *pathdup(const char *path, int *l_errnop);
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
101
static fpcfga_ret_t init_ldata_for_mpath_dev(di_path_t path, char *port_wwn,
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
1934
di_path_t path = DI_PATH_NIL;
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
1966
if ((path = di_path_next_client(root, path)) == DI_PATH_NIL) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
1984
if ((pstate = di_path_state(path)) !=
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
1995
count = di_path_prop_lookup_bytes(path, PORT_WWN_PROP,
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2015
if (((pstate = di_path_state(path)) ==
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2030
path, port_wwn, l_errnop, lap));
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2032
if ((di_path_state(path)) !=
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2035
path, port_wwn, l_errnop, lap));
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2056
if (((pstate = di_path_state(path)) ==
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2078
(di_path_state(path) !=
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2082
path, port_wwn, l_errnop, lap);
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2089
if (di_path_state(path) != DI_PATH_STATE_OFFLINE) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2094
path = di_path_next_client(root, path);
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2095
} while (path != DI_PATH_NIL);
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2128
di_path_t path = DI_PATH_NIL;
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2153
if ((path = di_path_next_client(root, path)) == DI_PATH_NIL) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2174
if ((pstate = di_path_state(path)) !=
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2187
if ((make_portwwn_luncomp_from_pinode(path, &port_wwn,
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2208
if (((pstate = di_path_state(path)) ==
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2231
(di_path_state(path) !=
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2235
client_node = di_path_client_node(path);
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2279
if (((pstate = di_path_state(path))
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2305
if ((make_portwwn_luncomp_from_pinode(path, &port_wwn,
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2326
if (((pstate = di_path_state(path)) ==
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2343
(di_path_state(path) !=
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2347
client_node = di_path_client_node(path);
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2391
if (((pstate = di_path_state(path))
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2417
if (di_path_state(path) != DI_PATH_STATE_OFFLINE) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2423
path = di_path_next_client(root, path);
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2424
} while (path != DI_PATH_NIL);
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2873
init_ldata_for_mpath_dev(di_path_t path, char *pwwn, int *l_errnop,
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2887
if (path == DI_PATH_NIL) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2890
client_node = di_path_client_node(path);
usr/src/lib/cfgadm_plugins/fp/common/cfga_list.c
2936
if (((pstate = di_path_state(path)) == DI_PATH_STATE_OFFLINE) ||
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
328
const char *path,
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
340
if (nftw_arg.fcn(path, nftw_arg.arg) == FPCFGA_TERMINATE) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
368
pathdup(const char *path, int *l_errnop)
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
376
if (path == NULL) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
380
if ((dup = calloc(1, strlen(path) + 1)) == NULL) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
386
for (sp = path, dp = dup; (c = *sp) != '\0'; sp++) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
475
S_FREE(lunlist->path);
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
67
static int do_recurse_dev(const char *path, const struct stat *sbuf,
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
822
char *cp = NULL, *path = NULL;
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
863
if ((path = strdup(physpath)) == NULL) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
869
if ((cp = GET_DYN(path)) != NULL) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
874
if ((cp = strrchr(path, ':')) != NULL) {
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
881
hdl = devctl_bus_acquire(path, 0);
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
883
hdl = devctl_device_acquire(path, 0);
usr/src/lib/cfgadm_plugins/fp/common/cfga_utils.c
887
S_FREE(path);
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
231
if (larg->path) {
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
237
strncmp(start, larg->path, larg->len) != 0 ||
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.c
278
larg.path = NULL;
usr/src/lib/cfgadm_plugins/ib/common/cfga_ib.h
65
char *path;
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1454
char *path = NULL;
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1462
(void *)&path, findlink_cb);
usr/src/lib/cfgadm_plugins/pci/common/cfga.c
1465
return (path);
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.h
132
char *path;
usr/src/lib/cfgadm_plugins/sata/common/cfga_sata.h
71
char *path;
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
144
if ((a->path = strdup(ap_id)) == NULL) {
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
153
if (strncmp(a->path, DEVDIR, strlen(DEVDIR)) == 0) {
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
155
base = strrchr((const char *)a->path, '/') + 1;
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
158
base = a->path;
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
159
if ((a->target = strdup(a->path)) == NULL) {
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
240
if (phys != 0 && (a->target = ap_logid(a, a->path)) == NULL) {
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
292
DBG("path=<%s> ", a->path ? a->path : "");
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
46
char path[MAXPATHLEN];
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
52
n = sprintf(path, "/dev/cfg/");
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
55
if ((dirp = opendir(path)) == NULL)
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
58
p = path + n;
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
66
(void) strcat(path, dp->d_name);
usr/src/lib/cfgadm_plugins/sbd/common/ap.c
67
if ((len = readlink(path, buf, sizeof (buf))) == (size_t)-1)
usr/src/lib/cfgadm_plugins/sbd/common/ap.h
109
char *path;
usr/src/lib/cfgadm_plugins/sbd/common/ap_msg.c
197
char *path;
usr/src/lib/cfgadm_plugins/sbd/common/ap_msg.c
297
get_str(path, ap, STR_NULL);
usr/src/lib/cfgadm_plugins/sbd/common/ap_msg.c
301
DBG("<%s><%s>", path, error);
usr/src/lib/cfgadm_plugins/sbd/common/ap_msg.c
304
get_str(path, ap, STR_NULL);
usr/src/lib/cfgadm_plugins/sbd/common/ap_msg.c
306
DBG("<%s><%s>", path, sym);
usr/src/lib/cfgadm_plugins/sbd/common/ap_msg.c
309
get_str(path, ap, STR_NULL);
usr/src/lib/cfgadm_plugins/sbd/common/ap_msg.c
407
(void) snprintf(p, len, fmt, path, sep, error);
usr/src/lib/cfgadm_plugins/sbd/common/ap_msg.c
410
(void) snprintf(p, len, fmt, sym, path);
usr/src/lib/cfgadm_plugins/sbd/common/ap_msg.c
413
(void) snprintf(p, len, fmt, path, syserr);
usr/src/lib/cfgadm_plugins/sbd/common/ap_rcm.c
503
char *path;
usr/src/lib/cfgadm_plugins/sbd/common/ap_rcm.c
588
if ((path = strdup(cpuname)) == NULL) {
usr/src/lib/cfgadm_plugins/sbd/common/ap_rcm.c
592
(void) snprintf(&path[n], len, "%d",
usr/src/lib/cfgadm_plugins/sbd/common/ap_rcm.c
595
DBG("rp[%d]=%s\n", ncap, path);
usr/src/lib/cfgadm_plugins/sbd/common/ap_rcm.c
596
rp[ncap++] = path;
usr/src/lib/cfgadm_plugins/sbd/common/ap_rcm.c
602
if ((path = ap_cm_devpath(a, cm)) != NULL) {
usr/src/lib/cfgadm_plugins/sbd/common/ap_rcm.c
603
DBG("rp[%d]=%s\n", ncap, path);
usr/src/lib/cfgadm_plugins/sbd/common/ap_rcm.c
604
rp[ncap++] = path;
usr/src/lib/cfgadm_plugins/sbd/common/ap_sbd.c
101
if ((fd = open(a->path, oflag, 0)) == -1) {
usr/src/lib/cfgadm_plugins/sbd/common/ap_sbd.c
334
s_free(a->path);
usr/src/lib/cfgadm_plugins/sbd/common/ap_sbd.c
812
char *path;
usr/src/lib/cfgadm_plugins/sbd/common/ap_sbd.c
832
path = NULL;
usr/src/lib/cfgadm_plugins/sbd/common/ap_sbd.c
834
path = dst->is_pathname;
usr/src/lib/cfgadm_plugins/sbd/common/ap_sbd.c
836
if (str_valid(path)) {
usr/src/lib/cfgadm_plugins/sbd/common/ap_sbd.c
837
len = strlen(DEVDIR) + strlen(path) + 1;
usr/src/lib/cfgadm_plugins/sbd/common/ap_sbd.c
842
(void) snprintf(devpath, len, "%s%s", DEVDIR, path);
usr/src/lib/cfgadm_plugins/sbd/common/ap_sbd.c
92
DBG("ap_stat(%s)\n", a->path);
usr/src/lib/cfgadm_plugins/sbd/common/ap_sbd.c
96
DBG("open(%s)\n", a->path);
usr/src/lib/cfgadm_plugins/sbd/common/cfga.c
223
(void) snprintf(ap->ap_phys_id, szp, "%s%s%s", a->path,
usr/src/lib/cfgadm_plugins/sbd/common/cfga.c
245
a->path, dyn);
usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/common/opl_dev_led.c
58
phys_path = strdup(apidp->path);
usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/common/opl_dev_led.c
63
scf_disk->path[0] = '\0';
usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/common/opl_dev_led.c
66
len = snprintf((char *)scf_disk->path, sizeof (scf_disk->path),
usr/src/lib/cfgadm_plugins/scsi/SUNW,SPARC-Enterprise/common/opl_dev_led.c
68
if (len >= sizeof (scf_disk->path)) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
110
if (critical_ctrlr(apidp->path)) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1302
assert(apidp->path != NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1450
char *path, *p;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1458
if ((path = di_devfs_path(node)) == NULL) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1464
len = strlen(path) + sizeof (DEVICES_DIR);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1466
di_devfs_path_free(path);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1470
(void) snprintf(p, len, "%s%s", DEVICES_DIR, path);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1471
di_devfs_path_free(path);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1524
char *path, *cp;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1526
if ((path = strdup(minor_path)) == NULL)
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1528
if ((cp = strrchr(path, ':')) != NULL)
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
1530
return (path);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
166
ret = get_hba_children(apidp->path, NULL, &dev_list);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
183
ret = devctl_cmd(apidp->path, cmd, NULL, &l_errno);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
205
(void) devctl_cmd(apidp->path,
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
263
assert(apidp->path != NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
312
get_node_path(apidp->path);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
324
ret = devctl_cmd(apidp->path, cmd, NULL, &l_errno);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
390
assert(apidp->path != NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
414
dev_list[0] = get_node_path(apidp->path);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
427
ret = devctl_cmd(apidp->path, SCFGA_DEV_UNCONFIGURE, NULL, &l_errno);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
451
(void) devctl_cmd(apidp->path, SCFGA_DEV_REMOVE,
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
462
if (devctl_cmd(apidp->path, SCFGA_DEV_CONFIGURE, NULL, &l_errno)
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
468
char *cp = strrchr(apidp->path, ':');
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
472
apidp->path, 0);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
500
assert(apidp->path != NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
555
assert(apidp->path != NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
577
dev_list[0] = get_node_path(apidp->path);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
587
ret = devctl_cmd(apidp->path, SCFGA_DEV_REMOVE, NULL, &l_errno);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
606
ret2 = devctl_cmd(apidp->path, SCFGA_DEV_CONFIGURE, NULL, &l_errno);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
665
assert(apidp->path != NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
688
ret = devctl_cmd(apidp->path, cmd, NULL, &l_errno);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
752
dev_path = apidp->path + strlen(DEVICES_DIR);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
77
assert(apidp->path != NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
800
assert(apidp->path != NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
843
if ((cp = strrchr(apidp->path, ':')) != NULL) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
848
cfga_msg(prp->msgp, cmd_msg, apidp->path, 0);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
89
if (devctl_cmd(apidp->path, SCFGA_BUS_GETSTATE, &state,
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
894
if (strcmp(apidp->hba_phys, apidp->path) != 0) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_ctl.c
895
if ((dev_path = get_node_path(apidp->path)) == NULL) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
438
assert(dpt.path != NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
439
*pathpp = dpt.path;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
443
if (dpt.path != NULL) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
444
S_FREE(dpt.path);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
466
assert(dptp->path == NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
49
char *path;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
512
dptp->path = devpath;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
549
char buf[PATH_MAX], *path;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
584
((path = strstr(buf, "/devices/")) == NULL) ||
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
585
((*pathpp = strdup(path)) == NULL)) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
592
if (!hba_dev_cmp(hba_phys, path)) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
617
char *path;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
629
path = (char *)physpath;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
634
path = pathbuf;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
638
ret = physpath_to_devlink(path, &devlink, l_errnop, match_minor);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
668
di_path_t path,
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
674
if ((path == DI_PATH_NIL) || (*dyncompp != NULL)) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_cvt.c
678
if ((pi_addr = di_path_bus_addr(path)) != NULL) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_list.c
103
assert(apidp->hba_phys != NULL && apidp->path != NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_list.c
362
assert(lap->apidp->path != NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_list.c
363
if (dev_cmp(lap->apidp->path, nodepath, match_minor)) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_scsi.h
189
char *path; /* for apid with device dyn comp. */
usr/src/lib/cfgadm_plugins/scsi/common/cfga_scsi.h
400
scfga_ret_t make_path_dyncomp(di_path_t path, char **dyncomp, int *l_errnop);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
1000
if ((cp = GET_DYN(path)) != NULL) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
1005
if ((cp = strrchr(path, ':')) != NULL) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
1012
hdl = devctl_bus_acquire(path, 0);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
1014
hdl = devctl_device_acquire(path, 0);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
1018
S_FREE(path);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
1088
char *path;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
1102
if (larg->path) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
1108
strncmp(start, larg->path, larg->len) != 0 ||
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
1137
larg.path = NULL;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
1141
larg.path = node_path;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
290
pathdup(const char *path, int *l_errnop)
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
298
if (path == NULL) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
302
if ((dup = calloc(1, strlen(path) + 1)) == NULL) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
308
for (sp = path, dp = dup; (c = *sp) != '\0'; sp++) {
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
334
char *dyncomp = NULL, *path = NULL;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
372
if ((ret = apid_to_path(hba_phys, dyncomp, &path,
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
378
assert(path != NULL);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
383
apidp->path = path;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
391
S_FREE(path);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
403
S_FREE(apidp->path);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
62
static char *pathdup(const char *path, int *l_errnop);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
920
ret = devctl_cmd(apidp->path, cmd, NULL, l_errnop);
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
953
char *cp = NULL, *path = NULL;
usr/src/lib/cfgadm_plugins/scsi/common/cfga_utils.c
994
if ((path = strdup(physpath)) == NULL) {
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1310
char *path = NULL;
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1318
(void *)&path, findlink_cb);
usr/src/lib/cfgadm_plugins/shp/common/shp.c
1321
return (path);
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
645
boolean_t srno = B_FALSE, path = B_FALSE;
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
674
path = (strncmp(cfg_rec->pathname,
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
678
path = path && (*(user_rec->pathname +
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
695
return (srno || path);
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
724
char *path, char *driver, char **errmsg)
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
736
driver ? driver : "", path ? path : "");
usr/src/lib/cfgadm_plugins/usb/common/cfga_configfile.c
753
cfgrec.pathname = path;
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
193
if (larg->path) {
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
199
strncmp(start, larg->path, larg->len) != 0 ||
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
234
larg.path = NULL;
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.c
238
larg.path = (char *)node_path;
usr/src/lib/cfgadm_plugins/usb/common/cfga_usb.h
68
char *path;
usr/src/lib/fm/libdiskstatus/common/libdiskstatus.c
67
disk_status_open(const char *path, int *error)
usr/src/lib/fm/libdiskstatus/common/libdiskstatus.c
78
if ((dsp->ds_fd = open(path, O_RDWR)) < 0) {
usr/src/lib/fm/libdiskstatus/common/libdiskstatus.c
84
if ((dsp->ds_path = strdup(path)) == NULL) {
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
350
fmd_adm_module_load(fmd_adm_t *ap, const char *path)
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
352
char *str = (char *)path;
usr/src/lib/fm/libfmd_adm/common/fmd_adm.c
357
if (path == NULL || path[0] != '/')
usr/src/lib/fm/libfmd_log/common/fmd_log.c
283
char dirbuf[PATH_MAX], path[PATH_MAX], *dirpath;
usr/src/lib/fm/libfmd_log/common/fmd_log.c
299
(void) snprintf(path, sizeof (path),
usr/src/lib/fm/libfmd_log/common/fmd_log.c
302
if (strcmp(path, lp->log_path) != 0 &&
usr/src/lib/fm/libfmd_log/common/fmd_log.c
303
stat(path, &statbuf) != -1 &&
usr/src/lib/fm/libfmd_log/common/fmd_log.c
305
(xlp = fmd_log_open(lp->log_abi, path, NULL)) != NULL) {
usr/src/lib/fm/libfmd_snmp/common/scheme.c
154
char path[PATH_MAX];
usr/src/lib/fm/libfmd_snmp/common/scheme.c
164
(void) snprintf(path, sizeof (path), "%s%s/%s.so",
usr/src/lib/fm/libfmd_snmp/common/scheme.c
167
if (access(path, F_OK) != 0) {
usr/src/lib/fm/libfmd_snmp/common/scheme.c
172
if ((sp->sch_dlp = dlopen(path, RTLD_LOCAL | RTLD_NOW | RTLD_PARENT)) ==
usr/src/lib/fm/topo/libtopo/common/dev.c
380
char *devid = NULL, *path;
usr/src/lib/fm/topo/libtopo/common/dev.c
407
path = topo_mod_alloc(mod, len);
usr/src/lib/fm/topo/libtopo/common/dev.c
408
(void) snprintf(path, len, "/devices%s", devpath);
usr/src/lib/fm/topo/libtopo/common/dev.c
410
if (stat(path, &sb) != -1)
usr/src/lib/fm/topo/libtopo/common/dev.c
422
if (stat(path, &sb) == -1)
usr/src/lib/fm/topo/libtopo/common/dev.c
440
topo_mod_free(mod, path, len);
usr/src/lib/fm/topo/libtopo/common/dev.c
460
char *devid = NULL, *path;
usr/src/lib/fm/topo/libtopo/common/dev.c
487
path = topo_mod_alloc(mod, len);
usr/src/lib/fm/topo/libtopo/common/dev.c
488
(void) snprintf(path, len, "/devices%s", devpath);
usr/src/lib/fm/topo/libtopo/common/dev.c
490
if (stat(path, &sb) != -1)
usr/src/lib/fm/topo/libtopo/common/dev.c
502
if (stat(path, &sb) == -1)
usr/src/lib/fm/topo/libtopo/common/dev.c
520
topo_mod_free(mod, path, len);
usr/src/lib/fm/topo/libtopo/common/dev.c
630
dev_fmri_create(topo_mod_t *mp, const char *id, const char *path)
usr/src/lib/fm/topo/libtopo/common/dev.c
641
e |= nvlist_add_string(out, FM_FMRI_DEV_PATH, path);
usr/src/lib/fm/topo/libtopo/common/dev.c
661
char *path, *id = NULL;
usr/src/lib/fm/topo/libtopo/common/dev.c
667
nvlist_lookup_string(args, FM_FMRI_DEV_PATH, &path) != 0) {
usr/src/lib/fm/topo/libtopo/common/dev.c
674
if ((*out = dev_fmri_create(mp, id, path)) == NULL)
usr/src/lib/fm/topo/libtopo/common/mod.c
170
mod_nvl_data(topo_mod_t *mp, nvlist_t *out, const char *path)
usr/src/lib/fm/topo/libtopo/common/mod.c
176
if (stat64(path, &s) < 0) {
usr/src/lib/fm/topo/libtopo/common/mod.c
178
"No system object file for driver %s", path);
usr/src/lib/fm/topo/libtopo/common/pkg.c
192
pkg_fmri_create(topo_mod_t *mp, const char *path)
usr/src/lib/fm/topo/libtopo/common/pkg.c
200
(void) snprintf(tmpbuf, BUFLEN, PKGCHK_CMD, path);
usr/src/lib/fm/topo/libtopo/common/pkg.c
233
char *path;
usr/src/lib/fm/topo/libtopo/common/pkg.c
239
nvlist_lookup_string(args, "path", &path) != 0) {
usr/src/lib/fm/topo/libtopo/common/pkg.c
244
if ((*out = pkg_fmri_create(mp, path)) == NULL)
usr/src/lib/fm/topo/libtopo/common/sw.c
363
char *path, *root;
usr/src/lib/fm/topo/libtopo/common/sw.c
391
!lookup_string(object, FM_FMRI_SW_OBJ_PATH, &path, B_TRUE) ||
usr/src/lib/fm/topo/libtopo/common/sw.c
468
topo_fmristr_build(&size, buf, buflen, path,
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
1002
path[i++] = pathcomp;
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
1005
if (nvlist_add_nvlist_array(fmri, FM_FMRI_PATH, path, npairs) != 0) {
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
1011
if (path != NULL) {
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
1013
nvlist_free(path[i]);
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
1015
topo_mod_free(mod, path, npairs * sizeof (nvlist_t *));
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
1024
if (path != NULL) {
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
1026
nvlist_free(path[i]);
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
1028
topo_mod_free(mod, path, npairs * sizeof (nvlist_t *));
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
490
topo_path_destroy(topo_hdl_t *thp, topo_path_t *path)
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
494
if (path == NULL)
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
497
topo_hdl_strfree(thp, (char *)path->tsp_fmristr);
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
498
nvlist_free(path->tsp_fmri);
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
500
pathcomp = topo_list_next(&path->tsp_components);
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
508
topo_hdl_free(thp, path, sizeof (topo_path_t));
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
539
topo_path_t *path = NULL;
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
579
if ((path = topo_hdl_zalloc(thp, sizeof (topo_path_t))) ==
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
581
(path->tsp_fmristr = topo_hdl_strdup(thp, pathstr)) ==
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
587
if (topo_list_deepcopy(thp, &path->tsp_components,
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
595
path->tsp_fmri = fmri;
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
596
pathnode->dgp_path = path;
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
621
topo_path_destroy(thp, path);
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
642
struct digraph_path *path;
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
689
for (i = 0, path = topo_list_next(&all_paths); path != NULL;
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
690
i++, path = topo_list_next(path)) {
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
692
*((*paths) + i) = path->dgp_path;
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
695
path = topo_list_next(&all_paths);
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
696
while (path != NULL) {
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
697
struct digraph_path *tmp = path;
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
699
path = topo_list_next(path);
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
707
path = topo_list_next(&all_paths);
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
708
while (path != NULL) {
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
709
struct digraph_path *tmp = path;
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
711
path = topo_list_next(path);
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
858
nvlist_t *fmri = NULL, *auth = NULL, **path = NULL;
usr/src/lib/fm/topo/libtopo/common/topo_digraph.c
922
if ((path = topo_mod_zalloc(mod, npairs * sizeof (nvlist_t *))) ==
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
121
char *path;
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
142
path = topo_search_path(pmod, thp->th_rootdir, (const char *)file);
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
143
if (path == NULL ||
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
144
(mod = topo_modhash_load(thp, name, path, &topo_rtld_ops, version))
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
146
topo_mod_strfree(pmod, path);
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
152
topo_mod_strfree(pmod, path);
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
504
topo_mod_pkgfmri(topo_mod_t *mod, int version, const char *path)
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
516
if (nvlist_add_string(args, "path", path) != 0) {
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
938
char *path;
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
941
path = topo_search_path(mod, thp->th_rootdir, file);
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
942
if (path == NULL) {
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
946
ret = open(path, oflags);
usr/src/lib/fm/topo/libtopo/common/topo_mod.c
947
topo_mod_strfree(mod, path);
usr/src/lib/fm/topo/libtopo/common/topo_module.c
206
set_create_error(topo_hdl_t *thp, topo_mod_t *mod, const char *path, int err)
usr/src/lib/fm/topo/libtopo/common/topo_module.c
208
if (path != NULL)
usr/src/lib/fm/topo/libtopo/common/topo_module.c
210
"%s\n", path, topo_strerror(err));
usr/src/lib/fm/topo/libtopo/common/topo_module.c
224
topo_mod_create(topo_hdl_t *thp, const char *name, const char *path,
usr/src/lib/fm/topo/libtopo/common/topo_module.c
230
return (set_create_error(thp, NULL, path, ETOPO_MOD_LOADED));
usr/src/lib/fm/topo/libtopo/common/topo_module.c
233
return (set_create_error(thp, mod, path, ETOPO_NOMEM));
usr/src/lib/fm/topo/libtopo/common/topo_module.c
240
if (path != NULL)
usr/src/lib/fm/topo/libtopo/common/topo_module.c
241
mod->tm_path = topo_hdl_strdup(thp, path);
usr/src/lib/fm/topo/libtopo/common/topo_module.c
244
return (set_create_error(thp, mod, path, ETOPO_NOMEM));
usr/src/lib/fm/topo/libtopo/common/topo_module.c
253
return (set_create_error(thp, mod, path, mod->tm_errno));
usr/src/lib/fm/topo/libtopo/common/topo_module.c
314
topo_modhash_load(topo_hdl_t *thp, const char *name, const char *path,
usr/src/lib/fm/topo/libtopo/common/topo_module.c
323
if ((mod = topo_mod_create(thp, name, path, ops, version)) == NULL) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
2134
topo_xml_read(topo_mod_t *tmp, const char *path, const char *escheme)
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
2139
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
2141
"failed to open %s for reading\n", path);
usr/src/lib/fm/topo/libtopo/common/topo_xml.c
2144
tip = txml_file_parse(tmp, fd, path, escheme);
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
584
const char *path)
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
599
if (di_devfs_path_match(dnode->ddn_ppath[0], path))
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
605
"failed to find disk matching path %s", path);
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
756
char *path;
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
798
if ((path = di_devfs_path(node)) == NULL) {
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
803
dnode->ddn_dpath = topo_mod_strdup(mod, path);
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
804
di_devfs_path_free(path);
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
908
if ((path = di_path_devfs_path(pnode)) == NULL) {
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
914
topo_mod_strdup(mod, path);
usr/src/lib/fm/topo/modules/common/disk/disk_common.c
915
di_devfs_path_free(path);
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
195
char *path;
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
229
path = di_devfs_path(di);
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
230
ppaths[0] = path;
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
231
if (path != NULL && topo_prop_set_string(tn, TOPO_PGROUP_IO,
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
232
TOPO_IO_DEV_PATH, TOPO_PROP_IMMUTABLE, path, &err) != 0) {
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
236
di_devfs_path_free(path);
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
240
if (path != NULL && topo_prop_set_string_array(tn, TOPO_PGROUP_IO,
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
245
di_devfs_path_free(path);
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
248
di_devfs_path_free(path);
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
262
char *devid, *mfg, *model, *rev, *serial, *log, *path;
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
315
path = di_devfs_path(di);
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
316
if (path == NULL) {
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
319
log = get_logical_disk(mod, path, &buflen);
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
320
di_devfs_path_free(path);
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
324
path = strrchr(log, '/');
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
325
if (path != NULL && path[1] != '\0' &&
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
327
TOPO_STORAGE_LOGICAL_DISK_NAME, TOPO_PROP_IMMUTABLE, path + 1,
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
477
char *path = di_devfs_path(nei->nei_dinode);
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
478
if (path == NULL) {
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
483
tud.tud_path = path;
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
486
di_devfs_path_free(path);
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
492
di_devfs_path_free(path);
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
783
char *path;
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
785
if ((path = di_devfs_path(di_parent_node(dnode))) == NULL) {
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
790
if (strcmp(parent, path) == 0) {
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
792
di_devfs_path_free(path);
usr/src/lib/fm/topo/modules/common/disk/disk_nvme.c
795
di_devfs_path_free(path);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
373
dev_path_fix(topo_mod_t *mp, char *path, int devno, int fnno)
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
383
lastslash = strrchr(path, '/');
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
392
return (path);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
395
need = snprintf(NULL, 0, "%s@%x", path, devno);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
397
need = snprintf(NULL, 0, "%s@%x,%x", path, devno, fnno);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
401
topo_mod_strfree(mp, path);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
406
(void) snprintf(newpath, need, "%s@%x", path, devno);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
408
(void) snprintf(newpath, need, "%s@%x,%x", path, devno, fnno);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
410
topo_mod_strfree(mp, path);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
419
dev_for_hostbridge(topo_mod_t *mp, char *path)
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
426
plen = strlen(path) + 1;
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
432
lastslash = strrchr(path, '/');
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
443
if ((newpath = topo_mod_strdup(mp, path)) == NULL) {
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
444
topo_mod_free(mp, path, plen);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
449
topo_mod_free(mp, path, plen);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
460
char *dnpath, *path, *fpath, *nm;
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
482
if ((path = topo_mod_strdup(mp, dnpath)) == NULL) {
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
488
if ((fpath = dev_path_fix(mp, path, d, f)) == NULL)
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
755
char *path, *fpath;
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
764
if ((path = topo_mod_strdup(mp, dnpath)) == NULL) {
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
772
fpath = dev_for_hostbridge(did_mod(pd), path);
usr/src/lib/fm/topo/modules/common/pcibus/did_props.c
775
fpath = dev_path_fix(mp, path, d, f);
usr/src/lib/fm/topo/modules/common/pcibus/pci_sensor.c
105
topo_mod_dprintf(mod, "searching for sensors in %s", path);
usr/src/lib/fm/topo/modules/common/pcibus/pci_sensor.c
106
if ((ret = pci_create_dev_scandir(mod, dev, path)) != 0) {
usr/src/lib/fm/topo/modules/common/pcibus/pci_sensor.c
35
pci_create_dev_scandir(topo_mod_t *mod, tnode_t *dev, const char *path)
usr/src/lib/fm/topo/modules/common/pcibus/pci_sensor.c
41
d = opendir(path);
usr/src/lib/fm/topo/modules/common/pcibus/pci_sensor.c
47
topo_mod_dprintf(mod, "failed to open %s: %s", path,
usr/src/lib/fm/topo/modules/common/pcibus/pci_sensor.c
60
if (snprintf(spath, sizeof (spath), "%s/%s", path,
usr/src/lib/fm/topo/modules/common/pcibus/pci_sensor.c
63
"for %s/%s, path too long", path, ent->d_name);
usr/src/lib/fm/topo/modules/common/pcibus/pci_sensor.c
87
char path[PATH_MAX];
usr/src/lib/fm/topo/modules/common/pcibus/pci_sensor.c
97
if (snprintf(path, sizeof (path), "/dev/sensors/%s/pci/%x.%x",
usr/src/lib/fm/topo/modules/common/pcibus/pci_sensor.c
98
pci_sensor_types[i], binst, dinst) >= sizeof (path)) {
usr/src/lib/fm/topo/modules/common/ses/ses.c
1099
nvlist_t *auth, uint64_t nodeid, const char *path)
usr/src/lib/fm/topo/modules/common/ses/ses.c
1178
path, &err) != 0) {
usr/src/lib/fm/topo/modules/common/ses/ses.c
3599
char path[PATH_MAX];
usr/src/lib/fm/topo/modules/common/ses/ses.c
3631
(void) snprintf(path, sizeof (path), "%s/%s", dirpath,
usr/src/lib/fm/topo/modules/common/ses/ses.c
3639
if ((stp->set_devpath = topo_mod_strdup(mod, path)) == NULL) {
usr/src/lib/fm/topo/modules/common/ses/ses.c
3645
ses_open(LIBSES_VERSION, path)) == NULL) {
usr/src/lib/fm/topo/modules/common/ses/ses.c
382
ses_sof_alloc(topo_mod_t *mod, char *path)
usr/src/lib/fm/topo/modules/common/ses/ses.c
388
topo_mod_dprintf(mod, "sof_alloc %s", path);
usr/src/lib/fm/topo/modules/common/ses/ses.c
389
sof->sof_path = path;
usr/src/lib/fm/topo/modules/common/ses/ses.c
514
char path[PATH_MAX];
usr/src/lib/fm/topo/modules/common/ses/ses.c
571
(void) snprintf(path, PATH_MAX, CTFS_ROOT "/device/%ld/status",
usr/src/lib/fm/topo/modules/common/ses/ses.c
573
statfd = open64(path, O_RDONLY);
usr/src/lib/fm/topo/modules/common/ses/ses.c
585
(void) snprintf(path, PATH_MAX,
usr/src/lib/fm/topo/modules/common/ses/ses.c
587
ctlfd = open64(path, O_WRONLY);
usr/src/lib/fm/topo/modules/common/ses/ses.c
600
(void) snprintf(path, PATH_MAX, CTFS_ROOT "/device/%ld/ctl",
usr/src/lib/fm/topo/modules/common/ses/ses.c
602
ctlfd = open64(path, O_WRONLY);
usr/src/lib/fm/topo/modules/common/ses/ses.c
780
char path[PATH_MAX];
usr/src/lib/fm/topo/modules/common/ses/ses.c
784
(void) snprintf(path, PATH_MAX,
usr/src/lib/fm/topo/modules/common/ses/ses.c
787
ctlfd = open64(path, O_WRONLY);
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
144
const char *path, const char *fname)
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
155
topo_node_name(pnode), path);
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
160
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
162
path, strerror(errno));
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
177
"%s: %s", path, strerror(errno));
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
197
PRIx64, path, sik.sik_kind);
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
205
path, strerror(errno));
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
216
"node to %s: %d", path, topo_mod_errno(mod));
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
242
"%s: %s", path, topo_strerror(err));
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
251
"%s", path);
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
257
nvlist_add_string(reader_arg, TOPO_IO_DEV_PATH, path) != 0) {
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
267
"%s", path, topo_strerror(err));
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
272
topo_mod_dprintf(mod, "created sensor at %s", path);
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
45
char *path;
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
54
nvlist_lookup_string(args, TOPO_IO_DEV_PATH, &path) != 0) {
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
60
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
62
path, strerror(errno));
usr/src/lib/fm/topo/modules/common/shared/topo_sensor.c
68
topo_mod_dprintf(mod, "failed to read sensor %s: %s", path,
usr/src/lib/fm/topo/modules/common/usb/topo_usb.c
1022
topo_usb_meta_port_path_t *path = arg;
usr/src/lib/fm/topo/modules/common/usb/topo_usb.c
1025
if (path->tmpp_type != TOPO_USB_T_ACPI)
usr/src/lib/fm/topo/modules/common/usb/topo_usb.c
1030
if (l->tul_acpi_name != NULL && strcmp(path->tmpp_path,
usr/src/lib/fm/topo/modules/common/usb/topo_usb.c
1051
topo_usb_meta_port_path_t *path;
usr/src/lib/fm/topo/modules/common/usb/topo_usb.c
1062
for (path = topo_list_next(&m->tmp_paths); path != NULL;
usr/src/lib/fm/topo/modules/common/usb/topo_usb.c
1063
path = topo_list_next(path)) {
usr/src/lib/fm/topo/modules/common/usb/topo_usb.c
1065
path->tmpp_path);
usr/src/lib/fm/topo/modules/common/usb/topo_usb.c
1067
topo_usb_metadata_match, path)) == NULL)
usr/src/lib/fm/topo/modules/common/usb/topo_usb_metadata.c
310
topo_usb_meta_port_path_t *path;
usr/src/lib/fm/topo/modules/common/usb/topo_usb_metadata.c
320
if ((path = topo_mod_zalloc(mod, sizeof (topo_usb_meta_port_path_t))) ==
usr/src/lib/fm/topo/modules/common/usb/topo_usb_metadata.c
328
path->tmpp_type = ptype;
usr/src/lib/fm/topo/modules/common/usb/topo_usb_metadata.c
329
path->tmpp_path = fspath;
usr/src/lib/fm/topo/modules/common/usb/topo_usb_metadata.c
331
topo_list_append(&parse->tp_cport->tmp_paths, path);
usr/src/lib/fm/topo/modules/common/usb/topo_usb_metadata.c
344
topo_usb_meta_port_path_t *path;
usr/src/lib/fm/topo/modules/common/usb/topo_usb_metadata.c
346
while ((path = topo_list_next((&mp->tmp_paths))) != NULL) {
usr/src/lib/fm/topo/modules/common/usb/topo_usb_metadata.c
347
topo_list_delete(&mp->tmp_paths, path);
usr/src/lib/fm/topo/modules/common/usb/topo_usb_metadata.c
348
topo_mod_strfree(mod, path->tmpp_path);
usr/src/lib/fm/topo/modules/common/usb/topo_usb_metadata.c
349
topo_mod_free(mod, path,
usr/src/lib/fm/topo/modules/i86pc/chip/chip_amd.c
311
char path[64];
usr/src/lib/fm/topo/modules/i86pc/chip/chip_amd.c
314
(void) snprintf(path, sizeof (path), "/dev/mc/mc%d", id);
usr/src/lib/fm/topo/modules/i86pc/chip/chip_amd.c
315
fd = open(path, O_RDONLY);
usr/src/lib/fm/topo/modules/i86pc/chip/chip_amd.c
323
(void) snprintf(path, sizeof (path),
usr/src/lib/fm/topo/modules/i86pc/chip/chip_amd.c
326
fd = open(path, O_RDONLY);
usr/src/lib/fm/topo/modules/i86pc/chip/chip_amd.c
337
path, strerror(errno));
usr/src/lib/fm/topo/modules/i86pc/chip/chip_intel.c
113
char path[64];
usr/src/lib/fm/topo/modules/i86pc/chip/chip_intel.c
115
(void) snprintf(path, sizeof (path), "/dev/mc/mc%d", id);
usr/src/lib/fm/topo/modules/i86pc/chip/chip_intel.c
116
mc_fd = open(path, O_RDONLY);
usr/src/lib/hal/libhal-storage/common/libhal-storage.c
101
libhal_storage_policy_set_icon_path (LibHalStoragePolicy *policy, LibHalStoragePolicyIcon icon, const char *path)
usr/src/lib/hal/libhal-storage/common/libhal-storage.c
108
free (i->path);
usr/src/lib/hal/libhal-storage/common/libhal-storage.c
109
i->path = strdup (path);
usr/src/lib/hal/libhal-storage/common/libhal-storage.c
118
i->path = strdup (path);
usr/src/lib/hal/libhal-storage/common/libhal-storage.c
140
const char *path;
usr/src/lib/hal/libhal-storage/common/libhal-storage.c
142
path = NULL;
usr/src/lib/hal/libhal-storage/common/libhal-storage.c
145
path = i->path;
usr/src/lib/hal/libhal-storage/common/libhal-storage.c
150
return path;
usr/src/lib/hal/libhal-storage/common/libhal-storage.c
62
char *path;
usr/src/lib/hal/libhal-storage/common/libhal-storage.c
93
free (i->path);
usr/src/lib/hal/libhal-storage/common/libhal-storage.h
139
const char *path) LIBHAL_DEPRECATED;
usr/src/lib/krb5/kadm5/srv/svr_principal.c
1462
const char *path = "/usr/sbin/mkpassdb";
usr/src/lib/krb5/kadm5/srv/svr_principal.c
1483
ret = kadm5_launch_task (handle->context, path, argv, pwbuf);
usr/src/lib/krb5/kdb/kdb5.c
327
char **path = NULL;
usr/src/lib/krb5/kdb/kdb5.c
360
path = calloc(ndx + db_dl_n_locations, sizeof (char *));
usr/src/lib/krb5/kdb/kdb5.c
361
if (path == NULL) {
usr/src/lib/krb5/kdb/kdb5.c
366
memcpy(path, profpath, ndx * sizeof(profpath[0]));
usr/src/lib/krb5/kdb/kdb5.c
367
memcpy(path + ndx, db_dl_location, db_dl_n_locations * sizeof(char *));
usr/src/lib/krb5/kdb/kdb5.c
370
if ((status = krb5int_open_plugin_dirs ((const char **) path,
usr/src/lib/krb5/kdb/kdb5.c
412
free(path);
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_open.c
403
char path[MAXPATHLEN];
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_open.c
412
if (envtmp && ((strlen(envtmp)+sizeof(fn)+1) > sizeof(path)))
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_open.c
415
(void)sprintf(path, "%s%s", (envtmp ? envtmp : "/tmp"), fn);
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_open.c
423
if ((fd = mkstemp(path)) != -1)
usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/bt_open.c
424
(void)unlink(path);
usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/dbm.c
174
char path[MAXPATHLEN];
usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/dbm.c
182
(void)strncpy(path, file, sizeof(path) - 1);
usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/dbm.c
183
path[sizeof(path) - 1] = '\0';
usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/dbm.c
184
(void)strncat(path, DBM_SUFFIX, sizeof(path) - 1 - strlen(path));
usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/dbm.c
185
return ((DBM *)__hash_open(path, flags, mode, &info, 0));
usr/src/lib/krb5/ss/mk_cmds.c
42
char *path, *p, *q;
usr/src/lib/krb5/ss/mk_cmds.c
51
path = malloc(strlen(argv[1])+4); /* extra space to add ".ct" */
usr/src/lib/krb5/ss/mk_cmds.c
52
strcpy(path, argv[1]);
usr/src/lib/krb5/ss/mk_cmds.c
53
p = strrchr(path, '/');
usr/src/lib/krb5/ss/mk_cmds.c
55
p = path;
usr/src/lib/krb5/ss/mk_cmds.c
60
strcat(path, ".ct");
usr/src/lib/krb5/ss/mk_cmds.c
61
yyin = fopen(path, "rF");
usr/src/lib/krb5/ss/mk_cmds.c
63
perror(path);
usr/src/lib/krb5/ss/mk_cmds.c
67
p = strrchr(path, '.');
usr/src/lib/krb5/ss/mk_cmds.c
69
q = rindex(path, '/');
usr/src/lib/krb5/ss/mk_cmds.c
70
strncpy(c_file, (q) ? q + 1 : path, sizeof(c_file) - 1);
usr/src/lib/krb5/ss/mk_cmds.c
84
fputs(path, output_file);
usr/src/lib/lib9p/common/backend/fs.c
1551
char *path;
usr/src/lib/lib9p/common/backend/fs.c
1573
path = newname;
usr/src/lib/lib9p/common/backend/fs.c
1577
if (strlen(path) >= sizeof(un.sun_path)) {
usr/src/lib/lib9p/common/backend/fs.c
1581
path = name;
usr/src/lib/lib9p/common/backend/fs.c
1595
if (strlen(path) >= sizeof(un.sun_path)) {
usr/src/lib/lib9p/common/backend/fs.c
1606
strncpy(un.sun_path, path, sizeof(un.sun_path));
usr/src/lib/lib9p/common/backend/fs.c
215
static struct l9p_acl *getacl(struct fs_fid *ff, int fd, const char *path);
usr/src/lib/lib9p/common/backend/fs.c
218
const char *path);
usr/src/lib/lib9p/common/backend/fs.c
511
char *path;
usr/src/lib/lib9p/common/backend/fs.c
515
path = ff->ff_name;
usr/src/lib/lib9p/common/backend/fs.c
516
path = r_dirname(path, buf, size);
usr/src/lib/lib9p/common/backend/fs.c
517
if (path == NULL)
usr/src/lib/lib9p/common/backend/fs.c
519
if (fstatat(ff->ff_dirfd, path, st, AT_SYMLINK_NOFOLLOW) != 0)
usr/src/lib/lib9p/common/backend/fs.c
603
open_fid(int dirfd, const char *path, struct fs_authinfo *ai, bool creating)
usr/src/lib/lib9p/common/backend/fs.c
621
ret->ff_name = strdup(path);
usr/src/lib/lib9p/common/backend/fs.c
760
qid->path = buf->st_ino;
usr/src/lib/lib9p/common/backend/fs.c
798
getacl(struct fs_fid *ff, int fd, const char *path)
usr/src/lib/lib9p/common/backend/fs.c
803
return look_for_nfsv4_acl(ff, fd, path);
usr/src/lib/lib9p/common/backend/fs.c
825
look_for_nfsv4_acl(struct fs_fid *ff, int fd, const char *path)
usr/src/lib/lib9p/common/backend/fs.c
836
fd = openat(ff->ff_dirfd, path, 0);
usr/src/lib/lib9p/common/backend/fs.c
850
path, strerror(errno));
usr/src/lib/lib9p/common/fcall.h
256
uint64_t path;
usr/src/lib/lib9p/common/pack.c
332
r = l9p_pu64(msg, &qid->path);
usr/src/lib/lib9p/common/rfuncs.c
118
while (comp > path && comp[-1] != '/')
usr/src/lib/lib9p/common/rfuncs.c
159
r_dirname(const char *path, char *buf, size_t bufsize)
usr/src/lib/lib9p/common/rfuncs.c
169
if (path == NULL || *path == '\0') {
usr/src/lib/lib9p/common/rfuncs.c
195
endp = path + strlen(path) - 1;
usr/src/lib/lib9p/common/rfuncs.c
196
while (endp > path && *endp == '/')
usr/src/lib/lib9p/common/rfuncs.c
198
while (endp > path && *endp != '/')
usr/src/lib/lib9p/common/rfuncs.c
200
while (endp > path && *endp == '/')
usr/src/lib/lib9p/common/rfuncs.c
203
len = (size_t)(endp - path + 1);
usr/src/lib/lib9p/common/rfuncs.c
204
if (endp == path && *endp != '/')
usr/src/lib/lib9p/common/rfuncs.c
207
dirpart = path;
usr/src/lib/lib9p/common/rfuncs.c
64
r_basename(const char *path, char *buf, size_t bufsize)
usr/src/lib/lib9p/common/rfuncs.c
74
if (path == NULL || *path == '\0') {
usr/src/lib/lib9p/common/rfuncs.c
84
endp = path + strlen(path) - 1;
usr/src/lib/lib9p/common/rfuncs.c
85
while (*endp == '/' && endp > path)
usr/src/lib/lib9p/common/utils.c
604
qid->version, qid->path);
usr/src/lib/libadm/common/ckpath.c
158
ckpath_val(char *path, int pflags)
usr/src/lib/libadm/common/ckpath.c
164
if ((pflags & P_RELATIVE) && (*path == '/')) {
usr/src/lib/libadm/common/ckpath.c
168
if ((pflags & P_ABSOLUTE) && (*path != '/')) {
usr/src/lib/libadm/common/ckpath.c
172
if (stat64(path, &status)) {
usr/src/lib/libadm/common/ckpath.c
177
for (pt = path; *pt; pt++) {
usr/src/lib/libadm/common/ckpath.c
186
if ((mkdir(path, 0755)) != 0) {
usr/src/lib/libadm/common/ckpath.c
191
if ((fd = creat(path, 0644)) < 0) {
usr/src/lib/libadm/common/devtab.c
536
char *path; /* Ptr to path in environment */
usr/src/lib/libadm/common/devtab.c
547
if (((path = getenv(OAM_DEVTAB)) != NULL) && (*path)) {
usr/src/lib/libadm/common/devtab.c
548
if (rtnval = malloc(strlen(path)+1))
usr/src/lib/libadm/common/devtab.c
549
(void) strcpy(rtnval, path);
usr/src/lib/libadm/common/dgrpent.c
341
char *path; /* Ptr to path in environment */
usr/src/lib/libadm/common/dgrpent.c
352
if (((path = getenv(OAM_DGROUP)) != NULL) && (*path)) {
usr/src/lib/libadm/common/dgrpent.c
353
if (rtnval = malloc(strlen(path)+1))
usr/src/lib/libadm/common/dgrpent.c
354
(void) strcpy(rtnval, path);
usr/src/lib/libadm/common/fulldevnm.c
107
getfullname(char *path)
usr/src/lib/libadm/common/fulldevnm.c
114
if (*path == '/')
usr/src/lib/libadm/common/fulldevnm.c
115
return (strdup(path));
usr/src/lib/libadm/common/fulldevnm.c
121
if (strncmp(path, "./", 2) == 0) {
usr/src/lib/libadm/common/fulldevnm.c
123
path += 2;
usr/src/lib/libadm/common/fulldevnm.c
124
} else if (strncmp(path, "../", 3) == 0) {
usr/src/lib/libadm/common/fulldevnm.c
130
path += 3;
usr/src/lib/libadm/common/fulldevnm.c
136
len = strlen(cwd) + strlen(path) + 2;
usr/src/lib/libadm/common/fulldevnm.c
142
(void) strcat(wa, path);
usr/src/lib/libadm/common/fulldevnm.c
302
getvfsspecial(char *path, int raw_special)
usr/src/lib/libadm/common/fulldevnm.c
314
ref_vp.vfs_special = path;
usr/src/lib/libadm/common/fulldevnm.c
316
ref_vp.vfs_fsckdev = path;
usr/src/lib/libadm/common/pkgparam.c
394
set_PKGpaths(char *path)
usr/src/lib/libadm/common/pkgparam.c
396
if (path && *path) {
usr/src/lib/libadm/common/pkgparam.c
398
"%s%s", path, PKGLOC);
usr/src/lib/libadm/common/pkgparam.c
400
"%s%s", path, PKGADM);
usr/src/lib/libadm/common/pkgparam.c
401
set_install_root(path);
usr/src/lib/libadm/common/pkgparam.c
489
set_install_root(char *path)
usr/src/lib/libadm/common/pkgparam.c
491
pkg_inst_root = strdup(path);
usr/src/lib/libadm/common/pkgparam.c
79
pkginfofind(char *path, char *pkg_dir, char *pkginst)
usr/src/lib/libadm/common/pkgparam.c
84
len = snprintf(path, PATH_MAX, "%s/.save.%s/pkginfo", pkg_dir,
usr/src/lib/libadm/common/pkgparam.c
88
if (access(path, 0)) {
usr/src/lib/libadm/common/pkgparam.c
93
len = snprintf(path, PATH_MAX, "%s/%s/pkginfo", pkg_dir,
usr/src/lib/libadm/common/pkgparam.c
97
if (access(path, 0))
usr/src/lib/libadm/common/putdgrp.c
602
char *path; /* Ptr to new devtab name */
usr/src/lib/libadm/common/putdgrp.c
666
if (fd = opennewdgrptab(&path)) {
usr/src/lib/libadm/common/putdgrp.c
686
noerr = mknewdgrptab(path);
usr/src/lib/libadm/common/putdgrp.c
689
(void) rmnewdgrptab(path);
usr/src/lib/libadm/common/putdgrp.c
736
char *path; /* Pathname of temp file */
usr/src/lib/libadm/common/putdgrp.c
744
if (fd = opennewdgrptab(&path)) {
usr/src/lib/libadm/common/putdgrp.c
752
noerr = mknewdgrptab(path);
usr/src/lib/libadm/common/putdgrp.c
755
(void) rmnewdgrptab(path);
usr/src/lib/libadm/common/putdgrp.c
802
char *path; /* Pathname of temp file */
usr/src/lib/libadm/common/putdgrp.c
873
if (fd = opennewdgrptab(&path)) {
usr/src/lib/libadm/common/putdgrp.c
882
noerr = mknewdgrptab(path);
usr/src/lib/libadm/common/putdgrp.c
885
(void) rmnewdgrptab(path);
usr/src/lib/libadm/inc/libadm.h
117
extern void set_install_root(char *path);
usr/src/lib/libbe/common/be_activate.c
940
char *path, *type, *dsk_ptr;
usr/src/lib/libbe/common/be_activate.c
955
if (nvlist_lookup_string(child, ZPOOL_CONFIG_PATH, &path) != 0) {
usr/src/lib/libbe/common/be_activate.c
969
"boot loader\n"), __func__, path,
usr/src/lib/libbe/common/be_activate.c
977
path = strdup(path);
usr/src/lib/libbe/common/be_activate.c
978
if (path == NULL)
usr/src/lib/libbe/common/be_activate.c
981
dsk_ptr = strstr(path, "/dsk/");
usr/src/lib/libbe/common/be_activate.c
989
(void) snprintf(diskname, sizeof (diskname), "%s/r%s", path, dsk_ptr);
usr/src/lib/libbe/common/be_activate.c
990
free(path);
usr/src/lib/libbrand/common/libbrand.c
219
char path[MAXPATHLEN];
usr/src/lib/libbrand/common/libbrand.c
233
(void) snprintf(path, sizeof (path), "%s/%s", BRAND_DIR, name);
usr/src/lib/libbrand/common/libbrand.c
235
if (stat(path, &statbuf) != 0)
usr/src/lib/libbrand/common/libbrand.c
250
(void) snprintf(path, sizeof (path), "%s/%s/%s", BRAND_DIR, name,
usr/src/lib/libbrand/common/libbrand.c
252
if ((bhp->bh_config = open_xml_file(path)) == NULL) {
usr/src/lib/libbrand/common/libbrand.c
286
(void) snprintf(path, sizeof (path), "%s/%s/%s", BRAND_DIR, name,
usr/src/lib/libbrand/common/libbrand.c
288
if ((bhp->bh_platform = open_xml_file(path)) == NULL) {
usr/src/lib/libbsm/common/adt_token.c
360
char *path;
usr/src/lib/libbsm/common/adt_token.c
362
path = ((union convert *)p_data)->tcharstar;
usr/src/lib/libbsm/common/adt_token.c
364
if (path != NULL) {
usr/src/lib/libbsm/common/adt_token.c
365
DPRINTF((" path=%s\n", path));
usr/src/lib/libbsm/common/adt_token.c
366
(void) au_write(event->ae_event_handle, au_to_path(path));
usr/src/lib/libbsm/common/adt_token.c
385
char *path;
usr/src/lib/libbsm/common/adt_token.c
402
for (path = strtok_r(working_buf, " ", &last_str);
usr/src/lib/libbsm/common/adt_token.c
403
path; path = strtok_r(NULL, " ", &last_str)) {
usr/src/lib/libbsm/common/adt_token.c
404
DPRINTF((" path=%s\n", path));
usr/src/lib/libbsm/common/adt_token.c
406
au_to_path(path));
usr/src/lib/libbsm/common/au_to.c
729
au_to_path(char *path)
usr/src/lib/libbsm/common/au_to.c
736
bytes = (short)strlen(path) + 1;
usr/src/lib/libbsm/common/au_to.c
744
adr_char(&adr, path, bytes);
usr/src/lib/libbsm/common/audit_allocate.c
77
audit_allocate_device(path)
usr/src/lib/libbsm/common/audit_allocate.c
78
char *path;
usr/src/lib/libbsm/common/audit_allocate.c
83
(void) au_write(ad, au_to_path(path));
usr/src/lib/libbsm/common/audit_at.c
103
if (path != NULL) {
usr/src/lib/libbsm/common/audit_at.c
104
if (strlen(path) + strlen(name) + 2 > PATH_MAX)
usr/src/lib/libbsm/common/audit_at.c
107
(void) strcat(strcat(strcpy(full_path, path), "/"),
usr/src/lib/libbsm/common/audit_at.c
44
audit_at_create(char *path, int sorf)
usr/src/lib/libbsm/common/audit_at.c
62
anc_name = audit_cron_make_anc_name(path);
usr/src/lib/libbsm/common/audit_at.c
83
aug_save_path(path);
usr/src/lib/libbsm/common/audit_at.c
95
audit_at_delete(char *name, char *path, int sorf)
usr/src/lib/libbsm/common/audit_cron.c
284
char *path,
usr/src/lib/libbsm/common/audit_cron.c
306
if (path != NULL) {
usr/src/lib/libbsm/common/audit_cron.c
307
if (strlen(path) + strlen(fname) + 2 > PATH_MAX) {
usr/src/lib/libbsm/common/audit_cron.c
311
(void) strcat(strcat(strcpy(full_path, path), "/"),
usr/src/lib/libbsm/common/audit_cron.c
440
audit_cron_create_anc_file(char *name, char *path, char *uname, uid_t uid)
usr/src/lib/libbsm/common/audit_cron.c
454
if (path != NULL) {
usr/src/lib/libbsm/common/audit_cron.c
455
if (strlen(path) + strlen(name) + 2 > PATH_MAX)
usr/src/lib/libbsm/common/audit_cron.c
457
(void) strcat(strcat(strcpy(full_path, path), "/"), name);
usr/src/lib/libbsm/common/audit_cron.c
505
audit_cron_delete_anc_file(char *name, char *path)
usr/src/lib/libbsm/common/audit_cron.c
514
if (path != NULL) {
usr/src/lib/libbsm/common/audit_cron.c
515
if (strlen(path) + strlen(name) + 2 > PATH_MAX)
usr/src/lib/libbsm/common/audit_cron.c
517
(void) strcat(strcat(strcpy(full_path, path), "/"), name);
usr/src/lib/libbsm/common/audit_crontab.c
111
aug_save_path(path);
usr/src/lib/libbsm/common/audit_crontab.c
123
audit_crontab_delete(char *path, int sorf)
usr/src/lib/libbsm/common/audit_crontab.c
131
anc_name = audit_cron_make_anc_name(path);
usr/src/lib/libbsm/common/audit_crontab.c
141
aug_save_path(path);
usr/src/lib/libbsm/common/audit_crontab.c
52
audit_crontab_modify(char *path, char *tmp_path, int sorf)
usr/src/lib/libbsm/common/audit_crontab.c
68
r = audit_crontab_get_diffs(path, tmp_path, &diffs);
usr/src/lib/libbsm/common/audit_crontab.c
89
anc_name = audit_cron_make_anc_name(path);
usr/src/lib/libbsm/common/audit_mountd.c
115
aug_save_path(path);
usr/src/lib/libbsm/common/audit_mountd.c
69
audit_mountd_mount(clname, path, sorf)
usr/src/lib/libbsm/common/audit_mountd.c
71
char *path; /* mount path */
usr/src/lib/libbsm/common/audit_mountd.c
88
aug_save_path(path);
usr/src/lib/libbsm/common/audit_mountd.c
96
audit_mountd_umount(clname, path)
usr/src/lib/libbsm/common/audit_mountd.c
98
char *path; /* mount path */
usr/src/lib/libbsm/common/devalloc.c
1180
char path[MAXPATHLEN];
usr/src/lib/libbsm/common/devalloc.c
1181
int size = sizeof (path);
usr/src/lib/libbsm/common/devalloc.c
1186
path[0] = '\0';
usr/src/lib/libbsm/common/devalloc.c
1187
if (snprintf(path, size, "%s%s", rootdir, DA_DB_LOCK) >= size)
usr/src/lib/libbsm/common/devalloc.c
1189
lockfile = path;
usr/src/lib/libbsm/common/devalloc.c
1246
char path[MAXPATHLEN];
usr/src/lib/libbsm/common/devalloc.c
1266
path[0] = '\0';
usr/src/lib/libbsm/common/devalloc.c
1274
if (snprintf(path, sizeof (path), "%s%s", rootdir,
usr/src/lib/libbsm/common/devalloc.c
1275
DEVALLOC) >= sizeof (path)) {
usr/src/lib/libbsm/common/devalloc.c
1280
fname = path;
usr/src/lib/libbsm/common/devalloc.c
1300
path[0] = '\0';
usr/src/lib/libbsm/common/devalloc.c
1307
if (snprintf(path, sizeof (path), "%s%s", rootdir,
usr/src/lib/libbsm/common/devalloc.c
1308
DEVMAP) >= sizeof (path)) {
usr/src/lib/libbsm/common/devalloc.c
1314
fname = path;
usr/src/lib/libc/i386/sys/xstat.c
43
_xstat(int version, const char *path, struct stat *statb)
usr/src/lib/libc/i386/sys/xstat.c
49
return (stat(path, statb));
usr/src/lib/libc/i386/sys/xstat.c
53
_lxstat(int version, const char *path, struct stat *statb)
usr/src/lib/libc/i386/sys/xstat.c
59
return (lstat(path, statb));
usr/src/lib/libc/i386/sys/xstat.c
73
_xmknod(int version, const char *path, mode_t mode, dev_t dev)
usr/src/lib/libc/i386/sys/xstat.c
79
return (mknod(path, mode, dev));
usr/src/lib/libc/port/gen/_xftw.c
118
_xftw(int ver __unused, const char *path,
usr/src/lib/libc/port/gen/_xftw.c
126
rc = fwalk(path, fn, depth, &var);
usr/src/lib/libc/port/gen/_xftw.c
134
fwalk(const char *path, int (*fn)(const char *, const struct stat *, int),
usr/src/lib/libc/port/gen/_xftw.c
154
if (nocdstat(path, &sb, vp, 0) < 0) {
usr/src/lib/libc/port/gen/_xftw.c
157
if ((nocdstat(path, &sb, vp, AT_SYMLINK_NOFOLLOW) != -1) &&
usr/src/lib/libc/port/gen/_xftw.c
160
return (*fn)(path, &sb, FTW_NS);
usr/src/lib/libc/port/gen/_xftw.c
165
return (errno == EACCES? (*fn)(path, &sb, FTW_NS): -1);
usr/src/lib/libc/port/gen/_xftw.c
173
return ((*fn)(path, &sb, FTW_F));
usr/src/lib/libc/port/gen/_xftw.c
180
dirp = nocdopendir(path, vp);
usr/src/lib/libc/port/gen/_xftw.c
189
return (errno == EACCES? (*fn)(path, &sb, FTW_DNR): -1);
usr/src/lib/libc/port/gen/_xftw.c
192
rc = (*fn)(path, &sb, FTW_D);
usr/src/lib/libc/port/gen/_xftw.c
211
n = strlen(path);
usr/src/lib/libc/port/gen/_xftw.c
218
(void) strcpy(subpath, path);
usr/src/lib/libc/port/gen/_xftw.c
253
dirp = nocdopendir(path, vp);
usr/src/lib/libc/port/gen/_xftw.c
272
nocdopendir(const char *path, struct Var *vp)
usr/src/lib/libc/port/gen/_xftw.c
278
fdd = opendir(path);
usr/src/lib/libc/port/gen/_xftw.c
284
if ((dirp = strdup(path)) == NULL) {
usr/src/lib/libc/port/gen/_xftw.c
319
nocdstat(const char *path, struct stat *statp, struct Var *vp, int sym)
usr/src/lib/libc/port/gen/_xftw.c
327
rc = fstatat(AT_FDCWD, path, statp, sym);
usr/src/lib/libc/port/gen/_xftw.c
331
if ((dirp = strdup(path)) == NULL) {
usr/src/lib/libc/port/gen/_xftw.c
341
unrootp = get_unrooted(path);
usr/src/lib/libc/port/gen/_xftw.c
371
get_unrooted(const char *path)
usr/src/lib/libc/port/gen/_xftw.c
375
if (!path || !*path)
usr/src/lib/libc/port/gen/_xftw.c
378
ptr = path + strlen(path);
usr/src/lib/libc/port/gen/_xftw.c
380
while (ptr != path && *--ptr == '/')
usr/src/lib/libc/port/gen/_xftw.c
383
if (ptr == path) /* all slashes */
usr/src/lib/libc/port/gen/_xftw.c
386
while (ptr != path)
usr/src/lib/libc/port/gen/confstr.c
103
path = "/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:"
usr/src/lib/libc/port/gen/confstr.c
106
path = "/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:"
usr/src/lib/libc/port/gen/confstr.c
109
conf_length = strlen(path) + 1;
usr/src/lib/libc/port/gen/confstr.c
111
(void) strncpy(buf, path, length);
usr/src/lib/libc/port/gen/confstr.c
97
char *path;
usr/src/lib/libc/port/gen/crypt.c
117
static char *isa_path(const char *path);
usr/src/lib/libc/port/gen/crypt.c
737
isa_path(const char *path)
usr/src/lib/libc/port/gen/crypt.c
741
if ((path == NULL) || (strlen(path) > PATH_MAX)) {
usr/src/lib/libc/port/gen/crypt.c
751
if (path[0] != '/') {
usr/src/lib/libc/port/gen/crypt.c
753
path) > PATH_MAX) {
usr/src/lib/libc/port/gen/crypt.c
760
if ((isa = strstr(path, CRYPT_MODULE_ISA)) != NULL) {
usr/src/lib/libc/port/gen/crypt.c
763
if (snprintf(ret, PATH_MAX, "%s%s%s", path,
usr/src/lib/libc/port/gen/crypt.c
770
ret = strdup(path);
usr/src/lib/libc/port/gen/fattach.c
50
fattach(int fildes, const char *path)
usr/src/lib/libc/port/gen/fattach.c
60
if (path == NULL || *path == '\0') {
usr/src/lib/libc/port/gen/fattach.c
63
} else if (*path != '/') {
usr/src/lib/libc/port/gen/fattach.c
77
strlcat(buf, path, sizeof (buf)) >= sizeof (buf)) {
usr/src/lib/libc/port/gen/fattach.c
81
path = buf;
usr/src/lib/libc/port/gen/fattach.c
83
return (mount((char *)NULL, path, MS_DATA|MS_NOMNTTAB,
usr/src/lib/libc/port/gen/fdetach.c
41
fdetach(const char *path)
usr/src/lib/libc/port/gen/fdetach.c
44
return (umount(path));
usr/src/lib/libc/port/gen/ftok.c
42
ftok(const char *path, int id)
usr/src/lib/libc/port/gen/ftok.c
49
if (stat64(path, &st) < 0)
usr/src/lib/libc/port/gen/ftok.c
57
path, &nvp)) == 0) {
usr/src/lib/libc/port/gen/fts.c
1019
fts_safe_changedir(FTS *sp, FTSENT *p, int fd, char *path)
usr/src/lib/libc/port/gen/fts.c
1031
if (fd < 0 && (newfd = open(path, O_RDONLY|O_CLOEXEC)) < 0)
usr/src/lib/libc/port/gen/fts.c
798
const char *path;
usr/src/lib/libc/port/gen/fts.c
801
path = p->fts_accpath;
usr/src/lib/libc/port/gen/fts.c
804
path = p->fts_name;
usr/src/lib/libc/port/gen/fts.c
815
if (fstatat(dfd, path, sbp, 0)) {
usr/src/lib/libc/port/gen/fts.c
817
if (!fstatat(dfd, path, sbp, AT_SYMLINK_NOFOLLOW)) {
usr/src/lib/libc/port/gen/fts.c
824
} else if (fstatat(dfd, path, sbp, AT_SYMLINK_NOFOLLOW)) {
usr/src/lib/libc/port/gen/ftw.c
55
ftw(const char *path, int (*fn)(), int depth)
usr/src/lib/libc/port/gen/ftw.c
57
return (_xftw(_XFTWVER, path, fn, depth));
usr/src/lib/libc/port/gen/mkfifo.c
39
mkfifoat(int fd, const char *path, mode_t mode)
usr/src/lib/libc/port/gen/mkfifo.c
43
return (mknodat(fd, path, mode, 0));
usr/src/lib/libc/port/gen/mkfifo.c
48
mkfifo(const char *path, mode_t mode)
usr/src/lib/libc/port/gen/mkfifo.c
52
return (mknod(path, mode, 0));
usr/src/lib/libc/port/gen/nftw.c
493
nftw(const char *path,
usr/src/lib/libc/port/gen/nftw.c
503
const char *savepath = path;
usr/src/lib/libc/port/gen/nftw.c
525
if (*path == '/')
usr/src/lib/libc/port/gen/nftw.c
533
while (*path) {
usr/src/lib/libc/port/gen/nftw.c
534
*dp = *path;
usr/src/lib/libc/port/gen/nftw.c
537
dp++, path++;
usr/src/lib/libc/port/gen/nftw.c
541
if (*path) {
usr/src/lib/libc/port/gen/nftw.c
610
cdstat(const char *path, struct stat *statp, struct Save *lp __unused,
usr/src/lib/libc/port/gen/nftw.c
613
return (fstatat(AT_FDCWD, path, statp, flags));
usr/src/lib/libc/port/gen/nftw.c
620
cdlstat(const char *path, struct stat *statp, struct Save *lp __unused,
usr/src/lib/libc/port/gen/nftw.c
623
return (fstatat(AT_FDCWD, path, statp,
usr/src/lib/libc/port/gen/nftw.c
631
nocdstat(const char *path, struct stat *statp, struct Save *lp, int flags)
usr/src/lib/libc/port/gen/nftw.c
638
basepath = get_unrooted(path);
usr/src/lib/libc/port/gen/nftw.c
642
basepath = path;
usr/src/lib/libc/port/gen/nftw.c
654
nocdlstat(const char *path, struct stat *statp, struct Save *lp, int flags)
usr/src/lib/libc/port/gen/nftw.c
661
basepath = get_unrooted(path);
usr/src/lib/libc/port/gen/nftw.c
665
basepath = path;
usr/src/lib/libc/port/gen/nftw.c
678
cdopendir(const char *path)
usr/src/lib/libc/port/gen/nftw.c
680
return (opendir(path));
usr/src/lib/libc/port/gen/nftw.c
687
nocdopendir(const char *path)
usr/src/lib/libc/port/gen/nftw.c
693
if (((fdd = opendir(path)) == NULL) && (errno == ENAMETOOLONG)) {
usr/src/lib/libc/port/gen/nftw.c
694
if ((dirp = strdup(path)) == NULL) {
usr/src/lib/libc/port/gen/nftw.c
729
get_unrooted(const char *path)
usr/src/lib/libc/port/gen/nftw.c
733
if (!path || !*path)
usr/src/lib/libc/port/gen/nftw.c
736
ptr = path + strlen(path);
usr/src/lib/libc/port/gen/nftw.c
738
while (ptr != path && *--ptr == '/')
usr/src/lib/libc/port/gen/nftw.c
741
if (ptr == path) /* all slashes */
usr/src/lib/libc/port/gen/nftw.c
744
while (ptr != path)
usr/src/lib/libc/port/gen/nlspath_checks.c
124
if (*path == '/' && strstr(path, "/../") == NULL) {
usr/src/lib/libc/port/gen/nlspath_checks.c
131
if (strncmp(p->dir, path, p->dirlen) == 0) {
usr/src/lib/libc/port/gen/nlspath_checks.c
83
nls_safe_open(const char *path, struct stat64 *statbuf, int *trust, int safe)
usr/src/lib/libc/port/gen/nlspath_checks.c
99
fd = open(path, O_RDONLY);
usr/src/lib/libc/port/gen/realpath.c
146
canonicalize_file_name(const char *path)
usr/src/lib/libc/port/gen/realpath.c
148
return (realpath(path, NULL));
usr/src/lib/libc/port/gen/truncate.c
71
truncate(const char *path, off_t len)
usr/src/lib/libc/port/gen/truncate.c
83
if ((fd = open(path, O_WRONLY)) == -1 || ftruncate(fd, len) == -1)
usr/src/lib/libc/port/gen/ttyname.c
100
static int srch_dir(const entry_t path, int match_mask, int depth,
usr/src/lib/libc/port/gen/ttyname.c
477
srch_dir(const entry_t path, /* current path */
usr/src/lib/libc/port/gen/ttyname.c
494
file.flags = path.flags & match_mask;
usr/src/lib/libc/port/gen/ttyname.c
503
if (strcmp(skip_dirs[dirno++].name, path.name) == 0)
usr/src/lib/libc/port/gen/ttyname.c
509
if ((dirp = opendir(path.name)) == NULL) {
usr/src/lib/libc/port/gen/ttyname.c
517
path_len = strlcpy(file_name, path.name, sizeof (file_name));
usr/src/lib/libc/port/i18n/gettext.h
119
char *path; /* name of message catalog */
usr/src/lib/libc/port/i18n/gettext_real.c
1071
mnp->path = strdup(mp->msgfile);
usr/src/lib/libc/port/i18n/gettext_real.c
1072
if (mnp->path == NULL) {
usr/src/lib/libc/port/i18n/gettext_real.c
1091
free(mnp->path);
usr/src/lib/libc/port/i18n/gettext_real.c
1098
free(mnp->path);
usr/src/lib/libc/port/i18n/gettext_util.c
180
strcmp(cur_msg->path, mp->msgfile) == 0) {
usr/src/lib/libc/port/i18n/gettext_util.c
200
strcmp(mnp->path, mp->msgfile) == 0) {
usr/src/lib/libc/port/i18n/gettext_util.c
583
mnp->path ? mnp->path : "(null)");
usr/src/lib/libc/port/locale/setrunelocale.c
103
char path[PATH_MAX];
usr/src/lib/libc/port/locale/setrunelocale.c
112
(void) snprintf(path, sizeof (path), "%s/%s/LC_CTYPE/LCL_DATA",
usr/src/lib/libc/port/locale/setrunelocale.c
115
if ((rl = _Read_RuneMagi(path)) == NULL) {
usr/src/lib/libc/port/regex/glob.c
1053
p = path;
usr/src/lib/libc/port/regex/glob.c
1064
if (g_Ctoc(path, copy, len)) {
usr/src/lib/libc/port/regex/glob.c
964
globextend(const wcat_t *path, glob_t *pglob, struct glob_lim *limitp,
usr/src/lib/libc/port/regex/wordexp.c
102
const char *path = "/usr/bin/ksh93";
usr/src/lib/libc/port/regex/wordexp.c
248
args[i++] = strrchr(path, '/') + 1;
usr/src/lib/libc/port/regex/wordexp.c
290
error = posix_spawn(&pid, path, &fact, &attr,
usr/src/lib/libc/port/rt/mqueue.c
375
mq_open(const char *path, int oflag, /* mode_t mode, mq_attr *attr */ ...)
usr/src/lib/libc/port/rt/mqueue.c
393
if (__pos4obj_check(path) == -1)
usr/src/lib/libc/port/rt/mqueue.c
397
if (__pos4obj_lock(path, MQ_LOCK_TYPE) < 0)
usr/src/lib/libc/port/rt/mqueue.c
410
if ((fd = __pos4obj_open(path, MQ_PERM_TYPE, oflag,
usr/src/lib/libc/port/rt/mqueue.c
451
if ((fd = __pos4obj_open(path, MQ_DATA_TYPE,
usr/src/lib/libc/port/rt/mqueue.c
464
if ((fd = __pos4obj_open(path, MQ_DATA_TYPE,
usr/src/lib/libc/port/rt/mqueue.c
502
if ((fd = __pos4obj_open(path, MQ_DSCN_TYPE, O_RDWR | O_CREAT,
usr/src/lib/libc/port/rt/mqueue.c
506
(void) __pos4obj_unlink(path, MQ_DSCN_TYPE);
usr/src/lib/libc/port/rt/mqueue.c
537
if (__pos4obj_unlock(path, MQ_LOCK_TYPE) == 0) {
usr/src/lib/libc/port/rt/mqueue.c
554
(void) __pos4obj_unlink(path, MQ_DATA_TYPE);
usr/src/lib/libc/port/rt/mqueue.c
556
(void) __pos4obj_unlink(path, MQ_PERM_TYPE);
usr/src/lib/libc/port/rt/mqueue.c
563
(void) __pos4obj_unlock(path, MQ_LOCK_TYPE);
usr/src/lib/libc/port/rt/mqueue.c
633
mq_unlink(const char *path)
usr/src/lib/libc/port/rt/mqueue.c
637
if (__pos4obj_check(path) < 0)
usr/src/lib/libc/port/rt/mqueue.c
640
if (__pos4obj_lock(path, MQ_LOCK_TYPE) < 0) {
usr/src/lib/libc/port/rt/mqueue.c
644
err = __pos4obj_unlink(path, MQ_PERM_TYPE);
usr/src/lib/libc/port/rt/mqueue.c
648
err = __pos4obj_unlink(path, MQ_DATA_TYPE);
usr/src/lib/libc/port/rt/mqueue.c
651
if (__pos4obj_unlock(path, MQ_LOCK_TYPE) < 0)
usr/src/lib/libc/port/rt/pos4obj.c
124
__pos4obj_name(const char *path, const char *type)
usr/src/lib/libc/port/rt/pos4obj.c
158
if ((strlen(path) - 1) > (name_max - strlen(type)))
usr/src/lib/libc/port/rt/pos4obj.c
165
len = strlen(objroot) + strlen(type) + strlen(path);
usr/src/lib/libc/port/rt/pos4obj.c
171
strlen(path) + 3;
usr/src/lib/libc/port/rt/pos4obj.c
182
(void) strcat(dfile, path + 1);
usr/src/lib/libc/port/rt/pos4obj.c
197
real_md5_calc(md5_digest, (unsigned char *)path + 1, strlen(path + 1));
usr/src/lib/libc/port/rt/pos4obj.c
255
(void) strcat(dfile, path);
usr/src/lib/libc/port/rt/pos4obj.c
398
__pos4obj_unlock(const char *path, const char *type)
usr/src/lib/libc/port/rt/pos4obj.c
400
return (__pos4obj_unlink(path, type));
usr/src/lib/libc/port/rt/pos4obj.c
407
__pos4obj_clean(char *path)
usr/src/lib/libc/port/rt/pos4obj.c
422
if (strchr(path + strlen(objroot), '/') == NULL)
usr/src/lib/libc/port/rt/pos4obj.c
431
if ((p = strrchr(path, '/')) == NULL)
usr/src/lib/libc/port/rt/pos4obj.c
435
(void) rmdir(path);
usr/src/lib/libc/port/rt/pos4obj.c
437
if ((p = strrchr(path, '/')) == NULL)
usr/src/lib/libc/port/rt/pos4obj.c
441
(void) rmdir(path);
usr/src/lib/libc/port/rt/pos4obj.c
452
__pos4obj_check(const char *path)
usr/src/lib/libc/port/rt/pos4obj.c
466
if (*path++ != '/') {
usr/src/lib/libc/port/rt/pos4obj.c
471
for (i = 0; *path != '\0'; i++) {
usr/src/lib/libc/port/rt/pos4obj.c
472
if (*path++ == '/') {
usr/src/lib/libc/port/rt/pos4obj.c
56
__open_nc(const char *path, int oflag, mode_t mode)
usr/src/lib/libc/port/rt/pos4obj.c
66
if (lstat64(path, &statbuf) == 0) {
usr/src/lib/libc/port/rt/pos4obj.c
74
val = open64(path, oflag, mode);
usr/src/lib/libc/port/rt/sem.c
122
strcmp(path, next->sad_name) == 0) {
usr/src/lib/libc/port/rt/sem.c
125
(void) __pos4obj_unlock(path, SEM_LOCK_TYPE);
usr/src/lib/libc/port/rt/sem.c
156
if (__pos4obj_unlock(path, SEM_LOCK_TYPE) == 0) {
usr/src/lib/libc/port/rt/sem.c
163
(void) strcpy(next->sad_name, path);
usr/src/lib/libc/port/rt/sem.c
173
(void) __pos4obj_unlink(path, SEM_DATA_TYPE);
usr/src/lib/libc/port/rt/sem.c
177
(void) __pos4obj_unlock(path, SEM_LOCK_TYPE);
usr/src/lib/libc/port/rt/sem.c
204
sem_unlink(const char *path)
usr/src/lib/libc/port/rt/sem.c
209
if (__pos4obj_check(path) < 0)
usr/src/lib/libc/port/rt/sem.c
212
if (__pos4obj_lock(path, SEM_LOCK_TYPE) < 0)
usr/src/lib/libc/port/rt/sem.c
215
error = __pos4obj_unlink(path, SEM_DATA_TYPE);
usr/src/lib/libc/port/rt/sem.c
219
(void) __pos4obj_unlock(path, SEM_LOCK_TYPE);
usr/src/lib/libc/port/rt/sem.c
58
sem_open(const char *path, int oflag, /* mode_t mode, int value */ ...)
usr/src/lib/libc/port/rt/sem.c
70
if (__pos4obj_check(path) == -1)
usr/src/lib/libc/port/rt/sem.c
74
if (__pos4obj_lock(path, SEM_LOCK_TYPE) < 0)
usr/src/lib/libc/port/rt/sem.c
97
if ((fd = __pos4obj_open(path, SEM_DATA_TYPE,
usr/src/lib/libc/port/rt/shm.c
36
shm_open(const char *path, int oflag, mode_t mode)
usr/src/lib/libc/port/rt/shm.c
42
if (__pos4obj_check(path) == -1)
usr/src/lib/libc/port/rt/shm.c
46
if (__pos4obj_lock(path, SHM_LOCK_TYPE) < 0)
usr/src/lib/libc/port/rt/shm.c
49
fd = __pos4obj_open(path, SHM_DATA_TYPE, oflag, mode, &crflag);
usr/src/lib/libc/port/rt/shm.c
52
(void) __pos4obj_unlock(path, SHM_LOCK_TYPE);
usr/src/lib/libc/port/rt/shm.c
58
(void) __pos4obj_unlock(path, SHM_LOCK_TYPE);
usr/src/lib/libc/port/rt/shm.c
64
if (__pos4obj_unlock(path, SHM_LOCK_TYPE) < 0) {
usr/src/lib/libc/port/rt/shm.c
73
shm_unlink(const char *path)
usr/src/lib/libc/port/rt/shm.c
78
if (__pos4obj_check(path) < 0)
usr/src/lib/libc/port/rt/shm.c
81
if (__pos4obj_lock(path, SHM_LOCK_TYPE) < 0)
usr/src/lib/libc/port/rt/shm.c
84
err = __pos4obj_unlink(path, SHM_DATA_TYPE);
usr/src/lib/libc/port/rt/shm.c
88
(void) __pos4obj_unlock(path, SHM_LOCK_TYPE);
usr/src/lib/libc/port/sys/chmod.c
35
fchmodat(int fd, const char *path, mode_t mode, int flag)
usr/src/lib/libc/port/sys/chmod.c
37
return (syscall(SYS_fchmodat, fd, path, mode, flag));
usr/src/lib/libc/port/sys/chmod.c
42
chmod(const char *path, mode_t mode)
usr/src/lib/libc/port/sys/chmod.c
45
return (syscall(SYS_chmod, path, mode));
usr/src/lib/libc/port/sys/chmod.c
47
return (fchmodat(AT_FDCWD, path, mode, 0));
usr/src/lib/libc/port/sys/mkdir.c
32
mkdirat(int fd, const char *path, mode_t mode)
usr/src/lib/libc/port/sys/mkdir.c
34
return (syscall(SYS_mkdirat, fd, path, mode));
usr/src/lib/libc/port/sys/mkdir.c
39
mkdir(const char *path, mode_t mode)
usr/src/lib/libc/port/sys/mkdir.c
42
return (syscall(SYS_mkdir, path, mode));
usr/src/lib/libc/port/sys/mkdir.c
44
return (mkdirat(AT_FDCWD, path, mode));
usr/src/lib/libc/port/sys/mknod.c
32
mknodat(int fd, const char *path, mode_t mode, dev_t dev)
usr/src/lib/libc/port/sys/mknod.c
34
return (syscall(SYS_mknodat, fd, path, mode, dev));
usr/src/lib/libc/port/sys/mknod.c
39
mknod(const char *path, mode_t mode, dev_t dev)
usr/src/lib/libc/port/sys/mknod.c
42
return (syscall(SYS_mknod, path, mode, dev));
usr/src/lib/libc/port/sys/mknod.c
44
return (mknodat(AT_FDCWD, path, mode, dev));
usr/src/lib/libc/port/sys/nfssys.c
56
nfs_getfh(char *path, int vers, int *lenp, char *fhp)
usr/src/lib/libc/port/sys/nfssys.c
60
nga.fname = path;
usr/src/lib/libc/port/sys/open.c
41
__openat(int dfd, const char *path, int oflag, mode_t mode)
usr/src/lib/libc/port/sys/open.c
43
return (syscall(SYS_openat, dfd, path, oflag, mode));
usr/src/lib/libc/port/sys/open.c
47
__open(const char *path, int oflag, mode_t mode)
usr/src/lib/libc/port/sys/open.c
50
return (syscall(SYS_open, path, oflag, mode));
usr/src/lib/libc/port/sys/open.c
52
return (__openat(AT_FDCWD, path, oflag, mode));
usr/src/lib/libc/port/sys/open.c
59
__openat64(int dfd, const char *path, int oflag, mode_t mode)
usr/src/lib/libc/port/sys/open.c
61
return (syscall(SYS_openat64, dfd, path, oflag, mode));
usr/src/lib/libc/port/sys/open.c
65
__open64(const char *path, int oflag, mode_t mode)
usr/src/lib/libc/port/sys/open.c
68
return (syscall(SYS_open64, path, oflag, mode));
usr/src/lib/libc/port/sys/open.c
70
return (__openat64(AT_FDCWD, path, oflag, mode));
usr/src/lib/libc/port/sys/readlink.c
32
readlinkat(int fd, const char *path, char *buf, size_t bufsize)
usr/src/lib/libc/port/sys/readlink.c
37
error = __systemcall(&rval, SYS_readlinkat, fd, path, buf, bufsize);
usr/src/lib/libc/port/sys/readlink.c
45
readlink(const char *path, char *buf, size_t bufsize)
usr/src/lib/libc/port/sys/readlink.c
51
error = __systemcall(&rval, SYS_readlink, path, buf, bufsize);
usr/src/lib/libc/port/sys/readlink.c
56
return (readlinkat(AT_FDCWD, path, buf, bufsize));
usr/src/lib/libc/port/sys/umount.c
40
umount(const char *path)
usr/src/lib/libc/port/sys/umount.c
42
return (umount2(path, 0));
usr/src/lib/libc/port/sys/utimesys.c
103
lutimes(const char *path, const struct timeval *times)
usr/src/lib/libc/port/sys/utimesys.c
105
return (utimes_impl(path, times, AT_SYMLINK_NOFOLLOW));
usr/src/lib/libc/port/sys/utimesys.c
110
futimesat(int fd, const char *path, const struct timeval *times)
usr/src/lib/libc/port/sys/utimesys.c
129
if (path == NULL)
usr/src/lib/libc/port/sys/utimesys.c
132
return (utimensat(fd, path, tsp, 0));
usr/src/lib/libc/port/sys/utimesys.c
46
utimensat(int fd, const char *path, const timespec_t times[2], int flag)
usr/src/lib/libc/port/sys/utimesys.c
48
return (syscall(SYS_utimesys, 1, fd, path, times, flag));
usr/src/lib/libc/port/sys/utimesys.c
53
utime(const char *path, const struct utimbuf *times)
usr/src/lib/libc/port/sys/utimesys.c
71
return (utimensat(AT_FDCWD, path, tsp, 0));
usr/src/lib/libc/port/sys/utimesys.c
75
utimes_impl(const char *path, const struct timeval times[2], int flag)
usr/src/lib/libc/port/sys/utimesys.c
93
return (utimensat(AT_FDCWD, path, tsp, flag));
usr/src/lib/libc/port/sys/utimesys.c
97
utimes(const char *path, const struct timeval *times)
usr/src/lib/libc/port/sys/utimesys.c
99
return (utimes_impl(path, times, 0));
usr/src/lib/libc/port/threads/scalls.c
837
openat(int fd, const char *path, int oflag, ...)
usr/src/lib/libc/port/threads/scalls.c
846
PERFORM(__openat(fd, path, oflag, mode))
usr/src/lib/libc/port/threads/scalls.c
850
open(const char *path, int oflag, ...)
usr/src/lib/libc/port/threads/scalls.c
859
PERFORM(__open(path, oflag, mode))
usr/src/lib/libc/port/threads/scalls.c
863
creat(const char *path, mode_t mode)
usr/src/lib/libc/port/threads/scalls.c
865
return (open(path, O_WRONLY | O_CREAT | O_TRUNC, mode));
usr/src/lib/libc/port/threads/scalls.c
870
openat64(int fd, const char *path, int oflag, ...)
usr/src/lib/libc/port/threads/scalls.c
879
PERFORM(__openat64(fd, path, oflag, mode))
usr/src/lib/libc/port/threads/scalls.c
883
open64(const char *path, int oflag, ...)
usr/src/lib/libc/port/threads/scalls.c
892
PERFORM(__open64(path, oflag, mode))
usr/src/lib/libc/port/threads/scalls.c
896
creat64(const char *path, mode_t mode)
usr/src/lib/libc/port/threads/scalls.c
898
return (open64(path, O_WRONLY | O_CREAT | O_TRUNC, mode));
usr/src/lib/libc/port/threads/spawn.c
304
const char *path,
usr/src/lib/libc/port/threads/spawn.c
355
(void) execve(path, argv, envp);
usr/src/lib/libc/port/threads/spawn.c
410
char path[PATH_MAX+4];
usr/src/lib/libc/port/threads/spawn.c
495
cp = execat(cp, file, path);
usr/src/lib/libc/port/threads/spawn.c
501
if (*path == '-') {
usr/src/lib/libc/port/threads/spawn.c
504
for (s = path; *s != '\0'; s++)
usr/src/lib/libc/port/threads/spawn.c
506
for (; s >= path; s--)
usr/src/lib/libc/port/threads/spawn.c
508
path[0] = '.';
usr/src/lib/libc/port/threads/spawn.c
509
path[1] = '/';
usr/src/lib/libc/port/threads/spawn.c
512
(void) execve(path, argv, envp);
usr/src/lib/libc/port/threads/spawn.c
515
newargs[1] = path;
usr/src/lib/libc/port/threads/spawn.c
592
const char *restrict path,
usr/src/lib/libc/port/threads/spawn.c
603
fap->fa_pathsize = strlen(path) + 1;
usr/src/lib/libc/port/threads/spawn.c
608
(void) memcpy(fap->fa_path, path, fap->fa_pathsize);
usr/src/lib/libc/port/threads/spawn.c
680
const char *restrict path)
usr/src/lib/libc/port/threads/spawn.c
687
fap->fa_pathsize = strlen(path) + 1;
usr/src/lib/libc/port/threads/spawn.c
692
(void) memcpy(fap->fa_path, path, fap->fa_pathsize);
usr/src/lib/libc/port/threads/spawn.c
703
const char *restrict path)
usr/src/lib/libc/port/threads/spawn.c
705
return (posix_spawn_file_actions_addchdir(file_actions, path));
usr/src/lib/libc/port/threads/thr.c
2410
char path[PATH_MAX];
usr/src/lib/libc/port/threads/thr.c
2423
lwpname_path(tid, path, sizeof (path));
usr/src/lib/libc/port/threads/thr.c
2425
if ((fd = __open(path, O_WRONLY, 0)) < 0) {
usr/src/lib/libc/port/threads/thr.c
2448
char path[PATH_MAX];
usr/src/lib/libc/port/threads/thr.c
2456
lwpname_path(tid, path, sizeof (path));
usr/src/lib/libc/port/threads/thr.c
2458
if ((fd = __open(path, O_RDONLY, 0)) < 0) {
usr/src/lib/libcfgadm/common/config_admin.c
1343
char *dyncomp, path[PATH_MAX];
usr/src/lib/libcfgadm/common/config_admin.c
1392
path[sizeof (path) - 1] = '\0';
usr/src/lib/libcfgadm/common/config_admin.c
1393
if (type == LOGICAL_LINK_AP && realpath(lib_loc_p->ap_base, path)
usr/src/lib/libcfgadm/common/config_admin.c
1396
"%s", path);
usr/src/lib/libcfgadm/common/config_admin.c
2941
char *cp, path[MAXPATHLEN], ap_base[MAXPATHLEN];
usr/src/lib/libcfgadm/common/config_admin.c
2979
(void) snprintf(path, sizeof (path), "%s%s",
usr/src/lib/libcfgadm/common/config_admin.c
2982
if (lstat(path, &sbuf) == 0 && S_ISLNK(sbuf.st_mode) &&
usr/src/lib/libcfgadm/common/config_admin.c
2983
stat(path, &sbuf) == 0) {
usr/src/lib/libcontract/common/libcontract_priv.c
84
char path[PATH_MAX];
usr/src/lib/libcontract/common/libcontract_priv.c
92
n = snprintf(path, PATH_MAX, CTFS_ROOT "/%s/%ld/%s", type, ctid, file);
usr/src/lib/libcontract/common/libcontract_priv.c
98
fd = open64(path, oflag);
usr/src/lib/libcryptoutil/common/cryptoutil.h
223
extern int open_nointr(const char *path, int oflag, ...);
usr/src/lib/libcryptoutil/common/random.c
60
open_nointr(const char *path, int oflag, ...)
usr/src/lib/libcryptoutil/common/random.c
71
if ((fd = open(path, oflag, pmode)) >= 0) {
usr/src/lib/libctf/common/ctf_lib.c
754
char path[MAXPATHLEN];
usr/src/lib/libctf/common/ctf_lib.c
762
(void) snprintf(path, sizeof (path), "%s/%s.%s.%d.ctf", base, name,
usr/src/lib/libctf/common/ctf_lib.c
765
if ((fd = open(path, O_CREAT | O_TRUNC | O_RDWR, 0777)) < 0)
usr/src/lib/libdevice/devctl.c
226
dc_mkhndl(dc_type_t type, char *path, uint_t oflags, devctl_hdl_t pc)
usr/src/lib/libdevice/devctl.c
237
if ((path == NULL) || (strlen(path) > MAXPATHLEN - 1)) {
usr/src/lib/libdevice/devctl.c
249
if ((dcp->opath = strdup(path)) == NULL) {
usr/src/lib/libdevice/devctl.c
255
(void) strcpy(iocpath, path);
usr/src/lib/libdevid/deviceid.c
125
devid_str_from_path(const char *path)
usr/src/lib/libdevid/deviceid.c
131
if ((fd = open(path, O_RDONLY)) < 0)
usr/src/lib/libdevid/deviceid.c
156
nmlist_add(struct nmlist **nlhp, char *path)
usr/src/lib/libdevid/deviceid.c
163
if ((stat(path, &statb) == 0) &&
usr/src/lib/libdevid/deviceid.c
177
if ((nl->nl_devname = strdup(path)) == NULL) {
usr/src/lib/libdevid/deviceid.c
249
char *path;
usr/src/lib/libdevid/deviceid.c
311
for (path = paths; *path; path += strlen(path) + 1) {
usr/src/lib/libdevid/deviceid.c
318
(void) di_devlink_walk(dlh, NULL, path,
usr/src/lib/libdevid/deviceid.c
325
cp = malloc(strlen("/devices") + strlen(path) + 1);
usr/src/lib/libdevid/deviceid.c
327
(void) strcat(cp, path);
usr/src/lib/libdevinfo/devfsinfo.c
1001
if (stat(path, &stat_buf) == 0) {
usr/src/lib/libdevinfo/devfsinfo.c
1041
(void) snprintf(path, sizeof (path), "%s%s%s", root, DEVICES, dev_path);
usr/src/lib/libdevinfo/devfsinfo.c
1043
if (stat(path, &stat_buf) == 0) {
usr/src/lib/libdevinfo/devfsinfo.c
994
char path[MAXPATHLEN];
usr/src/lib/libdevinfo/devfsinfo.c
996
(void) snprintf(path, sizeof (path), "%s%s%s", root, DEVICES, dev_path);
usr/src/lib/libdevinfo/devfsmap.c
1048
is_root_controller(char *rootdir, char *path)
usr/src/lib/libdevinfo/devfsmap.c
1058
path));
usr/src/lib/libdevinfo/devfsmap.c
1079
if (compare_controller(rootdir, vfsent.vfs_special, path) == 0)
usr/src/lib/libdevinfo/devfsmap.c
1105
if (compare_controller(rootdir, buf, path) == 0) {
usr/src/lib/libdevinfo/devfsmap.c
1122
file_exists(char *rootdir, char *path)
usr/src/lib/libdevinfo/devfsmap.c
1128
(void) snprintf(fullpath, MAXPATHLEN, "%s%s", rootdir, path);
usr/src/lib/libdevinfo/devfsmap.c
1152
is_mpxio_disabled(char *rootdir, char *path)
usr/src/lib/libdevinfo/devfsmap.c
1159
rootdir, path));
usr/src/lib/libdevinfo/devfsmap.c
1197
if ((mpxio_disable = lookup_in_conf_file(rootdir, FP_CONF, path))
usr/src/lib/libdevinfo/devfsmap.c
1201
if ((p = strrchr(path, '/')) == NULL)
usr/src/lib/libdevinfo/devfsmap.c
1205
if ((mpxio_disable = lookup_in_conf_file(rootdir, QLC_CONF, path))
usr/src/lib/libdevinfo/devfsmap.c
1225
mpxio_disable = is_root_controller(rootdir, path);
usr/src/lib/libdevinfo/devfsmap.c
806
lookup_in_conf_file(char *rootdir, char *conf_file, char *path)
usr/src/lib/libdevinfo/devfsmap.c
821
"path = \"%s\"\n", rootdir, conf_file, STRVAL(path)));
usr/src/lib/libdevinfo/devfsmap.c
830
if (path == NULL) {
usr/src/lib/libdevinfo/devfsmap.c
835
if ((node_name = strrchr(path, '/')) == NULL)
usr/src/lib/libdevinfo/devfsmap.c
857
if ((rv = lookup_in_confent_list(confent_list, 0, path,
usr/src/lib/libdevinfo/devfsmap.c
862
if ((par_node_name_addr = strrchr(path, '/')) != NULL) {
usr/src/lib/libdevinfo/devfsmap.c
870
par_node = di_init(path, DINFOMINOR);
usr/src/lib/libdevinfo/devinfo.c
103
while ((fd = open(path, oflag)) == -1 && errno == EAGAIN)
usr/src/lib/libdevinfo/devinfo.c
1169
di_path_devfs_path(di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
1176
if (path == DI_PATH_NIL) {
usr/src/lib/libdevinfo/devinfo.c
1182
path_name = di_path_node_name(path);
usr/src/lib/libdevinfo/devinfo.c
1183
path_addr = di_path_bus_addr(path);
usr/src/lib/libdevinfo/devinfo.c
1188
phci_node = di_path_phci_node(path);
usr/src/lib/libdevinfo/devinfo.c
1208
di_path_client_devfs_path(di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
1210
return (di_devfs_path(di_path_client_node(path)));
usr/src/lib/libdevinfo/devinfo.c
1893
di_path_phci_next_path(di_node_t node, di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
1900
if (path != DI_PATH_NIL) {
usr/src/lib/libdevinfo/devinfo.c
1901
if (DI_PATH(path)->path_p_link != 0)
usr/src/lib/libdevinfo/devinfo.c
1902
return (DI_PATH((void *)((caddr_t)path -
usr/src/lib/libdevinfo/devinfo.c
1903
DI_PATH(path)->self + DI_PATH(path)->path_p_link)));
usr/src/lib/libdevinfo/devinfo.c
1935
di_path_client_next_path(di_node_t node, di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
1942
if (path != DI_PATH_NIL) {
usr/src/lib/libdevinfo/devinfo.c
1943
if (DI_PATH(path)->path_c_link != 0)
usr/src/lib/libdevinfo/devinfo.c
1944
return (DI_PATH((caddr_t)path - DI_PATH(path)->self
usr/src/lib/libdevinfo/devinfo.c
1945
+ DI_PATH(path)->path_c_link));
usr/src/lib/libdevinfo/devinfo.c
1982
di_path_addr(di_path_t path, char *buf)
usr/src/lib/libdevinfo/devinfo.c
1986
pa = (caddr_t)path - DI_PATH(path)->self;
usr/src/lib/libdevinfo/devinfo.c
1988
(void) strncpy(buf, (char *)(pa + DI_PATH(path)->path_addr),
usr/src/lib/libdevinfo/devinfo.c
1993
di_path_next(di_node_t node, di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
2001
return (di_path_client_next_path(node, path));
usr/src/lib/libdevinfo/devinfo.c
2003
return (di_path_phci_next_path(node, path));
usr/src/lib/libdevinfo/devinfo.c
2014
di_path_next_phci(di_node_t node, di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
2016
return (di_path_client_next_path(node, path));
usr/src/lib/libdevinfo/devinfo.c
2019
di_path_next_client(di_node_t node, di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
2021
return (di_path_phci_next_path(node, path));
usr/src/lib/libdevinfo/devinfo.c
2028
di_path_state(di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
2030
return ((di_path_state_t)DI_PATH(path)->path_state);
usr/src/lib/libdevinfo/devinfo.c
2034
di_path_flags(di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
2036
return (DI_PATH(path)->path_flags);
usr/src/lib/libdevinfo/devinfo.c
2040
di_path_node_name(di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
2045
if ((client_node = di_path_client_node(path)) == NULL)
usr/src/lib/libdevinfo/devinfo.c
2051
di_path_bus_addr(di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
2053
caddr_t pa = (caddr_t)path - DI_PATH(path)->self;
usr/src/lib/libdevinfo/devinfo.c
2055
if (DI_PATH(path)->path_addr == 0)
usr/src/lib/libdevinfo/devinfo.c
2058
return ((char *)(pa + DI_PATH(path)->path_addr));
usr/src/lib/libdevinfo/devinfo.c
2062
di_path_instance(di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
2064
return (DI_PATH(path)->path_instance);
usr/src/lib/libdevinfo/devinfo.c
2068
di_path_client_node(di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
2072
if (path == DI_PATH_NIL) {
usr/src/lib/libdevinfo/devinfo.c
2077
DPRINTF((DI_TRACE, "Get client node for path %p\n", path));
usr/src/lib/libdevinfo/devinfo.c
2079
pa = (caddr_t)path - DI_PATH(path)->self;
usr/src/lib/libdevinfo/devinfo.c
2081
if (DI_PATH(path)->path_client) {
usr/src/lib/libdevinfo/devinfo.c
2082
return (DI_NODE(pa + DI_PATH(path)->path_client));
usr/src/lib/libdevinfo/devinfo.c
2090
if ((DI_PATH(path)->path_snap_state & DI_PATH_SNAP_NOCLIENT) == 0)
usr/src/lib/libdevinfo/devinfo.c
2099
di_path_phci_node(di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
2103
if (path == DI_PATH_NIL) {
usr/src/lib/libdevinfo/devinfo.c
2108
DPRINTF((DI_TRACE, "Get phci node for path %p\n", path));
usr/src/lib/libdevinfo/devinfo.c
2110
pa = (caddr_t)path - DI_PATH(path)->self;
usr/src/lib/libdevinfo/devinfo.c
2112
if (DI_PATH(path)->path_phci) {
usr/src/lib/libdevinfo/devinfo.c
2113
return (DI_NODE(pa + DI_PATH(path)->path_phci));
usr/src/lib/libdevinfo/devinfo.c
2121
if ((DI_PATH(path)->path_snap_state & DI_PATH_SNAP_NOPHCI) == 0)
usr/src/lib/libdevinfo/devinfo.c
2130
di_path_prop_next(di_path_t path, di_path_prop_t prop)
usr/src/lib/libdevinfo/devinfo.c
2134
if (path == DI_PATH_NIL) {
usr/src/lib/libdevinfo/devinfo.c
2155
pa = (caddr_t)path - DI_PATH(path)->self;
usr/src/lib/libdevinfo/devinfo.c
2156
if (DI_PATH(path)->path_prop != 0) {
usr/src/lib/libdevinfo/devinfo.c
2157
return (DI_PATHPROP(pa + DI_PATH(path)->path_prop));
usr/src/lib/libdevinfo/devinfo.c
2280
di_path_prop_search(di_path_t path, const char *name, int type)
usr/src/lib/libdevinfo/devinfo.c
2287
if ((path == DI_PATH_NIL) || (name == NULL) || (strlen(name) == 0) ||
usr/src/lib/libdevinfo/devinfo.c
2293
while ((prop = di_path_prop_next(path, prop)) != DI_PROP_NIL) {
usr/src/lib/libdevinfo/devinfo.c
2312
di_path_prop_lookup_bytes(di_path_t path, const char *prop_name,
usr/src/lib/libdevinfo/devinfo.c
2317
if ((prop = di_path_prop_search(path, prop_name,
usr/src/lib/libdevinfo/devinfo.c
2325
di_path_prop_lookup_ints(di_path_t path, const char *prop_name,
usr/src/lib/libdevinfo/devinfo.c
2330
if ((prop = di_path_prop_search(path, prop_name,
usr/src/lib/libdevinfo/devinfo.c
2338
di_path_prop_lookup_int64s(di_path_t path, const char *prop_name,
usr/src/lib/libdevinfo/devinfo.c
2343
if ((prop = di_path_prop_search(path, prop_name,
usr/src/lib/libdevinfo/devinfo.c
2350
int di_path_prop_lookup_strings(di_path_t path, const char *prop_name,
usr/src/lib/libdevinfo/devinfo.c
2355
if ((prop = di_path_prop_search(path, prop_name,
usr/src/lib/libdevinfo/devinfo.c
3414
di_path_private_set(di_path_t path, void *data)
usr/src/lib/libdevinfo/devinfo.c
3416
DI_PATH(path)->user_private_data = (uintptr_t)data;
usr/src/lib/libdevinfo/devinfo.c
3420
di_path_private_get(di_path_t path)
usr/src/lib/libdevinfo/devinfo.c
3422
return ((void *)(uintptr_t)DI_PATH(path)->user_private_data);
usr/src/lib/libdevinfo/devinfo.c
3883
di_path_t path = DI_PATH_NIL;
usr/src/lib/libdevinfo/devinfo.c
3915
for (path = di_path_phci_next_path(phci_node, DI_PATH_NIL);
usr/src/lib/libdevinfo/devinfo.c
3916
path != DI_PATH_NIL;
usr/src/lib/libdevinfo/devinfo.c
3917
path = di_path_phci_next_path(phci_node, path)) {
usr/src/lib/libdevinfo/devinfo.c
3920
path_name = di_path_node_name(path);
usr/src/lib/libdevinfo/devinfo.c
3921
path_addr = di_path_bus_addr(path);
usr/src/lib/libdevinfo/devinfo.c
3932
return (path);
usr/src/lib/libdevinfo/devinfo.c
99
blocking_open(const char *path, int oflag)
usr/src/lib/libdevinfo/devinfo_devlink.c
1154
if (clp->path == NULL)
usr/src/lib/libdevinfo/devinfo_devlink.c
1157
hval = hashfn(hdp, clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
1168
clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
1183
if (strcmp(clp->path, link) == 0) {
usr/src/lib/libdevinfo/devinfo_devlink.c
1232
if ((cp = strrchr(clp->path, '/')) != NULL) {
usr/src/lib/libdevinfo/devinfo_devlink.c
1235
(void) snprintf(buf, sizeof (buf), "%s", clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
1253
(void) snprintf(link, sizeof (link), "%s/%s", hdp->dev_dir, clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
128
char path[PATH_MAX];
usr/src/lib/libdevinfo/devinfo_devlink.c
1312
clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
1332
free(cnp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
1367
free(clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
1376
minor_colon(const char *path)
usr/src/lib/libdevinfo/devinfo_devlink.c
1380
if ((cp = strrchr(path, '/')) == NULL) {
usr/src/lib/libdevinfo/devinfo_devlink.c
1456
lookup_node(struct di_devlink_handle *hdp, char *path, const int flags)
usr/src/lib/libdevinfo/devinfo_devlink.c
1460
if (tnd.node = get_last_node(hdp, path, flags))
usr/src/lib/libdevinfo/devinfo_devlink.c
1466
if (walk_tree(path, &tnd, visit_node) != 0)
usr/src/lib/libdevinfo/devinfo_devlink.c
1476
get_last_node(struct di_devlink_handle *hdp, const char *path, int flags)
usr/src/lib/libdevinfo/devinfo_devlink.c
1494
if (strcmp(cnp->path, path) == 0) {
usr/src/lib/libdevinfo/devinfo_devlink.c
1499
if (cnp && strcmp(cnp->path, path) == 0) {
usr/src/lib/libdevinfo/devinfo_devlink.c
151
get_db_path(hdp, DB_FILE, path, sizeof (path));
usr/src/lib/libdevinfo/devinfo_devlink.c
1529
strcmp(cmnp->node->path, devfs_path) == 0) {
usr/src/lib/libdevinfo/devinfo_devlink.c
1535
strcmp(cmnp->node->path, devfs_path) == 0) {
usr/src/lib/libdevinfo/devinfo_devlink.c
1567
int (*node_callback)(const char *path, void *arg))
usr/src/lib/libdevinfo/devinfo_devlink.c
1614
visit_node(const char *path, void *arg)
usr/src/lib/libdevinfo/devinfo_devlink.c
1625
if (strcmp(cnp->path, path) == 0)
usr/src/lib/libdevinfo/devinfo_devlink.c
1629
cnp = node_insert(tnp->handle, tnp->node, path,
usr/src/lib/libdevinfo/devinfo_devlink.c
1641
cp = get_string(tnp->handle, dnp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
1642
if (cp && strcmp(cp, path) == 0) {
usr/src/lib/libdevinfo/devinfo_devlink.c
1713
cnp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
1725
"%s: dangling node: %s\n", fcn, cnp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
1733
cnp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
1786
fcn, clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
1800
fcn, clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
1960
(void) snprintf(pdup, sizeof (pdup), "%s", clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
227
char path[PATH_MAX];
usr/src/lib/libdevinfo/devinfo_devlink.c
2271
vlink.rel_path = get_string(hdp, dlp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
2304
vlink.rel_path = get_string(hdp, dlp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
249
get_db_path(hdp, DB_FILE, path, sizeof (path));
usr/src/lib/libdevinfo/devinfo_devlink.c
2517
rel_path(struct di_devlink_handle *hdp, const char *path)
usr/src/lib/libdevinfo/devinfo_devlink.c
252
get_db_path(hdp, DB_TMP, path, sizeof (path));
usr/src/lib/libdevinfo/devinfo_devlink.c
2521
if (strncmp(path, hdp->dev_dir, len) != 0)
usr/src/lib/libdevinfo/devinfo_devlink.c
2524
if (path[len] == '\0')
usr/src/lib/libdevinfo/devinfo_devlink.c
2525
return (&path[len]);
usr/src/lib/libdevinfo/devinfo_devlink.c
2527
if (path[len] != '/')
usr/src/lib/libdevinfo/devinfo_devlink.c
2530
return (&path[len+1]);
usr/src/lib/libdevinfo/devinfo_devlink.c
259
(strncmp(path, "/dev/", 5) == 0) && !device_exists(path)) {
usr/src/lib/libdevinfo/devinfo_devlink.c
263
if ((fd = open(path, flg, DB_PERMS)) == -1) {
usr/src/lib/libdevinfo/devinfo_devlink.c
2665
const char *path,
usr/src/lib/libdevinfo/devinfo_devlink.c
2670
if (path == NULL) {
usr/src/lib/libdevinfo/devinfo_devlink.c
2681
if ((cnp->path = strdup(path)) == NULL) {
usr/src/lib/libdevinfo/devinfo_devlink.c
2690
assert(strcmp(path, "/") == 0);
usr/src/lib/libdevinfo/devinfo_devlink.c
2773
const char *path,
usr/src/lib/libdevinfo/devinfo_devlink.c
2779
if (path == NULL || content == NULL || !check_attr(attr)) {
usr/src/lib/libdevinfo/devinfo_devlink.c
2790
clp->path = strdup(path);
usr/src/lib/libdevinfo/devinfo_devlink.c
2792
if (clp->path == NULL || clp->content == NULL) {
usr/src/lib/libdevinfo/devinfo_devlink.c
2819
hval = hashfn(hdp, clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
301
path);
usr/src/lib/libdevinfo/devinfo_devlink.c
3010
count_string(cnp->path, count);
usr/src/lib/libdevinfo/devinfo_devlink.c
3046
count_string(clp->path, count);
usr/src/lib/libdevinfo/devinfo_devlink.c
306
path);
usr/src/lib/libdevinfo/devinfo_devlink.c
317
char dev_dir[PATH_MAX], path[PATH_MAX], db_dir[PATH_MAX];
usr/src/lib/libdevinfo/devinfo_devlink.c
3581
do_exec(const char *path, char *const argv[])
usr/src/lib/libdevinfo/devinfo_devlink.c
3587
devlink_dprintf(DBG_INFO, "Executing %s\n\tArgument list:", path);
usr/src/lib/libdevinfo/devinfo_devlink.c
3607
(void) execv(path, argv);
usr/src/lib/libdevinfo/devinfo_devlink.c
3649
clp ? clp->path : "<NULL>");
usr/src/lib/libdevinfo/devinfo_devlink.c
3661
assert(clp->path[0] != '/');
usr/src/lib/libdevinfo/devinfo_devlink.c
3663
vlink.rel_path = clp->path;
usr/src/lib/libdevinfo/devinfo_devlink.c
3670
"terminating at link: %s\n", clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
3697
assert(clp->path[0] != '/');
usr/src/lib/libdevinfo/devinfo_devlink.c
3699
vlink.rel_path = clp->path;
usr/src/lib/libdevinfo/devinfo_devlink.c
3706
clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
3728
walk_cache_node(di_devlink_handle_t hdp, const char *path, link_desc_t *linkp)
usr/src/lib/libdevinfo/devinfo_devlink.c
3733
assert(path);
usr/src/lib/libdevinfo/devinfo_devlink.c
3735
if ((cnp = lookup_node(hdp, (char *)path, TYPE_CACHE)) == NULL) {
usr/src/lib/libdevinfo/devinfo_devlink.c
3736
devlink_dprintf(DBG_ERR, "lookup node failed: %s\n", path);
usr/src/lib/libdevinfo/devinfo_devlink.c
3769
const char *path,
usr/src/lib/libdevinfo/devinfo_devlink.c
3777
if (hdp == NULL || path == NULL || !link_flag(flags) ||
usr/src/lib/libdevinfo/devinfo_devlink.c
3793
if (minor_colon(path) == NULL) {
usr/src/lib/libdevinfo/devinfo_devlink.c
3794
walk_cache_node(hdp, path, &linkd);
usr/src/lib/libdevinfo/devinfo_devlink.c
3796
walk_cache_minor(hdp, path, &linkd);
usr/src/lib/libdevinfo/devinfo_devlink.c
459
get_db_path(&proto, DB_FILE, path, sizeof (path));
usr/src/lib/libdevinfo/devinfo_devlink.c
460
(void) unlink(path);
usr/src/lib/libdevinfo/devinfo_devlink.c
546
char *path;
usr/src/lib/libdevinfo/devinfo_devlink.c
565
path = get_string(hdp, dnp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
570
cnp = node_insert(hdp, pcnp, path, INSERT_HEAD);
usr/src/lib/libdevinfo/devinfo_devlink.c
576
assert(strcmp(path, "/") ^ (nidx == DB_HDR(hdp)->root_idx));
usr/src/lib/libdevinfo/devinfo_devlink.c
577
assert(strcmp(path, "/") != 0 || dnp->sib == DB_NIL);
usr/src/lib/libdevinfo/devinfo_devlink.c
585
fcn, nidx, cnp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
638
char *path, *content;
usr/src/lib/libdevinfo/devinfo_devlink.c
652
path = get_string(hdp, dlp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
655
clp = link_insert(hdp, pcmp, path, content, dlp->attr);
usr/src/lib/libdevinfo/devinfo_devlink.c
662
nidx, clp->path, pcmp == NULL ? "(DANGLING)" : "");
usr/src/lib/libdevinfo/devinfo_devlink.c
817
assert(cnp->path != NULL);
usr/src/lib/libdevinfo/devinfo_devlink.c
822
"%s: invalid parent for: %s\n", fcn, cnp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
827
assert((strcmp(cnp->path, "/") != 0) ^
usr/src/lib/libdevinfo/devinfo_devlink.c
836
dnp->path = write_string(hdp, cnp->path, next);
usr/src/lib/libdevinfo/devinfo_devlink.c
837
if (dnp->path == DB_NIL) {
usr/src/lib/libdevinfo/devinfo_devlink.c
853
cnp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
942
assert(clp->path != NULL);
usr/src/lib/libdevinfo/devinfo_devlink.c
946
"%s: invalid minor for link(%s)\n", fcn, clp->path);
usr/src/lib/libdevinfo/devinfo_devlink.c
957
dlp->path = write_string(hdp, clp->path, next);
usr/src/lib/libdevinfo/devinfo_devlink.c
959
if (dlp->path == DB_NIL || dlp->content == DB_NIL) {
usr/src/lib/libdevinfo/devinfo_devlink.c
960
dlp->path = dlp->content = DB_NIL;
usr/src/lib/libdevinfo/devinfo_devlink.c
979
fcn, idx, clp->path, pdmp == NULL ? "(DANGLING)" : "");
usr/src/lib/libdevinfo/devinfo_devlink.h
100
char *path; /* link path */
usr/src/lib/libdevinfo/devinfo_devlink.h
117
char *path; /* path */
usr/src/lib/libdevinfo/devinfo_devlink.h
304
cache_node_t *pcnp, const char *path, int insert);
usr/src/lib/libdevinfo/devinfo_devlink.h
309
cache_minor_t *mnp, const char *path, const char *content, uint32_t attr);
usr/src/lib/libdevinfo/devinfo_devlink.h
335
static int visit_node(const char *path, void *arg);
usr/src/lib/libdevinfo/devinfo_devlink.h
337
int (*node_callback)(const char *path, void *arg));
usr/src/lib/libdevinfo/devinfo_devlink.h
338
static void *lookup_node(struct di_devlink_handle *hdp, char *path,
usr/src/lib/libdevinfo/devinfo_devlink.h
393
static void *get_last_node(struct di_devlink_handle *hdp, const char *path,
usr/src/lib/libdevinfo/devinfo_devlink.h
403
static char *minor_colon(const char *path);
usr/src/lib/libdevinfo/devinfo_devlink.h
404
static const char *rel_path(struct di_devlink_handle *hdp, const char *path);
usr/src/lib/libdevinfo/devinfo_devlink.h
418
static int do_exec(const char *path, char *const argv[]);
usr/src/lib/libdevinfo/devinfo_devlink.h
423
char *s_realpath(const char *path, char *resolved_path);
usr/src/lib/libdevinfo/devinfo_devlink.h
60
uint32_t path; /* link path */
usr/src/lib/libdevinfo/devinfo_devlink.h
73
uint32_t path; /* node path */
usr/src/lib/libdevinfo/devinfo_devperm.c
335
check_driver_match(char *path, char *line)
usr/src/lib/libdevinfo/devinfo_devperm.c
342
if (devfs_resolve_link(path, &devfs_path) == 0) {
usr/src/lib/libdevinfo/devinfo_devperm.c
429
dir_dev_acc(char *path, char *left_to_do, uid_t uid, gid_t gid, mode_t mode,
usr/src/lib/libdevinfo/devinfo_devperm.c
450
if (!device_exists(path)) {
usr/src/lib/libdevinfo/devinfo_devperm.c
453
if (stat(path, &stat_buf) == -1) {
usr/src/lib/libdevinfo/devinfo_devperm.c
463
"failed to stat %s: %s\n", path,
usr/src/lib/libdevinfo/devinfo_devperm.c
472
if (check_driver_match(path, line) == 0) {
usr/src/lib/libdevinfo/devinfo_devperm.c
485
if (setdevaccess(path,
usr/src/lib/libdevinfo/devinfo_devperm.c
496
if (finddev_readdir(path, &handle) != 0)
usr/src/lib/libdevinfo/devinfo_devperm.c
538
if (strcmp(path, "/") == 0) {
usr/src/lib/libdevinfo/devinfo_devperm.c
540
MAXPATHLEN, "%s%s", path, name);
usr/src/lib/libdevinfo/devinfo_devperm.c
543
MAXPATHLEN, "%s/%s", path, name);
usr/src/lib/libdevinfo/devinfo_dli.c
131
di_dli_openr(char *path)
usr/src/lib/libdevinfo/devinfo_dli.c
133
return (di_dli_open(path, O_RDONLY, F_RDLCK, DLI_NAME));
usr/src/lib/libdevinfo/devinfo_dli.c
138
di_dli_openw(char *path)
usr/src/lib/libdevinfo/devinfo_dli.c
140
return (di_dli_open(path, O_RDWR | O_SYNC | O_TRUNC | O_CREAT,
usr/src/lib/libdevinfo/devinfo_dli.c
61
di_dli_name(char *path)
usr/src/lib/libdevinfo/devinfo_dli.c
70
basep = basename(path);
usr/src/lib/libdevinfo/devinfo_dli.c
86
di_dli_open(char *path, int oflag, short l_type, int flags)
usr/src/lib/libdevinfo/devinfo_dli.c
94
dlipath = (flags & DLI_NAME) ? di_dli_name(path) : (char *)path;
usr/src/lib/libdevinfo/devinfo_finddev.c
106
if ((dir = opendir(path)) == NULL)
usr/src/lib/libdevinfo/devinfo_finddev.c
176
finddev_readdir_devfs(const char *path, finddevhdl_t *handlep)
usr/src/lib/libdevinfo/devinfo_finddev.c
195
rv = modctl(MODDEVREADDIR, path, strlen(path), NULL, &bufsiz);
usr/src/lib/libdevinfo/devinfo_finddev.c
208
rv = modctl(MODDEVREADDIR, path, strlen(path),
usr/src/lib/libdevinfo/devinfo_finddev.c
249
finddev_readdir(const char *path, finddevhdl_t *handlep)
usr/src/lib/libdevinfo/devinfo_finddev.c
251
if (GLOBAL_DEV_PATH(path)) {
usr/src/lib/libdevinfo/devinfo_finddev.c
252
return (finddev_readdir_devfs(path, handlep));
usr/src/lib/libdevinfo/devinfo_finddev.c
254
return (finddev_readdir_alt(path, handlep));
usr/src/lib/libdevinfo/devinfo_finddev.c
263
finddev_emptydir_alt(const char *path)
usr/src/lib/libdevinfo/devinfo_finddev.c
268
if ((dir = opendir(path)) == NULL)
usr/src/lib/libdevinfo/devinfo_finddev.c
295
finddev_emptydir_devfs(const char *path)
usr/src/lib/libdevinfo/devinfo_finddev.c
300
rv = modctl(MODDEVEMPTYDIR, path, strlen(path), &empty);
usr/src/lib/libdevinfo/devinfo_finddev.c
308
finddev_emptydir(const char *path)
usr/src/lib/libdevinfo/devinfo_finddev.c
310
if (GLOBAL_DEV_PATH(path)) {
usr/src/lib/libdevinfo/devinfo_finddev.c
311
return (finddev_emptydir_devfs(path));
usr/src/lib/libdevinfo/devinfo_finddev.c
313
return (finddev_emptydir_alt(path));
usr/src/lib/libdevinfo/devinfo_finddev.c
334
const char *path = NULL;
usr/src/lib/libdevinfo/devinfo_finddev.c
337
path = handle->paths[handle->curpath];
usr/src/lib/libdevinfo/devinfo_finddev.c
340
return (path);
usr/src/lib/libdevinfo/devinfo_finddev.c
98
finddev_readdir_alt(const char *path, finddevhdl_t *handlep)
usr/src/lib/libdevinfo/devinfo_realpath.c
103
left_len = strlcpy(left, path, sizeof (left));
usr/src/lib/libdevinfo/devinfo_realpath.c
79
s_realpath(const char *path, char *resolved)
usr/src/lib/libdevinfo/devinfo_realpath.c
90
if (path[0] == '/') {
usr/src/lib/libdevinfo/devinfo_realpath.c
93
if (path[1] == '\0')
usr/src/lib/libdevinfo/devinfo_realpath.c
96
left_len = strlcpy(left, path + 1, sizeof (left));
usr/src/lib/libdevinfo/devinfo_retire.c
227
char *path;
usr/src/lib/libdevinfo/devinfo_retire.c
231
path = di_devfs_path(node);
usr/src/lib/libdevinfo/devinfo_retire.c
232
if (path == NULL) {
usr/src/lib/libdevinfo/devinfo_retire.c
243
path);
usr/src/lib/libdevinfo/devinfo_retire.c
247
path);
usr/src/lib/libdevinfo/devinfo_retire.c
251
di_devfs_path_free(path);
usr/src/lib/libdevinfo/devinfo_retire.c
263
char *path;
usr/src/lib/libdevinfo/devinfo_retire.c
269
path = di_devfs_path(node);
usr/src/lib/libdevinfo/devinfo_retire.c
270
if (strncmp(path, "/pseudo/", strlen("/pseudo/")) == 0 ||
usr/src/lib/libdevinfo/devinfo_retire.c
271
strcmp(path, "/pseudo") == 0) {
usr/src/lib/libdevinfo/devinfo_retire.c
274
path);
usr/src/lib/libdevinfo/devinfo_retire.c
276
di_devfs_path_free(path);
usr/src/lib/libdevinfo/devinfo_retire.c
279
di_devfs_path_free(path);
usr/src/lib/libdevinfo/devinfo_retire.c
485
char *path;
usr/src/lib/libdevinfo/devinfo_retire.c
505
path = di_devfs_path(node);
usr/src/lib/libdevinfo/devinfo_retire.c
506
if (path == NULL) {
usr/src/lib/libdevinfo/devinfo_retire.c
513
(void) strlcpy(rpt->rpt_path, path, sizeof (rpt->rpt_path));
usr/src/lib/libdevinfo/devinfo_retire.c
515
di_devfs_path_free(path);
usr/src/lib/libdevinfo/devinfo_retire.c
519
"failed: error: %s: %s\n", strerror(errno), path);
usr/src/lib/libdevinfo/devinfo_retire.c
674
char path[PATH_MAX];
usr/src/lib/libdevinfo/devinfo_retire.c
767
(void) snprintf(path, sizeof (path), "/devices%s", devpath);
usr/src/lib/libdevinfo/devinfo_retire.c
768
if (stat(path, &sb) == -1 || !S_ISDIR(sb.st_mode)) {
usr/src/lib/libdevinfo/libdevinfo.h
196
extern di_node_t di_path_phci_node(di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
197
extern di_node_t di_path_client_node(di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
199
extern char *di_path_node_name(di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
200
extern char *di_path_bus_addr(di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
201
extern int di_path_instance(di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
202
extern di_path_state_t di_path_state(di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
203
extern uint_t di_path_flags(di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
205
extern char *di_path_devfs_path(di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
206
extern char *di_path_client_devfs_path(di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
208
extern void di_path_private_set(di_path_t path, void *data);
usr/src/lib/libdevinfo/libdevinfo.h
209
extern void *di_path_private_get(di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
279
extern di_path_prop_t di_path_prop_next(di_path_t path, di_path_prop_t prop);
usr/src/lib/libdevinfo/libdevinfo.h
294
extern int di_path_prop_lookup_bytes(di_path_t path,
usr/src/lib/libdevinfo/libdevinfo.h
296
extern int di_path_prop_lookup_ints(di_path_t path,
usr/src/lib/libdevinfo/libdevinfo.h
298
extern int di_path_prop_lookup_int64s(di_path_t path,
usr/src/lib/libdevinfo/libdevinfo.h
300
extern int di_path_prop_lookup_strings(di_path_t path,
usr/src/lib/libdevinfo/libdevinfo.h
392
extern char *di_path_addr(di_path_t path, char *buf);
usr/src/lib/libdevinfo/libdevinfo.h
393
extern di_path_t di_path_next(di_node_t node, di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
394
extern di_path_t di_path_next_phci(di_node_t node, di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
395
extern di_path_t di_path_next_client(di_node_t node, di_path_t path);
usr/src/lib/libdevinfo/libdevinfo.h
475
const char *path, uint_t flags, void *arg,
usr/src/lib/libdevinfo/libdevinfo.h
487
extern int di_retire_device(char *path, di_retire_t *dp, int flags);
usr/src/lib/libdevinfo/libdevinfo.h
488
extern int di_unretire_device(char *path, di_retire_t *dp);
usr/src/lib/libdevinfo/libdevinfo.h
501
extern di_path_t di_lookup_path(di_node_t root, char *path);
usr/src/lib/libdevinfo/libdevinfo.h
502
extern di_node_t di_lookup_node(di_node_t root, char *path);
usr/src/lib/libdiskmgt/common/cache.c
1000
descp->p.path = pp[i];
usr/src/lib/libdiskmgt/common/cache.c
1008
descp->p.path = NULL;
usr/src/lib/libdiskmgt/common/cache.c
998
if (libdiskmgt_str_eq(descp->p.path->name,
usr/src/lib/libdiskmgt/common/disks_private.h
125
path_t *path;
usr/src/lib/libdiskmgt/common/disks_private.h
73
struct path *next;
usr/src/lib/libdiskmgt/common/disks_private.h
92
struct path **paths;
usr/src/lib/libdiskmgt/common/findevs.c
112
static void get_disk_name_from_path(char *path, char *name,
usr/src/lib/libdiskmgt/common/findevs.c
1199
get_disk_name_from_path(char *path, char *name, int size)
usr/src/lib/libdiskmgt/common/findevs.c
1204
basep = strrchr(path, '/');
usr/src/lib/libdiskmgt/common/findevs.c
1206
basep = path;
usr/src/lib/libdiskmgt/common/inuse_fs.c
197
char path[MAXPATHLEN];
usr/src/lib/libdiskmgt/common/inuse_fs.c
217
(void) snprintf(path, sizeof (path), "/usr/lib/fs/%s",
usr/src/lib/libdiskmgt/common/inuse_fs.c
220
if (stat(path, &buf) != 0 || !S_ISDIR(buf.st_mode)) {
usr/src/lib/libdiskmgt/common/inuse_fs.c
224
if ((subdirp = opendir(path)) != NULL) {
usr/src/lib/libdiskmgt/common/inuse_lu.c
306
run_cmd(char *path, char *cmd, char *arg, int fd)
usr/src/lib/libdiskmgt/common/inuse_lu.c
320
(void) execl(path, cmd, "-X", arg, NULL);
usr/src/lib/libdiskmgt/common/inuse_lu.c
68
static int run_cmd(char *path, char *cmd, char *arg, int fd);
usr/src/lib/libdiskmgt/common/path.c
101
descriptor_t *path = NULL;
usr/src/lib/libdiskmgt/common/path.c
109
if (libdiskmgt_str_eq(name, paths[i]->p.path->name)) {
usr/src/lib/libdiskmgt/common/path.c
110
path = paths[i];
usr/src/lib/libdiskmgt/common/path.c
118
if (path == NULL) {
usr/src/lib/libdiskmgt/common/path.c
122
return (path);
usr/src/lib/libdiskmgt/common/path.c
135
return (desc->p.path->name);
usr/src/lib/libdiskmgt/common/path.c
191
pp = dp->p.path;
usr/src/lib/libdiskmgt/common/path.c
229
pp = dp->p.path;
usr/src/lib/libdiskmgt/common/path.c
253
pp = desc->p.path;
usr/src/lib/libdiskmgt/common/path.c
287
pp = desc->p.path;
usr/src/lib/libdiskmgt/common/path.c
61
pp = dp->p.path;
usr/src/lib/libdiskmgt/common/slice.c
731
char path[MAXPATHLEN];
usr/src/lib/libdiskmgt/common/slice.c
733
slice_rdsk2dsk(devp->devpath, path, sizeof (path));
usr/src/lib/libdiskmgt/common/slice.c
734
if (libdiskmgt_str_eq(path, name)) {
usr/src/lib/libdladm/common/linkprop.c
1786
char path[MAXPATHLEN];
usr/src/lib/libdladm/common/linkprop.c
1795
if (i_dladm_get_zone_dev(zone_name, path, sizeof (path)) != 0)
usr/src/lib/libdladm/common/linkprop.c
1797
if (di_prof_init(path, &prof) != 0)
usr/src/lib/libdlpi/common/libdlpi.c
1045
char path[MAXPATHLEN];
usr/src/lib/libdlpi/common/libdlpi.c
1054
(void) snprintf(path, sizeof (path), "/dev/ipnet/%s", provider);
usr/src/lib/libdlpi/common/libdlpi.c
1055
if ((*fd = open(path, oflags)) != -1)
usr/src/lib/libdlpi/common/libdlpi.c
1073
(void) snprintf(path, sizeof (path), "/dev/net/%s", provider);
usr/src/lib/libdlpi/common/libdlpi.c
1074
if ((*fd = open(path, oflags)) != -1)
usr/src/lib/libdlpi/common/libdlpi.c
1117
(void) snprintf(path, sizeof (path), "/dev/%s", provider);
usr/src/lib/libdlpi/common/libdlpi.c
1118
if ((*fd = open(path, oflags)) != -1)
usr/src/lib/libdtrace/common/dt_cc.c
2148
dt_load_libs_dir(dtrace_hdl_t *dtp, const char *path)
usr/src/lib/libdtrace/common/dt_cc.c
2159
if ((dirp = opendir(path)) == NULL) {
usr/src/lib/libdtrace/common/dt_cc.c
2160
dt_dprintf("skipping lib dir %s: %s\n", path, strerror(errno));
usr/src/lib/libdtrace/common/dt_cc.c
2170
"%s/%s", path, dp->d_name);
usr/src/lib/libdtrace/common/dt_open.c
743
char path[PATH_MAX];
usr/src/lib/libdtrace/common/dt_open.c
769
(void) snprintf(path, sizeof (path), "%s/%s",
usr/src/lib/libdtrace/common/dt_open.c
772
if ((fd = open(path, O_RDONLY)) == -1)
usr/src/lib/libdtrace/common/dt_options.c
473
char *path;
usr/src/lib/libdtrace/common/dt_options.c
478
if ((path = strdup(arg)) == NULL)
usr/src/lib/libdtrace/common/dt_options.c
482
dp->dir_path = path;
usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/LocalConsumer.java
92
private native Program.File _compileFile(String path, String[] args)
usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/Utility.java
63
String path = System.getProperty("java.library.path");
usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/Utility.java
64
path = path + ":/usr/lib/64"; /* Java bug 6254947 */
usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/Utility.java
65
String[] paths = path.split(":");
usr/src/lib/libdwarf/common/dwarf_elf_access.c
109
const char * path;
usr/src/lib/libdwarf/common/dwarf_elf_load_headers.c
171
dwarf_construct_elf_access_path(const char *path,
usr/src/lib/libdwarf/common/dwarf_elf_load_headers.c
178
fd = open(path, O_RDONLY|O_BINARY);
usr/src/lib/libdwarf/common/dwarf_elf_load_headers.c
184
path,&mymp,errcode);
usr/src/lib/libdwarf/common/dwarf_elf_load_headers.c
198
const char *path,
usr/src/lib/libdwarf/common/dwarf_elf_load_headers.c
230
mfp->f_path = strdup(path);
usr/src/lib/libdwarf/common/dwarf_elfread.h
232
const char *path,
usr/src/lib/libdwarf/common/dwarf_generic_init.c
127
int dwarf_init_path(const char *path,
usr/src/lib/libdwarf/common/dwarf_generic_init.c
153
res = dwarf_object_detector_path(path,
usr/src/lib/libdwarf/common/dwarf_generic_init.c
167
file_path = (char *)path;
usr/src/lib/libdwarf/common/dwarf_generic_init.c
168
fd = open_a_file(path);
usr/src/lib/libdwarf/common/dwarf_macho_loader.h
1183
union lc_str path; /* path to add to run path */
usr/src/lib/libdwarf/common/dwarf_object_detector.c
533
dwarf_object_detector_path(const char *path,
usr/src/lib/libdwarf/common/dwarf_object_detector.c
542
size_t plen = strlen(path);
usr/src/lib/libdwarf/common/dwarf_object_detector.c
560
cp = dw_stpcpy(outpath,path);
usr/src/lib/libdwarf/common/dwarf_object_detector.c
562
dw_stpcpy(cp,getbasename(path));
usr/src/lib/libdwarf/common/dwarf_object_detector.c
566
fd = open(path,O_RDONLY|O_BINARY);
usr/src/lib/libdwarf/common/dwarf_object_detector.c
567
dw_stpcpy(outpath,path);
usr/src/lib/libdwarf/common/dwarf_object_detector.c
570
fd = open(path,O_RDONLY|O_BINARY);
usr/src/lib/libdwarf/common/dwarf_object_detector.h
89
int dwarf_object_detector_path(const char *path,
usr/src/lib/libdwarf/common/dwarf_opaque.h
960
char *path,
usr/src/lib/libdwarf/common/dwarf_original_elf_init.c
156
UNUSEDARG char *path,
usr/src/lib/libdwarf/common/dwarf_original_elf_init.c
168
UNUSEDARG char *path,
usr/src/lib/libdwarf/common/libdwarf.h
5437
int dwarf_object_detector_path(const char *path,
usr/src/lib/libelfsign/common/libelfsign.h
127
extern ELFsign_status_t elfsign_setcertpath(ELFsign_t ess, const char *path);
usr/src/lib/libelfsign/common/libelfsign.h
171
const char *path);
usr/src/lib/libfru/include/libfrup.h
47
typedef void (*end_node_fp_t)(fru_nodehdl_t node, const char *path,
usr/src/lib/libfru/include/libfrup.h
59
const char *path,
usr/src/lib/libfru/include/libfrup.h
65
extern int fru_pathmatch(const char *path, const char *searchpath);
usr/src/lib/libfru/libfru/Ancestor.cc
203
Str path = "/";
usr/src/lib/libfru/libfru/Ancestor.cc
204
path << def->name;
usr/src/lib/libfru/libfru/Ancestor.cc
206
offset, rc, path);
usr/src/lib/libfru/libfru/Ancestor.cc
226
Str path)
usr/src/lib/libfru/libfru/Ancestor.cc
232
Str tmp = path;
usr/src/lib/libfru/libfru/Ancestor.cc
239
path << "/";
usr/src/lib/libfru/libfru/Ancestor.cc
240
ant->addInstance(path.peak(), offset);
usr/src/lib/libfru/libfru/Ancestor.cc
251
Str newPath = path;
usr/src/lib/libfru/libfru/Ancestor.cc
82
Ancestor::addInstance(const char *path, uint32_t offset)
usr/src/lib/libfru/libfru/Ancestor.cc
94
paths[numInstances++] = strdup(path);
usr/src/lib/libfru/libfru/Ancestor.h
49
void addInstance(const char *path, uint32_t offset);
usr/src/lib/libfru/libfru/Ancestor.h
88
Str path);
usr/src/lib/libfru/libfru/Parser.cc
49
fru_field_parser(const char *path, Ancestor **ancestors,
usr/src/lib/libfru/libfru/Parser.cc
56
gParserString = strdup(path);
usr/src/lib/libfru/libfru/Parser.h
58
fru_errno_t fru_field_parser(const char *path, Ancestor **ancestors,
usr/src/lib/libfru/libfru/PayloadReader.cc
158
PathDef *path, int *rcIterThere,
usr/src/lib/libfru/libfru/PayloadReader.cc
172
if (path->iterIndex == PathDef::addIteration) {
usr/src/lib/libfru/libfru/PayloadReader.cc
178
if (iterPoss != path->def->iterationCount) {
usr/src/lib/libfru/libfru/PayloadReader.cc
191
if ((path->iterIndex != PathDef::addIteration) &&
usr/src/lib/libfru/libfru/PayloadReader.cc
192
(path->iterIndex != PathDef::lastIteration) &&
usr/src/lib/libfru/libfru/PayloadReader.cc
193
(path->iterIndex >= iterThere)) {
usr/src/lib/libfru/libfru/PayloadReader.cc
199
int length = ((path->def->payloadLen - ITER_CONT_BYTE_LEN)
usr/src/lib/libfru/libfru/PayloadReader.cc
200
/path->def->iterationCount);
usr/src/lib/libfru/libfru/PayloadReader.cc
202
rc = calcOffset(path->def->iterationType,
usr/src/lib/libfru/libfru/PayloadReader.cc
204
length, path->iterIndex, err);
usr/src/lib/libfru/libfru/PayloadReader.cc
218
PayloadReader::readRecurse(PathDef *path,
usr/src/lib/libfru/libfru/PayloadReader.cc
226
if (path->next == NULL) {
usr/src/lib/libfru/libfru/PayloadReader.cc
234
if (IS_ITERATED(path)) {
usr/src/lib/libfru/libfru/PayloadReader.cc
236
calc_data_len = (path->def->payloadLen
usr/src/lib/libfru/libfru/PayloadReader.cc
238
path->def->iterationCount;
usr/src/lib/libfru/libfru/PayloadReader.cc
240
offset = getIterationOffset(cur, curLen, path,
usr/src/lib/libfru/libfru/PayloadReader.cc
257
calc_data_len = path->def->payloadLen;
usr/src/lib/libfru/libfru/PayloadReader.cc
263
if (path->def->dataType == FDTYPE_Record) {
usr/src/lib/libfru/libfru/PayloadReader.cc
268
if (path->def->dataType == FDTYPE_Binary) {
usr/src/lib/libfru/libfru/PayloadReader.cc
274
int bitLength = path->def->dataLength;
usr/src/lib/libfru/libfru/PayloadReader.cc
276
if (IS_ITERATED(path)) {
usr/src/lib/libfru/libfru/PayloadReader.cc
278
path->def->iterationCount;
usr/src/lib/libfru/libfru/PayloadReader.cc
289
} else if (path->def->dataType == FDTYPE_Enumeration) {
usr/src/lib/libfru/libfru/PayloadReader.cc
318
if (IS_ITERATED(path)) {
usr/src/lib/libfru/libfru/PayloadReader.cc
322
path, NULL, &rc, NORMAL_READ);
usr/src/lib/libfru/libfru/PayloadReader.cc
327
newOffset += getOffsetIntoRecord(path->def, path->next->def);
usr/src/lib/libfru/libfru/PayloadReader.cc
328
newLength = path->next->def->payloadLen;
usr/src/lib/libfru/libfru/PayloadReader.cc
330
return (readRecurse(path->next, &(cur[newOffset]), newLength,
usr/src/lib/libfru/libfru/PayloadReader.cc
337
PayloadReader::readData(PathDef *path, Ancestor *curDef,
usr/src/lib/libfru/libfru/PayloadReader.cc
343
return (readRecurse(path, &(payload[offset]), payloadLen-offset,
usr/src/lib/libfru/libfru/PayloadReader.cc
349
PayloadReader::findIterThere(PathDef *path, Ancestor *curDef,
usr/src/lib/libfru/libfru/PayloadReader.cc
356
fru_errno_t err = readRecurse(path, &(payload[offset]),
usr/src/lib/libfru/libfru/PayloadReader.cc
370
update_iter_cont_bytes(PathDef *path, uint8_t *cur, size_t curLen)
usr/src/lib/libfru/libfru/PayloadReader.cc
379
if (numPoss != path->def->iterationCount) {
usr/src/lib/libfru/libfru/PayloadReader.cc
388
switch (path->def->iterationType) {
usr/src/lib/libfru/libfru/PayloadReader.cc
430
PayloadReader::updateRecurse(PathDef *path,
usr/src/lib/libfru/libfru/PayloadReader.cc
436
if (path->next == NULL) {
usr/src/lib/libfru/libfru/PayloadReader.cc
441
if (IS_ITERATED(path) &&
usr/src/lib/libfru/libfru/PayloadReader.cc
442
(path->iterIndex == PathDef::addIteration)) {
usr/src/lib/libfru/libfru/PayloadReader.cc
443
return (update_iter_cont_bytes(path, cur, curLen));
usr/src/lib/libfru/libfru/PayloadReader.cc
446
if (path->def->dataType == FDTYPE_Record) {
usr/src/lib/libfru/libfru/PayloadReader.cc
454
if (IS_ITERATED(path)) {
usr/src/lib/libfru/libfru/PayloadReader.cc
456
calcLen = (path->def->payloadLen-ITER_CONT_BYTE_LEN)/
usr/src/lib/libfru/libfru/PayloadReader.cc
457
path->def->iterationCount;
usr/src/lib/libfru/libfru/PayloadReader.cc
460
path, &dummy, &rc, NORMAL_READ);
usr/src/lib/libfru/libfru/PayloadReader.cc
464
calcLen = path->def->payloadLen;
usr/src/lib/libfru/libfru/PayloadReader.cc
470
if (path->def->dataType == FDTYPE_Binary) {
usr/src/lib/libfru/libfru/PayloadReader.cc
471
int bitLength = path->def->dataLength;
usr/src/lib/libfru/libfru/PayloadReader.cc
473
if (path->def->iterationType != FRU_NOT_ITERATED) {
usr/src/lib/libfru/libfru/PayloadReader.cc
475
path->def->iterationCount;
usr/src/lib/libfru/libfru/PayloadReader.cc
482
} else if (path->def->dataType == FDTYPE_Enumeration) {
usr/src/lib/libfru/libfru/PayloadReader.cc
497
if (path->def->iterationType != FRU_NOT_ITERATED) {
usr/src/lib/libfru/libfru/PayloadReader.cc
500
newOffset = getIterationOffset(cur, curLen, path,
usr/src/lib/libfru/libfru/PayloadReader.cc
505
newOffset += getOffsetIntoRecord(path->def, path->next->def);
usr/src/lib/libfru/libfru/PayloadReader.cc
506
newLength = path->next->def->payloadLen;
usr/src/lib/libfru/libfru/PayloadReader.cc
508
return (updateRecurse(path->next, &(cur[newOffset]), newLength,
usr/src/lib/libfru/libfru/PayloadReader.cc
515
PayloadReader::updateData(PathDef *path, Ancestor *ancestorDef,
usr/src/lib/libfru/libfru/PayloadReader.cc
522
PathDef *prev = path;
usr/src/lib/libfru/libfru/PayloadReader.cc
523
PathDef *cur = path;
usr/src/lib/libfru/libfru/PayloadReader.cc
552
return (updateRecurse(path, &(payload[offset]), payloadLen-offset,
usr/src/lib/libfru/libfru/PayloadReader.h
46
static fru_errno_t readData(PathDef *path, Ancestor *curDef,
usr/src/lib/libfru/libfru/PayloadReader.h
52
static fru_errno_t updateData(PathDef *path, Ancestor *curDef,
usr/src/lib/libfru/libfru/PayloadReader.h
58
static fru_errno_t findIterThere(PathDef *path, Ancestor *curDef,
usr/src/lib/libfru/libfru/PayloadReader.h
65
PathDef *path, int *rcIterThere,
usr/src/lib/libfru/libfru/PayloadReader.h
74
static fru_errno_t readRecurse(PathDef *path,
usr/src/lib/libfru/libfru/PayloadReader.h
79
static fru_errno_t updateRecurse(PathDef *path,
usr/src/lib/libfru/libfru/libfru.cc
653
const char *path,
usr/src/lib/libfru/libfru/libfru.cc
661
char *name = NULL, *path;
usr/src/lib/libfru/libfru/libfru.cc
679
path = (char *)alloca(prior_length + sizeof ("/") + strlen(name));
usr/src/lib/libfru/libfru/libfru.cc
680
(void) sprintf(path, "%s/%s", prior_path, name);
usr/src/lib/libfru/libfru/libfru.cc
682
name = path + prior_length + 1;
usr/src/lib/libfru/libfru/libfru.cc
687
if ((status = process_node(node, path, name, args,
usr/src/lib/libfru/libfru/libfru.cc
690
if (end_node) end_node(node, path, name, end_args);
usr/src/lib/libfru/libfru/libfru.cc
697
status = fru_walk_tree(next, path, process_node, args);
usr/src/lib/libfru/libfru/libfru.cc
702
if (end_node) end_node(node, path, name, end_args);
usr/src/lib/libfru/libfru/libfru.cc
723
fru_pathmatch(const char *path, const char *searchpath)
usr/src/lib/libfru/libfru/libfru.cc
727
if (((match = strstr(path, searchpath)) != NULL) &&
usr/src/lib/libfru/libfru/libfru.cc
728
((match + strlen(searchpath)) == (path + strlen(path))) &&
usr/src/lib/libfru/libfru/libfru.cc
729
((match == path) || (*(match - 1) == '/')))
usr/src/lib/libfru/libfru/libfru.cc
76
#define IS_UNKNOWN_PATH(path) \
usr/src/lib/libfru/libfru/libfru.cc
77
((strcmp(path, "/UNKNOWN") == 0) || (strcmp(path, "UNKNOWN") == 0))
usr/src/lib/libfru/libnvfru/nvfru.c
101
(void) nvlist_add_uint8(nv, path,
usr/src/lib/libfru/libnvfru/nvfru.c
105
(void) nvlist_add_uint16(nv, path,
usr/src/lib/libfru/libnvfru/nvfru.c
109
(void) nvlist_add_uint32(nv, path,
usr/src/lib/libfru/libnvfru/nvfru.c
113
(void) nvlist_add_uint64(nv, path, value);
usr/src/lib/libfru/libnvfru/nvfru.c
119
(void) nvlist_add_string(nv, path, (char *)field);
usr/src/lib/libfru/libnvfru/nvfru.c
129
(void) nvlist_add_string(nv, path,
usr/src/lib/libfru/libnvfru/nvfru.c
137
(void) nvlist_add_byte_array(nv, path, (uchar_t *)field,
usr/src/lib/libfru/libnvfru/nvfru.c
148
char *path;
usr/src/lib/libfru/libnvfru/nvfru.c
153
path = ppath;
usr/src/lib/libfru/libnvfru/nvfru.c
155
path = (char *)def->name;
usr/src/lib/libfru/libnvfru/nvfru.c
200
(void) nvlist_add_nvlist_array(nv, path, nv_elems, num);
usr/src/lib/libfru/libnvfru/nvfru.c
222
(void) nvlist_add_nvlist(nv, path, nv_record);
usr/src/lib/libfru/libnvfru/nvfru.c
225
convert_field(data, def, path, nv);
usr/src/lib/libfru/libnvfru/nvfru.c
60
convert_field(const uint8_t *field, const fru_regdef_t *def, const char *path,
usr/src/lib/libfru/libnvfru/nvfru.c
85
(void) nvlist_add_string(nv, path, timestring);
usr/src/lib/libfsmgt/common/fs_dfstab.c
137
if (headp->path != NULL) {
usr/src/lib/libfsmgt/common/fs_dfstab.c
138
free(headp->path);
usr/src/lib/libfsmgt/common/fs_dfstab.c
183
sprintf(tempstr, "%s\n", new_entry->path);
usr/src/lib/libfsmgt/common/fs_dfstab.c
290
dfstablist->path = strdup(arglist[argcount]);
usr/src/lib/libfsmgt/common/fs_dfstab.c
291
if (dfstablist->path == NULL) {
usr/src/lib/libfsmgt/common/fs_dfstab.c
336
if (strcmp(old_entry->path,
usr/src/lib/libfsmgt/common/fs_dfstab.c
337
temp_list->path) == 0) {
usr/src/lib/libfsmgt/common/fs_dfstab.c
43
char *path;
usr/src/lib/libfsmgt/common/fs_dfstab.c
434
char *path,
usr/src/lib/libfsmgt/common/fs_dfstab.c
448
if (path != NULL) {
usr/src/lib/libfsmgt/common/fs_dfstab.c
449
new_entry->path = strdup(path);
usr/src/lib/libfsmgt/common/fs_dfstab.c
497
return (entryptr->path);
usr/src/lib/libfsmgt/common/fs_dfstab.c
642
fs_del_All_DFStab_ents_with_Path(char *path, int *err)
usr/src/lib/libfsmgt/common/fs_dfstab.c
646
if (path != NULL) {
usr/src/lib/libfsmgt/common/fs_dfstab.c
647
if ((del_dfstabent.path = strdup(path)) != NULL) {
usr/src/lib/libfsmgt/common/fs_dfstab.c
652
free(del_dfstabent.path);
usr/src/lib/libfsmgt/common/fs_dfstab.c
666
fs_check_for_duplicate_DFStab_paths(char *path, int *err)
usr/src/lib/libfsmgt/common/fs_dfstab.c
672
if (path == NULL) {
usr/src/lib/libfsmgt/common/fs_dfstab.c
678
if (strcmp(dfstablist->path, path) == 0) {
usr/src/lib/libfsmgt/common/fs_shares.c
296
newp->path = strdup(sharetab_entry->sh_path);
usr/src/lib/libfsmgt/common/fs_shares.c
297
if (newp->path == NULL) {
usr/src/lib/libfsmgt/common/fs_shares.c
307
if (newp->path == NULL) {
usr/src/lib/libfsmgt/common/fs_shares.c
65
free(headp->path);
usr/src/lib/libfsmgt/common/libfsmgt.h
347
int fs_check_for_duplicate_DFStab_paths(char *path, int *err);
usr/src/lib/libfsmgt/common/libfsmgt.h
84
char *path;
usr/src/lib/libfsmgt/common/nfs_mntinfo.c
354
strlen(rep_list[i].path) + 2);
usr/src/lib/libfsmgt/common/nfs_mntinfo.c
360
rep_list[i].host, ":", rep_list[i].path);
usr/src/lib/libfsmgt/common/nfs_mntinfo.c
370
char *path;
usr/src/lib/libfsmgt/common/nfs_mntinfo.c
372
path = strdup(rep_list[0].path);
usr/src/lib/libfsmgt/common/nfs_mntinfo.c
373
if ((path = (char *)strtok_r(path, "//",
usr/src/lib/libfsmgt/common/nfs_mntinfo.c
404
if (rep_list[i].path) {
usr/src/lib/libfsmgt/common/nfs_mntinfo.c
405
free(rep_list[i].path);
usr/src/lib/libgen/common/eaccess.c
40
eaccess(const char *path, int amode)
usr/src/lib/libgen/common/eaccess.c
43
return (access(path, 010|amode));
usr/src/lib/libgen/common/pathfind.c
157
if (name[0] == '/' || path == ((char *)0) || *path == '\0')
usr/src/lib/libgen/common/pathfind.c
158
path = ":";
usr/src/lib/libgen/common/pathfind.c
159
while (*path) {
usr/src/lib/libgen/common/pathfind.c
161
&cpath[PATH_MAX] && (*cp = *path); cp++) {
usr/src/lib/libgen/common/pathfind.c
162
path++;
usr/src/lib/libgen/common/pathfind.c
98
pathfind(const char *path, const char *name, const char *mode)
usr/src/lib/libgrubmgmt/common/libgrub_bargs.c
100
char path[BOOTARGS_MAX];
usr/src/lib/libgrubmgmt/common/libgrub_bargs.c
122
if (snprintf(path, sizeof (path), "%s%s", fbarg->gba_fsd.gfs_mountp,
usr/src/lib/libgrubmgmt/common/libgrub_bargs.c
123
fbarg->gba_kernel) >= sizeof (path)) {
usr/src/lib/libgrubmgmt/common/libgrub_bargs.c
127
(void) strtok(path, " \t");
usr/src/lib/libgrubmgmt/common/libgrub_bargs.c
128
(void) clean_path(path);
usr/src/lib/libgrubmgmt/common/libgrub_bargs.c
133
if ((rc = resolvepath(path, rpath, sizeof (rpath))) == -1)
usr/src/lib/libgrubmgmt/common/libgrub_bargs.c
137
if (strcmp(rpath, path) != 0)
usr/src/lib/libgrubmgmt/common/libgrub_bargs.c
54
get_kernel_fd(const char *path, int *fdp)
usr/src/lib/libgrubmgmt/common/libgrub_bargs.c
61
if ((bname = strrchr(path, '/')) == NULL)
usr/src/lib/libgrubmgmt/common/libgrub_bargs.c
62
bname = path;
usr/src/lib/libgrubmgmt/common/libgrub_bargs.c
72
if ((fd = open64(path, O_RDONLY)) >= 0 &&
usr/src/lib/libgrubmgmt/common/libgrub_entry.c
53
clean_path(char *path)
usr/src/lib/libgrubmgmt/common/libgrub_entry.c
58
n = strlen(path) + 1;
usr/src/lib/libgrubmgmt/common/libgrub_entry.c
60
for (i = 0; (c = path[i]) != 0 && !isspace(c); i++) {
usr/src/lib/libgrubmgmt/common/libgrub_entry.c
61
if (c == '/' && (k = strspn(path + i, "/") - 1) != 0) {
usr/src/lib/libgrubmgmt/common/libgrub_entry.c
64
bcopy(path + i + k, path + i, n - i);
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
247
char path[MAXPATHLEN];
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
268
(void) snprintf(path, sizeof (path), "%s%s",
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
272
if (lstat(path, &st) != 0 || S_ISREG(st.st_mode) == 0 ||
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
292
const char *path;
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
296
if ((path = di_devlink_path(dl)) != NULL)
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
297
(void) strlcpy(barg->gb_root.gr_fs[GRBM_UFS].gfs_dev, path,
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
308
char path[MAXPATHLEN];
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
328
(void) snprintf(path, sizeof (path), "%s%s",
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
331
if (lstat(path, &st) == 0 && S_ISREG(st.st_mode) &&
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
346
char *name, *path;
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
358
path = di_devfs_path(node);
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
360
sizeof (barg->gb_root.gr_physpath), "%s:%c", path, barg->gb_slcnum);
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
361
di_devfs_path_free(path);
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
394
path = strrchr(barg->gb_root.gr_physpath, ':');
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
395
path[1] = barg->gb_slcnum;
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
74
slice_ufs(const char *path)
usr/src/lib/libgrubmgmt/common/libgrub_fs.c
80
fd = open(path, O_RDONLY);
usr/src/lib/libgrubmgmt/common/libgrub_impl.h
198
size_t clean_path(char *path);
usr/src/lib/libgrubmgmt/common/libgrub_menu.c
345
grub_menu_init(const char *path, grub_menu_t **menup)
usr/src/lib/libgrubmgmt/common/libgrub_menu.c
368
if (path == NULL) {
usr/src/lib/libgrubmgmt/common/libgrub_menu.c
382
(void) strlcpy(mp->gm_path, path, sizeof (mp->gm_path));
usr/src/lib/libhotplug/common/libhotplug.c
1279
i_hp_set_args(hp_cmd_t cmd, const char *path, const char *connection,
usr/src/lib/libhotplug/common/libhotplug.c
1290
(nvlist_add_string(args, HPD_PATH, path) != 0)) {
usr/src/lib/libhotplug/common/libhotplug.c
440
hp_path(hp_node_t node, char *path, char *connection)
usr/src/lib/libhotplug/common/libhotplug.c
449
(void *)path, (void *)connection);
usr/src/lib/libhotplug/common/libhotplug.c
451
if ((node == NULL) || (path == NULL) || (connection == NULL)) {
usr/src/lib/libhotplug/common/libhotplug.c
456
(void) memset(path, 0, MAXPATHLEN);
usr/src/lib/libhotplug/common/libhotplug.c
486
(void) strlcat(path, root->hp_basepath, MAXPATHLEN);
usr/src/lib/libhotplug/common/libhotplug.c
488
((s = strrchr(path, '/')) != NULL))
usr/src/lib/libhotplug/common/libhotplug.c
493
(void) strlcat(path, &components[i], MAXPATHLEN);
usr/src/lib/libhotplug/common/libhotplug.c
513
char path[MAXPATHLEN];
usr/src/lib/libhotplug/common/libhotplug.c
557
if ((rv = hp_path(node, path, connection)) != 0)
usr/src/lib/libhotplug/common/libhotplug.c
561
if ((args = i_hp_set_args(HP_CMD_CHANGESTATE, path, connection, flags,
usr/src/lib/libhotplug/common/libhotplug.c
595
char path[MAXPATHLEN];
usr/src/lib/libhotplug/common/libhotplug.c
61
hp_init(const char *path, const char *connection, uint_t flags)
usr/src/lib/libhotplug/common/libhotplug.c
617
if ((rv = hp_path(node, path, connection)) != 0)
usr/src/lib/libhotplug/common/libhotplug.c
621
if ((args = i_hp_set_args(HP_CMD_SETPRIVATE, path, connection, 0,
usr/src/lib/libhotplug/common/libhotplug.c
655
char path[MAXPATHLEN];
usr/src/lib/libhotplug/common/libhotplug.c
677
if ((rv = hp_path(node, path, connection)) != 0)
usr/src/lib/libhotplug/common/libhotplug.c
681
if ((args = i_hp_set_args(HP_CMD_GETPRIVATE, path, connection, 0,
usr/src/lib/libhotplug/common/libhotplug.c
69
(void *)path, (void *)connection, flags);
usr/src/lib/libhotplug/common/libhotplug.c
72
if ((path == NULL) || !HP_INIT_FLAGS_VALID(flags)) {
usr/src/lib/libhotplug/common/libhotplug.c
79
if ((args = i_hp_set_args(HP_CMD_GETINFO, path, connection, flags,
usr/src/lib/libhotplug/common/libhotplug.h
77
hp_node_t hp_init(const char *path, const char *connection, uint_t flags);
usr/src/lib/libhotplug/common/libhotplug.h
90
int hp_path(hp_node_t node, char *path, char *connection);
usr/src/lib/libi2c/common/libi2c.c
703
i2c_path_parse(i2c_hdl_t *hdl, const char *path, di_node_t root, di_node_t *dnp,
usr/src/lib/libi2c/common/libi2c.c
711
if (path == NULL) {
usr/src/lib/libi2c/common/libi2c.c
713
"invalid I2C path pointer: %p", path));
usr/src/lib/libi2c/common/libi2c.c
716
dup = strdup(path);
usr/src/lib/libi2c/common/libi2c.c
737
"parsing I2C path %s", ent, path);
usr/src/lib/libi2c/common/libi2c.c
757
"parsing I2C path %s", ent, path);
usr/src/lib/libi2c/common/libi2c.c
766
"parsing I2C path %s", ent, path);
usr/src/lib/libi2c/common/libi2c.c
776
"parsing I2C path %s", ent, path);
usr/src/lib/libi2c/common/libi2c_device.c
723
i2c_port_dev_init_by_path(i2c_hdl_t *hdl, const char *path, bool nodev_ok,
usr/src/lib/libi2c/common/libi2c_device.c
728
if (path == NULL) {
usr/src/lib/libi2c/common/libi2c_device.c
730
"invalid i2c path: %p", path));
usr/src/lib/libi2c/common/libi2c_device.c
752
if (!i2c_path_parse(hdl, path, root, &dn, &type, I2C_ERR_BAD_DEVICE)) {
usr/src/lib/libi2c/common/libi2c_device.c
765
"I2C path %s did not end at a device", path));
usr/src/lib/libi2c/common/libi2c_device.c
773
"path %s did not end at a device (or port)", path));
usr/src/lib/libi2c/common/libi2c_port.c
388
i2c_port_init_by_path(i2c_hdl_t *hdl, const char *path, i2c_port_t **portp)
usr/src/lib/libi2c/common/libi2c_port.c
393
if (path == NULL) {
usr/src/lib/libi2c/common/libi2c_port.c
395
"invalid i2c port path: %p", path));
usr/src/lib/libi2c/common/libi2c_port.c
410
if (!i2c_path_parse(hdl, path, root, &dn, &type, I2C_ERR_BAD_PORT)) {
usr/src/lib/libi2c/common/libi2c_port.c
418
"%s did not end at a port", path));
usr/src/lib/libinstzones/common/instzones_lib.h
304
int _z_is_directory(char *path);
usr/src/lib/libinstzones/common/instzones_lib.h
367
const char *path, char *argv[]);
usr/src/lib/libinstzones/common/zones_lofs.c
218
z_resolve_lofs(char *path, size_t pathlen)
usr/src/lib/libinstzones/common/zones_lofs.c
225
if ((len = resolvepath(path, tmppath, sizeof (tmppath))) == -1)
usr/src/lib/libinstzones/common/zones_lofs.c
229
(void) strlcpy(path, tmppath, pathlen);
usr/src/lib/libinstzones/common/zones_lofs.c
248
if (strncmp(mnp->mnt_mountp, path, len) == 0 &&
usr/src/lib/libinstzones/common/zones_lofs.c
249
(path[len] == '/' || path[len] == '\0'))
usr/src/lib/libinstzones/common/zones_lofs.c
283
mnp->mnt_special, path + len);
usr/src/lib/libinstzones/common/zones_lofs.c
284
if ((len = resolvepath(tmppath, path, pathlen)) == -1)
usr/src/lib/libinstzones/common/zones_lofs.c
286
path[len] = '\0';
usr/src/lib/libinstzones/common/zones_utils.c
286
_z_is_directory(char *path)
usr/src/lib/libinstzones/common/zones_utils.c
292
assert(path != NULL);
usr/src/lib/libinstzones/common/zones_utils.c
293
assert(*path != '\0');
usr/src/lib/libinstzones/common/zones_utils.c
297
if (stat(path, &statbuf) != 0) {
usr/src/lib/libinstzones/hdrs/instzones_api.h
108
extern int z_zone_exec(const char *zonename, const char *path,
usr/src/lib/libinstzones/hdrs/instzones_api.h
164
extern void z_resolve_lofs(char *path, size_t);
usr/src/lib/libipd/common/libipd.c
104
ipd_open(const char *path)
usr/src/lib/libipd/common/libipd.c
108
if (path == NULL)
usr/src/lib/libipd/common/libipd.c
109
path = IPD_DEV_PATH;
usr/src/lib/libipd/common/libipd.c
111
fd = open(path, O_RDWR);
usr/src/lib/libipd/common/libipd.c
114
"unable to open %s: %s", path, strerror(errno)));
usr/src/lib/libkmf/include/kmfapiP.h
163
char *path;
usr/src/lib/libkmf/libkmf/common/certop.c
1410
char *path = NULL;
usr/src/lib/libkmf/libkmf/common/certop.c
1454
path = malloc(data->Length + 1);
usr/src/lib/libkmf/libkmf/common/certop.c
1455
if (path == NULL) {
usr/src/lib/libkmf/libkmf/common/certop.c
1459
(void) strncpy(path, uri, data->Length);
usr/src/lib/libkmf/libkmf/common/certop.c
1460
*retn_uri = path;
usr/src/lib/libkmf/libkmf/common/client.c
582
char *path = NULL;
usr/src/lib/libkmf/libkmf/common/client.c
615
path = uriptr->path;
usr/src/lib/libkmf/libkmf/common/client.c
616
if (path == NULL) {
usr/src/lib/libkmf/libkmf/common/client.c
637
ret = send_download_request(sock, hostname, port, is_proxy, path);
usr/src/lib/libkmf/libkmf/common/generalop.c
147
char *path;
usr/src/lib/libkmf/libkmf/common/generalop.c
228
plugin_list[i].path, &pluginrec);
usr/src/lib/libkmf/libkmf/common/generalop.c
308
InitializePlugin(KMF_KEYSTORE_TYPE kstype, char *path, KMF_PLUGIN **plugin)
usr/src/lib/libkmf/libkmf/common/generalop.c
313
if (path == NULL || plugin == NULL)
usr/src/lib/libkmf/libkmf/common/generalop.c
323
p->path = strdup(path);
usr/src/lib/libkmf/libkmf/common/generalop.c
324
if (p->path == NULL) {
usr/src/lib/libkmf/libkmf/common/generalop.c
334
p->dldesc = dlopen(path, RTLD_LAZY | RTLD_PARENT);
usr/src/lib/libkmf/libkmf/common/generalop.c
336
free(p->path);
usr/src/lib/libkmf/libkmf/common/generalop.c
345
free(p->path);
usr/src/lib/libkmf/libkmf/common/generalop.c
353
free(p->path);
usr/src/lib/libkmf/libkmf/common/generalop.c
398
if (plugin->path)
usr/src/lib/libkmf/libkmf/common/generalop.c
399
free(plugin->path);
usr/src/lib/libkmf/libkmf/common/mapping.c
119
char *path = NULL;
usr/src/lib/libkmf/libkmf/common/mapping.c
133
path = kmf_get_attr_ptr(KMF_MAPPER_PATH_ATTR, attrlist, numattr);
usr/src/lib/libkmf/libkmf/common/mapping.c
136
if (path != NULL) {
usr/src/lib/libkmf/libkmf/common/mapping.c
140
tmppath = strdup(path);
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
2847
fetch_key(KMF_HANDLE_T handle, char *path, KMF_KEY_CLASS keyclass,
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
2856
pkey = openssl_load_key(handle, path);
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
2870
if (path != NULL &&
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
2871
((key->keylabel = strdup(path)) == NULL)) {
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
2885
rv = kmf_get_file_format(path, &fmt);
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
2907
rv = kmf_read_input_file(handle, path, &keyvalue);
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
2918
if (path != NULL &&
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
2919
((key->keylabel = strdup(path)) == NULL)) {
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
391
isdir(char *path)
usr/src/lib/libkmf/plugins/kmf_openssl/common/openssl_spi.c
395
if (stat(path, &s) == -1)
usr/src/lib/libktest/common/libktest.c
393
char *path = NULL;
usr/src/lib/libktest/common/libktest.c
394
if (asprintf(&path, "%s/%s", KTEST_BASE_MODULE_DIR, archbuf) < 0) {
usr/src/lib/libktest/common/libktest.c
398
char *old = atomic_cas_ptr(&ktest_cached_module_dir, NULL, path);
usr/src/lib/libktest/common/libktest.c
400
return (path);
usr/src/lib/libktest/common/libktest.c
402
free(path);
usr/src/lib/libktest/common/libktest.c
449
char path[MAXPATHLEN];
usr/src/lib/libktest/common/libktest.c
450
if (!ktest_mod_path(name, path)) {
usr/src/lib/libktest/common/libktest.c
455
if (modctl(MODLOAD, 0, path, &id) != 0) {
usr/src/lib/libldap5/sources/ldap/ssldap/clientinit.c
341
GetDBName(const char *dbname, const char *path)
usr/src/lib/libldap5/sources/ldap/ssldap/clientinit.c
351
if ((path == NULL) || (*path == 0)) {
usr/src/lib/libldap5/sources/ldap/ssldap/clientinit.c
354
pathlen = PL_strlen(path);
usr/src/lib/libldap5/sources/ldap/ssldap/clientinit.c
356
addslash = ( path[pathlen - 1] != '/' );
usr/src/lib/libldap5/sources/ldap/ssldap/clientinit.c
361
PL_strcpy( result, path );
usr/src/lib/libmail/common/abspath.c
47
abspath(char *path, char *dot, string *to)
usr/src/lib/libmail/common/abspath.c
49
if (*path == '/') {
usr/src/lib/libmail/common/abspath.c
50
to = s_append(to, path);
usr/src/lib/libmail/common/abspath.c
53
to = s_append(to, path);
usr/src/lib/libmail/inc/libmail.h
57
extern string *abspath(char *path, char *dot, string *to);
usr/src/lib/libnisdb/yptol/shim_ancil.c
183
char path[MAXNAMLEN + 1];
usr/src/lib/libnisdb/yptol/shim_ancil.c
187
strcpy(path, ypdbpath);
usr/src/lib/libnisdb/yptol/shim_ancil.c
188
strcat(path, "/");
usr/src/lib/libnisdb/yptol/shim_ancil.c
189
if (strlcat(path, domain, MAXNAMLEN + 1) >= MAXNAMLEN + 1)
usr/src/lib/libnisdb/yptol/shim_ancil.c
192
if (stat(path, &filestat) != -1) {
usr/src/lib/libnisdb/yptol/shim_ancil.c
304
char path[MAXNAMLEN + 1];
usr/src/lib/libnisdb/yptol/shim_ancil.c
380
if (ypmkfilename(domain, mapname, path) == FALSE) {
usr/src/lib/libnisdb/yptol/shim_ancil.c
389
if (ypcheck_map_existence_yptol(path) &&
usr/src/lib/libnisdb/yptol/shim_ancil.c
56
ypmkfilename(domain, map, path)
usr/src/lib/libnisdb/yptol/shim_ancil.c
59
char *path;
usr/src/lib/libnisdb/yptol/shim_ancil.c
76
strcpy(path, ypdbpath);
usr/src/lib/libnisdb/yptol/shim_ancil.c
77
strcat(path, "/");
usr/src/lib/libnisdb/yptol/shim_ancil.c
78
strcat(path, domain);
usr/src/lib/libnisdb/yptol/shim_ancil.c
79
strcat(path, "/");
usr/src/lib/libnisdb/yptol/shim_ancil.c
83
strcat(path, NTOL_PREFIX);
usr/src/lib/libnisdb/yptol/shim_ancil.c
84
strcat(path, map);
usr/src/lib/libnsl/dial/strsave.c
59
eaccess(char *path, mode_t amode)
usr/src/lib/libnsl/dial/strsave.c
64
if (stat(path, &s) == -1)
usr/src/lib/libnsl/nsl/t_open.c
62
_tx_open(const char *path, int flags, struct t_info *info, int api_semantics)
usr/src/lib/libnsl/nsl/t_open.c
81
if ((fd = open(path, flags)) < 0) {
usr/src/lib/libnsl/nsl/tli_wrappers.c
122
t_open(const char *path, int flags, struct t_info *info)
usr/src/lib/libnsl/nsl/tli_wrappers.c
124
return (_tx_open(path, flags, info, TX_TLI_API));
usr/src/lib/libnsl/nsl/xti_wrappers.c
137
_xti_open(const char *path, int flags, struct t_info *info)
usr/src/lib/libnsl/nsl/xti_wrappers.c
139
return (_tx_open(path, flags, info, TX_XTI_API));
usr/src/lib/libnvme/common/libnvme.c
623
char *path, buf[PATH_MAX];
usr/src/lib/libnvme/common/libnvme.c
667
path = di_devfs_minor_path(minor);
usr/src/lib/libnvme/common/libnvme.c
668
if (path == NULL) {
usr/src/lib/libnvme/common/libnvme.c
675
if (snprintf(buf, sizeof (buf), "/devices%s", path) >= sizeof (buf)) {
usr/src/lib/libnvme/common/libnvme.c
676
di_devfs_path_free(path);
usr/src/lib/libnvme/common/libnvme.c
681
di_devfs_path_free(path);
usr/src/lib/libnvme/common/libnvme_ctrl_info.c
171
char *path;
usr/src/lib/libnvme/common/libnvme_ctrl_info.c
210
NVME_NVL_CI_DEV_PATH, DATA_TYPE_STRING, &path,
usr/src/lib/libnvme/common/libnvme_ctrl_info.c
243
if (strlcpy(ci->nci_dev_path, path, sizeof (ci->nci_dev_path)) >=
usr/src/lib/libnwam/common/libnwam_impl.h
320
extern nwam_error_t nwam_ncp_file_to_name(const char *path, char **name);
usr/src/lib/libnwam/common/libnwam_ncp.c
224
nwam_ncp_file_to_name(const char *path, char **name)
usr/src/lib/libnwam/common/libnwam_ncp.c
229
assert(path != NULL && name != NULL);
usr/src/lib/libnwam/common/libnwam_ncp.c
232
(void) strlcpy(path_copy, path, MAXPATHLEN);
usr/src/lib/libpicltree/picltree.c
2787
char *path;
usr/src/lib/libpicltree/picltree.c
2796
path = strdupa(prl);
usr/src/lib/libpicltree/picltree.c
2797
if (path == NULL)
usr/src/lib/libpicltree/picltree.c
2804
err = parse_prl(path, &nodename, &baddr, &plist);
usr/src/lib/libpicltree/picltree.c
2901
char *path;
usr/src/lib/libpicltree/picltree.c
2910
path = strdupa(piclprl);
usr/src/lib/libpicltree/picltree.c
2911
if (path == NULL)
usr/src/lib/libpicltree/picltree.c
2915
defprop = path;
usr/src/lib/libpicltree/picltree.c
2916
if (path[0] == '/') {
usr/src/lib/libpicltree/picltree.c
2917
ptr = &path[1];
usr/src/lib/libpicltree/picltree.c
2918
} else if ((tokindex = strchr(path, ':')) != NULL) {
usr/src/lib/libpicltree/picltree.c
3351
add_unique_plugin_to_list(char *path, char *name)
usr/src/lib/libpicltree/picltree.c
3372
buf = alloca(strlen(name) + strlen(path) + 2);
usr/src/lib/libpicltree/picltree.c
3375
(void) strcpy(buf, path);
usr/src/lib/libpkg/common/ckvolseq.c
100
if (access(path, 0) == 0)
usr/src/lib/libpkg/common/ckvolseq.c
49
char ftype, path[PATH_MAX];
usr/src/lib/libpkg/common/ckvolseq.c
59
(void) snprintf(path, sizeof (path), "%s/pkginfo", dir);
usr/src/lib/libpkg/common/ckvolseq.c
60
if (cverify(0, &ftype, path, &cinfo, 1)) {
usr/src/lib/libpkg/common/ckvolseq.c
61
logerr(pkg_gt(ERR_BADPKGINFO), path);
usr/src/lib/libpkg/common/ckvolseq.c
65
(void) snprintf(path, sizeof (path), "%s/pkgmap", dir);
usr/src/lib/libpkg/common/ckvolseq.c
66
if (access(path, 0)) {
usr/src/lib/libpkg/common/ckvolseq.c
67
logerr(pkg_gt(ERR_NOPKGMAP), path);
usr/src/lib/libpkg/common/ckvolseq.c
75
(void) snprintf(path, sizeof (path), "%s/pkginfo", dir);
usr/src/lib/libpkg/common/ckvolseq.c
76
if (cverify(0, &ftype, path, &cinfo, 1)) {
usr/src/lib/libpkg/common/ckvolseq.c
91
(void) snprintf(path, sizeof (path), "%s/root.%d", dir, part);
usr/src/lib/libpkg/common/ckvolseq.c
92
if (access(path, 0) == 0)
usr/src/lib/libpkg/common/ckvolseq.c
94
(void) snprintf(path, sizeof (path), "%s/reloc.%d", dir, part);
usr/src/lib/libpkg/common/ckvolseq.c
95
if (access(path, 0) == 0)
usr/src/lib/libpkg/common/ckvolseq.c
98
(void) snprintf(path, sizeof (path), "%s/install",
usr/src/lib/libpkg/common/gpkgmap.c
148
ept->path = NULL;
usr/src/lib/libpkg/common/gpkgmap.c
228
ept->path = mypath;
usr/src/lib/libpkg/common/gpkgmap.c
277
ept->path = mypath;
usr/src/lib/libpkg/common/gpkgmap.c
653
ept->path = NULL;
usr/src/lib/libpkg/common/gpkgmap.c
748
ept->path = mypath;
usr/src/lib/libpkg/common/gpkgmap.c
801
ept->path = mypath;
usr/src/lib/libpkg/common/isdir.c
128
char path[PATH_MAX];
usr/src/lib/libpkg/common/isdir.c
133
(void) snprintf(path, sizeof (path), "%s/%s", dir, file);
usr/src/lib/libpkg/common/isdir.c
134
file = path;
usr/src/lib/libpkg/common/isdir.c
161
iscpio(char *path, int *iscomp)
usr/src/lib/libpkg/common/isdir.c
179
if ((fd = open(path, O_RDONLY, 0)) == -1) {
usr/src/lib/libpkg/common/isdir.c
182
(void) fprintf(stderr, pkg_gt(ERR_ISCPIO_OPEN), path);
usr/src/lib/libpkg/common/isdir.c
188
(void) fprintf(stderr, pkg_gt(ERR_ISCPIO_FSTAT), path);
usr/src/lib/libpkg/common/isdir.c
197
pkg_gt(ERR_ISCPIO_READ), path);
usr/src/lib/libpkg/common/isdir.c
214
path);
usr/src/lib/libpkg/common/isdir.c
78
int isdir(char *path);
usr/src/lib/libpkg/common/isdir.c
80
int iscpio(char *path, int *iscomp);
usr/src/lib/libpkg/common/isdir.c
92
isdir(char *path)
usr/src/lib/libpkg/common/isdir.c
98
if (stat(path, &statbuf) != 0) {
usr/src/lib/libpkg/common/mappath.c
135
if ((pt[1] == '\0') && (pt > path))
usr/src/lib/libpkg/common/mappath.c
146
(void) strcpy(path, buffer);
usr/src/lib/libpkg/common/mappath.c
155
basepath(char *path, char *basedir, char *ir)
usr/src/lib/libpkg/common/mappath.c
160
if (*path != '/') {
usr/src/lib/libpkg/common/mappath.c
161
(void) strcpy(buffer, path);
usr/src/lib/libpkg/common/mappath.c
164
*path++ = *ir++;
usr/src/lib/libpkg/common/mappath.c
165
if (path[-1] == '/')
usr/src/lib/libpkg/common/mappath.c
166
path--;
usr/src/lib/libpkg/common/mappath.c
170
*path++ = '/';
usr/src/lib/libpkg/common/mappath.c
172
*path++ = *basedir++;
usr/src/lib/libpkg/common/mappath.c
173
if (path[-1] == '/')
usr/src/lib/libpkg/common/mappath.c
174
path--;
usr/src/lib/libpkg/common/mappath.c
176
*path++ = '/';
usr/src/lib/libpkg/common/mappath.c
177
(void) strcpy(path, buffer);
usr/src/lib/libpkg/common/mappath.c
182
(void) strcpy(buffer, path);
usr/src/lib/libpkg/common/mappath.c
184
*path++ = *ir++;
usr/src/lib/libpkg/common/mappath.c
185
if (path[-1] == '/')
usr/src/lib/libpkg/common/mappath.c
186
path--;
usr/src/lib/libpkg/common/mappath.c
187
(void) strcpy(path, buffer);
usr/src/lib/libpkg/common/mappath.c
61
mappath(int flag, char *path)
usr/src/lib/libpkg/common/mappath.c
75
for (pt = path; *pt; /* void */) {
usr/src/lib/libpkg/common/mappath.c
81
((pt == path) || (pt[-1] == '/'))) {
usr/src/lib/libpkg/common/path_valid.c
49
path_valid(char *path)
usr/src/lib/libpkg/common/path_valid.c
51
if (path == NULL) {
usr/src/lib/libpkg/common/path_valid.c
53
} else if (strlen(path) > PATH_MAX) {
usr/src/lib/libpkg/common/path_valid.c
55
} else if (strlen(path) >= 1) {
usr/src/lib/libpkg/common/pkglib.h
395
extern int averify(int fix, char *ftype, char *path, struct ainfo *ainfo);
usr/src/lib/libpkg/common/pkglib.h
398
extern int cverify(int fix, char *ftype, char *path, struct cinfo *cinfo,
usr/src/lib/libpkg/common/pkglib.h
401
extern int fverify(int fix, char *ftype, char *path, struct ainfo *ainfo,
usr/src/lib/libpkg/common/pkglib.h
430
extern int iscpio(char *path, int *iscomp);
usr/src/lib/libpkg/common/pkglib.h
431
extern int isdir(char *path);
usr/src/lib/libpkg/common/pkglib.h
447
extern int rrmdir(char *path);
usr/src/lib/libpkg/common/pkglib.h
453
extern int srchcfile(struct cfent *ept, char *path, PKGserver server);
usr/src/lib/libpkg/common/pkglib.h
462
extern void basepath(char *path, char *basedir, char *ir);
usr/src/lib/libpkg/common/pkglib.h
467
extern void cvtpath(char *path, char *copy);
usr/src/lib/libpkg/common/pkglib.h
474
extern int mappath(int flag, char *path);
usr/src/lib/libpkg/common/pkgserv.c
121
testdoor(char *path)
usr/src/lib/libpkg/common/pkgserv.c
128
dir = open(path, O_RDONLY);
usr/src/lib/libpkg/common/pkgserv.c
735
pkggetentry_named(PKGserver server, const char *path, int *len, int *pathlen)
usr/src/lib/libpkg/common/pkgserv.c
737
int plen = strlen(path);
usr/src/lib/libpkg/common/pkgserv.c
744
(void) memcpy(pcmd->buf, path, pcmd->len + 1);
usr/src/lib/libpkg/common/pkgserv.c
79
pkgfilename(char path[PATH_MAX], const char *root, const char *sadmdir,
usr/src/lib/libpkg/common/pkgserv.c
82
if (snprintf(path, PATH_MAX, "%s%s/%s", root == NULL ? "" : root,
usr/src/lib/libpkg/common/pkgtrans.c
632
char path[MAXPATHLEN], tmp_entry[ENTRY_MAX];
usr/src/lib/libpkg/common/pkgtrans.c
658
(void) snprintf(path, MAXPATHLEN, "%s/%s/%s",
usr/src/lib/libpkg/common/pkgtrans.c
660
if (stat(path, &statbuf) < 0) {
usr/src/lib/libpkg/common/pkgtrans.c
683
(void) snprintf(path, MAXPATHLEN, "%s/%s/%s",
usr/src/lib/libpkg/common/pkgtrans.c
685
if ((fp = fopen(path, "r")) == NULL) {
usr/src/lib/libpkg/common/pkgtrans.c
880
char path[PATH_MAX];
usr/src/lib/libpkg/common/pkgtrans.c
882
(void) snprintf(path, sizeof (path), "%s/%s", dir, inst);
usr/src/lib/libpkg/common/pkgtrans.c
883
if (access(path, 0) == 0) {
usr/src/lib/libpkg/common/pkgtrans.c
885
return (rrmdir(path));
usr/src/lib/libpkg/common/pkgtrans.c
887
logerr(pkg_gt(MSG_EXISTS), path);
usr/src/lib/libpkg/common/ppkgmap.c
45
if (ept->path == NULL)
usr/src/lib/libpkg/common/ppkgmap.c
54
if (fprintf(fp, "%c %s", ept->ftype, ept->path) < 0)
usr/src/lib/libpkg/common/ppkgmap.c
58
ept->path) < 0)
usr/src/lib/libpkg/common/putcfile.c
230
if (a_ept->path == NULL) {
usr/src/lib/libpkg/common/putcfile.c
267
vfpPuts(a_vfp, a_ept->path);
usr/src/lib/libpkg/common/putcfile.c
58
if (a_ept->path == NULL) {
usr/src/lib/libpkg/common/putcfile.c
62
if (fputs(a_ept->path, a_fp) == EOF) {
usr/src/lib/libpkg/common/rrmdir.c
44
char path[PATH_MAX+13];
usr/src/lib/libpkg/common/rrmdir.c
72
(void) snprintf(path, sizeof (path), "%s/", a_path);
usr/src/lib/libpkg/common/rrmdir.c
74
"/bin/rm", "rm", "-rf", path, (char *)NULL);
usr/src/lib/libpkg/common/srchcfile.c
125
srchcfile(struct cfent *ept, char *path, PKGserver server)
usr/src/lib/libpkg/common/srchcfile.c
162
ept->path = (char *)NULL;
usr/src/lib/libpkg/common/srchcfile.c
208
if ((path != NULL) && (*path == '\0')) {
usr/src/lib/libpkg/common/srchcfile.c
209
path = NULL;
usr/src/lib/libpkg/common/srchcfile.c
217
if ((path != NULL) && (path[0] != '/')) {
usr/src/lib/libpkg/common/srchcfile.c
218
if (strcmp(path, "*") != 0) {
usr/src/lib/libpkg/common/srchcfile.c
227
if (anypath == 0 && path == NULL)
usr/src/lib/libpkg/common/srchcfile.c
232
curbuf = pkggetentry_named(server, path, &linelen, &cpath_len);
usr/src/lib/libpkg/common/srchcfile.c
251
ept->path = lpath;
usr/src/lib/libpkg/common/tputcfent.c
53
if (ept->path == NULL)
usr/src/lib/libpkg/common/tputcfent.c
56
(void) fprintf(fp, pkg_gt("Pathname: %s\n"), ept->path);
usr/src/lib/libpkg/common/verify.c
144
cverify(int fix, char *ftype, char *path, struct cinfo *cinfo,
usr/src/lib/libpkg/common/verify.c
159
if (stat(path, &status) < 0) {
usr/src/lib/libpkg/common/verify.c
175
if (utime(path, &times)) {
usr/src/lib/libpkg/common/verify.c
218
mycksum = compute_checksum(&cksumerr, path);
usr/src/lib/libpkg/common/verify.c
340
clear_target(char *path, char *ftype, int is_a_dir)
usr/src/lib/libpkg/common/verify.c
347
if (rmdir(path)) { /* try to remove it. */
usr/src/lib/libpkg/common/verify.c
348
reperr(pkg_gt(ERR_RMDIR), path);
usr/src/lib/libpkg/common/verify.c
353
if (remove(path)) {
usr/src/lib/libpkg/common/verify.c
385
averify(int fix, char *ftype, char *path, struct ainfo *ainfo)
usr/src/lib/libpkg/common/verify.c
413
if (stat(path, &status) < 0) {
usr/src/lib/libpkg/common/verify.c
431
cd = strdup(path);
usr/src/lib/libpkg/common/verify.c
462
if (!clear_target(path, ftype, targ_is_dir))
usr/src/lib/libpkg/common/verify.c
465
if (link(ainfo->local, path)) {
usr/src/lib/libpkg/common/verify.c
495
if ((*ftype == 's') ? lstat(path, &status) :
usr/src/lib/libpkg/common/verify.c
496
stat(path, &status)) {
usr/src/lib/libpkg/common/verify.c
504
if ((n = lstat(path, &status)) == -1) {
usr/src/lib/libpkg/common/verify.c
558
reperr(pkg_gt(ERR_FTYPED), path);
usr/src/lib/libpkg/common/verify.c
573
n = readlink(path, buf, PATH_MAX);
usr/src/lib/libpkg/common/verify.c
600
if (!clear_target(path, ftype, targ_is_dir))
usr/src/lib/libpkg/common/verify.c
607
if (mkdir(path, ainfo->mode)) {
usr/src/lib/libpkg/common/verify.c
613
p = strdup(path);
usr/src/lib/libpkg/common/verify.c
626
if (stat(path, &status) < 0) {
usr/src/lib/libpkg/common/verify.c
631
if (symlink(ainfo->local, path)) {
usr/src/lib/libpkg/common/verify.c
657
logerr(MSG_WLDDEVNO, path,
usr/src/lib/libpkg/common/verify.c
661
if (mknod(path, ainfo->mode | S_IFCHR,
usr/src/lib/libpkg/common/verify.c
663
(stat(path, &status) < 0)) {
usr/src/lib/libpkg/common/verify.c
687
logerr(MSG_WLDDEVNO, path,
usr/src/lib/libpkg/common/verify.c
691
if (mknod(path, ainfo->mode | S_IFBLK,
usr/src/lib/libpkg/common/verify.c
693
(stat(path, &status) < 0)) {
usr/src/lib/libpkg/common/verify.c
698
if (mknod(path, ainfo->mode | S_IFIFO, 0) ||
usr/src/lib/libpkg/common/verify.c
699
(stat(path, &status) < 0)) {
usr/src/lib/libpkg/common/verify.c
735
(chmod(path, ainfo->mode) < 0))
usr/src/lib/libpkg/common/verify.c
74
static int clear_target(char *path, char *ftype, int is_a_dir);
usr/src/lib/libpkg/common/verify.c
76
unsigned long compute_checksum(int *r_err, char *path);
usr/src/lib/libpkg/common/verify.c
816
if (statvfs(path, &vfsstatus) < 0) {
usr/src/lib/libpkg/common/verify.c
823
chown(path, uid, gid) < 0) {
usr/src/lib/libpkg/common/verify.c
840
fverify(int fix, char *ftype, char *path, struct ainfo *ainfo,
usr/src/lib/libpkg/common/verify.c
851
if ((retval = averify(fix, ftype, path, ainfo)) == 0) {
usr/src/lib/libpkg/common/verify.c
854
reperr(pkg_gt(WRN_QV_SIZE), path);
usr/src/lib/libpkg/common/verify.c
860
reperr(pkg_gt(WRN_QV_MTIME), path);
usr/src/lib/libpool/common/pool_kernel.c
3587
blocking_open(const char *path, int oflag)
usr/src/lib/libpool/common/pool_kernel.c
3591
while ((fd = open(path, oflag)) == -1 && errno == EBUSY)
usr/src/lib/libpool/common/pool_xml.c
1004
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
1015
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
1026
for (j = 0; j < path->nodesetval->nodeNr; j++, i++) {
usr/src/lib/libpool/common/pool_xml.c
1027
xmlChar *name = xmlGetProp(path->nodesetval->nodeTab[j],
usr/src/lib/libpool/common/pool_xml.c
1035
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
1045
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
1054
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
153
static int dtd_exists(const char *path);
usr/src/lib/libpool/common/pool_xml.c
2478
dtd_exists(const char *path)
usr/src/lib/libpool/common/pool_xml.c
2482
if (strstr(path, "file://") != path)
usr/src/lib/libpool/common/pool_xml.c
2485
if (path[7] == 0)
usr/src/lib/libpool/common/pool_xml.c
2488
if (stat(&path[7], &buf) == 0)
usr/src/lib/libpool/common/pool_xml.c
532
xmlXPathObjectPtr path;
usr/src/lib/libpool/common/pool_xml.c
548
path = xmlXPathEval(BAD_CAST buf, ctx);
usr/src/lib/libpool/common/pool_xml.c
550
if (path && (path->type == XPATH_NODESET) &&
usr/src/lib/libpool/common/pool_xml.c
551
(path->nodesetval->nodeNr == 1)) {
usr/src/lib/libpool/common/pool_xml.c
552
xmlUnlinkNode(path->nodesetval->nodeTab[0]);
usr/src/lib/libpool/common/pool_xml.c
553
xmlFreeNode(path->nodesetval->nodeTab[0]);
usr/src/lib/libpool/common/pool_xml.c
559
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
720
xmlXPathObjectPtr path;
usr/src/lib/libpool/common/pool_xml.c
732
path = xmlXPathEval(BAD_CAST buf, ctx);
usr/src/lib/libpool/common/pool_xml.c
734
if (path && (path->type == XPATH_NODESET) &&
usr/src/lib/libpool/common/pool_xml.c
735
(path->nodesetval->nodeNr == 1)) {
usr/src/lib/libpool/common/pool_xml.c
737
if (xmlHasProp(path->nodesetval->nodeTab[0],
usr/src/lib/libpool/common/pool_xml.c
739
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
745
data = xmlGetProp(path->nodesetval->nodeTab[0],
usr/src/lib/libpool/common/pool_xml.c
747
node_data = xmlNodeGetContent(path->nodesetval->nodeTab[0]);
usr/src/lib/libpool/common/pool_xml.c
797
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
801
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
818
xmlXPathObjectPtr path;
usr/src/lib/libpool/common/pool_xml.c
835
path = xmlXPathEval(buf, ctx);
usr/src/lib/libpool/common/pool_xml.c
836
if (path == NULL || path->type != XPATH_NODESET) {
usr/src/lib/libpool/common/pool_xml.c
837
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
842
if (path->nodesetval->nodeNr == 0)
usr/src/lib/libpool/common/pool_xml.c
845
else if (path->nodesetval->nodeNr == 1) {
usr/src/lib/libpool/common/pool_xml.c
849
element = path->nodesetval->nodeTab[0];
usr/src/lib/libpool/common/pool_xml.c
851
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
865
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
871
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
911
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
933
xmlXPathObjectPtr path;
usr/src/lib/libpool/common/pool_xml.c
951
path = xmlXPathEval(BAD_CAST "property", ctx);
usr/src/lib/libpool/common/pool_xml.c
953
if (path != NULL && path->type == XPATH_NODESET &&
usr/src/lib/libpool/common/pool_xml.c
954
path->nodesetval != NULL)
usr/src/lib/libpool/common/pool_xml.c
955
(*nprops) += path->nodesetval->nodeNr;
usr/src/lib/libpool/common/pool_xml.c
958
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
964
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
982
xmlXPathFreeObject(path);
usr/src/lib/libpool/common/pool_xml.c
994
xmlXPathFreeObject(path);
usr/src/lib/libppt/common/libppt.c
100
const char *dev, const char *path)
usr/src/lib/libppt/common/libppt.c
112
if ((err = nvlist_add_string(nvl, "path", path)) != 0)
usr/src/lib/libppt/common/libppt.c
216
const char *path;
usr/src/lib/libppt/common/libppt.c
226
path = fs_to_phys_path(fspath);
usr/src/lib/libppt/common/libppt.c
231
if ((di_node = di_lookup_node(di_root, (char *)path)) == NULL) {
usr/src/lib/libppt/common/libppt.c
239
info_nvl = dev_getinfo(di_node, db, gl.gl_pathv[i], path);
usr/src/lib/libppt/common/libppt.c
246
err = nvlist_add_nvlist(nvl, path, info_nvl);
usr/src/lib/libppt/common/libppt.c
345
char *path;
usr/src/lib/libppt/common/libppt.c
347
if (nvlist_lookup_string(nvl, "path", &path) != 0 ||
usr/src/lib/libppt/common/libppt.c
354
if (pm->pm_path[0] != '\0' && strcmp(pm->pm_path, path) == 0)
usr/src/lib/libppt/common/libppt.c
376
char *path = NULL;
usr/src/lib/libppt/common/libppt.c
391
if ((path = di_devfs_path(di_node)) == NULL) {
usr/src/lib/libppt/common/libppt.c
396
info_nvl = dev_getinfo(di_node, data->nd_db, devname, path);
usr/src/lib/libppt/common/libppt.c
404
data->nd_err = nvlist_add_nvlist(data->nd_nvl, path, info_nvl);
usr/src/lib/libppt/common/libppt.c
407
free(path);
usr/src/lib/libproc/common/Pcontrol.c
249
stat_exec(const char *path, void *arg)
usr/src/lib/libproc/common/Pcontrol.c
254
return (stat64(path, &st) == 0 && S_ISREG(st.st_mode) &&
usr/src/lib/libproc/common/Pcontrol.c
418
Pset_procfs_path(const char *path)
usr/src/lib/libproc/common/Pcontrol.c
420
(void) snprintf(procfs_path, sizeof (procfs_path), "%s", path);
usr/src/lib/libproc/common/Pcontrol.c
491
char *path, /* if non-null, holds exec path name on return */
usr/src/lib/libproc/common/Pcontrol.c
504
path = NULL;
usr/src/lib/libproc/common/Pcontrol.c
505
if (path != NULL)
usr/src/lib/libproc/common/Pcontrol.c
506
*path = '\0';
usr/src/lib/libproc/common/Pcontrol.c
676
if (path != NULL)
usr/src/lib/libproc/common/Pcontrol.c
677
(void) strncpy(path, execpath, len);
usr/src/lib/libproc/common/Pcontrol.c
740
if (path != NULL && rc != C_PERM && rc != C_LP64)
usr/src/lib/libproc/common/Pcontrol.c
741
*path = '\0';
usr/src/lib/libproc/common/Pcontrol.c
752
char *path, /* if non-null, holds exec path name on return */
usr/src/lib/libproc/common/Pcontrol.c
755
return (Pxcreate(file, argv, NULL, perr, path, len));
usr/src/lib/libproc/common/Pcore.c
1943
core_elf_open(elf_file_t *efp, const char *path, GElf_Half type, int *perr)
usr/src/lib/libproc/common/Pcore.c
1947
if ((efp->e_fd = open64(path, O_RDONLY)) >= 0) {
usr/src/lib/libproc/common/Pcore.c
2203
core_exec_open(const char *path, void *efp)
usr/src/lib/libproc/common/Pcore.c
2205
if (core_elf_open(efp, path, ET_EXEC, NULL) == 0)
usr/src/lib/libproc/common/Pcore.c
2207
if (core_elf_open(efp, path, ET_DYN, NULL) == 0)
usr/src/lib/libproc/common/Pexecname.c
131
Pread_string(P, path, sizeof (path), (off_t)addr) > 0) {
usr/src/lib/libproc/common/Pexecname.c
135
if (try_exec(P, cwd, path, buf, isexec, isdata))
usr/src/lib/libproc/common/Pexecname.c
138
if (strchr(path, '/') != NULL && (p = basename(path)) != NULL &&
usr/src/lib/libproc/common/Pexecname.c
154
p = (path[0] == '/') ? path + 1 : path;
usr/src/lib/libproc/common/Pexecname.c
165
(void) strncpy(path, P->psinfo.pr_psargs, PRARGSZ);
usr/src/lib/libproc/common/Pexecname.c
166
path[PRARGSZ] = '\0';
usr/src/lib/libproc/common/Pexecname.c
168
if ((p = strchr(path, ' ')) != NULL)
usr/src/lib/libproc/common/Pexecname.c
171
if (try_exec(P, cwd, path, buf, isexec, isdata))
usr/src/lib/libproc/common/Pexecname.c
174
if (strchr(path, '/') != NULL && (p = basename(path)) != NULL &&
usr/src/lib/libproc/common/Pexecname.c
185
Pread_string(P, path, sizeof (path), (off_t)addr) > 0) {
usr/src/lib/libproc/common/Pexecname.c
187
if (try_exec(P, cwd, path, buf, isexec, isdata))
usr/src/lib/libproc/common/Pexecname.c
190
if (strchr(path, '/') != NULL && (p = basename(path)) != NULL &&
usr/src/lib/libproc/common/Pexecname.c
206
(void) strncpy(path, P->psinfo.pr_psargs, PRARGSZ);
usr/src/lib/libproc/common/Pexecname.c
207
path[PRARGSZ] = '\0';
usr/src/lib/libproc/common/Pexecname.c
209
if ((p = strchr(path, ' ')) != NULL)
usr/src/lib/libproc/common/Pexecname.c
212
if (strchr(path, '/') != NULL || strncmp(path,
usr/src/lib/libproc/common/Pexecname.c
214
(void) strcpy(path, P->psinfo.pr_fname);
usr/src/lib/libproc/common/Pexecname.c
226
if (try_exec(P, p, path, buf, isexec, isdata))
usr/src/lib/libproc/common/Pexecname.c
54
try_exec(struct ps_prochandle *P, const char *cwd, const char *path, char *buf,
usr/src/lib/libproc/common/Pexecname.c
59
if (path[0] != '/')
usr/src/lib/libproc/common/Pexecname.c
60
(void) snprintf(buf, PATH_MAX, "%s/%s", cwd, path);
usr/src/lib/libproc/common/Pexecname.c
62
(void) strcpy(buf, path);
usr/src/lib/libproc/common/Pexecname.c
87
char path[PATH_MAX];
usr/src/lib/libproc/common/Pexecname.c
91
char *p = path, *q;
usr/src/lib/libproc/common/Pisprocdir.c
38
char path[PATH_MAX];
usr/src/lib/libproc/common/Pisprocdir.c
43
(void) snprintf(path, sizeof (path), "%s/%d/root%s",
usr/src/lib/libproc/common/Pisprocdir.c
46
(void) snprintf(path, sizeof (path), "%s/%d/cwd/%s",
usr/src/lib/libproc/common/Pisprocdir.c
54
return (stat(path, &statb) == 0 &&
usr/src/lib/libproc/common/Pisprocdir.c
55
statvfs(path, &statvfsb) == 0 &&
usr/src/lib/libproc/common/Psymtab.c
1614
build_alt_debug(file_info_t *fptr, const char *path, uint32_t crc,
usr/src/lib/libproc/common/Psymtab.c
1626
if ((fd = open(path, O_RDONLY)) < 0)
usr/src/lib/libproc/common/Psymtab.c
1715
BUILDID_NAME, path);
usr/src/lib/libproc/common/Psymtab.c
1760
fptr->file_rname, path);
usr/src/lib/libproc/common/Psymtab.c
1789
char *dup = NULL, *path = NULL, *dname;
usr/src/lib/libproc/common/Psymtab.c
1802
if (asprintf(&path, "%s/.debug/%s", dname, name) != -1) {
usr/src/lib/libproc/common/Psymtab.c
1804
"from %s\n", path);
usr/src/lib/libproc/common/Psymtab.c
1805
r = build_alt_debug(fptr, path, crc, NULL);
usr/src/lib/libproc/common/Psymtab.c
1806
free(path);
usr/src/lib/libproc/common/Psymtab.c
1811
if (asprintf(&path, "/usr/lib/debug/%s/%s", dname, name) != -1) {
usr/src/lib/libproc/common/Psymtab.c
1813
"from %s\n", path);
usr/src/lib/libproc/common/Psymtab.c
1814
r = build_alt_debug(fptr, path, crc, NULL);
usr/src/lib/libproc/common/Psymtab.c
1815
free(path);
usr/src/lib/libproc/common/Psymtab.c
2132
char buf[BUILDID_STRLEN], *path;
usr/src/lib/libproc/common/Psymtab.c
2159
if (asprintf(&path, "/usr/lib/debug/.build-id/%s.debug",
usr/src/lib/libproc/common/Psymtab.c
2163
"file at %s\n", path);
usr/src/lib/libproc/common/Psymtab.c
2164
r = build_alt_debug(fptr, path, 0, buildid->c_data);
usr/src/lib/libproc/common/Psymtab.c
2167
free(path);
usr/src/lib/libproc/common/Pzone.c
126
pn_push(path_node_t **pnp, char *path)
usr/src/lib/libproc/common/Pzone.c
133
if ((pn->pn_path = strdup(path)) == NULL) {
usr/src/lib/libproc/common/Pzone.c
162
pn_pop(path_node_t **pnp, char *path)
usr/src/lib/libproc/common/Pzone.c
173
if (path == NULL) {
usr/src/lib/libproc/common/Pzone.c
177
(void) strlcpy(path, pn->pn_path, PATH_MAX);
usr/src/lib/libproc/common/Pzone.c
179
return (path);
usr/src/lib/libproc/common/Pzone.c
311
Plofspath(const char *path, char *s, size_t n)
usr/src/lib/libproc/common/Pzone.c
319
Pdprintf("Plofspath path '%s'\n", path);
usr/src/lib/libproc/common/Pzone.c
322
if (path[0] != '/')
usr/src/lib/libproc/common/Pzone.c
326
(void) strlcpy(tmp, path, sizeof (tmp) - 1);
usr/src/lib/libproc/common/Pzone.c
427
if (strcmp(tmp, path) == 0) {
usr/src/lib/libproc/common/Pzone.c
518
Pzonepath(struct ps_prochandle *P, const char *path, char *s, size_t n)
usr/src/lib/libproc/common/Pzone.c
526
Pdprintf("Pzonepath lookup '%s'\n", path);
usr/src/lib/libproc/common/Pzone.c
537
if (path[0] != '/')
usr/src/lib/libproc/common/Pzone.c
539
(void) strlcat(tmp, path, sizeof (tmp));
usr/src/lib/libproc/common/Pzone.c
745
Pfindobj(struct ps_prochandle *P, const char *path, char *s, size_t n)
usr/src/lib/libproc/common/Pzone.c
749
Pdprintf("Pfindobj '%s'\n", path);
usr/src/lib/libproc/common/Pzone.c
752
if (path[0] != '/')
usr/src/lib/libproc/common/Pzone.c
756
if (Pzonepath(P, path, s, n) != NULL)
usr/src/lib/libproc/common/Pzone.c
760
if (Plofspath(path, s, n) != NULL)
usr/src/lib/libproc/common/Pzone.c
764
if ((len = resolvepath(path, s, n)) > 0) {
usr/src/lib/libproc/common/Pzone.c
798
char path[PATH_MAX];
usr/src/lib/libproc/common/Pzone.c
800
len = snprintf(path, sizeof (path), "%s/%d/path/%s",
usr/src/lib/libproc/common/Pzone.c
802
if (len < 0 || (size_t)len >= sizeof (path))
usr/src/lib/libproc/common/Pzone.c
805
if ((len = readlink(path, buf, sizeof (buf))) > 0) {
usr/src/lib/libproc/common/pr_open.c
170
pr_access(struct ps_prochandle *Pr, const char *path, int amode)
usr/src/lib/libproc/common/pr_open.c
178
return (access(path, amode));
usr/src/lib/libproc/common/pr_open.c
189
adp->arg_object = (void *)path;
usr/src/lib/libproc/common/pr_open.c
192
adp->arg_size = strlen(path) + 1;
usr/src/lib/libproc/common/pr_rename.c
145
pr_unlink(struct ps_prochandle *Pr, const char *path)
usr/src/lib/libproc/common/pr_rename.c
153
return (unlink(path));
usr/src/lib/libproc/common/pr_rename.c
164
adp->arg_object = (void *)path;
usr/src/lib/libproc/common/pr_rename.c
167
adp->arg_size = strlen(path) + 1;
usr/src/lib/libproc/common/pr_stat.c
101
adp->arg_size = strlen(path) + 1;
usr/src/lib/libproc/common/pr_stat.c
144
pr_lstat(struct ps_prochandle *Pr, const char *path, struct stat *buf)
usr/src/lib/libproc/common/pr_stat.c
156
return (lstat(path, buf));
usr/src/lib/libproc/common/pr_stat.c
173
adp->arg_object = (void *)path;
usr/src/lib/libproc/common/pr_stat.c
176
adp->arg_size = strlen(path) + 1;
usr/src/lib/libproc/common/pr_stat.c
294
pr_stat64(struct ps_prochandle *Pr, const char *path, struct stat64 *buf)
usr/src/lib/libproc/common/pr_stat.c
306
return (stat64(path, buf));
usr/src/lib/libproc/common/pr_stat.c
327
adp->arg_object = (void *)path;
usr/src/lib/libproc/common/pr_stat.c
330
adp->arg_size = strlen(path) + 1;
usr/src/lib/libproc/common/pr_stat.c
373
pr_lstat64(struct ps_prochandle *Pr, const char *path, struct stat64 *buf)
usr/src/lib/libproc/common/pr_stat.c
385
return (lstat64(path, buf));
usr/src/lib/libproc/common/pr_stat.c
406
adp->arg_object = (void *)path;
usr/src/lib/libproc/common/pr_stat.c
409
adp->arg_size = strlen(path) + 1;
usr/src/lib/libproc/common/pr_stat.c
69
pr_stat(struct ps_prochandle *Pr, const char *path, struct stat *buf)
usr/src/lib/libproc/common/pr_stat.c
81
return (stat(path, buf));
usr/src/lib/libproc/common/pr_stat.c
98
adp->arg_object = (void *)path;
usr/src/lib/libproc/common/pr_statvfs.c
63
pr_statvfs(struct ps_prochandle *Pr, const char *path, statvfs_t *buf)
usr/src/lib/libproc/common/pr_statvfs.c
74
return (statvfs(path, buf));
usr/src/lib/libproc/common/pr_statvfs.c
77
adp->arg_object = (void *)path;
usr/src/lib/libproc/common/pr_statvfs.c
80
adp->arg_size = strlen(path)+1;
usr/src/lib/libproc/common/proc_arg.c
131
proc_grab_common(const char *arg, const char *path, int oflag, int gflag,
usr/src/lib/libproc/common/proc_arg.c
184
if ((Pr = Pfgrab_core(fd, path == NULL ?
usr/src/lib/libproc/common/proc_arg.c
185
dirname(core) : path, perr)) != NULL) {
usr/src/lib/libproc/common/proc_arg.c
219
if ((Pr = Pfgrab_core(fd, path == NULL ? dirname(core) : path,
usr/src/lib/libproc/common/proc_arg.c
244
proc_arg_xgrab(const char *arg, const char *path, int oflag, int gflag,
usr/src/lib/libproc/common/proc_arg.c
247
return (proc_grab_common(arg, path, oflag, gflag, perr, lwps, NULL));
usr/src/lib/libproc/common/proc_arg.c
49
char *path = alloca(strlen(arg) + strlen(procfs_path) + 9);
usr/src/lib/libproc/common/proc_arg.c
55
(void) strcpy(path, procfs_path);
usr/src/lib/libproc/common/proc_arg.c
56
(void) strcat(path, "/");
usr/src/lib/libproc/common/proc_arg.c
57
(void) strcat(path, arg);
usr/src/lib/libproc/common/proc_arg.c
59
(void) strcpy(path, arg);
usr/src/lib/libproc/common/proc_arg.c
61
(void) strcat(path, "/psinfo");
usr/src/lib/libproc/common/proc_arg.c
67
if ((fd = open64(path, O_RDONLY)) >= 0) {
usr/src/lib/libproc/common/proc_fd.c
324
const char *path;
usr/src/lib/libproc/common/proc_fd.c
343
path = proc_fdinfo_misc(info, PR_PATHNAME, &pathl);
usr/src/lib/libproc/common/proc_fd.c
344
if (path != NULL) {
usr/src/lib/libproc/common/proc_fd.c
350
bcopy(path, core->pr_path, pathl + 1);
usr/src/lib/libproc/sparc/Pisadep.c
141
char path[64];
usr/src/lib/libproc/sparc/Pisadep.c
146
(void) snprintf(path, sizeof (path), "/proc/%d/lwp/%d/gwindows",
usr/src/lib/libproc/sparc/Pisadep.c
149
if (stat64(path, &st) == -1 || st.st_size == 0)
usr/src/lib/libproc/sparc/Pisadep.c
152
if ((fd = open64(path, O_RDONLY)) >= 0) {
usr/src/lib/libproc/sparcv9/Pisadep.c
180
char path[64];
usr/src/lib/libproc/sparcv9/Pisadep.c
185
(void) snprintf(path, sizeof (path), "/proc/%d/lwp/%d/gwindows",
usr/src/lib/libproc/sparcv9/Pisadep.c
188
if (stat64(path, &st) == -1 || st.st_size == 0)
usr/src/lib/libproc/sparcv9/Pisadep.c
191
if ((fd = open64(path, O_RDONLY)) >= 0) {
usr/src/lib/libprtdiag/common/display_sun4v.c
431
char path[PICL_PROPNAMELEN_MAX];
usr/src/lib/libprtdiag/common/display_sun4v.c
476
path, sizeof (path));
usr/src/lib/libprtdiag/common/display_sun4v.c
480
(void) strlcpy(pci_card.notes, path, sizeof (pci_card.notes));
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
101
} else if (strncmp(path, NETWORK_0_PATH, strlen(NETWORK_0_PATH)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
103
} else if (strncmp(path, NETWORK_3_PATH, strlen(NETWORK_3_PATH)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
105
} else if (strncmp(path, NETWORK_2_PATH, strlen(NETWORK_2_PATH)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
121
char path[MAXSTRLEN];
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
161
path, sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
166
(void) strlcpy(pci_card.notes, path, sizeof (pci_card.notes));
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
183
instance = montoya_get_network_instance(path);
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
342
char path[MAXSTRLEN] = "";
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
351
err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, path,
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
352
sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
358
if ((strncmp(path, NETWORK_0_PATH, strlen(NETWORK_0_PATH)) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
359
(strncmp(path, NETWORK_1_PATH, strlen(NETWORK_1_PATH)) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
367
if ((strncmp(path, NETWORK_2_PATH, strlen(NETWORK_2_PATH)) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
368
(strncmp(path, NETWORK_3_PATH, strlen(NETWORK_3_PATH)) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
376
if ((strcmp(path, FIRE_PATHB) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
377
(strcmp(path, FIRE_PATHA) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
385
if (strcmp(path, SWITCH_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
393
if (strcmp(path, SATA_DISK_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
400
if (strcmp(path, RTM_PCI_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
408
(void) strcpy(device_path, path);
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
75
get_bus_type(char *path, struct io_card *card)
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
81
get_slot_number(char *path, struct io_card *card)
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
83
if (strncmp(path, SATA_DISK_PATH, strlen(SATA_DISK_PATH)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
86
} else if (strncmp(path, AMC_PATH, strlen(AMC_PATH)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
96
montoya_get_network_instance(char *path)
usr/src/lib/libprtdiag_psr/sparc/montoya/common/montoya.c
99
if (strncmp(path, NETWORK_1_PATH, strlen(NETWORK_1_PATH)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
102
monza_get_network_instance(char *path)
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
105
if (strncmp(path, MONZA_NETWORK_0, strlen(MONZA_NETWORK_0)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
107
} else if (strncmp(path, MONZA_NETWORK_1, strlen(MONZA_NETWORK_1))
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
110
} else if (strncmp(path, MONZA_NETWORK_2, strlen(MONZA_NETWORK_2))
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
113
} else if (strncmp(path, MONZA_ENET_2, strlen(MONZA_ENET_2))
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
116
} else if (strncmp(path, MONZA_NETWORK_3, strlen(MONZA_NETWORK_3))
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
119
} else if (strncmp(path, MONZA_ENET_3, strlen(MONZA_ENET_3))
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
122
} else if (strncmp(path, MONZA_NETWORK_4, strlen(MONZA_NETWORK_4))
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
125
} else if (strncmp(path, MONZA_NETWORK_5, strlen(MONZA_NETWORK_5))
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
128
} else if (strncmp(path, MONZA_N2_XAUI0, strlen(MONZA_N2_XAUI0))
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
131
} else if (strncmp(path, MONZA_N2_XAUI1, strlen(MONZA_N2_XAUI1))
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
148
char path[MAXSTRLEN];
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
188
path, sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
193
(void) strlcpy(pci_card.notes, path, sizeof (pci_card.notes));
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
205
monza_get_slot_number(path, &pci_card);
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
220
instance = monza_get_network_instance(path);
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
379
char path[MAXSTRLEN] = "";
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
388
err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, path,
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
389
sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
395
if ((strncmp(path, MONZA_NETWORK_0, strlen(MONZA_NETWORK_0)) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
396
(strncmp(path, MONZA_NETWORK_1, strlen(MONZA_NETWORK_1)) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
404
if ((strncmp(path, MONZA_NETWORK_2, strlen(MONZA_NETWORK_2)) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
405
(strncmp(path, MONZA_NETWORK_3, strlen(MONZA_NETWORK_3)) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
413
if ((strncmp(path, MONZA_ENET_2, strlen(MONZA_ENET_2)) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
414
(strncmp(path, MONZA_ENET_3, strlen(MONZA_ENET_3)) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
422
if ((strncmp(path, MONZA_NETWORK_4, strlen(MONZA_NETWORK_4)) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
423
(strncmp(path, MONZA_NETWORK_5, strlen(MONZA_NETWORK_5)) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
431
if (strcmp(path, MONZA_PCIE_SWITCH_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
439
if (strcmp(path, MONZA_RTM_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
446
if (strcmp(path, MONZA_CF_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
455
(void) strcpy(device_path, path);
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
77
monza_get_bus_type(char *path, struct io_card *card)
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
79
if (strcmp(path, MONZA_NIU) == 0) {
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
87
monza_get_slot_number(char *path, struct io_card *card)
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
89
if (strcmp(path, MONZA_N2_XAUI0) == 0) {
usr/src/lib/libprtdiag_psr/sparc/monza/common/monza.c
92
} else if (strcmp(path, MONZA_N2_XAUI1) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
108
if ((err = erie_get_path(nodeh, path, sizeof (path)))
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
118
slot = erie_get_slot_number(path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
119
erie_get_nac(bus_type, path, slot, name, nac, sizeof (nac));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
133
log_printf("%46s", path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
136
log_printf("%46s", path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
171
char path[MAXSTRLEN] = "";
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
177
err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, path,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
178
sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
187
if ((strcmp(path, ERIE_NETWORK_0) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
188
(strcmp(path, ERIE_NETWORK_1) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
193
} else if ((strcmp(path, ERIE_NETWORK_2) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
194
(strcmp(path, ERIE_NETWORK_3) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
199
} else if ((strcmp(path, ERIE_LSI_PATH) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
204
} else if ((strcmp(path, FIRE0) == 0) || (strcmp(path, FIRE1) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
209
} else if ((strcmp(path, PCIE_PCIX) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
210
(strcmp(path, PCIE_PCIE) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
229
log_printf("%41s", path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
373
erie_get_bus_type(char path[], char bus_type[])
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
375
if (strncmp(path, PCIX_BUS, ERIE_PCIX_COMP) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
389
erie_get_slot_number(char path[])
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
391
if (strncmp(path, FIRE0, ERIE_PCIE_COMP) == 0)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
403
erie_get_network_instance(char path[])
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
406
if (strncmp(path, ERIE_NETWORK_1, strlen(ERIE_NETWORK_1)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
408
} else if (strncmp(path, ERIE_NETWORK_3, strlen(ERIE_NETWORK_3)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
410
} else if (strncmp(path, ERIE_NETWORK_0, strlen(ERIE_NETWORK_0)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
412
} else if (strncmp(path, ERIE_NETWORK_2, strlen(ERIE_NETWORK_2)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
425
erie_get_path(picl_nodehdl_t nodeh, char path[], int size)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
431
path, size);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
491
erie_get_nac(char bus_type[], char path[], int slot, char name[], char nac[],
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
498
instance = erie_get_network_instance(path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.c
69
char path[MAXSTRLEN];
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.h
100
void erie_get_bus_type(char path[], char bus_type[]);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.h
101
void erie_get_nac(char bus_type[], char path[], int s,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.h
103
int erie_get_slot_number(char path[]);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.h
104
int erie_get_network_instance(char path[]);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/erie.h
107
int erie_get_path(picl_nodehdl_t nodeh, char path[], int size);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
108
huron_get_network_instance(char *path)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
110
if (strcmp(path, HURON_NETWORK_0) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
112
} else if (strcmp(path, HURON_NETWORK_1) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
114
} else if (strcmp(path, HURON_NETWORK_2) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
116
} else if (strcmp(path, HURON_NETWORK_3) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
118
} else if (strcmp(path, HURON_N2_XAUI0) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
120
} else if (strcmp(path, HURON_N2_XAUI1) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
135
char path[MAXSTRLEN];
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
174
path, sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
179
(void) strlcpy(pci_card.notes, path, sizeof (pci_card.notes));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
191
huron_get_slot_number(path, &pci_card);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
198
instance = huron_get_network_instance(path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
294
char path[MAXSTRLEN] = "";
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
301
err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, path,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
302
sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
307
if ((strcmp(path, HURON_NETWORK_0) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
308
(strcmp(path, HURON_NETWORK_1) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
316
if ((strcmp(path, HURON_NETWORK_2) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
317
(strcmp(path, HURON_NETWORK_3) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
325
if (strcmp(path, HURON_SWITCH_A_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
333
if (strcmp(path, HURON_SWITCH_B_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
341
if (strcmp(path, HURON_SWITCH_C_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
349
if (strcmp(path, HURON_LSI_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
357
(void) strcpy(device_path, path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
59
huron_get_bus_type(char *path, struct io_card *card)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
61
if (strcmp(path, HURON_NIU) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
69
huron_get_slot_number(char *path, struct io_card *card)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
71
if (strcmp(path, HURON_N2_XAUI0) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
74
} else if (strcmp(path, HURON_N2_XAUI1) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
77
} else if (strncmp(path, HURON_PCIE_SLOT0,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
81
} else if (strncmp(path, HURON_PCIE_SLOT1,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
85
} else if (strncmp(path, HURON_PCIE_SLOT2,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
89
} else if (strncmp(path, HURON_PCIE_SLOT3,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
93
} else if (strncmp(path, HURON_PCIE_SLOT4,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.c
97
} else if (strncmp(path, HURON_PCIE_SLOT5,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.h
107
void huron_get_nac(char bus_type[], char path[], int s,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/huron.h
111
int huron_get_path(picl_nodehdl_t nodeh, char path[], int size);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
100
} else if ((strncmp(path, PCIX_SLOT1, strlen(PCIX_SLOT1)) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
101
(strncmp(path, PCIX_SLOT0, strlen(PCIX_SLOT0)) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
130
ontario_get_network_instance(char *path)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
132
if (strncmp(path, NETWORK_1_PATH, strlen(NETWORK_1_PATH)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
134
} else if (strncmp(path, NETWORK_3_PATH, strlen(NETWORK_3_PATH)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
136
} else if (strncmp(path, NETWORK_0_PATH, strlen(NETWORK_0_PATH)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
138
} else if (strncmp(path, NETWORK_2_PATH, strlen(NETWORK_2_PATH)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
153
char path[MAXSTRLEN];
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
192
path, sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
197
(void) strlcpy(pci_card.notes, path, sizeof (pci_card.notes));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
213
instance = ontario_get_network_instance(path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
407
char path[MAXSTRLEN] = "";
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
416
err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, path,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
417
sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
422
if ((strcmp(path, NETWORK_0_PATH) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
423
(strcmp(path, NETWORK_1_PATH) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
431
if ((strcmp(path, NETWORK_2_PATH) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
432
(strcmp(path, NETWORK_3_PATH) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
440
if ((strcmp(path, FIRE_PATH0) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
441
(strcmp(path, FIRE_PATH1) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
449
if ((strcmp(path, PCIX_SLOT0) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
450
(strcmp(path, PCIX_SLOT1) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
458
if (strcmp(path, SWITCH_A_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
465
if (strcmp(path, SWITCH_B_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
472
if (strcmp(path, ONT_LSI_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
480
(void) strcpy(device_path, path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
79
get_bus_type(char *path, struct io_card *card)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
81
if (strncmp(path, PCIX_SLOT0, PCIX_COMP_NUM) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
89
get_slot_number(picl_nodehdl_t nodeh, char *path, struct io_card *card)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
91
if (strncmp(path, PCIE_SLOT0, PCIE_COMP_NUM) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
94
} else if (strncmp(path, PCIE_SLOT1, PCIE_COMP_NUM) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/ontario.c
97
} else if (strncmp(path, PCIE_SLOT2, PCIE_COMP_NUM) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
102
} else if (strncmp(path, PEL_PCIX_SLOT0, strlen(PEL_PCIX_SLOT0)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
112
pelton_get_network_instance(char *path)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
114
if (strncmp(path, PEL_NETWORK_1_PATH,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
117
} else if (strncmp(path, PEL_NETWORK_3_PATH,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
120
} else if (strncmp(path, PEL_NETWORK_0_PATH,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
123
} else if (strncmp(path, PEL_NETWORK_2_PATH,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
139
char path[MAXSTRLEN];
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
174
path, sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
179
(void) strlcpy(pci_card.notes, path, sizeof (pci_card.notes));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
196
instance = pelton_get_network_instance(path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
292
char path[MAXSTRLEN] = "";
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
301
err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, path,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
302
sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
307
if ((strcmp(path, PEL_NETWORK_0_PATH) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
308
(strcmp(path, PEL_NETWORK_1_PATH) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
316
if ((strcmp(path, PEL_NETWORK_2_PATH) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
317
(strcmp(path, PEL_NETWORK_3_PATH) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
325
if ((strcmp(path, FIRE_PATH0) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
326
(strcmp(path, FIRE_PATH1) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
334
if ((strcmp(path, PEL_PCIX_SLOT0) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
335
(strcmp(path, PEL_PCIX_SLOT1) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
336
(strcmp(path, PEL_PCIX_SLOT2) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
337
(strcmp(path, PEL_PCIX_ONBOARD0) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
345
if (strcmp(path, SWITCH_A_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
352
if (strcmp(path, SWITCH_B_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
359
if (strcmp(path, PEL_LSI_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
367
(void) strcpy(device_path, path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
65
get_bus_type(char *path, struct io_card *card)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
67
if (strncmp(path, PEL_PCIX_SLOT0, PCIX_COMP_NUM) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
69
} else if (strncmp(path, PEL_PCIX_SLOT1, PCIX_COMP_NUM) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
71
} else if (strncmp(path, PEL_PCIX_SLOT2, PCIX_COMP_NUM) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
73
} else if (strncmp(path, PEL_PCIX_ONBOARD0, PCIX_COMP_NUM) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
91
get_slot_number(char *path, struct io_card *card)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
93
if (strncmp(path, PEL_PCIE_SLOT0, PCIE_COMP_NUM) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
96
} else if (strncmp(path, PEL_PCIX_SLOT2, strlen(PEL_PCIX_SLOT2)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/pelton.c
99
} else if (strncmp(path, PEL_PCIX_SLOT1, strlen(PEL_PCIX_SLOT1)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
112
path, sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
116
(void) strlcpy(pci_card.notes, path, sizeof (pci_card.notes));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
118
get_bus_type(path, &pci_card);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
120
get_slot_number(path, &pci_card);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
132
instance = stpaul_get_network_instance(path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
159
instance = stpaul_get_usb_instance(path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
167
if ((instance = stpaul_get_io_instance(path, &pn_type)) != -1) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
249
char path[MAXSTRLEN];
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
258
err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, path,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
259
sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
264
if (strcmp(path, SPL_PCIE2PCI) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
280
if ((strcmp(path, SPL_NETWORK_0_PATH) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
281
(strcmp(path, SPL_NETWORK_1_PATH) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
289
if ((strcmp(path, SPL_USB0_PATH) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
290
(strcmp(path, SPL_USB1_PATH) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
291
(strcmp(path, SPL_USB2_PATH) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
299
if ((strcmp(path, FIRE_PATH0) == 0) ||
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
300
(strcmp(path, FIRE_PATH1) == 0)) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
308
if (strcmp(path, SWITCH_A_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
316
if (strcmp(path, SWITCH_B_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
324
if (strcmp(path, SPL_LSI_PATH) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
332
if (strcmp(path, SPL_PCIE2PCI) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
342
(void) strlcpy(device_path, path, sizeof (device_path));
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
367
get_bus_type(char *path, struct io_card *card)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
369
if (strncmp(path, SPL_PCIE_PEM0, strlen(SPL_PCIE_PEM0)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
371
} else if (strncmp(path, SPL_PCIE_PEM1, strlen(SPL_PCIE_PEM1)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
373
} else if (strncmp(path, SPL_PCIE_NEM0, strlen(SPL_PCIE_NEM0)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
375
} else if (strncmp(path, SPL_PCIE_NEM1, strlen(SPL_PCIE_NEM1)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
377
} else if (strncmp(path, SWITCH_A_PATH, strlen(SWITCH_A_PATH)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
379
} else if (strncmp(path, SWITCH_B_PATH, strlen(SWITCH_B_PATH)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
387
get_slot_number(char *path, struct io_card *card)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
389
if (strncmp(path, SPL_PCIE_PEM0, strlen(SPL_PCIE_PEM0)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
392
} else if (strncmp(path, SPL_PCIE_NEM0, strlen(SPL_PCIE_NEM0)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
395
} else if (strncmp(path, SPL_PCIE_PEM1, strlen(SPL_PCIE_PEM1)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
398
} else if (strncmp(path, SPL_PCIE_NEM1, strlen(SPL_PCIE_NEM1)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
409
stpaul_get_network_instance(char *path)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
411
if (strncmp(path, SPL_NETWORK_1_PATH,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
414
else if (strncmp(path, SPL_NETWORK_0_PATH,
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
422
stpaul_get_usb_instance(char *path)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
424
if (strncmp(path, SPL_USB2_PATH, strlen(SPL_USB2_PATH)) == 0)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
426
else if (strncmp(path, SPL_USB1_PATH, strlen(SPL_USB1_PATH)) == 0)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
428
else if (strncmp(path, SPL_USB0_PATH, strlen(path)) == 0)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
435
stpaul_get_io_instance(char *path, char *type)
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
437
if (strncmp(path, SPL_PCIE_PEM1, strlen(SPL_PCIE_PEM1)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
440
} else if (strncmp(path, SPL_PCIE_PEM0, strlen(SPL_PCIE_PEM0)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
443
} else if (strncmp(path, SPL_PCIE_NEM1, strlen(SPL_PCIE_NEM1)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
446
} else if (strncmp(path, SPL_PCIE_NEM0, strlen(SPL_PCIE_NEM0)) == 0) {
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
56
static void get_bus_type(char *path, struct io_card *card);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
57
static void get_slot_number(char *path, struct io_card *card);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
58
static int stpaul_get_network_instance(char *path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
59
static int stpaul_get_usb_instance(char *path);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
60
static int stpaul_get_io_instance(char *path, char *type);
usr/src/lib/libprtdiag_psr/sparc/ontario/common/stpaul.c
72
char path[MAXSTRLEN];
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
174
path, sizeof (path));
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
180
prop_size = sizeof (path) + 1;
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
183
(void) strlcpy(pci_card.notes, path, prop_size);
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
552
char *path;
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
557
path = malloc(
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
559
if (path == NULL)
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
561
(void) strcpy(path, device_str);
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
562
(void) strcat(path, root_complex);
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
563
(void) strcat(path, devctl_str);
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
565
if ((fd = open(path, O_RDWR)) == -1) {
usr/src/lib/libprtdiag_psr/sparc/opl/common/opl_picl.c
93
char path[MAXSTRLEN];
usr/src/lib/libraidcfg/common/raidcfg.c
2239
char path[MAX_PATH_LEN];
usr/src/lib/libraidcfg/common/raidcfg.c
2248
if (controller_id_to_path(controller_id, path) == SUCCESS)
usr/src/lib/libraidcfg/common/raidcfg.c
2265
char path[MAX_PATH_LEN];
usr/src/lib/libraidcfg/common/raidcfg.c
2290
if (controller_id_to_path(controller_id, path) == SUCCESS) {
usr/src/lib/libraidcfg/common/raidcfg.c
4417
controller_id_to_path(uint32_t controller_id, char *path)
usr/src/lib/libraidcfg/common/raidcfg.c
4438
(void) snprintf(path, MAX_PATH_LEN, "%s:devctl", buf);
usr/src/lib/libraidcfg/common/raidcfg.c
4440
fd = open(path, O_RDONLY | O_NDELAY);
usr/src/lib/librcm/librcm.c
873
char path[MAXPATHLEN];
usr/src/lib/librcm/librcm.c
877
if (snprintf(path, MAXPATHLEN, "%s%s", dir_name, script_name)
usr/src/lib/librcm/librcm.c
883
if (stat(path, &stats) == 0)
usr/src/lib/libreparse/common/fs_reparse_lib.c
184
reparse_delete(const char *path)
usr/src/lib/libreparse/common/fs_reparse_lib.c
188
if (path == NULL)
usr/src/lib/libreparse/common/fs_reparse_lib.c
192
if (lstat(path, &sbuf) != 0)
usr/src/lib/libreparse/common/fs_reparse_lib.c
198
return (unlink(path) ? errno : 0);
usr/src/lib/libreparse/common/fs_reparse_lib.c
311
char isa[MAXISALEN], dirpath[MAXPATHLEN], path[MAXPATHLEN];
usr/src/lib/libreparse/common/fs_reparse_lib.c
338
(void) snprintf(path, MAXPATHLEN,
usr/src/lib/libreparse/common/fs_reparse_lib.c
344
if (stat(path, &st) < 0)
usr/src/lib/libreparse/common/fs_reparse_lib.c
346
if ((dlhandle = dlopen(path, RTLD_FIRST|RTLD_LAZY)) == NULL)
usr/src/lib/libreparse/common/fs_reparse_lib.c
71
reparse_create(const char *path, const char *data)
usr/src/lib/libreparse/common/fs_reparse_lib.c
76
if (path == NULL || data == NULL)
usr/src/lib/libreparse/common/fs_reparse_lib.c
83
if (lstat(path, &sbuf) == 0)
usr/src/lib/libreparse/common/fs_reparse_lib.c
86
return (symlink(data, path) ? errno : 0);
usr/src/lib/libresolv2/common/bsd/mktemp.c
105
if (trv <= path)
usr/src/lib/libresolv2/common/bsd/mktemp.c
109
if (stat(path, &sbuf))
usr/src/lib/libresolv2/common/bsd/mktemp.c
123
open(path, O_CREAT|O_EXCL|O_RDWR, 0600)) >= 0)
usr/src/lib/libresolv2/common/bsd/mktemp.c
128
else if (stat(path, &sbuf))
usr/src/lib/libresolv2/common/bsd/mktemp.c
70
static int gettemp(char *path, int *doopen);
usr/src/lib/libresolv2/common/bsd/mktemp.c
73
mkstemp(char *path) {
usr/src/lib/libresolv2/common/bsd/mktemp.c
76
return (gettemp(path, &fd) ? fd : -1);
usr/src/lib/libresolv2/common/bsd/mktemp.c
82
mktemp(char *path) {
usr/src/lib/libresolv2/common/bsd/mktemp.c
83
return(gettemp(path, (int *)NULL) ? path : (char *)NULL);
usr/src/lib/libresolv2/common/bsd/mktemp.c
88
gettemp(char *path, int *doopen) {
usr/src/lib/libresolv2/common/bsd/mktemp.c
94
for (trv = path; *trv; ++trv); /*%< extra X's get set to 0's */
usr/src/lib/libsasl/include/sasl.h
476
const char **path);
usr/src/lib/libsasl/lib/client.c
173
sasl_FREE(path_info->path);
usr/src/lib/libsasl/lib/common.c
2698
const char **path)
usr/src/lib/libsasl/lib/common.c
2700
if (! path)
usr/src/lib/libsasl/lib/common.c
2706
*path = getenv(SASL_PATH_ENV_VAR);
usr/src/lib/libsasl/lib/common.c
2707
if (! *path)
usr/src/lib/libsasl/lib/common.c
2709
*path = PLUGINDIR;
usr/src/lib/libsasl/lib/common.c
2717
_sasl_getpath(void *context __attribute__((unused)), const char **path)
usr/src/lib/libsasl/lib/common.c
2757
*path = PLUGINDIR;
usr/src/lib/libsasl/lib/common.c
2878
*path = return_value;
usr/src/lib/libsasl/lib/common.c
2882
if (! *path)
usr/src/lib/libsasl/lib/common.c
2883
*path = PLUGINDIR;
usr/src/lib/libsasl/lib/common.c
85
static int _sasl_getpath(void *context __attribute__((unused)), const char **path);
usr/src/lib/libsasl/lib/dlopen.c
509
const char *path=NULL;
usr/src/lib/libsasl/lib/dlopen.c
591
&path);
usr/src/lib/libsasl/lib/dlopen.c
593
if (! path) return SASL_FAIL;
usr/src/lib/libsasl/lib/dlopen.c
595
if (strlen(path) >= PATH_MAX) { /* no you can't buffer overrun */
usr/src/lib/libsasl/lib/dlopen.c
603
c=path[position];
usr/src/lib/libsasl/lib/dlopen.c
615
if (strcmp(path_info->path, prefix) == 0)
usr/src/lib/libsasl/lib/dlopen.c
628
if(_sasl_strdup(prefix, &p_info->path, NULL) != SASL_OK) {
usr/src/lib/libsasl/lib/saslint.h
223
char *path;
usr/src/lib/libsasl/lib/server.c
607
sasl_FREE(path_info->path);
usr/src/lib/libscf/common/lowlevel.c
5353
scf_parse_file_fmri(char *fmri, const char **scope, const char **path)
usr/src/lib/libscf/common/lowlevel.c
5405
if (path != NULL) {
usr/src/lib/libscf/common/lowlevel.c
5408
*path = s - 1;
usr/src/lib/libscf/inc/libscf_priv.h
214
int scf_parse_file_fmri(char *fmri, const char **scope, const char **path);
usr/src/lib/libsec/common/aclutils.c
227
acl_get(const char *path, int get_flag, acl_t **aclp)
usr/src/lib/libsec/common/aclutils.c
230
acl_inp.file = path;
usr/src/lib/libsec/common/aclutils.c
302
acl_set(const char *path, acl_t *aclp)
usr/src/lib/libsec/common/aclutils.c
306
acl_inp.file = path;
usr/src/lib/libshare/common/libshare.c
1060
char path[ZFS_MAXPROPLEN];
usr/src/lib/libshare/common/libshare.c
1061
char *ptr = path;
usr/src/lib/libshare/common/libshare.c
1066
"zfs", (char *)arg, path);
usr/src/lib/libshare/common/libshare.c
1071
char path[ZFS_MAXPROPLEN];
usr/src/lib/libshare/common/libshare.c
1072
char *ptr = path;
usr/src/lib/libshare/common/libshare.c
1080
path);
usr/src/lib/libshare/common/libshare.c
1312
xmlChar *path;
usr/src/lib/libshare/common/libshare.c
1327
path = xmlGetProp(node,
usr/src/lib/libshare/common/libshare.c
1329
if (path != NULL &&
usr/src/lib/libshare/common/libshare.c
1330
xmlStrcmp(path,
usr/src/lib/libshare/common/libshare.c
1332
xmlFree(path);
usr/src/lib/libshare/common/libshare.c
1335
xmlFree(path);
usr/src/lib/libshare/common/libshare.c
1395
char *path;
usr/src/lib/libshare/common/libshare.c
1399
path = sa_get_share_attr(share, "path");
usr/src/lib/libshare/common/libshare.c
1400
if (path != NULL && strcmp(path, sharepath) == 0) {
usr/src/lib/libshare/common/libshare.c
1401
sa_free_attr_string(path);
usr/src/lib/libshare/common/libshare.c
1404
if (path != NULL)
usr/src/lib/libshare/common/libshare.c
1405
sa_free_attr_string(path);
usr/src/lib/libshare/common/libshare.c
1475
sa_check_path(sa_group_t group, char *path, int strictness)
usr/src/lib/libshare/common/libshare.c
1483
return (validpath(handle, path, strictness));
usr/src/lib/libshare/common/libshare.c
1763
char *path;
usr/src/lib/libshare/common/libshare.c
1767
path = sa_get_share_attr(share, "path");
usr/src/lib/libshare/common/libshare.c
1770
ret = sa_proto_unshare(share, protocol, path);
usr/src/lib/libshare/common/libshare.c
1786
err = sa_proto_unshare(share, proto, path);
usr/src/lib/libshare/common/libshare.c
1795
if (path != NULL)
usr/src/lib/libshare/common/libshare.c
1796
sa_free_attr_string(path);
usr/src/lib/libshare/common/libshare.c
343
set_legacy_timestamp(xmlNodePtr root, char *path, uint64_t tval)
usr/src/lib/libshare/common/libshare.c
360
xmlStrcmp(lpath, (xmlChar *)path) == 0) {
usr/src/lib/libshare/common/libshare.c
379
(void) xmlSetProp(node, (xmlChar *)"path", (xmlChar *)path);
usr/src/lib/libshare/common/libshare.c
464
char *path;
usr/src/lib/libshare/common/libshare.c
485
path = sa_get_share_attr(share, "path");
usr/src/lib/libshare/common/libshare.c
494
if (path == NULL)
usr/src/lib/libshare/common/libshare.c
497
if (strcmp(path, newpath) == 0) {
usr/src/lib/libshare/common/libshare.c
500
subdir = issubdir(newpath, path);
usr/src/lib/libshare/common/libshare.c
501
parent = issubdir(path, newpath);
usr/src/lib/libshare/common/libshare.c
503
sa_free_attr_string(path);
usr/src/lib/libshare/common/libshare.c
504
path = NULL;
usr/src/lib/libshare/common/libshare.c
509
sa_free_attr_string(path);
usr/src/lib/libshare/common/libshare.c
510
path = NULL;
usr/src/lib/libshare/common/libshare.c
531
char *path = NULL;
usr/src/lib/libshare/common/libshare.c
547
if (path != NULL)
usr/src/lib/libshare/common/libshare.c
548
sa_free_attr_string(path);
usr/src/lib/libshare/common/libshare.c
559
validpath(sa_handle_t handle, char *path, int strictness)
usr/src/lib/libshare/common/libshare.c
566
if (*path != '/')
usr/src/lib/libshare/common/libshare.c
569
if (stat(path, &st) < 0) {
usr/src/lib/libshare/common/libshare.c
572
share = sa_find_share(handle, path);
usr/src/lib/libshare/common/libshare.c
586
fstype = sa_fstype(path);
usr/src/lib/libshare/common/libshare.c
588
if (sa_zfs_is_shared(handle, path))
usr/src/lib/libshare/common/libshare.c
595
error = checksubdir(handle, path, strictness);
usr/src/lib/libshare/common/libshare_zfs.c
1101
sa_zfs_set_sharenfs(sa_group_t group, char *path, int on)
usr/src/lib/libshare/common/libshare_zfs.c
1124
dataset = get_zfs_dataset(impl_handle, path, B_FALSE);
usr/src/lib/libshare/common/libshare_zfs.c
1207
sa_zfs_set_sharesmb(sa_group_t group, char *path, int on)
usr/src/lib/libshare/common/libshare_zfs.c
1241
dataset = get_zfs_dataset(impl_handle, path, B_FALSE);
usr/src/lib/libshare/common/libshare_zfs.c
1297
char *path;
usr/src/lib/libshare/common/libshare_zfs.c
1302
path = sa_get_share_attr((sa_share_t)group,
usr/src/lib/libshare/common/libshare_zfs.c
1304
if (path != NULL) {
usr/src/lib/libshare/common/libshare_zfs.c
1311
impl_handle, path, B_FALSE);
usr/src/lib/libshare/common/libshare_zfs.c
1315
sa_free_attr_string(path);
usr/src/lib/libshare/common/libshare_zfs.c
1404
sa_path_is_zfs(char *path)
usr/src/lib/libshare/common/libshare_zfs.c
1409
fstype = sa_fstype(path);
usr/src/lib/libshare/common/libshare_zfs.c
1420
char *path;
usr/src/lib/libshare/common/libshare_zfs.c
1424
path = sa_get_share_attr(share, "path");
usr/src/lib/libshare/common/libshare_zfs.c
1425
if (path != NULL) {
usr/src/lib/libshare/common/libshare_zfs.c
1428
sa_free_attr_string(path);
usr/src/lib/libshare/common/libshare_zfs.c
1440
sa_share_zfs(sa_share_t share, sa_resource_t resource, char *path, share_t *sh,
usr/src/lib/libshare/common/libshare_zfs.c
1466
pathp = path;
usr/src/lib/libshare/common/libshare_zfs.c
1470
if (pathp == path) {
usr/src/lib/libshare/common/libshare_zfs.c
1471
(void) strlcpy(newpath, path, sizeof (newpath));
usr/src/lib/libshare/common/libshare_zfs.c
1526
err = zfs_deleg_share_nfs(libhandle, dataset, path,
usr/src/lib/libshare/common/libshare_zfs.c
1563
sa_zfs_get_info(libzfs_handle_t *libzfs, char *path, char *mountpointp,
usr/src/lib/libshare/common/libshare_zfs.c
1600
if (get_legacy_mountpoint(path, dataset,
usr/src/lib/libshare/common/libshare_zfs.c
1620
if (strcmp(mountpoint, path) == 0) {
usr/src/lib/libshare/common/libshare_zfs.c
1716
sa_zfs_setprop(sa_handle_t handle, char *path, nvlist_t *nvl)
usr/src/lib/libshare/common/libshare_zfs.c
1726
if ((handle == NULL) || (path == NULL))
usr/src/lib/libshare/common/libshare_zfs.c
1729
if ((dataset = get_zfs_dataset(handle, path, B_FALSE)) == NULL)
usr/src/lib/libshare/common/libshare_zfs.c
238
get_legacy_mountpoint(const char *path, char *dataset, size_t dlen,
usr/src/lib/libshare/common/libshare_zfs.c
255
if (strcmp(entry.mnt_mountp, path) == 0) {
usr/src/lib/libshare/common/libshare_zfs.c
276
verify_zfs_handle(zfs_handle_t *hdl, const char *path, boolean_t search_mnttab)
usr/src/lib/libshare/common/libshare_zfs.c
295
get_legacy_mountpoint(path, mountpoint,
usr/src/lib/libshare/common/libshare_zfs.c
312
if (strcmp(mountpoint, path) == 0) {
usr/src/lib/libshare/common/libshare_zfs.c
328
get_zfs_dataset(sa_handle_impl_t impl_handle, char *path,
usr/src/lib/libshare/common/libshare_zfs.c
345
cutpath = path + strspn(path, "/");
usr/src/lib/libshare/common/libshare_zfs.c
353
ret = verify_zfs_handle(handle_from_path, path, search_mnttab);
usr/src/lib/libshare/common/libshare_zfs.c
366
if ((ret = verify_zfs_handle(zlist[i], path,
usr/src/lib/libshare/common/libshare_zfs.c
414
sa_zfs_is_shared(sa_handle_t sahandle, char *path)
usr/src/lib/libshare/common/libshare_zfs.c
422
dataset = get_zfs_dataset((sa_handle_t)sahandle, path, B_FALSE);
usr/src/lib/libshare/common/libshare_zfs.c
785
sa_get_zfs_share_common(sa_handle_t handle, zfs_handle_t *fs_handle, char *path,
usr/src/lib/libshare/common/libshare_zfs.c
807
if (path != NULL)
usr/src/lib/libshare/common/libshare_zfs.c
808
(void) strncpy(path, mountpoint, sizeof (mountpoint));
usr/src/lib/libshare/common/libsharecore.c
1069
if (entry->path != NULL)
usr/src/lib/libshare/common/libsharecore.c
1070
free(entry->path);
usr/src/lib/libshare/common/libsharecore.c
1155
if (list->path != NULL && strlen(list->path) > 0 &&
usr/src/lib/libshare/common/libsharecore.c
1156
*list->path == '/') {
usr/src/lib/libshare/common/libsharecore.c
1157
share = sa_find_share(handle, list->path);
usr/src/lib/libshare/common/libsharecore.c
1195
share = sa_add_share(defgroup, list->path,
usr/src/lib/libshare/common/libsharecore.c
1289
char *path;
usr/src/lib/libshare/common/libsharecore.c
1302
path = sa_get_share_attr(share, "path");
usr/src/lib/libshare/common/libsharecore.c
1303
if (path != NULL) {
usr/src/lib/libshare/common/libsharecore.c
1304
item = finddfsentry(list, path);
usr/src/lib/libshare/common/libsharecore.c
1305
sa_free_attr_string(path);
usr/src/lib/libshare/common/libsharecore.c
1330
getlegacyconfig(sa_handle_t handle, char *path, xmlNodePtr *root)
usr/src/lib/libshare/common/libsharecore.c
1338
if (strcmp(path, SA_LEGACY_DFSTAB) == 0) {
usr/src/lib/libshare/common/libsharecore.c
1348
legacy_removes(defgroup, path);
usr/src/lib/libshare/common/libsharecore.c
1350
parse_dfstab(handle, path, *root);
usr/src/lib/libshare/common/libsharecore.c
1400
newp->path = strdup(sharetab_entry->sh_path);
usr/src/lib/libshare/common/libsharecore.c
1406
if (newp->path == NULL || newp->resource == NULL ||
usr/src/lib/libshare/common/libsharecore.c
1460
share = sa_find_share(handle, tmplist->path);
usr/src/lib/libshare/common/libsharecore.c
1485
share = _sa_add_share(group, tmplist->path,
usr/src/lib/libshare/common/libsharecore.c
1498
tmplist->path, SA_SHARE_TRANSIENT,
usr/src/lib/libshare/common/libsharecore.c
1502
if (sa_zfs_is_shared(handle, tmplist->path)) {
usr/src/lib/libshare/common/libsharecore.c
1523
tmplist->path, SA_SHARE_TRANSIENT,
usr/src/lib/libshare/common/libsharecore.c
1527
share = _sa_add_share(lgroup, tmplist->path,
usr/src/lib/libshare/common/libsharecore.c
1581
if (strcmp(tmplist->path, paths[i]) == 0) {
usr/src/lib/libshare/common/libsharecore.c
171
if (list->path == NULL && list->description != NULL &&
usr/src/lib/libshare/common/libsharecore.c
1749
sa_fstype(char *path)
usr/src/lib/libshare/common/libsharecore.c
1754
err = stat(path, &st);
usr/src/lib/libshare/common/libsharecore.c
2186
char *path;
usr/src/lib/libshare/common/libsharecore.c
2189
path = sa_get_share_attr(share, "path");
usr/src/lib/libshare/common/libsharecore.c
2190
if (path != NULL) {
usr/src/lib/libshare/common/libsharecore.c
2210
sa_free_attr_string(path);
usr/src/lib/libshare/common/libsharecore.c
2223
sa_delete_sharetab(sa_handle_t handle, char *path, char *proto)
usr/src/lib/libshare/common/libsharecore.c
2233
if (path != NULL && proto != NULL) {
usr/src/lib/libshare/common/libsharecore.c
2235
sh.sh_path = path;
usr/src/lib/libshare/common/libsharecore.c
2310
sa_fix_resource_name(char *path)
usr/src/lib/libshare/common/libsharecore.c
2313
char *p = path;
usr/src/lib/libshare/common/libsharecore.c
2317
assert(path != NULL);
usr/src/lib/libshare/common/libsharecore.c
2324
if (q != NULL && q != path) {
usr/src/lib/libshare/common/libsharecore.c
2330
(void) strcpy(path, "_");
usr/src/lib/libshare/common/libsharecore.c
2355
(void) memmove(path, p, len);
usr/src/lib/libshare/common/libsharecore.c
2356
path[len] = '\0';
usr/src/lib/libshare/common/libsharecore.c
2358
for (p = path; *p != '\0'; ++p) {
usr/src/lib/libshare/common/libsharecore.c
280
item->path = strdup(args[optind]);
usr/src/lib/libshare/common/libsharecore.c
315
finddfsentry(xfs_sharelist_t *list, char *path)
usr/src/lib/libshare/common/libsharecore.c
320
if (item->path != NULL && strcmp(item->path, path) == 0)
usr/src/lib/libshare/common/libsharecore.c
334
remdfsentry(xfs_sharelist_t *list, char *path, char *proto)
usr/src/lib/libshare/common/libsharecore.c
341
if (item->path == NULL) {
usr/src/lib/libshare/common/libsharecore.c
346
if (proto == NULL || (strcmp(item->path, path) == 0 &&
usr/src/lib/libshare/common/libsharecore.c
378
if (item->path == NULL) {
usr/src/lib/libshare/common/libsharecore.c
419
item->path = sa_get_share_attr(share, "path");
usr/src/lib/libshare/common/libsharecore.c
460
if (item->path != NULL) {
usr/src/lib/libshare/common/libsharecore.c
461
if (*item->path == '/') {
usr/src/lib/libshare/common/libsharecore.c
474
item->path,
usr/src/lib/libshare/common/libsharecore.c
583
char *path;
usr/src/lib/libshare/common/libsharecore.c
592
path = sa_get_share_attr(share, "path");
usr/src/lib/libshare/common/libsharecore.c
593
if (path == NULL)
usr/src/lib/libshare/common/libsharecore.c
608
list = remdfsentry(list, path,
usr/src/lib/libshare/common/libsharecore.c
619
list = remdfsentry(list, path,
usr/src/lib/libshare/common/libsharecore.c
655
if (path != NULL)
usr/src/lib/libshare/common/libsharecore.c
656
sa_free_attr_string(path);
usr/src/lib/libshare/common/libsharecore.c
680
char *path;
usr/src/lib/libshare/common/libsharecore.c
700
path = sa_get_share_attr(share, "path");
usr/src/lib/libshare/common/libsharecore.c
701
if (path == NULL) {
usr/src/lib/libshare/common/libsharecore.c
714
list = remdfsentry(list, path, proto);
usr/src/lib/libshare/common/libsharecore.c
731
sa_free_attr_string(path);
usr/src/lib/libshare/common/libsharecore.c
80
char *path;
usr/src/lib/libshare/common/plugin.c
109
char path[MAXPATHLEN];
usr/src/lib/libshare/common/plugin.c
114
(void) snprintf(path, MAXPATHLEN,
usr/src/lib/libshare/common/plugin.c
121
if (stat(path, &st) < 0)
usr/src/lib/libshare/common/plugin.c
124
if ((dlhandle = dlopen(path, RTLD_FIRST|RTLD_LAZY)) == NULL) {
usr/src/lib/libshare/common/plugin.c
291
sa_proto_unshare(sa_share_t share, char *proto, char *path)
usr/src/lib/libshare/common/plugin.c
297
ret = ops->sa_unshare(share, path);
usr/src/lib/libshare/nfs/libshare_nfs.c
1257
printarg(char *path, struct exportdata *ep)
usr/src/lib/libshare/nfs/libshare_nfs.c
1265
(void) printf("%s:\n", path);
usr/src/lib/libshare/nfs/libshare_nfs.c
1665
nfslogtab_deactivate(char *path)
usr/src/lib/libshare/nfs/libshare_nfs.c
1682
if (logtab_deactivate(f, NULL, path, NULL) == -1) {
usr/src/lib/libshare/nfs/libshare_nfs.c
1687
"deactivate %s in %s\n"), path, NFSLOGTAB);
usr/src/lib/libshare/nfs/libshare_nfs.c
1799
char *path;
usr/src/lib/libshare/nfs/libshare_nfs.c
1809
path = sa_get_share_attr(share, "path");
usr/src/lib/libshare/nfs/libshare_nfs.c
1810
if (path == NULL)
usr/src/lib/libshare/nfs/libshare_nfs.c
1813
iszfs = sa_path_is_zfs(path);
usr/src/lib/libshare/nfs/libshare_nfs.c
1841
export.ex_path = path;
usr/src/lib/libshare/nfs/libshare_nfs.c
1842
export.ex_pathlen = strlen(path) + 1;
usr/src/lib/libshare/nfs/libshare_nfs.c
1904
"no memory\n"), path);
usr/src/lib/libshare/nfs/libshare_nfs.c
1921
printarg(path, &export);
usr/src/lib/libshare/nfs/libshare_nfs.c
1930
ea.dname = path;
usr/src/lib/libshare/nfs/libshare_nfs.c
1934
err = sa_share_zfs(share, NULL, path, &sh, &ea, ZFS_SHARE_NFS);
usr/src/lib/libshare/nfs/libshare_nfs.c
1941
err = exportfs(path, &export);
usr/src/lib/libshare/nfs/libshare_nfs.c
1977
if (nfslogtab_add(path, export.ex_log_buffer,
usr/src/lib/libshare/nfs/libshare_nfs.c
1981
path);
usr/src/lib/libshare/nfs/libshare_nfs.c
1989
(void) nfslogtab_deactivate(path);
usr/src/lib/libshare/nfs/libshare_nfs.c
1995
if (path != NULL)
usr/src/lib/libshare/nfs/libshare_nfs.c
1996
free(path);
usr/src/lib/libshare/nfs/libshare_nfs.c
2015
nfs_disable_share(sa_share_t share, char *path)
usr/src/lib/libshare/nfs/libshare_nfs.c
2023
if (path == NULL)
usr/src/lib/libshare/nfs/libshare_nfs.c
2036
ea.dname = path;
usr/src/lib/libshare/nfs/libshare_nfs.c
2038
sh.sh_path = path;
usr/src/lib/libshare/nfs/libshare_nfs.c
2041
err = sa_share_zfs(share, NULL, path, &sh,
usr/src/lib/libshare/nfs/libshare_nfs.c
2048
err = exportfs(path, NULL);
usr/src/lib/libshare/nfs/libshare_nfs.c
2072
(void) sa_delete_sharetab(handle, path, "nfs");
usr/src/lib/libshare/nfs/libshare_nfs.c
2074
(void) nfslogtab_deactivate(path);
usr/src/lib/libshare/smb/libshare_smb.c
1199
path_validator(int index, char *path)
usr/src/lib/libshare/smb/libshare_smb.c
1204
if (path == NULL)
usr/src/lib/libshare/smb/libshare_smb.c
1207
fd = open(path, O_RDONLY);
usr/src/lib/libshare/smb/libshare_smb.c
2124
char *path;
usr/src/lib/libshare/smb/libshare_smb.c
2132
if ((path = sa_get_share_attr(share, "path")) == NULL)
usr/src/lib/libshare/smb/libshare_smb.c
2136
sa_free_attr_string(path);
usr/src/lib/libshare/smb/libshare_smb.c
2140
(void) strlcpy(si->shr_path, path, sizeof (si->shr_path));
usr/src/lib/libshare/smb/libshare_smb.c
2142
sa_free_attr_string(path);
usr/src/lib/libshare/smb/libshare_smb.c
393
char *path;
usr/src/lib/libshare/smb/libshare_smb.c
410
path = sa_get_share_attr(share, "path");
usr/src/lib/libshare/smb/libshare_smb.c
411
if (path == NULL)
usr/src/lib/libshare/smb/libshare_smb.c
421
iszfs = sa_path_is_zfs(path);
usr/src/lib/libshare/smb/libshare_smb.c
446
sa_free_attr_string(path);
usr/src/lib/libshare/smb/libshare_smb.c
456
err = sa_share_zfs(share, resource, (char *)path, &sh,
usr/src/lib/libshare/smb/libshare_smb.c
468
sa_free_attr_string(path);
usr/src/lib/libshare/smb/libshare_smb.c
577
char *path;
usr/src/lib/libshare/smb/libshare_smb.c
584
path = sa_get_share_attr(share, "path");
usr/src/lib/libshare/smb/libshare_smb.c
585
if (path == NULL)
usr/src/lib/libshare/smb/libshare_smb.c
593
sa_free_attr_string(path);
usr/src/lib/libshare/smb/libshare_smb.c
636
smb_disable_share(sa_share_t share, char *path)
usr/src/lib/libshare/smb/libshare_smb.c
647
if (path == NULL)
usr/src/lib/libshare/smb/libshare_smb.c
683
err = sa_share_zfs(share, resource, (char *)path, &sh,
usr/src/lib/libshare/smb/libshare_smb.c
721
(void) sa_delete_sharetab(handle, path, "smb");
usr/src/lib/libsldap/common/ns_sldap.h
154
char *path; /* certificate path */
usr/src/lib/libsmbfs/smb/ctx.c
461
char *host, *share, *path;
usr/src/lib/libsmbfs/smb/ctx.c
564
path = strchr(p, '/');
usr/src/lib/libsmbfs/smb/ctx.c
565
if (path)
usr/src/lib/libsmbfs/smb/ctx.c
566
*path = '\0';
usr/src/lib/libsmbfs/smb/ctx.c
596
if (path) {
usr/src/lib/libsmbfs/smb/ctx.c
598
*path = '/';
usr/src/lib/libsmbfs/smb/ctx.c
599
p = path + 1;
usr/src/lib/libsmbfs/smb/ctx.c
602
ctx->ct_rpath = strdup(path);
usr/src/lib/libsmbfs/smb/file.c
115
strlcpy(ioc.ioc_name, path, SMBIOC_MAX_NAME);
usr/src/lib/libsmbfs/smb/file.c
140
smb_fh_open(struct smb_ctx *ctx, const char *path, int oflag)
usr/src/lib/libsmbfs/smb/file.c
149
ntpath = strdup(path);
usr/src/lib/libsmbfs/smb/file.c
80
struct smb_ctx *ctx, char *path,
usr/src/lib/libsmbfs/smb/file.c
89
nmlen = strlen(path);
usr/src/lib/libsmbfs/smb/iod_cl.c
92
char *path;
usr/src/lib/libsmbfs/smb/iod_cl.c
96
path = smb_iod_door_path();
usr/src/lib/libsmbfs/smb/iod_cl.c
97
fd = open(path, O_RDONLY, 0);
usr/src/lib/libsqlite/tool/lemon.c
2711
char *path,*cp;
usr/src/lib/libsqlite/tool/lemon.c
2723
path = (char *)malloc( strlen(argv0) + strlen(name) + 2 );
usr/src/lib/libsqlite/tool/lemon.c
2724
if( path ) sprintf(path,"%s/%s",argv0,name);
usr/src/lib/libsqlite/tool/lemon.c
2730
path = (char *)malloc( strlen(pathlist)+strlen(name)+2 );
usr/src/lib/libsqlite/tool/lemon.c
2731
if( path!=0 ){
usr/src/lib/libsqlite/tool/lemon.c
2737
sprintf(path,"%s/%s",pathlist,name);
usr/src/lib/libsqlite/tool/lemon.c
2741
if( access(path,modemask)==0 ) break;
usr/src/lib/libsqlite/tool/lemon.c
2745
return path;
usr/src/lib/libtecla/common/cplfile.c
144
cf->path = NULL;
usr/src/lib/libtecla/common/cplfile.c
169
cf->path = _new_PathName();
usr/src/lib/libtecla/common/cplfile.c
170
if(!cf->path)
usr/src/lib/libtecla/common/cplfile.c
195
cf->path = _del_PathName(cf->path);
usr/src/lib/libtecla/common/cplfile.c
254
_pn_clear_path(cf->path);
usr/src/lib/libtecla/common/cplfile.c
291
if(strcmp(cf->path->name, FS_ROOT_DIR) == 0 &&
usr/src/lib/libtecla/common/cplfile.c
341
if(_pn_append_to_path(cf->path, lptr, seglen, escaped) == NULL) {
usr/src/lib/libtecla/common/cplfile.c
384
if(cf->path->name[0] == '\0' && value[0] == '~') {
usr/src/lib/libtecla/common/cplfile.c
394
if(strcmp(cf->path->name, FS_ROOT_DIR) == 0 &&
usr/src/lib/libtecla/common/cplfile.c
403
if(_pn_append_to_path(cf->path, value, strlen(value), escaped)==NULL) {
usr/src/lib/libtecla/common/cplfile.c
412
strcmp(cf->path->name, FS_ROOT_DIR) == 0 &&
usr/src/lib/libtecla/common/cplfile.c
418
cf->path->name[vlen-FS_DIR_SEP_LEN] = '\0';
usr/src/lib/libtecla/common/cplfile.c
430
if(!_pu_path_is_dir(cf->path->name))
usr/src/lib/libtecla/common/cplfile.c
495
if(_pn_append_to_path(cf->path, home_dir, -1, 0) == NULL) {
usr/src/lib/libtecla/common/cplfile.c
621
char *pathname = cf->path->name;
usr/src/lib/libtecla/common/cplfile.c
709
if(_pn_append_to_path(cf->path, file_name + prefix_len,
usr/src/lib/libtecla/common/cplfile.c
719
if(_pu_path_is_dir(cf->path->name)) {
usr/src/lib/libtecla/common/cplfile.c
722
} else if(!check_fn || check_fn(check_data, cf->path->name)) {
usr/src/lib/libtecla/common/cplfile.c
725
cf->path->name[pathlen] = '\0';
usr/src/lib/libtecla/common/cplfile.c
731
cf->path->name[pathlen] = '\0';
usr/src/lib/libtecla/common/cplfile.c
82
PathName *path; /* The buffer in which to accumulate the path */
usr/src/lib/libtecla/common/direader.c
154
int _dr_open_dir(DirReader *dr, const char *path, char **errmsg)
usr/src/lib/libtecla/common/direader.c
164
if(!_dr_path_is_dir(path)) {
usr/src/lib/libtecla/common/direader.c
166
_err_record_msg(dr->err, "Can't open directory: ", path, END_ERR_MSG);
usr/src/lib/libtecla/common/direader.c
174
dir = opendir(path);
usr/src/lib/libtecla/common/direader.c
177
_err_record_msg(dr->err, "Can't open directory: ", path, END_ERR_MSG);
usr/src/lib/libtecla/common/direader.c
188
int name_max = pathconf(path, _PC_NAME_MAX);
usr/src/lib/libtecla/common/expand.c
104
PathName *path; /* The pathname being matched */
usr/src/lib/libtecla/common/expand.c
1042
static char *ef_expand_special(ExpandFile *ef, const char *path, int pathlen)
usr/src/lib/libtecla/common/expand.c
1053
_pn_clear_path(ef->path);
usr/src/lib/libtecla/common/expand.c
1061
int c = path[ppos];
usr/src/lib/libtecla/common/expand.c
1072
if(spos < ppos && _pn_append_to_path(ef->path, path + spos, ppos-spos, 0)
usr/src/lib/libtecla/common/expand.c
1088
strncmp(path + ppos, FS_DIR_SEP, FS_DIR_SEP_LEN); envlen++)
usr/src/lib/libtecla/common/expand.c
1089
ef->envnam[envlen] = path[ppos++];
usr/src/lib/libtecla/common/expand.c
1116
if(_pn_append_to_path(ef->path, value, -1, 0) == NULL) {
usr/src/lib/libtecla/common/expand.c
1130
if(spos < ppos && _pn_append_to_path(ef->path, path + spos, ppos-spos, 0)
usr/src/lib/libtecla/common/expand.c
1139
pptr = ef->path->name;
usr/src/lib/libtecla/common/expand.c
1140
if(*pptr == '~' && path[0] != '\\') {
usr/src/lib/libtecla/common/expand.c
1149
plen = strlen(ef->path->name);
usr/src/lib/libtecla/common/expand.c
1198
if(_pn_resize_path(ef->path, plen - usrlen - 1 - skip + homelen)==NULL) {
usr/src/lib/libtecla/common/expand.c
1207
memmove(ef->path->name + homelen,
usr/src/lib/libtecla/common/expand.c
1208
ef->path->name + 1 + usrlen + skip, plen - usrlen - 1 - skip+1);
usr/src/lib/libtecla/common/expand.c
121
static char *ef_expand_special(ExpandFile *ef, const char *path, int pathlen);
usr/src/lib/libtecla/common/expand.c
1213
ef->path->name[i] = homedir[i];
usr/src/lib/libtecla/common/expand.c
1218
return ef_cache_pathname(ef, ef->path->name, 0);
usr/src/lib/libtecla/common/expand.c
182
ef->path = NULL;
usr/src/lib/libtecla/common/expand.c
209
ef->path = _new_PathName();
usr/src/lib/libtecla/common/expand.c
210
if(!ef->path)
usr/src/lib/libtecla/common/expand.c
261
ef->path = _del_PathName(ef->path);
usr/src/lib/libtecla/common/expand.c
346
FileExpansion *ef_expand_file(ExpandFile *ef, const char *path, int pathlen)
usr/src/lib/libtecla/common/expand.c
355
if(!ef || !path) {
usr/src/lib/libtecla/common/expand.c
367
if(pathlen < 0 || pathlen > strlen(path))
usr/src/lib/libtecla/common/expand.c
368
pathlen = strlen(path);
usr/src/lib/libtecla/common/expand.c
378
path = ef_expand_special(ef, path, pathlen);
usr/src/lib/libtecla/common/expand.c
379
if(!path)
usr/src/lib/libtecla/common/expand.c
384
_pn_clear_path(ef->path);
usr/src/lib/libtecla/common/expand.c
388
for(wild=0,pptr=path; !wild && *pptr; pptr++) {
usr/src/lib/libtecla/common/expand.c
404
if(ef_record_pathname(ef, path, 1))
usr/src/lib/libtecla/common/expand.c
423
if(strcmp(path, FS_ROOT_DIR) == 0) {
usr/src/lib/libtecla/common/expand.c
430
if(strncmp(path, FS_ROOT_DIR, FS_ROOT_DIR_LEN) == 0) {
usr/src/lib/libtecla/common/expand.c
432
if(!_pn_append_to_path(ef->path, FS_ROOT_DIR, -1, 0)) {
usr/src/lib/libtecla/common/expand.c
437
path += FS_ROOT_DIR_LEN;
usr/src/lib/libtecla/common/expand.c
450
if(ef_match_relative_pathname(ef, dnode->dr, path, 0)) {
usr/src/lib/libtecla/common/expand.c
509
pathlen = strlen(ef->path->name);
usr/src/lib/libtecla/common/expand.c
531
if((separate && _pn_append_to_path(ef->path, FS_DIR_SEP, -1, 0)==NULL) ||
usr/src/lib/libtecla/common/expand.c
532
_pn_append_to_path(ef->path, file, -1, 0)==NULL) {
usr/src/lib/libtecla/common/expand.c
542
if(ef_record_pathname(ef, ef->path->name, 0))
usr/src/lib/libtecla/common/expand.c
550
} else if(_pu_path_is_dir(ef->path->name) &&
usr/src/lib/libtecla/common/expand.c
557
if(ef_record_pathname(ef, ef->path->name, 0))
usr/src/lib/libtecla/common/expand.c
563
DirNode *subdnode = ef_open_dir(ef, ef->path->name);
usr/src/lib/libtecla/common/expand.c
578
ef->path->name[pathlen] = '\0';
usr/src/lib/libtecla/common/expand.c
665
_pn_clear_path(ef->path);
usr/src/lib/libtecla/common/pathutil.c
100
PathName *_del_PathName(PathName *path)
usr/src/lib/libtecla/common/pathutil.c
102
if(path) {
usr/src/lib/libtecla/common/pathutil.c
103
if(path->name)
usr/src/lib/libtecla/common/pathutil.c
104
free(path->name);
usr/src/lib/libtecla/common/pathutil.c
105
free(path);
usr/src/lib/libtecla/common/pathutil.c
118
char *_pn_clear_path(PathName *path)
usr/src/lib/libtecla/common/pathutil.c
123
if(!path) {
usr/src/lib/libtecla/common/pathutil.c
127
path->name[0] = '\0';
usr/src/lib/libtecla/common/pathutil.c
128
return path->name;
usr/src/lib/libtecla/common/pathutil.c
150
char *_pn_append_to_path(PathName *path, const char *string, int slen,
usr/src/lib/libtecla/common/pathutil.c
158
if(!path || !string) {
usr/src/lib/libtecla/common/pathutil.c
165
pathlen = strlen(path->name);
usr/src/lib/libtecla/common/pathutil.c
174
if(!_pn_resize_path(path, pathlen + slen))
usr/src/lib/libtecla/common/pathutil.c
185
path->name[pathlen++] = string[i];
usr/src/lib/libtecla/common/pathutil.c
190
path->name[pathlen] = '\0';
usr/src/lib/libtecla/common/pathutil.c
195
memcpy(path->name + pathlen, string, slen);
usr/src/lib/libtecla/common/pathutil.c
196
path->name[pathlen + slen] = '\0';
usr/src/lib/libtecla/common/pathutil.c
198
return path->name;
usr/src/lib/libtecla/common/pathutil.c
220
char *_pn_prepend_to_path(PathName *path, const char *string, int slen,
usr/src/lib/libtecla/common/pathutil.c
229
if(!path || !string) {
usr/src/lib/libtecla/common/pathutil.c
236
pathlen = strlen(path->name);
usr/src/lib/libtecla/common/pathutil.c
261
if(!_pn_resize_path(path, pathlen + shift))
usr/src/lib/libtecla/common/pathutil.c
266
memmove(path->name + shift, path->name, pathlen+1);
usr/src/lib/libtecla/common/pathutil.c
276
path->name[j++] = string[i];
usr/src/lib/libtecla/common/pathutil.c
279
memcpy(path->name, string, slen);
usr/src/lib/libtecla/common/pathutil.c
281
return path->name;
usr/src/lib/libtecla/common/pathutil.c
296
char *_pn_resize_path(PathName *path, size_t length)
usr/src/lib/libtecla/common/pathutil.c
301
if(!path) {
usr/src/lib/libtecla/common/pathutil.c
312
if(length + 1 > path->dim) {
usr/src/lib/libtecla/common/pathutil.c
314
char *name = (char *) realloc(path->name, dim);
usr/src/lib/libtecla/common/pathutil.c
317
path->name = name;
usr/src/lib/libtecla/common/pathutil.c
318
path->dim = dim;
usr/src/lib/libtecla/common/pathutil.c
320
return path->name;
usr/src/lib/libtecla/common/pathutil.c
59
PathName *path; /* The object to be returned */
usr/src/lib/libtecla/common/pathutil.c
63
path = (PathName *) malloc(sizeof(PathName));
usr/src/lib/libtecla/common/pathutil.c
64
if(!path) {
usr/src/lib/libtecla/common/pathutil.c
73
path->name = NULL;
usr/src/lib/libtecla/common/pathutil.c
74
path->dim = 0;
usr/src/lib/libtecla/common/pathutil.c
78
path->dim = _pu_pathname_dim();
usr/src/lib/libtecla/common/pathutil.c
79
if(path->dim == 0)
usr/src/lib/libtecla/common/pathutil.c
80
return _del_PathName(path);
usr/src/lib/libtecla/common/pathutil.c
84
path->name = (char *)malloc(path->dim * sizeof(char));
usr/src/lib/libtecla/common/pathutil.c
85
if(!path->name) {
usr/src/lib/libtecla/common/pathutil.c
87
return _del_PathName(path);
usr/src/lib/libtecla/common/pathutil.c
89
return path;
usr/src/lib/libtecla/common/pathutil.h
48
PathName *_del_PathName(PathName *path);
usr/src/lib/libtecla/common/pathutil.h
50
char *_pn_clear_path(PathName *path);
usr/src/lib/libtecla/common/pathutil.h
51
char *_pn_append_to_path(PathName *path, const char *string, int slen,
usr/src/lib/libtecla/common/pathutil.h
53
char *_pn_prepend_to_path(PathName *path, const char *string, int slen,
usr/src/lib/libtecla/common/pathutil.h
55
char *_pn_resize_path(PathName *path, size_t length);
usr/src/lib/libtecla/common/pcache.c
1037
_pn_append_to_path(pc->path, nptr, name_len - (nptr-name),
usr/src/lib/libtecla/common/pcache.c
1040
return pc->path->name;
usr/src/lib/libtecla/common/pcache.c
1063
_pn_clear_path(pc->path);
usr/src/lib/libtecla/common/pcache.c
1064
if(_pn_append_to_path(pc->path, name, name_len, !literal) == NULL)
usr/src/lib/libtecla/common/pcache.c
1069
match = (char **)bsearch(pc->path->name, node->files, node->nfile,
usr/src/lib/libtecla/common/pcache.c
1076
if(_pn_prepend_to_path(pc->path, node->dir, -1, 0) == NULL)
usr/src/lib/libtecla/common/pcache.c
1082
((*match)[0]==PCA_F_ENIGMA && pc->check_fn(pc->data, pc->path->name))){
usr/src/lib/libtecla/common/pcache.c
1084
return pc->path->name;
usr/src/lib/libtecla/common/pcache.c
1350
_pn_clear_path(pc->path);
usr/src/lib/libtecla/common/pcache.c
1351
if(_pn_append_to_path(pc->path, node->dir, -1, 0) == NULL ||
usr/src/lib/libtecla/common/pcache.c
1352
_pn_append_to_path(pc->path, match+1, -1, 0) == NULL) {
usr/src/lib/libtecla/common/pcache.c
1361
(match[0]==PCA_F_ENIGMA && pc->check_fn(pc->data, pc->path->name))) {
usr/src/lib/libtecla/common/pcache.c
1373
if(cpl_add_completion(cpl, line, word_start, word_end, pc->path->name,
usr/src/lib/libtecla/common/pcache.c
1411
cpl_add_completion(cpl, line, word_start, word_end, pc->path->name,
usr/src/lib/libtecla/common/pcache.c
1452
_pn_clear_path(pc->path);
usr/src/lib/libtecla/common/pcache.c
1471
if(_pn_resize_path(pc->path, suffix_len + nbsl) == NULL) {
usr/src/lib/libtecla/common/pcache.c
1481
strlcpy(pc->path->name, suffix, pc->path->dim);
usr/src/lib/libtecla/common/pcache.c
1488
char *dst = pc->path->name;
usr/src/lib/libtecla/common/pcache.c
1566
_pn_clear_path(pc->path);
usr/src/lib/libtecla/common/pcache.c
1567
if(_pn_append_to_path(pc->path, prefix, prefix_len, 1) == NULL) {
usr/src/lib/libtecla/common/pcache.c
157
PathName *path; /* The fully qualified name of a file */
usr/src/lib/libtecla/common/pcache.c
1572
return pc->path->name;
usr/src/lib/libtecla/common/pcache.c
1634
static int pca_expand_tilde(PathCache *pc, const char *path, int pathlen,
usr/src/lib/libtecla/common/pcache.c
1637
const char *pptr = path; /* A pointer into path[] */
usr/src/lib/libtecla/common/pcache.c
1642
_pn_clear_path(pc->path);
usr/src/lib/libtecla/common/pcache.c
1665
if(_pn_append_to_path(pc->path, homedir, -1, 0) == NULL) {
usr/src/lib/libtecla/common/pcache.c
1680
(pptr-path) + FS_DIR_SEP_LEN < pathlen &&
usr/src/lib/libtecla/common/pcache.c
184
static int pca_extract_dir(PathCache *pc, const char *path,
usr/src/lib/libtecla/common/pcache.c
236
static int pca_expand_tilde(PathCache *pc, const char *path, int pathlen,
usr/src/lib/libtecla/common/pcache.c
287
pc->path = NULL;
usr/src/lib/libtecla/common/pcache.c
321
pc->path = _new_PathName();
usr/src/lib/libtecla/common/pcache.c
322
if(!pc->path)
usr/src/lib/libtecla/common/pcache.c
387
pc->path = _del_PathName(pc->path);
usr/src/lib/libtecla/common/pcache.c
508
int pca_scan_path(PathCache *pc, const char *path)
usr/src/lib/libtecla/common/pcache.c
526
if(!path)
usr/src/lib/libtecla/common/pcache.c
534
pptr = path;
usr/src/lib/libtecla/common/pcache.c
546
if(add_PathNode(pc, pc->path->name))
usr/src/lib/libtecla/common/pcache.c
581
static int pca_extract_dir(PathCache *pc, const char *path, const char **nextp)
usr/src/lib/libtecla/common/pcache.c
591
if(pca_expand_tilde(pc, path, strlen(path), 0, &pptr))
usr/src/lib/libtecla/common/pcache.c
607
if(_pn_append_to_path(pc->path, sptr, pptr - sptr, 1) == NULL) {
usr/src/lib/libtecla/common/pcache.c
618
int dirlen = strlen(pc->path->name);
usr/src/lib/libtecla/common/pcache.c
620
strncmp(pc->path->name + dirlen - FS_DIR_SEP_LEN, FS_DIR_SEP,
usr/src/lib/libtecla/common/pcache.c
622
if(_pn_append_to_path(pc->path, FS_DIR_SEP, FS_DIR_SEP_LEN, 0) == NULL) {
usr/src/lib/libtecla/common/pcache.c
904
_pn_clear_path(pc->path);
usr/src/lib/libtecla/common/pcache.c
905
if(_pn_append_to_path(pc->path, " ", 1, 0) == NULL ||
usr/src/lib/libtecla/common/pcache.c
906
_pn_append_to_path(pc->path, filename, -1, 1) == NULL) {
usr/src/lib/libtecla/common/pcache.c
914
copy = _sg_store_string(mem->sg, pc->path->name, 0);
usr/src/lib/libtecla/libtecla.h
1721
int pca_scan_path(PathCache *pc, const char *path);
usr/src/lib/libtecla/libtecla.h
248
FileExpansion *ef_expand_file(ExpandFile *ef, const char *path, int pathlen);
usr/src/lib/libtsol/common/getlabel.c
50
getlabel(const char *path, bslabel_t *label)
usr/src/lib/libtsol/common/getlabel.c
52
return (syscall(SYS_labelsys, TSOL_GETLABEL, path, label));
usr/src/lib/libtsol/common/getpathbylabel.c
350
getglobalpath(const char *path, zoneid_t zoneid, struct mntlist *mlist,
usr/src/lib/libtsol/common/getpathbylabel.c
367
(void) strlcat(globalpath, path, MAXPATHLEN);
usr/src/lib/libtsol/common/getpathbylabel.c
370
(void) strlcpy(globalpath, path, MAXPATHLEN);
usr/src/lib/libtsol/common/getpathbylabel.c
412
path = pathsuffix(globalpath,
usr/src/lib/libtsol/common/getpathbylabel.c
414
(void) strlcpy(lofspath, path, MAXPATHLEN);
usr/src/lib/libtsol/common/getpathbylabel.c
424
(strncmp(path, "/home/", strlen("/home/")) == 0)) {
usr/src/lib/libtsol/common/getpathbylabel.c
447
"/zone/%s%s", zonename, path);
usr/src/lib/libtsol/common/setflabel.c
103
if (abspath(cwd, path, canon) < 0)
usr/src/lib/libtsol/common/setflabel.c
76
setflabel(const char *path, m_label_t *label)
usr/src/lib/libtsol/common/setflabel.c
93
if (*path != '/' && cwd[0] == '\0') {
usr/src/lib/libtsol/common/zone.c
194
getlabelbypath(const char *path)
usr/src/lib/libtsol/common/zone.c
254
if (strncmp(path, zoneroot, zonerootlen - 4) == 0) {
usr/src/lib/libvolmgt/common/volmgt.c
124
volmgt_check(char *path)
usr/src/lib/libvolmgt/common/volmgt.c
153
volmgt_ownspath(char *path)
usr/src/lib/libvolmgt/common/volmgt.c
222
volmgt_symname(char *path)
usr/src/lib/libvolmgt/common/volmgt.c
92
volmgt_inuse(char *path)
usr/src/lib/libvolmgt/common/volmgt_on_private.c
136
_dev_unmount(char *path)
usr/src/lib/libvolmgt/common/volmgt_on_private.c
150
if ((bn = (char *)volmgt_getfullblkname(path)) == NULL) {
usr/src/lib/libvolmgt/common/volmgt_on_private.c
375
vol_basename(char *path)
usr/src/lib/libvolmgt/common/volmgt_on_private.c
381
if (strcmp(path, "/") == 0) {
usr/src/lib/libvolmgt/common/volmgt_on_private.c
382
return (path);
usr/src/lib/libvolmgt/common/volmgt_on_private.c
386
if ((cp = strrchr(path, '/')) == NULL) {
usr/src/lib/libvolmgt/common/volmgt_on_private.c
388
return (path);
usr/src/lib/libvolmgt/common/volmgt_on_private.c
397
while (cp != path) {
usr/src/lib/libvolmgt/common/volmgt_on_private.c
404
return (path);
usr/src/lib/libvolmgt/common/volmgt_on_private.c
411
get_media_info(char *path, char **mtypep, int *mnump, char **spclp)
usr/src/lib/libvolmgt/common/volmgt_on_private.c
427
if ((cn = volmgt_getfullrawname(path)) == NULL) {
usr/src/lib/libvolmgt/common/volmgt_on_private.c
74
_dev_mounted(char *path)
usr/src/lib/libvolmgt/common/volmgt_on_private.c
86
if ((cn = (char *)volmgt_getfullrawname(path)) == NULL) {
usr/src/lib/libvolmgt/volmgt.h
131
int volmgt_ownspath(char *path);
usr/src/lib/libvolmgt/volmgt.h
200
char *media_getattr(char *path, char *attr);
usr/src/lib/libvolmgt/volmgt.h
228
int media_setattr(char *path, char *attr, char *value);
usr/src/lib/libvolmgt/volmgt.h
241
u_longlong_t media_getid(char *path);
usr/src/lib/libvolmgt/volmgt.h
50
int volmgt_check(char *path);
usr/src/lib/libvolmgt/volmgt.h
64
int volmgt_inuse(char *path);
usr/src/lib/libvolmgt/volmgt.h
96
char *volmgt_symname(char *path);
usr/src/lib/libwrap/options.c
227
char path[MAXPATHNAMELEN];
usr/src/lib/libwrap/options.c
234
sprintf(path, "%s/%s", value, eval_daemon(request));
usr/src/lib/libwrap/options.c
235
if ((fp = fopen(path, "r")) != 0) {
usr/src/lib/libxcurses/h/mks.h
485
#define m_namemax(path) NAME_MAX
usr/src/lib/libxcurses/h/mks.h
487
LEXTERN int m_namemax (char *path);
usr/src/lib/libxcurses/h/mks.h
491
#define m_pathmax(path) PATH_MAX
usr/src/lib/libxcurses/h/mks.h
493
LEXTERN int m_pathmax (char *path);
usr/src/lib/libxcurses/h/mks.h
626
#define m_fstype(path) M_FSTYPE_POSIX
usr/src/lib/libxcurses/h/mks.h
643
#define m_get_original_filename_case(path) /* nil */
usr/src/lib/libxcurses/h/posix/mkslocal.h
116
#define M_BINDIR(path) "/bin/" # path
usr/src/lib/libxcurses/h/posix/mkslocal.h
121
#define M_LIBDIR(path) M_CS_LIBDIR # path
usr/src/lib/libxcurses/h/posix/mkslocal.h
130
#define M_ETCDIR(path) M_CS_ETCDIR # path
usr/src/lib/libxcurses/h/posix/mkslocal.h
138
#define M_SPOOLDIR(path) M_CS_SPOOLDIR # path
usr/src/lib/libxcurses/h/posix/mkslocal.h
145
#define M_NLSDIR(path) "M_CS_NLSDIR # path
usr/src/lib/libxcurses/h/solaris2/mkslocal.h
63
#define M_BINDIR(path) M_CS_BINDIR"/" #path
usr/src/lib/libxcurses/h/solaris2/mkslocal.h
64
#define M_ETCDIR(path) M_CS_ETCDIR"/" #path
usr/src/lib/libxcurses/h/solaris2/mkslocal.h
65
#define M_LIBDIR(path) M_CS_LIBDIR"/" #path
usr/src/lib/libxcurses/h/solaris2/mkslocal.h
66
#define M_SPOOLDIR(path) M_CS_SPOOLDIR"/" #path
usr/src/lib/libxcurses/h/solaris2/mkslocal.h
67
#define M_NLSDIR(path) M_CS_NLSDIR"/" #path
usr/src/lib/libxcurses/src/libc/gen/base.c
100
} else if (cp == path && cp[1] == '\0')
usr/src/lib/libxcurses/src/libc/gen/base.c
66
register char *cp, *path;
usr/src/lib/libxcurses/src/libc/gen/base.c
75
path = arg+2;
usr/src/lib/libxcurses/src/libc/gen/base.c
77
path = arg;
usr/src/lib/libxcurses/src/libc/gen/base.c
79
if (path[1]=='\0'&&M_FSDELIM(*path)) /* "/", or drive analog */
usr/src/lib/libxcurses/src/libc/gen/base.c
82
cp = strchr(path, '\0');
usr/src/lib/libxcurses/src/libc/gen/base.c
85
while (cp != path && M_FSDELIM(*cp))
usr/src/lib/libxcurses/src/libc/gen/base.c
88
for (;cp>path && !M_FSDELIM(*cp); cp--)
usr/src/lib/libxcurses/src/libc/gen/base.c
92
if (type==DIRNAME && path!=arg) {
usr/src/lib/libxcurses/src/libc/gen/base.c
93
*path = '\0';
usr/src/lib/libxcurses/src/libc/gen/base.c
96
return (type==DIRNAME)?curdir:path;
usr/src/lib/libxcurses/src/libc/gen/base.c
97
else if (cp == path && type == DIRNAME) {
usr/src/lib/libxcurses/src/libc/mks/m_pathma.c
62
m_pathmax(path)
usr/src/lib/libxcurses/src/libc/mks/m_pathma.c
63
char* path;
usr/src/lib/libxcurses/src/libc/mks/m_pathma.c
67
if (path == NULL)
usr/src/lib/libxcurses/src/libc/mks/m_pathma.c
68
path = "/";
usr/src/lib/libxcurses/src/libc/mks/m_pathma.c
71
x = pathconf(path, _PC_PATH_MAX);
usr/src/lib/libxpio/common/libxpio.c
296
char *path, buf[PATH_MAX];
usr/src/lib/libxpio/common/libxpio.c
316
path = di_devfs_minor_path(minor);
usr/src/lib/libxpio/common/libxpio.c
317
if (path == NULL) {
usr/src/lib/libxpio/common/libxpio.c
324
if (snprintf(buf, sizeof (buf), "/devices%s", path) >= sizeof (buf)) {
usr/src/lib/libxpio/common/libxpio.c
325
di_devfs_path_free(path);
usr/src/lib/libxpio/common/libxpio.c
330
di_devfs_path_free(path);
usr/src/lib/libzfs/common/libzfs.h
770
extern boolean_t zfs_bookmark_exists(const char *path);
usr/src/lib/libzfs/common/libzfs_crypto.c
467
const char *path;
usr/src/lib/libzfs/common/libzfs_crypto.c
476
path = uri + 7;
usr/src/lib/libzfs/common/libzfs_crypto.c
478
if ((f = fopen(path, "r")) == NULL) {
usr/src/lib/libzfs/common/libzfs_dataset.c
108
zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type,
usr/src/lib/libzfs/common/libzfs_dataset.c
114
if (entity_namecheck(path, &why, &what) != 0) {
usr/src/lib/libzfs/common/libzfs_dataset.c
174
if (!(type & ZFS_TYPE_SNAPSHOT) && strchr(path, '@') != NULL) {
usr/src/lib/libzfs/common/libzfs_dataset.c
181
if (type == ZFS_TYPE_SNAPSHOT && strchr(path, '@') == NULL) {
usr/src/lib/libzfs/common/libzfs_dataset.c
188
if (!(type & ZFS_TYPE_BOOKMARK) && strchr(path, '#') != NULL) {
usr/src/lib/libzfs/common/libzfs_dataset.c
195
if (type == ZFS_TYPE_BOOKMARK && strchr(path, '#') == NULL) {
usr/src/lib/libzfs/common/libzfs_dataset.c
202
if (modifying && strchr(path, '%') != NULL) {
usr/src/lib/libzfs/common/libzfs_dataset.c
3335
parent_name(const char *path, char *buf, size_t buflen)
usr/src/lib/libzfs/common/libzfs_dataset.c
3339
(void) strlcpy(buf, path, buflen);
usr/src/lib/libzfs/common/libzfs_dataset.c
3363
check_parents(libzfs_handle_t *hdl, const char *path, uint64_t *zoned,
usr/src/lib/libzfs/common/libzfs_dataset.c
3374
dgettext(TEXT_DOMAIN, "cannot create '%s'"), path);
usr/src/lib/libzfs/common/libzfs_dataset.c
3377
if (parent_name(path, parent, sizeof (parent)) != 0) {
usr/src/lib/libzfs/common/libzfs_dataset.c
3444
zfs_dataset_exists(libzfs_handle_t *hdl, const char *path, zfs_type_t types)
usr/src/lib/libzfs/common/libzfs_dataset.c
3448
if (!zfs_validate_name(hdl, path, types, B_FALSE))
usr/src/lib/libzfs/common/libzfs_dataset.c
3454
if ((zhp = make_dataset_handle(hdl, path)) != NULL) {
usr/src/lib/libzfs/common/libzfs_dataset.c
3543
zfs_create_ancestors(libzfs_handle_t *hdl, const char *path)
usr/src/lib/libzfs/common/libzfs_dataset.c
3551
"cannot create '%s'"), path);
usr/src/lib/libzfs/common/libzfs_dataset.c
3557
if (dataset_nestcheck(path) != 0) {
usr/src/lib/libzfs/common/libzfs_dataset.c
3563
if (check_parents(hdl, path, NULL, B_TRUE, &prefix) != 0)
usr/src/lib/libzfs/common/libzfs_dataset.c
3566
if ((path_copy = strdup(path)) != NULL) {
usr/src/lib/libzfs/common/libzfs_dataset.c
3580
zfs_create(libzfs_handle_t *hdl, const char *path, zfs_type_t type,
usr/src/lib/libzfs/common/libzfs_dataset.c
3595
"cannot create '%s'"), path);
usr/src/lib/libzfs/common/libzfs_dataset.c
3598
if (!zfs_validate_name(hdl, path, type, B_TRUE))
usr/src/lib/libzfs/common/libzfs_dataset.c
3601
if (dataset_nestcheck(path) != 0) {
usr/src/lib/libzfs/common/libzfs_dataset.c
3608
if (check_parents(hdl, path, &zoned, B_FALSE, NULL) != 0)
usr/src/lib/libzfs/common/libzfs_dataset.c
3618
if (zfs_dataset_exists(hdl, path, ZFS_TYPE_DATASET)) {
usr/src/lib/libzfs/common/libzfs_dataset.c
3631
(void) strlcpy(pool_path, path, sizeof (pool_path));
usr/src/lib/libzfs/common/libzfs_dataset.c
3694
(void) parent_name(path, parent, sizeof (parent));
usr/src/lib/libzfs/common/libzfs_dataset.c
3702
ret = lzc_create(path, ost, props, wkeydata, wkeylen);
usr/src/lib/libzfs/common/libzfs_dataset.c
4162
zfs_snapshot(libzfs_handle_t *hdl, const char *path, boolean_t recursive,
usr/src/lib/libzfs/common/libzfs_dataset.c
4173
"cannot snapshot %s"), path);
usr/src/lib/libzfs/common/libzfs_dataset.c
4175
if (!zfs_validate_name(hdl, path, ZFS_TYPE_SNAPSHOT, B_TRUE))
usr/src/lib/libzfs/common/libzfs_dataset.c
4178
(void) strlcpy(fsname, path, sizeof (fsname));
usr/src/lib/libzfs/common/libzfs_dataset.c
4192
fnvlist_add_boolean(sd.sd_nvl, path);
usr/src/lib/libzfs/common/libzfs_dataset.c
469
make_dataset_handle(libzfs_handle_t *hdl, const char *path)
usr/src/lib/libzfs/common/libzfs_dataset.c
4691
zfs_deleg_share_nfs(libzfs_handle_t *hdl, char *dataset, char *path,
usr/src/lib/libzfs/common/libzfs_dataset.c
4699
(void) strlcpy(zc.zc_value, path, sizeof (zc.zc_value));
usr/src/lib/libzfs/common/libzfs_dataset.c
4742
zfs_smb_acl_mgmt(libzfs_handle_t *hdl, char *dataset, char *path,
usr/src/lib/libzfs/common/libzfs_dataset.c
4750
(void) strlcpy(zc.zc_value, path, sizeof (zc.zc_value));
usr/src/lib/libzfs/common/libzfs_dataset.c
479
(void) strlcpy(zhp->zfs_name, path, sizeof (zhp->zfs_name));
usr/src/lib/libzfs/common/libzfs_dataset.c
4793
char *path, char *resource)
usr/src/lib/libzfs/common/libzfs_dataset.c
4795
return (zfs_smb_acl_mgmt(hdl, dataset, path, ZFS_SMB_ACL_ADD,
usr/src/lib/libzfs/common/libzfs_dataset.c
4801
char *path, char *resource)
usr/src/lib/libzfs/common/libzfs_dataset.c
4803
return (zfs_smb_acl_mgmt(hdl, dataset, path, ZFS_SMB_ACL_REMOVE,
usr/src/lib/libzfs/common/libzfs_dataset.c
4808
zfs_smb_acl_purge(libzfs_handle_t *hdl, char *dataset, char *path)
usr/src/lib/libzfs/common/libzfs_dataset.c
4810
return (zfs_smb_acl_mgmt(hdl, dataset, path, ZFS_SMB_ACL_PURGE,
usr/src/lib/libzfs/common/libzfs_dataset.c
4815
zfs_smb_acl_rename(libzfs_handle_t *hdl, char *dataset, char *path,
usr/src/lib/libzfs/common/libzfs_dataset.c
4818
return (zfs_smb_acl_mgmt(hdl, dataset, path, ZFS_SMB_ACL_RENAME,
usr/src/lib/libzfs/common/libzfs_dataset.c
578
zfs_bookmark_exists(const char *path)
usr/src/lib/libzfs/common/libzfs_dataset.c
589
(void) strlcpy(fsname, path, sizeof (fsname));
usr/src/lib/libzfs/common/libzfs_dataset.c
610
make_bookmark_handle(zfs_handle_t *parent, const char *path,
usr/src/lib/libzfs/common/libzfs_dataset.c
620
(void) strlcpy(zhp->zfs_name, path, sizeof (zhp->zfs_name));
usr/src/lib/libzfs/common/libzfs_dataset.c
642
const char *path;
usr/src/lib/libzfs/common/libzfs_dataset.c
654
if (strcmp(dp->path, zfs_get_name(zhp)) == 0) {
usr/src/lib/libzfs/common/libzfs_dataset.c
675
zfs_open(libzfs_handle_t *hdl, const char *path, int types)
usr/src/lib/libzfs/common/libzfs_dataset.c
682
dgettext(TEXT_DOMAIN, "cannot open '%s'"), path);
usr/src/lib/libzfs/common/libzfs_dataset.c
687
if (!zfs_validate_name(hdl, path, types, B_FALSE)) {
usr/src/lib/libzfs/common/libzfs_dataset.c
695
bookp = strchr(path, '#');
usr/src/lib/libzfs/common/libzfs_dataset.c
702
if ((zhp = make_dataset_handle(hdl, path)) == NULL) {
usr/src/lib/libzfs/common/libzfs_dataset.c
709
struct zfs_open_bookmarks_cb_data cb_data = {path, NULL};
usr/src/lib/libzfs/common/libzfs_dataset.c
715
assert(bookp - path < sizeof (dsname));
usr/src/lib/libzfs/common/libzfs_dataset.c
716
(void) strncpy(dsname, path, bookp - path);
usr/src/lib/libzfs/common/libzfs_dataset.c
717
dsname[bookp - path] = '\0';
usr/src/lib/libzfs/common/libzfs_fru.c
199
char path[MAXPATHLEN];
usr/src/lib/libzfs/common/libzfs_fru.c
211
(void) snprintf(path, sizeof (path),
usr/src/lib/libzfs/common/libzfs_fru.c
214
if ((_topo_dlhandle = dlopen(path, RTLD_LAZY)) == NULL)
usr/src/lib/libzfs/common/libzfs_impl.h
255
int zfs_validate_name(libzfs_handle_t *hdl, const char *path, int type,
usr/src/lib/libzfs/common/libzfs_mount.c
644
char path[MAXPATHLEN];
usr/src/lib/libzfs/common/libzfs_mount.c
653
(void) snprintf(path, MAXPATHLEN,
usr/src/lib/libzfs/common/libzfs_mount.c
656
if ((libshare = dlopen(path, RTLD_LAZY | RTLD_GLOBAL)) != NULL) {
usr/src/lib/libzfs/common/libzfs_mount.c
798
zfs_sa_find_share(sa_handle_t handle, char *path)
usr/src/lib/libzfs/common/libzfs_mount.c
801
return (_sa_find_share(handle, path));
usr/src/lib/libzfs/common/libzfs_pool.c
2237
char *path;
usr/src/lib/libzfs/common/libzfs_pool.c
2240
&path) != 0)
usr/src/lib/libzfs/common/libzfs_pool.c
2241
path = nvpair_name(elem);
usr/src/lib/libzfs/common/libzfs_pool.c
2244
"cannot initialize '%s'", path);
usr/src/lib/libzfs/common/libzfs_pool.c
2319
char *path;
usr/src/lib/libzfs/common/libzfs_pool.c
2332
&path) != 0)
usr/src/lib/libzfs/common/libzfs_pool.c
2333
path = nvpair_name(elem);
usr/src/lib/libzfs/common/libzfs_pool.c
2336
"cannot trim '%s'", path);
usr/src/lib/libzfs/common/libzfs_pool.c
2625
zpool_find_vdev(zpool_handle_t *zhp, const char *path, boolean_t *avail_spare,
usr/src/lib/libzfs/common/libzfs_pool.c
2635
guid = strtoull(path, &end, 10);
usr/src/lib/libzfs/common/libzfs_pool.c
2638
} else if (zpool_vdev_is_interior(path)) {
usr/src/lib/libzfs/common/libzfs_pool.c
2639
verify(nvlist_add_string(search, ZPOOL_CONFIG_TYPE, path) == 0);
usr/src/lib/libzfs/common/libzfs_pool.c
2640
} else if (path[0] != '/') {
usr/src/lib/libzfs/common/libzfs_pool.c
2642
path);
usr/src/lib/libzfs/common/libzfs_pool.c
2645
verify(nvlist_add_string(search, ZPOOL_CONFIG_PATH, path) == 0);
usr/src/lib/libzfs/common/libzfs_pool.c
2816
char path[MAXPATHLEN];
usr/src/lib/libzfs/common/libzfs_pool.c
2827
(void) snprintf(path, sizeof (path), "%s/%s", ZFS_RDISK_ROOT, name);
usr/src/lib/libzfs/common/libzfs_pool.c
2829
if ((fd = open(path, O_RDWR | O_NDELAY)) < 0) {
usr/src/lib/libzfs/common/libzfs_pool.c
2877
zpool_vdev_online(zpool_handle_t *zhp, const char *path, int flags,
usr/src/lib/libzfs/common/libzfs_pool.c
2890
dgettext(TEXT_DOMAIN, "cannot expand %s"), path);
usr/src/lib/libzfs/common/libzfs_pool.c
2893
dgettext(TEXT_DOMAIN, "cannot online %s"), path);
usr/src/lib/libzfs/common/libzfs_pool.c
2897
if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
usr/src/lib/libzfs/common/libzfs_pool.c
2952
zpool_vdev_offline(zpool_handle_t *zhp, const char *path, boolean_t istmp)
usr/src/lib/libzfs/common/libzfs_pool.c
2961
dgettext(TEXT_DOMAIN, "cannot offline %s"), path);
usr/src/lib/libzfs/common/libzfs_pool.c
2964
if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
usr/src/lib/libzfs/common/libzfs_pool.c
3262
zpool_vdev_detach(zpool_handle_t *zhp, const char *path)
usr/src/lib/libzfs/common/libzfs_pool.c
3271
dgettext(TEXT_DOMAIN, "cannot detach %s"), path);
usr/src/lib/libzfs/common/libzfs_pool.c
3274
if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
usr/src/lib/libzfs/common/libzfs_pool.c
3567
zpool_vdev_remove(zpool_handle_t *zhp, const char *path)
usr/src/lib/libzfs/common/libzfs_pool.c
3577
dgettext(TEXT_DOMAIN, "cannot remove %s"), path);
usr/src/lib/libzfs/common/libzfs_pool.c
3580
if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
usr/src/lib/libzfs/common/libzfs_pool.c
3637
zpool_vdev_indirect_size(zpool_handle_t *zhp, const char *path,
usr/src/lib/libzfs/common/libzfs_pool.c
3647
path);
usr/src/lib/libzfs/common/libzfs_pool.c
3649
if ((tgt = zpool_find_vdev(zhp, path, &avail_spare, &l2cache,
usr/src/lib/libzfs/common/libzfs_pool.c
3670
zpool_clear(zpool_handle_t *zhp, const char *path, nvlist_t *rewindnvl)
usr/src/lib/libzfs/common/libzfs_pool.c
3681
if (path)
usr/src/lib/libzfs/common/libzfs_pool.c
3684
path);
usr/src/lib/libzfs/common/libzfs_pool.c
3691
if (path) {
usr/src/lib/libzfs/common/libzfs_pool.c
3692
if ((tgt = zpool_find_vdev(zhp, path, &avail_spare,
usr/src/lib/libzfs/common/libzfs_pool.c
3835
char *path;
usr/src/lib/libzfs/common/libzfs_pool.c
3853
path = strdup(list[0].devname);
usr/src/lib/libzfs/common/libzfs_pool.c
3857
return (path);
usr/src/lib/libzfs/common/libzfs_pool.c
3864
path_to_devid(const char *path)
usr/src/lib/libzfs/common/libzfs_pool.c
3870
if ((fd = open(path, O_RDONLY)) < 0)
usr/src/lib/libzfs/common/libzfs_pool.c
3919
path_from_physpath(libzfs_handle_t *hdl, const char *path,
usr/src/lib/libzfs/common/libzfs_pool.c
3945
if (path != NULL && pfpwa.pfpwa_path != NULL &&
usr/src/lib/libzfs/common/libzfs_pool.c
3946
strcmp(path, pfpwa.pfpwa_path) == 0) {
usr/src/lib/libzfs/common/libzfs_pool.c
3963
set_path(zpool_handle_t *zhp, nvlist_t *nv, const char *path)
usr/src/lib/libzfs/common/libzfs_pool.c
3968
(void) strncpy(zc.zc_value, path, sizeof (zc.zc_value));
usr/src/lib/libzfs/common/libzfs_pool.c
3987
char *path = NULL;
usr/src/lib/libzfs/common/libzfs_pool.c
3992
if (nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) != 0) {
usr/src/lib/libzfs/common/libzfs_pool.c
4001
char *newdevid = path_to_devid(path);
usr/src/lib/libzfs/common/libzfs_pool.c
4017
newpath = path_from_physpath(hdl, path, physpath);
usr/src/lib/libzfs/common/libzfs_pool.c
4047
char *path, *type, *env;
usr/src/lib/libzfs/common/libzfs_pool.c
4076
path = zfs_asprintf(hdl, "%llu", (u_longlong_t)value);
usr/src/lib/libzfs/common/libzfs_pool.c
4077
} else if (nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) == 0) {
usr/src/lib/libzfs/common/libzfs_pool.c
4091
path = zfs_strdup(hdl, path);
usr/src/lib/libzfs/common/libzfs_pool.c
4100
path = fnvlist_lookup_string(nv, ZPOOL_CONFIG_PATH);
usr/src/lib/libzfs/common/libzfs_pool.c
4103
char *rp = realpath(path, NULL);
usr/src/lib/libzfs/common/libzfs_pool.c
4106
path = rp;
usr/src/lib/libzfs/common/libzfs_pool.c
4108
path = zfs_strdup(hdl, path);
usr/src/lib/libzfs/common/libzfs_pool.c
4112
if (strncmp(path, ZFS_DISK_ROOTD,
usr/src/lib/libzfs/common/libzfs_pool.c
4114
const char *p2 = path + sizeof (ZFS_DISK_ROOTD) - 1;
usr/src/lib/libzfs/common/libzfs_pool.c
4116
memmove(path, p2, strlen(p2) + 1);
usr/src/lib/libzfs/common/libzfs_pool.c
4124
int pathlen = strlen(path);
usr/src/lib/libzfs/common/libzfs_pool.c
4131
if (CTD_CHECK(path)) {
usr/src/lib/libzfs/common/libzfs_pool.c
4132
if (strcmp(&path[pathlen - 2], "s0") == 0 ||
usr/src/lib/libzfs/common/libzfs_pool.c
4133
strcmp(&path[pathlen - 2], "s1") == 0) {
usr/src/lib/libzfs/common/libzfs_pool.c
4134
path[pathlen - 2] = '\0';
usr/src/lib/libzfs/common/libzfs_pool.c
4136
(strcmp(&path[pathlen - 6],
usr/src/lib/libzfs/common/libzfs_pool.c
4138
strcmp(&path[pathlen - 6],
usr/src/lib/libzfs/common/libzfs_pool.c
4140
(void) strcpy(&path[pathlen - 6],
usr/src/lib/libzfs/common/libzfs_pool.c
4144
return (path);
usr/src/lib/libzfs/common/libzfs_pool.c
4153
path = zfs_asprintf(hdl, "%s%llu", type,
usr/src/lib/libzfs/common/libzfs_pool.c
4156
path = zfs_strdup(hdl, type);
usr/src/lib/libzfs/common/libzfs_pool.c
4169
tmp = zfs_asprintf(hdl, "%s-%llu", path,
usr/src/lib/libzfs/common/libzfs_pool.c
4171
free(path);
usr/src/lib/libzfs/common/libzfs_pool.c
4172
path = tmp;
usr/src/lib/libzfs/common/libzfs_pool.c
4176
return (path);
usr/src/lib/libzfs/common/libzfs_pool.c
4532
char *path;
usr/src/lib/libzfs/common/libzfs_pool.c
4539
if (nvlist_lookup_string(config, ZPOOL_CONFIG_PATH, &path) != 0)
usr/src/lib/libzfs/common/libzfs_pool.c
4543
strrchr(path, '/'));
usr/src/lib/libzfs/common/libzfs_pool.c
4606
char path[MAXPATHLEN];
usr/src/lib/libzfs/common/libzfs_pool.c
4634
(void) snprintf(path, sizeof (path), "%s/%s%s", ZFS_RDISK_ROOT, name,
usr/src/lib/libzfs/common/libzfs_pool.c
4637
if ((fd = open(path, O_RDWR | O_NDELAY)) < 0) {
usr/src/lib/libzfs/common/libzfs_util.c
1648
zfs_get_hole_count(const char *path, uint64_t *count, uint64_t *bs)
usr/src/lib/libzfs/common/libzfs_util.c
1654
fd = open(path, O_RDONLY | O_LARGEFILE);
usr/src/lib/libzfs/common/libzfs_util.c
788
zfs_path_to_zhandle(libzfs_handle_t *hdl, char *path, zfs_type_t argtype)
usr/src/lib/libzfs/common/libzfs_util.c
794
if (path[0] != '/' && strncmp(path, "./", strlen("./")) != 0) {
usr/src/lib/libzfs/common/libzfs_util.c
798
return (zfs_open(hdl, path, argtype));
usr/src/lib/libzfs/common/libzfs_util.c
801
if (stat64(path, &statbuf) != 0) {
usr/src/lib/libzfs/common/libzfs_util.c
802
(void) fprintf(stderr, "%s: %s\n", path, strerror(errno));
usr/src/lib/libzfs/common/libzfs_util.c
819
path);
usr/src/lib/libzfs_jni/common/libzfs_jni_dataset.c
759
const char *path =
usr/src/lib/libzfs_jni/common/libzfs_jni_dataset.c
762
zfs_handle_t *zhp = zfs_open(g_zfs, path,
usr/src/lib/libzfs_jni/common/libzfs_jni_dataset.c
771
} else if (is_pool_name(path)) {
usr/src/lib/libzfs_jni/common/libzfs_jni_dataset.c
777
path);
usr/src/lib/libzfs_jni/common/libzfs_jni_dataset.c
789
(*env)->ReleaseStringUTFChars(env, pathUTF, path);
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
1165
iarg.path = argv;
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
475
char *path;
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
485
result = nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path);
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
498
if (regexec(&re, path, 2, matches, 0) == 0) {
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
501
char *tmp = strdup(path);
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
515
if (regexec(&re, path, 2, matches, 0) == 0) {
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
518
char *tmp = strdup(path);
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
532
pathUTF = (*env)->NewStringUTF(env, path);
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
546
char *path;
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
556
result = nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path);
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
563
jstring pathUTF = (*env)->NewStringUTF(env, path);
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
576
char *path;
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
586
result = nvlist_lookup_string(vdev, ZPOOL_CONFIG_PATH, &path);
usr/src/lib/libzfs_jni/common/libzfs_jni_pool.c
593
jstring pathUTF = (*env)->NewStringUTF(env, path);
usr/src/lib/libzonecfg/common/getzoneent.c
173
get_index_path(char *path)
usr/src/lib/libzonecfg/common/getzoneent.c
175
return (snprintf(path, MAXPATHLEN, "%s%s", zonecfg_root,
usr/src/lib/libzonecfg/common/getzoneent.c
182
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/getzoneent.c
184
if (!get_index_path(path)) {
usr/src/lib/libzonecfg/common/getzoneent.c
188
return (fopen(path, "r"));
usr/src/lib/libzonecfg/common/getzoneent.c
203
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/getzoneent.c
205
if (snprintf(path, sizeof (path), "%s%s", zonecfg_root,
usr/src/lib/libzonecfg/common/getzoneent.c
206
ZONE_INDEX_LOCK_DIR) >= sizeof (path))
usr/src/lib/libzonecfg/common/getzoneent.c
208
if ((mkdir(path, S_IRWXU) == -1) && errno != EEXIST)
usr/src/lib/libzonecfg/common/getzoneent.c
210
if (strlcat(path, ZONE_INDEX_LOCK_FILE, sizeof (path)) >=
usr/src/lib/libzonecfg/common/getzoneent.c
211
sizeof (path))
usr/src/lib/libzonecfg/common/getzoneent.c
213
lock_fd = open(path, O_CREAT|O_RDWR, 0644);
usr/src/lib/libzonecfg/common/getzoneent.c
276
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/getzoneent.c
326
if (!get_index_path(path)) {
usr/src/lib/libzonecfg/common/getzoneent.c
330
if ((index_file = fopen(path, "r")) == NULL) {
usr/src/lib/libzonecfg/common/getzoneent.c
467
if (rename(tmp_file_name, path) == -1) {
usr/src/lib/libzonecfg/common/libzonecfg.c
1308
char zname[ZONENAME_MAX], path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/libzonecfg.c
1325
if (!config_file_path(zname, path))
usr/src/lib/libzonecfg/common/libzonecfg.c
1336
err = zonecfg_save_impl(handle, path);
usr/src/lib/libzonecfg/common/libzonecfg.c
1385
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/libzonecfg.c
1401
if ((err = zone_get_zonepath(zname, path, sizeof (path)))
usr/src/lib/libzonecfg/common/libzonecfg.c
1405
if (snprintf(migpath, sizeof (migpath), "%s/%s", path,
usr/src/lib/libzonecfg/common/libzonecfg.c
1441
zonecfg_detached(const char *path)
usr/src/lib/libzonecfg/common/libzonecfg.c
1446
if (snprintf(migpath, sizeof (migpath), "%s/%s", path, ZONE_DETACHED) >=
usr/src/lib/libzonecfg/common/libzonecfg.c
1460
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/libzonecfg.c
1470
if (zone_get_zonepath(zname, path, sizeof (path)) != Z_OK)
usr/src/lib/libzonecfg/common/libzonecfg.c
1473
(void) snprintf(detached, sizeof (detached), "%s/%s", path,
usr/src/lib/libzonecfg/common/libzonecfg.c
1475
(void) snprintf(attached, sizeof (attached), "%s/%s", path,
usr/src/lib/libzonecfg/common/libzonecfg.c
1496
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/libzonecfg.c
1498
if (!config_file_path(zonename, path))
usr/src/lib/libzonecfg/common/libzonecfg.c
1500
if (access(path, amode) == 0)
usr/src/lib/libzonecfg/common/libzonecfg.c
1503
if (snprintf(path, sizeof (path), "%s%s", zonecfg_root,
usr/src/lib/libzonecfg/common/libzonecfg.c
1504
ZONE_CONFIG_ROOT) >= sizeof (path))
usr/src/lib/libzonecfg/common/libzonecfg.c
1506
if (access(path, amode) == 0)
usr/src/lib/libzonecfg/common/libzonecfg.c
1520
char path[MAXPATHLEN], zonepath[MAXPATHLEN], rpath[MAXPATHLEN];
usr/src/lib/libzonecfg/common/libzonecfg.c
1553
if (snprintf(path, sizeof (path), "%s%s", zonecfg_root,
usr/src/lib/libzonecfg/common/libzonecfg.c
1554
ZONE_SNAPSHOT_ROOT) >= sizeof (path)) {
usr/src/lib/libzonecfg/common/libzonecfg.c
1558
if ((mkdir(path, S_IRWXU) == -1) && (errno != EEXIST)) {
usr/src/lib/libzonecfg/common/libzonecfg.c
1563
if (!snap_file_path(zonename, path)) {
usr/src/lib/libzonecfg/common/libzonecfg.c
1571
error = zonecfg_save_impl(handle, path);
usr/src/lib/libzonecfg/common/libzonecfg.c
2967
zonecfg_devwalk_cb(const char *path, const struct stat *st, int f,
usr/src/lib/libzonecfg/common/libzonecfg.c
2977
if ((acl_get(path, ACL_NO_TRIVIAL, &acl) == 0) &&
usr/src/lib/libzonecfg/common/libzonecfg.c
2983
if (strlen(path) <= g_devwalk_skip_prefix)
usr/src/lib/libzonecfg/common/libzonecfg.c
2986
(void) g_devwalk_cb(path + g_devwalk_skip_prefix, st->st_uid,
usr/src/lib/libzonecfg/common/libzonecfg.c
3006
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/libzonecfg.c
3009
if ((ret = zonecfg_get_zonepath(hdl, path, sizeof (path))) != Z_OK)
usr/src/lib/libzonecfg/common/libzonecfg.c
3012
if (strlcat(path, "/dev", sizeof (path)) >= sizeof (path))
usr/src/lib/libzonecfg/common/libzonecfg.c
3021
g_devwalk_skip_prefix = strlen(path) + 1;
usr/src/lib/libzonecfg/common/libzonecfg.c
3024
(void) nftw(path, zonecfg_devwalk_cb, 0, FTW_PHYS);
usr/src/lib/libzonecfg/common/libzonecfg.c
3040
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/libzonecfg.c
3044
if ((ret = zonecfg_get_zonepath(hdl, path, sizeof (path))) != Z_OK)
usr/src/lib/libzonecfg/common/libzonecfg.c
3047
if (strlcat(path, "/dev/", sizeof (path)) >= sizeof (path))
usr/src/lib/libzonecfg/common/libzonecfg.c
3049
if (strlcat(path, inpath, sizeof (path)) >= sizeof (path))
usr/src/lib/libzonecfg/common/libzonecfg.c
3052
if (stat(path, &st) == -1)
usr/src/lib/libzonecfg/common/libzonecfg.c
3059
if (chown(path, owner, group) == -1)
usr/src/lib/libzonecfg/common/libzonecfg.c
3062
if (chmod(path, mode) == -1)
usr/src/lib/libzonecfg/common/libzonecfg.c
3074
if (acl_set(path, aclp) == -1) {
usr/src/lib/libzonecfg/common/libzonecfg.c
353
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/libzonecfg.c
358
if (!config_file_path(zonename, path))
usr/src/lib/libzonecfg/common/libzonecfg.c
362
err = access(path, W_OK);
usr/src/lib/libzonecfg/common/libzonecfg.c
399
err = zonecfg_destroy_impl(path);
usr/src/lib/libzonecfg/common/libzonecfg.c
413
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/libzonecfg.c
415
if (!snap_file_path(zonename, path))
usr/src/lib/libzonecfg/common/libzonecfg.c
417
return (zonecfg_destroy_impl(path));
usr/src/lib/libzonecfg/common/libzonecfg.c
613
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/libzonecfg.c
615
if (!config_file_path(zonename, path))
usr/src/lib/libzonecfg/common/libzonecfg.c
619
return (zonecfg_get_handle_impl(zonename, path, handle));
usr/src/lib/libzonecfg/common/libzonecfg.c
623
zonecfg_get_attach_handle(const char *path, const char *fname,
usr/src/lib/libzonecfg/common/libzonecfg.c
630
if (snprintf(migpath, sizeof (migpath), "%s/root", path) >=
usr/src/lib/libzonecfg/common/libzonecfg.c
637
if (snprintf(migpath, sizeof (migpath), "%s/%s", path, fname) >=
usr/src/lib/libzonecfg/common/libzonecfg.c
648
if ((err = setrootattr(handle, DTD_ATTR_ZONEPATH, path)) != Z_OK)
usr/src/lib/libzonecfg/common/libzonecfg.c
657
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/libzonecfg.c
659
if (!snap_file_path(zonename, path))
usr/src/lib/libzonecfg/common/libzonecfg.c
662
return (zonecfg_get_handle_impl(zonename, path, handle));
usr/src/lib/libzonecfg/common/libzonecfg.c
669
char path[MAXPATHLEN];
usr/src/lib/libzonecfg/common/libzonecfg.c
672
if (!config_file_path(template, path))
usr/src/lib/libzonecfg/common/libzonecfg.c
675
if ((err = zonecfg_get_handle_impl(template, path, handle)) != Z_OK)
usr/src/lib/libzonecfg/common/libzonecfg.c
682
zonecfg_get_xml_handle(const char *path, zone_dochandle_t handle)
usr/src/lib/libzonecfg/common/libzonecfg.c
687
if (stat(path, &buf) == -1)
usr/src/lib/libzonecfg/common/libzonecfg.c
690
if ((err = zonecfg_get_handle_impl("xml", path, handle)) != Z_OK)
usr/src/lib/libzonecfg/common/libzonecfg.c
936
zonecfg_get_zonepath(zone_dochandle_t handle, char *path, size_t pathsize)
usr/src/lib/libzonecfg/common/libzonecfg.c
940
if ((len = strlcpy(path, zonecfg_root, pathsize)) >= pathsize)
usr/src/lib/libzonecfg/common/libzonecfg.c
942
return (getrootattr(handle, DTD_ATTR_ZONEPATH, path + len,
usr/src/lib/libzoneinfo/common/libzone.c
1164
trav_link(char **path)
usr/src/lib/libzoneinfo/common/libzone.c
1171
(void) strcpy(lastpath, *path);
usr/src/lib/libzoneinfo/common/libzone.c
1172
while ((len = readlink(*path, newpath, sizeof (newpath))) != -1) {
usr/src/lib/libzoneinfo/common/libzone.c
1187
*path = newpath;
usr/src/lib/libzoneinfo/common/libzone.c
1200
remove_component(char *path)
usr/src/lib/libzoneinfo/common/libzone.c
1204
p = strrchr(path, '/'); /* find last '/' */
usr/src/lib/libzoneinfo/common/libzone.c
1206
*path = '\0'; /* set path to null str */
usr/src/lib/libzoneinfo/common/libzone.c
826
char path[MAXPATHLEN];
usr/src/lib/libzoneinfo/common/libzone.c
878
ret = snprintf(path, sizeof (path),
usr/src/lib/libzoneinfo/common/libzone.c
880
if (ret >= sizeof (path)) {
usr/src/lib/libzoneinfo/common/libzone.c
885
ret = snprintf(path, sizeof (path),
usr/src/lib/libzoneinfo/common/libzone.c
887
if (ret >= sizeof (path)) {
usr/src/lib/libzoneinfo/common/libzone.c
892
if ((fid = open(path, O_RDONLY)) == -1) {
usr/src/lib/libzpool/common/kernel.c
105
if (strncmp(path, "/dev/", 5) == 0) {
usr/src/lib/libzpool/common/kernel.c
107
fd = open64(path, O_RDONLY);
usr/src/lib/libzpool/common/kernel.c
115
(void) sprintf(realpath, "%s", path);
usr/src/lib/libzpool/common/kernel.c
116
dsk = strstr(path, "/dsk/");
usr/src/lib/libzpool/common/kernel.c
118
(void) sprintf(realpath + (dsk - path) + 1, "r%s",
usr/src/lib/libzpool/common/kernel.c
121
(void) sprintf(realpath, "%s", path);
usr/src/lib/libzpool/common/kernel.c
163
vp->v_path = spa_strdup(path);
usr/src/lib/libzpool/common/kernel.c
171
vn_openat(char *path, int x1, int flags, int mode, vnode_t **vpp, int x2,
usr/src/lib/libzpool/common/kernel.c
174
char *realpath = umem_alloc(strlen(path) + 2, UMEM_NOFAIL);
usr/src/lib/libzpool/common/kernel.c
178
(void) sprintf(realpath, "/%s", path);
usr/src/lib/libzpool/common/kernel.c
183
umem_free(realpath, strlen(path) + 2);
usr/src/lib/libzpool/common/kernel.c
86
vn_open(char *path, int x1, int flags, int mode, vnode_t **vpp, int x2, int x3)
usr/src/lib/libzpool/common/sys/zfs_context.h
261
extern int vn_open(char *path, int x1, int oflags, int mode, vnode_t **vpp,
usr/src/lib/libzpool/common/sys/zfs_context.h
263
extern int vn_openat(char *path, int x1, int oflags, int mode, vnode_t **vpp,
usr/src/lib/libzpool/common/sys/zfs_context.h
269
#define vn_remove(path, x1, x2) remove(path)
usr/src/lib/libzutil/common/libzutil.h
64
char **path; /* a list of paths to search */
usr/src/lib/libzutil/common/zutil_import.c
1163
char path[MAXPATHLEN];
usr/src/lib/libzutil/common/zutil_import.c
1164
char *end, **dir = iarg->path;
usr/src/lib/libzutil/common/zutil_import.c
1195
if (realpath(dir[i], path) == 0) {
usr/src/lib/libzutil/common/zutil_import.c
1200
end = &path[strlen(path)];
usr/src/lib/libzutil/common/zutil_import.c
1203
pathleft = &path[sizeof (path)] - end;
usr/src/lib/libzutil/common/zutil_import.c
1210
if (strcmp(path, ZFS_DISK_ROOTD) == 0)
usr/src/lib/libzutil/common/zutil_import.c
1213
(void) strlcpy(rdsk, path, sizeof (rdsk));
usr/src/lib/libzutil/common/zutil_import.c
1308
path, slice->rn_order,
usr/src/lib/libzutil/common/zutil_import.c
212
char *path, *devid;
usr/src/lib/libzutil/common/zutil_import.c
237
if (nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) != 0)
usr/src/lib/libzutil/common/zutil_import.c
238
path = NULL;
usr/src/lib/libzutil/common/zutil_import.c
247
if (path == NULL) {
usr/src/lib/libzutil/common/zutil_import.c
253
dst = path + strlen(path) - 1;
usr/src/lib/libzutil/common/zutil_import.c
254
for (count = 0; src >= ne->ne_name && dst >= path;
usr/src/lib/libzutil/common/zutil_import.c
293
add_config(libpc_handle_t *hdl, pool_list_t *pl, const char *path,
usr/src/lib/libzutil/common/zutil_import.c
314
if ((ne->ne_name = zutil_strdup(hdl, path)) == NULL) {
usr/src/lib/libzutil/common/zutil_import.c
410
if ((ne->ne_name = zutil_strdup(hdl, path)) == NULL) {
usr/src/lib/libzutil/common/zutil_import.h
51
int label_paths(libpc_handle_t *hdl, nvlist_t *label, char **path,
usr/src/lib/mpapi/libmpapi/common/mpapi.c
175
char path[MAX_NAME_SIZE]; /* Read in from file mpapi.conf */
usr/src/lib/mpapi/libmpapi/common/mpapi.c
245
wcstombs(path, charPtr, MAX_NAME_SIZE);
usr/src/lib/mpapi/libmpapi/common/mpapi.c
252
(strlen(path) == 0))
usr/src/lib/mpapi/libmpapi/common/mpapi.c
256
if (stat(path, &stat_buf) != -1) {
usr/src/lib/mpapi/libmpapi/common/mpapi.c
257
plugintable[i].hdlPlugin = dlopen(path, RTLD_LAZY);
usr/src/lib/mpapi/libmpapi/common/mpapi.c
268
path, MAX_NAME_SIZE);
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetAssociatedPathOidList.c
134
path = di_path_next(ph_node, DI_PATH_NIL);
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetAssociatedPathOidList.c
136
if (DI_PATH_NIL == path) {
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetAssociatedPathOidList.c
142
while (DI_PATH_NIL != path) {
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetAssociatedPathOidList.c
144
sv_node = di_path_client_node(path);
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetAssociatedPathOidList.c
185
path = di_path_next(ph_node, path);
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetAssociatedPathOidList.c
203
di_path_t path = DI_PATH_NIL;
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetAssociatedPathOidList.c
306
path = di_path_next(child_node, path);
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetAssociatedPathOidList.c
310
while (DI_PATH_NIL != path) {
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetAssociatedPathOidList.c
312
count = di_path_prop_lookup_bytes(path,
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetAssociatedPathOidList.c
328
path = di_path_next(child_node, path);
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetAssociatedPathOidList.c
49
di_path_t path = DI_PATH_NIL;
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetMPLogicalUnitProperties.c
37
char *path;
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetMPLuOidListFromTPG.c
136
di_path_t path = DI_PATH_NIL;
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetMPLuOidListFromTPG.c
229
path = di_path_next(child_node, path);
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetMPLuOidListFromTPG.c
233
while (DI_PATH_NIL != path) {
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetMPLuOidListFromTPG.c
236
(void) di_path_prop_lookup_strings(path,
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetMPLuOidListFromTPG.c
250
path = di_path_next(child_node, path);
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetMultipathLusPlugin.c
42
di_path_t path;
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetMultipathLusPlugin.c
45
if ((path = di_path_client_next_path(node, DI_PATH_NIL))
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetMultipathLusPlugin.c
54
if (((state = di_path_state(path)) == DI_PATH_STATE_ONLINE) ||
usr/src/lib/mpapi/libmpscsi_vhci/common/MP_GetMultipathLusPlugin.c
58
} while ((path = di_path_client_next_path(node, path)) != DI_PATH_NIL);
usr/src/lib/nsswitch/user/common/getprinter.c
247
char path[MAXPATHLEN], *home;
usr/src/lib/nsswitch/user/common/getprinter.c
251
(void) snprintf(path, sizeof (path), "%s/.printers", home);
usr/src/lib/nsswitch/user/common/getprinter.c
255
path, NSS_LINELEN_PRINTERS));
usr/src/lib/pam_modules/authtok_check/dict.c
121
database_present(char *path)
usr/src/lib/pam_modules/authtok_check/dict.c
129
(void) snprintf(dict_hwm, sizeof (dict_hwm), "%s/%s", path,
usr/src/lib/pam_modules/authtok_check/dict.c
131
(void) snprintf(dict_pwd, sizeof (dict_pwd), "%s/%s", path,
usr/src/lib/pam_modules/authtok_check/dict.c
133
(void) snprintf(dict_pwi, sizeof (dict_pwi), "%s/%s", path,
usr/src/lib/pam_modules/authtok_check/dict.c
142
if ((dict = PWOpen(path, "r")) == NULL) {
usr/src/lib/pam_modules/authtok_check/dict.c
144
PWRemove(path);
usr/src/lib/pam_modules/authtok_check/dict.c
158
build_dict_database(char *list, char *path)
usr/src/lib/pam_modules/authtok_check/dict.c
160
return (packer(list, path) == -1 ? DICTDATABASE_BUILD_ERR : 0);
usr/src/lib/pam_modules/authtok_check/dict.c
168
update_dict_database(char *list, char *path)
usr/src/lib/pam_modules/authtok_check/dict.c
177
(void) snprintf(dbase_pwd, sizeof (dbase_pwd), "%s/%s", path,
usr/src/lib/pam_modules/authtok_check/dict.c
226
PWRemove(path);
usr/src/lib/pam_modules/authtok_check/dict.c
227
return (build_dict_database(list, path));
usr/src/lib/pam_modules/authtok_check/dict.c
237
make_dict_database(char *list, char *path)
usr/src/lib/pam_modules/authtok_check/dict.c
241
if (lock_db(path) == 0) {
usr/src/lib/pam_modules/authtok_check/dict.c
242
if (database_present(path) == NO_DICTDATABASE)
usr/src/lib/pam_modules/authtok_check/dict.c
243
r = build_dict_database(list, path);
usr/src/lib/pam_modules/authtok_check/dict.c
245
r = update_dict_database(list, path);
usr/src/lib/pam_modules/authtok_check/dict.c
54
lock_db(char *path)
usr/src/lib/pam_modules/authtok_check/dict.c
61
if (stat(path, &st) == -1) {
usr/src/lib/pam_modules/authtok_check/dict.c
63
(mkdir(path, 0755) == -1 || chmod(path, 0755) == -1))
usr/src/lib/pam_modules/authtok_check/dict.c
67
(void) snprintf(dblock, sizeof (dblock), "%s/authtok_check.lock", path);
usr/src/lib/pam_modules/authtok_check/fascist.c
438
DictCheck(const char *password, char *path)
usr/src/lib/pam_modules/authtok_check/fascist.c
443
if ((pwp = PWOpen(path, "rF")) == NULL)
usr/src/lib/pam_modules/authtok_check/packer.c
357
packer(char *list, char *path)
usr/src/lib/pam_modules/authtok_check/packer.c
368
if (!(pwp = PWOpen(path, "wF")))
usr/src/lib/pam_modules/authtok_check/packlib.c
21
PWRemove(char *path)
usr/src/lib/pam_modules/authtok_check/packlib.c
25
(void) snprintf(fname, sizeof (fname), "%s/%s", path,
usr/src/lib/pam_modules/authtok_check/packlib.c
28
(void) snprintf(fname, sizeof (fname), "%s/%s", path,
usr/src/lib/pam_modules/authtok_check/packlib.c
31
(void) snprintf(fname, sizeof (fname), "%s/%s", path,
usr/src/lib/pam_modules/authtok_check/packlib.c
37
PWOpen(char *path, char *mode)
usr/src/lib/pam_modules/authtok_check/packlib.c
58
(void) snprintf(iname, sizeof (iname), "%s/%s", path,
usr/src/lib/pam_modules/authtok_check/packlib.c
60
(void) snprintf(dname, sizeof (dname), "%s/%s", path,
usr/src/lib/pam_modules/authtok_check/packlib.c
62
(void) snprintf(wname, sizeof (wname), "%s/%s", path,
usr/src/lib/print/libipp-listener/common/common.c
192
char *path = "/printers/";
usr/src/lib/print/libipp-listener/common/common.c
197
(void) papiAttributeListGetString(request, NULL, "uri-path", &path);
usr/src/lib/print/libipp-listener/common/common.c
201
snprintf(buf, sizeof (buf), "ipp://%s%s", host, path);
usr/src/lib/print/libipp-listener/common/common.c
203
snprintf(buf, sizeof (buf), "http://%s:%d%s", host, port, path);
usr/src/lib/print/libipp-listener/common/common.c
253
char path[1024];
usr/src/lib/print/libipp-listener/common/common.c
255
snprintf(path, sizeof (path),
usr/src/lib/print/libipp-listener/common/common.c
258
if (access(path, F_OK) != 0)
usr/src/lib/print/libpapi-common/common/uri.c
108
for (port = host; (port < path); port++)
usr/src/lib/print/libpapi-common/common/uri.c
112
if (port < path) {
usr/src/lib/print/libpapi-common/common/uri.c
113
u->port = strndup(port + 1, path - port - 1);
usr/src/lib/print/libpapi-common/common/uri.c
119
if (path != NULL) {
usr/src/lib/print/libpapi-common/common/uri.c
120
char *name = strrchr(path, '/');
usr/src/lib/print/libpapi-common/common/uri.c
122
u->path_part = strdup(path);
usr/src/lib/print/libpapi-common/common/uri.c
132
for (end = path; *end != '\0'; end++)
usr/src/lib/print/libpapi-common/common/uri.c
143
u->path = strndup(path, end - path);
usr/src/lib/print/libpapi-common/common/uri.c
171
((uri->fragment != NULL) && (uri->path == NULL)) ||
usr/src/lib/print/libpapi-common/common/uri.c
172
((uri->query != NULL) && (uri->path == NULL))) {
usr/src/lib/print/libpapi-common/common/uri.c
176
if (uri->path == NULL || uri->path[0] == '/')
usr/src/lib/print/libpapi-common/common/uri.c
195
(uri->path ? uri->path : ""),
usr/src/lib/print/libpapi-common/common/uri.c
224
if (uri->path != NULL)
usr/src/lib/print/libpapi-common/common/uri.c
225
free(uri->path);
usr/src/lib/print/libpapi-common/common/uri.c
259
if (uri->path != NULL)
usr/src/lib/print/libpapi-common/common/uri.c
260
fprintf(fp, "path: %s\n", uri->path);
usr/src/lib/print/libpapi-common/common/uri.c
70
char *end = NULL, *user = NULL, *host = NULL, *path = NULL;
usr/src/lib/print/libpapi-common/common/uri.c
74
if ((path = end = strchr(string, '/')) == NULL)
usr/src/lib/print/libpapi-common/common/uri.h
47
char *path;
usr/src/lib/print/libpapi-dynamic/common/nss.c
118
if (uri->path == NULL) {
usr/src/lib/print/libpapi-dynamic/common/nss.c
121
if ((printer = strrchr(uri->path, '/')) == NULL)
usr/src/lib/print/libpapi-dynamic/common/nss.c
122
printer = uri->path;
usr/src/lib/print/libpapi-dynamic/common/psm.c
49
char path[BUFSIZ];
usr/src/lib/print/libpapi-dynamic/common/psm.c
54
snprintf(path, sizeof (path), PSM_DIR "/psm-%s.so", scheme);
usr/src/lib/print/libpapi-dynamic/common/psm.c
56
svc->so_handle = dlopen(path, RTLD_LAZY|RTLD_LOCAL|RTLD_GROUP);
usr/src/lib/print/libpapi-dynamic/common/psm.c
58
if ((access(path, F_OK) < 0) && (errno == ENOENT))
usr/src/lib/print/libpapi-dynamic/common/psm.c
63
detailed_error(svc, "psm_open(%s): %s: %s", scheme, path,
usr/src/lib/print/libpapi-ipp/common/ipp-support.c
282
svc->post = strdup(tmp->path);
usr/src/lib/print/libpapi-ipp/common/ipp-support.c
382
if ((svc->post == NULL) && (svc->uri->path))
usr/src/lib/print/libpapi-ipp/common/ipp-support.c
383
svc->post = strdup(svc->uri->path);
usr/src/lib/print/libpapi-lpd/common/lpd-job.c
571
char path[32];
usr/src/lib/print/libpapi-lpd/common/lpd-job.c
577
strcpy(path, "/tmp/lpd-job-XXXXXX");
usr/src/lib/print/libpapi-lpd/common/lpd-job.c
578
fd = mkstemp(path);
usr/src/lib/print/libpapi-lpd/common/lpd-job.c
582
list[0] = path;
usr/src/lib/print/libpapi-lpd/common/lpd-job.c
617
if ((fd = open(path, O_RDONLY)) >= 0) {
usr/src/lib/print/libpapi-lpd/common/lpd-job.c
625
unlink(path);
usr/src/lib/print/libpapi-lpd/common/lpd-misc.c
158
if (svc->uri->path == NULL) {
usr/src/lib/print/libpapi-lpd/common/lpd-misc.c
161
if ((tmp = strrchr(svc->uri->path, '/')) == NULL)
usr/src/lib/print/libpapi-lpd/common/lpd-misc.c
162
tmp = svc->uri->path;
usr/src/lib/print/libpapi-lpd/common/lpd-misc.c
67
if ((uri != NULL) && (uri->path != NULL)) {
usr/src/lib/print/libpapi-lpd/common/lpd-misc.c
68
char *ptr = strrchr(uri->path, '/');
usr/src/lib/print/libpapi-lpd/common/lpd-misc.c
71
result = uri->path;
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
496
submit_job(int sock, char *printer, int job_id, char *path)
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
509
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
511
sock, printer, job_id, path);
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
518
sock, printer, job_id, path);
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
526
sock, printer, job_id, path);
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
534
sock, printer, job_id, path);
usr/src/lib/print/libpapi-lpd/common/lpd-port.c
593
if ((fd = open(path, O_WRONLY)) >= 0) {
usr/src/lib/scsi/libses/common/ses_plugin.c
223
ses_plugin_loadone(ses_target_t *tp, const char *path, uint32_t pass)
usr/src/lib/scsi/libses/common/ses_plugin.c
229
if ((obj = dlopen(path, RTLD_PARENT | RTLD_LOCAL | RTLD_LAZY)) == NULL)
usr/src/lib/scsi/libses/common/ses_plugin.c
280
char path[PATH_MAX];
usr/src/lib/scsi/libses/common/ses_plugin.c
286
(void) snprintf(path, sizeof (path), "%s/%s",
usr/src/lib/scsi/libses/common/ses_plugin.c
296
if ((dirp = opendir(path)) != NULL) {
usr/src/lib/scsi/libses/common/ses_plugin.c
302
(void) snprintf(path, sizeof (path), "%s/%s/%s/%s",
usr/src/lib/scsi/libses/common/ses_plugin.c
306
if (ses_plugin_loadone(tp, path, 0) != 0) {
usr/src/lib/scsi/libses/common/ses_plugin.c
327
(void) snprintf(path, sizeof (path), "%s/%s/%s/%s%s", pluginroot,
usr/src/lib/scsi/libses/common/ses_plugin.c
330
if (ses_plugin_loadone(tp, path, 1) != 0)
usr/src/lib/scsi/libses/common/ses_plugin.c
333
(void) snprintf(path, sizeof (path), "%s/%s/%s/%s-%s%s", pluginroot,
usr/src/lib/scsi/libses/common/ses_plugin.c
336
if (ses_plugin_loadone(tp, path, 2) != 0)
usr/src/lib/scsi/libses/common/ses_plugin.c
339
(void) snprintf(path, sizeof (path), "%s/%s/%s/%s-%s-%s%s", pluginroot,
usr/src/lib/scsi/libses/common/ses_plugin.c
342
if (ses_plugin_loadone(tp, path, 3) != 0)
usr/src/lib/scsi/libsmp/common/smp_engine.c
110
smp_engine_loadone(const char *path)
usr/src/lib/scsi/libsmp/common/smp_engine.c
117
if ((obj = dlopen(path, RTLD_PARENT | RTLD_LOCAL | RTLD_LAZY)) == NULL)
usr/src/lib/scsi/libsmp/common/smp_engine.c
187
char path[PATH_MAX];
usr/src/lib/scsi/libsmp/common/smp_engine.c
227
(void) snprintf(path, PATH_MAX, "%s/%s/%s/%s%s",
usr/src/lib/scsi/libsmp/common/smp_engine.c
231
if (smp_engine_loadone(path) == 0) {
usr/src/lib/scsi/libsmp/common/smp_plugin.c
210
smp_plugin_loadone(smp_target_t *tp, const char *path, uint32_t pass)
usr/src/lib/scsi/libsmp/common/smp_plugin.c
216
if ((obj = dlopen(path, RTLD_PARENT | RTLD_LOCAL | RTLD_LAZY)) == NULL)
usr/src/lib/scsi/libsmp/common/smp_plugin.c
267
char path[PATH_MAX];
usr/src/lib/scsi/libsmp/common/smp_plugin.c
273
(void) snprintf(path, sizeof (path), "%s/%s",
usr/src/lib/scsi/libsmp/common/smp_plugin.c
283
if ((dirp = opendir(path)) != NULL) {
usr/src/lib/scsi/libsmp/common/smp_plugin.c
289
(void) snprintf(path, sizeof (path), "%s/%s/%s/%s",
usr/src/lib/scsi/libsmp/common/smp_plugin.c
293
if (smp_plugin_loadone(tp, path, 0) != 0) {
usr/src/lib/scsi/libsmp/common/smp_plugin.c
334
(void) snprintf(path, sizeof (path), "%s/%s/%s/component_%s%s",
usr/src/lib/scsi/libsmp/common/smp_plugin.c
337
if (smp_plugin_loadone(tp, path, 1) != 0)
usr/src/lib/scsi/libsmp/common/smp_plugin.c
340
(void) snprintf(path, sizeof (path),
usr/src/lib/scsi/libsmp/common/smp_plugin.c
344
if (smp_plugin_loadone(tp, path, 2) != 0)
usr/src/lib/scsi/libsmp/common/smp_plugin.c
347
(void) snprintf(path, sizeof (path),
usr/src/lib/scsi/libsmp/common/smp_plugin.c
352
if (smp_plugin_loadone(tp, path, 3) != 0)
usr/src/lib/scsi/libsmp/common/smp_plugin.c
356
(void) snprintf(path, sizeof (path), "%s/%s/%s/%s%s", pluginroot,
usr/src/lib/scsi/libsmp/common/smp_plugin.c
358
if (smp_plugin_loadone(tp, path, 4) != 0)
usr/src/lib/scsi/libsmp/common/smp_plugin.c
361
(void) snprintf(path, sizeof (path), "%s/%s/%s/%s-%s%s", pluginroot,
usr/src/lib/scsi/libsmp/common/smp_plugin.c
363
if (smp_plugin_loadone(tp, path, 5) != 0)
usr/src/lib/scsi/libsmp/common/smp_plugin.c
366
(void) snprintf(path, sizeof (path), "%s/%s/%s/%s-%s-%s%s", pluginroot,
usr/src/lib/scsi/libsmp/common/smp_plugin.c
369
if (smp_plugin_loadone(tp, path, 6) != 0)
usr/src/lib/smbclnt/libfksmbfs/common/fake_lookup.c
126
fake_lookup_dir(char *path, vnode_t **vpp, char **lastcomp)
usr/src/lib/smbclnt/libfksmbfs/common/fake_lookup.c
138
tpn_sz = strlen(path) + 1;
usr/src/lib/smbclnt/libfksmbfs/common/fake_lookup.c
144
bcopy(path, tpn, tpn_sz);
usr/src/lib/smbclnt/libfksmbfs/common/fake_lookup.c
166
*lastcomp = path + lc_off;
usr/src/lib/smbclnt/libfksmbfs/common/fake_lookup.c
67
fake_lookup(vnode_t *dvp, char *path, vnode_t **vpp)
usr/src/lib/smbclnt/libfksmbfs/common/fake_lookup.c
79
pn.pn_buf = path;
usr/src/lib/smbclnt/libfksmbfs/common/fake_lookup.c
80
pn.pn_path = path;
usr/src/lib/smbclnt/libfksmbfs/common/fake_lookup.c
81
pn.pn_pathlen = strlen(path);
usr/src/lib/smbclnt/libfksmbfs/common/fake_lookup.c
83
p = path;
usr/src/lib/smbclnt/libfksmbfs/common/fake_unlink.c
59
fake_unlink(char *path, int flags)
usr/src/lib/smbclnt/libfksmbfs/common/fake_unlink.c
65
if (path == NULL)
usr/src/lib/smbclnt/libfksmbfs/common/fake_unlink.c
68
error = fake_lookup_dir(path, &dvp, &lastcomp);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
1001
if (path != NULL)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
1002
smb_unc_free(&path->p_unc);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
1567
dfs_link_commit(const char *path, dfs_info_t *info)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
1575
rc = smb_reparse_svcadd(path, DFS_REPARSE_SVCTYPE, linkdata);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
1773
dfs_path_isdir(const char *path)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
1777
if (lstat(path, &statbuf) != 0)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
257
dfs_namespace_path(const char *name, char *path, size_t pathsz)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
270
if (path != NULL)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
271
(void) strlcpy(path, si.shr_path, pathsz);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
521
dfs_link_stat(const char *path, uint32_t *stat)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
523
if (smb_reparse_stat(path, stat) != 0)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
535
if (smb_reparse_svcget(path, DFS_REPARSE_SVCTYPE, NULL) == 0)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
550
dfs_link_add(const char *path, const char *server, const char *share,
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
561
if ((status = dfs_link_stat(path, &stat)) != ERROR_SUCCESS)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
584
status = dfs_link_getinfo(path, &info, DFS_INFO_ALL);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
617
status = dfs_link_commit(path, &info);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
632
dfs_link_remove(const char *path, const char *server, const char *share)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
638
if ((status = dfs_link_stat(path, &stat)) != ERROR_SUCCESS)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
646
if (smb_reparse_svcdel(path, DFS_REPARSE_SVCTYPE) != 0)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
654
status = dfs_link_getinfo(path, &info, DFS_INFO_ALL);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
671
rc = smb_reparse_svcdel(path, DFS_REPARSE_SVCTYPE);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
674
status = dfs_link_commit(path, &info);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
689
dfs_link_setinfo(const char *path, dfs_info_t *info, uint32_t infolvl)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
694
status = dfs_link_getinfo(path, &curinfo, DFS_INFO_ALL);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
700
status = dfs_link_commit(path, &curinfo);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
716
dfs_link_getinfo(const char *path, dfs_info_t *info, uint32_t infolvl)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
726
if (path == NULL) {
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
738
rc = smb_reparse_svcget(path, DFS_REPARSE_SVCTYPE, &link_data);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
868
dfs_path_t path;
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
873
status = dfs_path_parse(&path, dfs_path, DFS_OBJECT_ANY);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
879
referrals->i_type = path.p_type;
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
883
if (path.p_type != DFS_OBJECT_ROOT) {
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
888
status = dfs_root_getinfo((const char *)path.p_fspath,
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
894
if (path.p_type != DFS_OBJECT_LINK) {
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
899
unc = &path.p_unc;
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
917
dfs_path_free(&path);
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
936
dfs_path_parse(dfs_path_t *path, const char *dfs_path, uint32_t path_type)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
943
bzero(path, sizeof (dfs_path_t));
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
944
unc = &path->p_unc;
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
963
path->p_type = (unc->unc_path != NULL)
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
966
path->p_type = path_type;
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
968
switch (path->p_type) {
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
973
(void) snprintf(path->p_fspath, sizeof (path->p_fspath),
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
979
(void) strlcpy(path->p_fspath, rootdir,
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
980
sizeof (path->p_fspath));
usr/src/lib/smbsrv/libmlsvc/common/dfs.c
999
dfs_path_free(dfs_path_t *path)
usr/src/lib/smbsrv/libmlsvc/common/eventlog_log.c
314
char path[MAXPATHLEN];
usr/src/lib/smbsrv/libmlsvc/common/eventlog_log.c
320
path[0] = '\0';
usr/src/lib/smbsrv/libmlsvc/common/eventlog_log.c
323
(void) strlcpy(path, logr_eventlog[i].el_path,
usr/src/lib/smbsrv/libmlsvc/common/eventlog_log.c
327
if ((fp = fopen(path, "r")) == 0)
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
1329
netdfs_path_create(const char *path)
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
1335
(void) strlcpy(dirpath, path, DFS_PATH_MAX);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
187
dfs_path_t path;
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
190
const char *fspath = (const char *)path.p_fspath;
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
214
status = dfs_path_parse(&path, uncpath, DFS_OBJECT_LINK);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
220
status = smb_name_validate_rpath(path.p_unc.unc_path);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
222
dfs_path_free(&path);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
236
(void) dfs_cache_add_byname(path.p_unc.unc_share,
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
237
path.p_unc.unc_path, DFS_OBJECT_LINK);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
240
netdfs_path_remove(&path.p_unc);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
244
dfs_path_free(&path);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
259
dfs_path_t path;
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
262
const char *fspath = (const char *)path.p_fspath;
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
276
status = dfs_path_parse(&path, uncpath, DFS_OBJECT_LINK);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
290
dfs_cache_remove(path.p_unc.unc_share,
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
291
path.p_unc.unc_path);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
297
netdfs_path_remove(&path.p_unc);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
303
dfs_path_free(&path);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
319
dfs_path_t path;
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
329
status = dfs_path_parse(&path, (const char *)param->dfs_path,
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
338
status = dfs_link_stat((const char *)path.p_fspath, &stat);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
340
if ((path.p_type == DFS_OBJECT_LINK) && (stat != DFS_STAT_ISDFS)) {
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
342
dfs_path_free(&path);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
349
status = netdfs_setinfo_100(&path, param->info.iu.info100);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
352
status = netdfs_setinfo_101(&path, param->info.iu.info101,
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
356
status = netdfs_setinfo_102(&path, param->info.iu.info102);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
359
status = netdfs_setinfo_103(&path, param->info.iu.info103);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
362
status = netdfs_setinfo_104(&path, param->info.iu.info104,
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
366
status = netdfs_setinfo_105(&path, param->info.iu.info105);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
374
dfs_path_free(&path);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
397
dfs_path_t path;
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
402
status = dfs_path_parse(&path, (const char *)param->dfs_path,
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
410
fspath = path.p_fspath;
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
411
if (path.p_type == DFS_OBJECT_LINK) {
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
486
dfs_path_free(&path);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
769
netdfs_setinfo_100(dfs_path_t *path, netdfs_info100_t *netinfo)
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
779
if (path->p_type == DFS_OBJECT_LINK)
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
780
status = dfs_link_setinfo(path->p_fspath, &info, 100);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
782
status = dfs_root_setinfo(path->p_fspath, &info, 100);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
791
netdfs_setinfo_101(dfs_path_t *path, netdfs_info101_t *netinfo,
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
812
if (path->p_type == DFS_OBJECT_LINK)
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
813
status = dfs_link_setinfo(path->p_fspath, &info, 101);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
815
status = dfs_root_setinfo(path->p_fspath, &info, 101);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
824
netdfs_setinfo_102(dfs_path_t *path, netdfs_info102_t *netinfo)
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
832
if (path->p_type == DFS_OBJECT_LINK)
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
833
status = dfs_link_setinfo(path->p_fspath, &info, 102);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
835
status = dfs_root_setinfo(path->p_fspath, &info, 102);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
844
netdfs_setinfo_103(dfs_path_t *path, netdfs_info103_t *netinfo)
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
853
if (path->p_type == DFS_OBJECT_LINK)
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
854
status = dfs_link_setinfo(path->p_fspath, &info, 103);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
856
status = dfs_root_setinfo(path->p_fspath, &info, 103);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
865
netdfs_setinfo_104(dfs_path_t *path, netdfs_info104_t *netinfo,
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
890
if (path->p_type == DFS_OBJECT_LINK)
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
891
status = dfs_link_setinfo(path->p_fspath, &info, 104);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
893
status = dfs_root_setinfo(path->p_fspath, &info, 104);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
904
netdfs_setinfo_105(dfs_path_t *path, netdfs_info105_t *netinfo)
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
912
flavor = dfs_namespace_getflavor(path->p_unc.unc_share);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
925
if (path->p_type == DFS_OBJECT_LINK)
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
926
status = dfs_link_setinfo(path->p_fspath, &info, 105);
usr/src/lib/smbsrv/libmlsvc/common/netdfs.c
928
status = dfs_root_setinfo(path->p_fspath, &info, 105);
usr/src/lib/smbsrv/libmlsvc/common/smb_autohome.c
253
char path[MAXNAMELEN];
usr/src/lib/smbsrv/libmlsvc/common/smb_autohome.c
266
rc = smb_config_getstr(SMB_CI_AUTOHOME_MAP, path, sizeof (path));
usr/src/lib/smbsrv/libmlsvc/common/smb_autohome.c
270
(void) snprintf(filename, MAXNAMELEN, "%s/%s", path,
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
1082
smb_quota_zfs_init(const char *path, smb_quota_zfs_handle_t *zfs_hdl)
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
1089
if (smb_getdataset(zfs_hdl->z_lib, path, dataset, MAXPATHLEN) != 0) {
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
1128
smb_quota_add_ctrldir(const char *path)
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
1137
assert(path != NULL);
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
1139
(void) snprintf(dir, MAXPATHLEN, ".%s/%s", path, SMB_QUOTA_CNTRL_DIR);
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
1256
smb_quota_remove_ctrldir(const char *path)
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
1259
assert(path);
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
1261
(void) snprintf(dir, MAXPATHLEN, ".%s/%s", path, SMB_QUOTA_CNTRL_DIR);
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
289
smb_quota_add_fs(const char *path)
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
302
if (smb_quota_tree_match(qtree, path)) {
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
312
qtree = smb_quota_tree_create(path);
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
318
smb_quota_add_ctrldir(path);
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
332
smb_quota_remove_fs(const char *path)
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
347
if (smb_quota_tree_match(qtree, path)) {
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
742
smb_quota_tree_lookup(const char *path)
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
746
assert(path);
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
759
if (!smb_quota_tree_match(qtree, path)) {
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
813
smb_quota_tree_match(smb_quota_tree_t *qtree, const char *path)
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
815
return (strncmp(qtree->qt_path, path, MAXPATHLEN) == 0);
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
824
smb_quota_tree_create(const char *path)
usr/src/lib/smbsrv/libmlsvc/common/smb_quota.c
834
qtree->qt_path = strdup(path);
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1017
smb_shr_drive_letter(const char *path)
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1022
if (path == NULL)
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1028
if (ts->path == NULL)
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1031
if (strcasecmp(ts->path, path) == 0)
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1043
smb_shr_is_empty(const char *path)
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1048
if (path == NULL)
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1051
if ((dirp = opendir(path)) == NULL)
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1148
char cmd[MAXPATHLEN], **cmd_tokens, *path, *ptr;
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1226
path = strsep(&ptr, " ");
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1228
(void) execv(path, cmd_tokens);
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1309
smb_shr_add_transient(char *name, char *cmnt, char *path)
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1322
if (path)
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1323
(void) strlcpy(trans.shr_path, path, MAXPATHLEN);
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1770
char *path;
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1773
if ((path = sa_get_share_attr(share, "path")) == NULL)
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1777
sa_free_attr_string(path);
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1784
(void) strlcpy(si->shr_path, path, sizeof (si->shr_path));
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
1786
sa_free_attr_string(path);
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
251
if (ts->check && smb_shr_is_empty(ts->path))
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
254
nerr = smb_shr_add_transient(ts->name, ts->cmnt, ts->path);
usr/src/lib/smbsrv/libmlsvc/common/smb_share.c
63
char *path;
usr/src/lib/smbsrv/libmlsvc/common/spoolss_svc.c
220
spoolss_copyfile(smb_inaddr_t *ipaddr, char *username, char *path,
usr/src/lib/smbsrv/libmlsvc/common/spoolss_svc.c
224
(*spoolss_copyfile_callback)(ipaddr, username, path, docname);
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_sd.c
112
char path[MAXPATHLEN];
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_sd.c
115
ret = srvsvc_shareacl_getpath(si, path);
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_sd.c
126
status = smb_sd_write(path, &sd, SMB_DACL_SECINFO);
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_sd.c
154
char path[MAXPATHLEN];
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_sd.c
165
ret = srvsvc_shareacl_getpath(si, path);
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_sd.c
169
status = smb_sd_read(path, &sd, SMB_ALL_SECINFO);
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2629
uint8_t *path;
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2635
path = (uint8_t *)srvsvc_share_mkpath(mxa, si->shr_path);
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2637
if (!netname || !comment || !passwd || !path)
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2657
info2[i].shi2_path = path;
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2677
info502[i].shi502_path = path;
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2802
srvsvc_share_mkpath(ndr_xa_t *mxa, char *path)
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2808
if (strlen(path) == 0)
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2809
return (NDR_STRDUP(mxa, path));
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2811
drive_letter = smb_shr_drive_letter(path);
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2820
p = path;
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2836
char *path;
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2838
if (param->path == NULL) {
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2844
(void) strsubst((char *)param->path, '/', '\\');
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2849
path = srvsvc_share_mkpath(mxa, si->shr_path);
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2855
if (smb_strcasecmp(path, (char *)param->path, 0) == 0) {
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2970
srvsvc_sa_add(char *sharename, char *path, char *cmnt)
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2983
share = sa_find_share(handle, path);
usr/src/lib/smbsrv/libmlsvc/common/srvsvc_svc.c
2991
share = sa_add_share(group, path, SA_SHARE_PERMANENT, &err);
usr/src/lib/smbsrv/libsmb/common/libsmb.h
903
uint32_t smb_sd_read(char *path, smb_sd_t *, uint32_t);
usr/src/lib/smbsrv/libsmb/common/libsmb.h
904
uint32_t smb_sd_write(char *path, smb_sd_t *, uint32_t);
usr/src/lib/smbsrv/libsmb/common/smb_kmod.c
282
char *path, smb_inaddr_t *ipaddr)
usr/src/lib/smbsrv/libsmb/common/smb_kmod.c
292
(void) strlcpy(path, ioc.path, MAXPATHLEN);
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
100
rc = smb_reparse_set(path, nvl);
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
112
smb_reparse_svcdel(const char *path, const char *svctype)
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
117
if ((rc = smb_reparse_init(path, &nvl)) != 0)
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
127
rc = reparse_delete(path);
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
131
rc = smb_reparse_set(path, nvl);
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
148
smb_reparse_svcget(const char *path, const char *svctype, char **svcdata)
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
155
if ((rc = smb_reparse_init(path, &nvl)) != 0)
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
197
smb_reparse_init(const char *path, nvlist_t **nvl)
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
206
if ((rc = readlink(path, rp_data, MAXREPARSELEN)) == -1) {
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
237
smb_reparse_set(const char *path, nvlist_t *nvl)
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
245
rc = reparse_delete(path);
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
251
rc = reparse_create(path, rp_data);
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
45
smb_reparse_stat(const char *path, uint32_t *stat)
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
51
if (lstat(path, &statbuf) != 0) {
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
65
if (readlink(path, symbuf, MAXREPARSELEN) == -1)
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
87
smb_reparse_svcadd(const char *path, const char *svctype, const char *svcdata)
usr/src/lib/smbsrv/libsmb/common/smb_reparse.c
92
if ((rc = smb_reparse_init(path, &nvl)) != 0)
usr/src/lib/smbsrv/libsmb/common/smb_sd.c
154
smb_sd_read_acl(char *path, smb_fssd_t *fs_sd)
usr/src/lib/smbsrv/libsmb/common/smb_sd.c
162
if (acl_get(path, 0, &z_acl) != 0) {
usr/src/lib/smbsrv/libsmb/common/smb_sd.c
195
smb_sd_read(char *path, smb_sd_t *sd, uint32_t secinfo)
usr/src/lib/smbsrv/libsmb/common/smb_sd.c
205
error = smb_sd_read_acl(path, &fs_sd);
usr/src/lib/smbsrv/libsmb/common/smb_sd.c
223
smb_sd_write_acl(char *path, smb_fssd_t *fs_sd)
usr/src/lib/smbsrv/libsmb/common/smb_sd.c
238
if (acl_set(path, z_acl) != 0)
usr/src/lib/smbsrv/libsmb/common/smb_sd.c
251
smb_sd_write(char *path, smb_sd_t *sd, uint32_t secinfo)
usr/src/lib/smbsrv/libsmb/common/smb_sd.c
267
status = smb_sd_write_acl(path, &fs_sd);
usr/src/lib/smbsrv/libsmb/common/smb_util.c
630
smb_getdataset(libzfs_handle_t *libhdl, const char *path, char *dataset,
usr/src/lib/smbsrv/libsmb/common/smb_util.c
649
char *dsname = (char *)path + strspn(path, "/");
usr/src/lib/smbsrv/libsmb/common/smb_util.c
655
(strcmp(mountpnt, path) == 0)) {
usr/src/lib/smbsrv/libsmb/common/smb_util.c
671
(void) strlcpy(tmppath, path, MAXPATHLEN);
usr/src/lib/smbsrv/libsmbns/common/smbns_krb.c
211
smb_ccache_remove(char *path)
usr/src/lib/smbsrv/libsmbns/common/smbns_krb.c
213
if ((remove(path) < 0) && (errno != ENOENT))
usr/src/lib/smbsrv/libsmbns/common/smbns_krb.c
215
path);
usr/src/lib/storage/liba5k/common/diag.c
708
d_p_enable(char *path, int verbose)
usr/src/lib/storage/liba5k/common/diag.c
721
d_p_bypass(char *path, int verbose)
usr/src/lib/storage/liba5k/common/mon.c
104
l_get_mode_pg(char *path, uchar_t **pg_buf, int verbose)
usr/src/lib/storage/liba5k/common/mon.c
113
if (strstr(path, SLSH_DRV_NAME_ST)) {
usr/src/lib/storage/liba5k/common/mon.c
118
if ((fd = g_object_open(path, O_NDELAY | O_RDWR)) == -1)
usr/src/lib/storage/liba5k/common/mon.c
1442
l_enable(char *path, int verbose)
usr/src/lib/storage/liba5k/common/mon.c
1455
l_bypass(char *path, int verbose)
usr/src/lib/storage/liba5k/common/mon.c
2477
l_get_disk_status(char *path, struct l_disk_state_struct *l_disk_state,
usr/src/lib/storage/liba5k/common/mon.c
2492
if ((path == NULL) || (l_disk_state == NULL)) {
usr/src/lib/storage/liba5k/common/mon.c
2497
if (stat(path, &sbuf) || (sbuf.st_rdev == NODEV)) {
usr/src/lib/storage/liba5k/common/mon.c
2498
G_DPRINTF(" l_get_disk_status: invalid device %s\n", path);
usr/src/lib/storage/liba5k/common/mon.c
2507
g_get_multipath(path,
usr/src/lib/storage/liba5k/common/mon.c
2518
if (strstr(path, SCSI_VHCI) != NULL) {
usr/src/lib/storage/liba5k/common/mon.c
2522
(void) strcpy(temppath, path);
usr/src/lib/storage/liba5k/common/mon.c
2566
if (err = l_get_disk_port_status(path,
usr/src/lib/storage/liba5k/common/mon.c
2730
l_get_disk_port_status(char *path, struct l_disk_state_struct *l_disk_state,
usr/src/lib/storage/liba5k/common/mon.c
2737
if ((path == NULL) || (l_disk_state == NULL)) {
usr/src/lib/storage/liba5k/common/mon.c
2744
if ((fd = g_object_open(path, O_RDONLY)) == -1) {
usr/src/lib/storage/liba5k/common/mon.c
2745
if ((fd = g_object_open(path,
usr/src/lib/storage/liba5k/common/mon.c
2748
"opening drive %s\n", path);
usr/src/lib/storage/liba5k/common/mon.c
2796
! (strstr(path, SLSH_DRV_NAME_ST))) {
usr/src/lib/storage/liba5k/common/mon.c
2834
port_a_flag ? "A" : "B", path);
usr/src/lib/storage/liba5k/common/mon.c
2972
l_get_ib_status(char *path, struct l_state_struct *l_state,
usr/src/lib/storage/liba5k/common/mon.c
2982
if ((path == NULL) || (l_state == NULL)) {
usr/src/lib/storage/liba5k/common/mon.c
3000
if (err = l_get_envsen(path, ib_buf, MAX_REC_DIAG_LENGTH,
usr/src/lib/storage/liba5k/common/mon.c
3043
if (err = g_get_inquiry(path, &inq)) {
usr/src/lib/storage/liba5k/common/mon.c
3183
l_get_pid_from_path(const char *path, const gfc_map_t *map, int *pid)
usr/src/lib/storage/liba5k/common/mon.c
3194
if (strstr(path, SCSI_VHCI) != NULL) {
usr/src/lib/storage/liba5k/common/mon.c
3195
(void) strcpy(path0, path);
usr/src/lib/storage/liba5k/common/mon.c
3207
if (((char_ptr = strrchr(path, '@')) == NULL) ||
usr/src/lib/storage/liba5k/common/mon.c
3264
l_get_node_status(char *path, struct l_disk_state_struct *state,
usr/src/lib/storage/liba5k/common/mon.c
3280
if (err = get_mp_dev_map(path, &map_mp, verbose))
usr/src/lib/storage/liba5k/common/mon.c
3296
(void) strcpy(temp_path, path);
usr/src/lib/storage/liba5k/common/mon.c
3316
if (strstr(path, SCSI_VHCI) == NULL) {
usr/src/lib/storage/liba5k/common/mon.c
3368
if (strstr(path, SCSI_VHCI) != NULL) {
usr/src/lib/storage/liba5k/common/mon.c
3452
(void) strcpy(temp_path, path);
usr/src/lib/storage/liba5k/common/mon.c
3459
if (err = l_get_pid_from_path(path, &map_ptr->map, &path_pid)) {
usr/src/lib/storage/liba5k/common/mon.c
3633
l_get_individual_state(char *path,
usr/src/lib/storage/liba5k/common/mon.c
3644
if ((path == NULL) || (state == NULL) ||
usr/src/lib/storage/liba5k/common/mon.c
3694
if ((err = l_get_node_status(path, state,
usr/src/lib/storage/liba5k/common/mon.c
3699
if ((err = l_get_allses(path, box_list,
usr/src/lib/storage/liba5k/common/mon.c
3704
if (err = l_get_port(path, &port_a_flag, verbose))
usr/src/lib/storage/liba5k/common/mon.c
3718
path) != 0) &&
usr/src/lib/storage/liba5k/common/mon.c
3720
(void) strcpy(path,
usr/src/lib/storage/liba5k/common/mon.c
3723
l_get_node_status(path,
usr/src/lib/storage/liba5k/common/mon.c
3743
path) != 0) && port_a_flag) {
usr/src/lib/storage/liba5k/common/mon.c
3744
(void) strcpy(path,
usr/src/lib/storage/liba5k/common/mon.c
3747
l_get_node_status(path,
usr/src/lib/storage/liba5k/common/mon.c
3813
l_get_status(char *path, struct l_state_struct *l_state, int verbose)
usr/src/lib/storage/liba5k/common/mon.c
3828
if ((path == NULL) || (l_state == NULL)) {
usr/src/lib/storage/liba5k/common/mon.c
3835
" %s\n", path);
usr/src/lib/storage/liba5k/common/mon.c
3840
if (err = g_get_inquiry(path, &inq)) {
usr/src/lib/storage/liba5k/common/mon.c
3856
if (err = l_get_ib_status(path, l_state, verbose)) {
usr/src/lib/storage/liba5k/common/mon.c
3878
if (err = g_get_wwn(path, port_wwn, node_wwn, &al_pa, verbose)) {
usr/src/lib/storage/liba5k/common/mon.c
3903
if (strstr(path, SCSI_VHCI) != NULL) {
usr/src/lib/storage/liba5k/common/mon.c
3909
(void) strcpy(ses_path_rear, path);
usr/src/lib/storage/liba5k/common/mon.c
3910
(void) strcpy(ses_path_front, path);
usr/src/lib/storage/liba5k/common/mon.c
3915
(void) strcpy(ses_path_rear, path);
usr/src/lib/storage/liba5k/common/mon.c
3938
(void) strcpy(ses_path_front, path);
usr/src/lib/storage/liba5k/common/mon.c
4954
l_get_allses(char *path, struct box_list_struct *box_list,
usr/src/lib/storage/liba5k/common/mon.c
4961
if ((path == NULL) || (box_list == NULL) || (ses_list == NULL)) {
usr/src/lib/storage/liba5k/common/mon.c
4970
" box at path: %s\n", path);
usr/src/lib/storage/liba5k/common/mon.c
4976
if (strcmp(path, box_list_ptr->b_physical_path) == 0) {
usr/src/lib/storage/liba5k/common/mon.c
5068
get_mp_dev_map(char *path, gfc_map_mp_t **map_mp_ptr, int verbose) {
usr/src/lib/storage/liba5k/common/mon.c
5074
if (strstr(path, SCSI_VHCI)) {
usr/src/lib/storage/liba5k/common/mon.c
5075
if (g_get_pathlist(path, &pathlist)) {
usr/src/lib/storage/liba5k/common/mon.c
5124
g_get_dev_map(path, &(new_map_mp_ptr->map), verbose);
usr/src/lib/storage/libg_fc/common/genf.c
1027
g_get_path_type(char *path)
usr/src/lib/storage/libg_fc/common/genf.c
1031
char *path_ptr = path;
usr/src/lib/storage/libg_fc/common/genf.c
1045
if (strstr(path, SCSI_VHCI)) {
usr/src/lib/storage/libg_fc/common/genf.c
1046
(void) strcpy(drvr_path1, path);
usr/src/lib/storage/libg_fc/common/genf.c
231
cleanup_dotdot_path(char *path)
usr/src/lib/storage/libg_fc/common/genf.c
238
dotdot = strstr(path, "/../");
usr/src/lib/storage/libg_fc/common/genf.c
251
if (dotdot == path) {
usr/src/lib/storage/libg_fc/common/genf.c
252
strcpy(holder, &path[3]); /* strip "/.." */
usr/src/lib/storage/libg_fc/common/genf.c
253
strcpy(path, holder);
usr/src/lib/storage/libg_fc/common/genf.c
264
previous_slash = strrchr(path, '/');
usr/src/lib/storage/libg_fc/common/genf.c
277
strcat(path, dotdot+4);
usr/src/lib/storage/libg_fc/common/genf.c
293
g_get_physical_name_from_link(char *path)
usr/src/lib/storage/libg_fc/common/genf.c
303
if (path == NULL) {
usr/src/lib/storage/libg_fc/common/genf.c
307
strcpy(source, path);
usr/src/lib/storage/libg_fc/common/genf.c
435
g_get_physical_name(char *path)
usr/src/lib/storage/libg_fc/common/genf.c
451
if (path == NULL) {
usr/src/lib/storage/libg_fc/common/genf.c
455
(void) strcpy(s, path);
usr/src/lib/storage/libg_fc/common/genf.c
599
result = g_get_physical_name_from_link(path);
usr/src/lib/storage/libg_fc/common/genf.c
610
g_object_open(char *path, int flag)
usr/src/lib/storage/libg_fc/common/genf.c
614
(void) printf(" Object_open:%s ", path);
usr/src/lib/storage/libg_fc/common/genf.c
654
fd = open(path, flag);
usr/src/lib/storage/libg_fc/common/genf.c
658
retry, errno, path);
usr/src/lib/storage/libg_fc/common/genf.c
660
fd = open(path, flag);
usr/src/lib/storage/libg_fc/common/genf.c
663
O_DPRINTF(" Object_open: Open failed:%s\n", path);
usr/src/lib/storage/libg_fc/common/map.c
1128
g_get_dev_list(char *path, fc_port_dev_t **dev_list, int *ndevs)
usr/src/lib/storage/libg_fc/common/map.c
1142
(void) strcpy(fcapath, path);
usr/src/lib/storage/libg_fc/common/map.c
146
static void my_devfs_path_free(char *path);
usr/src/lib/storage/libg_fc/common/map.c
1482
g_get_dev_map(char *path, gfc_map_t *map_ptr, int verbose)
usr/src/lib/storage/libg_fc/common/map.c
1484
return (create_map(path, map_ptr, verbose, MAP_FORMAT_STANDARD));
usr/src/lib/storage/libg_fc/common/map.c
1493
g_get_lilp_map(char *path, gfc_map_t *map_ptr, int verbose)
usr/src/lib/storage/libg_fc/common/map.c
1495
return (create_map(path, map_ptr, verbose, MAP_FORMAT_LILP));
usr/src/lib/storage/libg_fc/common/map.c
1541
create_map(char *path, gfc_map_t *map_ptr, int verbose, int map_type)
usr/src/lib/storage/libg_fc/common/map.c
1557
if (path == NULL) {
usr/src/lib/storage/libg_fc/common/map.c
1567
(void) strcpy(drvr_path, path);
usr/src/lib/storage/libg_fc/common/map.c
1580
if (strstr(path, SCSI_VHCI)) {
usr/src/lib/storage/libg_fc/common/map.c
1581
(void) strcpy(drvr_path0, path);
usr/src/lib/storage/libg_fc/common/map.c
1612
(void) strcpy(drvr_path, path);
usr/src/lib/storage/libg_fc/common/map.c
2153
g_dev_map_init(char *path, int *l_err, int flag)
usr/src/lib/storage/libg_fc/common/map.c
2176
if (path == NULL) {
usr/src/lib/storage/libg_fc/common/map.c
2183
(void) strcpy(drvr_path, path);
usr/src/lib/storage/libg_fc/common/map.c
2196
if (strstr(path, SCSI_VHCI)) {
usr/src/lib/storage/libg_fc/common/map.c
2197
(void) strcpy(drvr_path0, path);
usr/src/lib/storage/libg_fc/common/map.c
2229
(void) strcpy(drvr_path, path);
usr/src/lib/storage/libg_fc/common/map.c
3941
g_get_serial_number(char *path, uchar_t *serial_number,
usr/src/lib/storage/libg_fc/common/map.c
3948
if (path == NULL) {
usr/src/lib/storage/libg_fc/common/map.c
3956
P_DPRINTF(" g_get_serial_number: path: %s\n", path);
usr/src/lib/storage/libg_fc/common/map.c
3957
if ((fd = g_object_open(path, O_NDELAY | O_RDONLY)) == -1) {
usr/src/lib/storage/libg_fc/common/map.c
4001
g_get_inquiry(char *path, L_inquiry *l_inquiry)
usr/src/lib/storage/libg_fc/common/map.c
4006
if (path == NULL) {
usr/src/lib/storage/libg_fc/common/map.c
4014
P_DPRINTF(" g_get_inquiry: path: %s\n", path);
usr/src/lib/storage/libg_fc/common/map.c
4015
if ((fd = g_object_open(path, O_NDELAY | O_RDONLY)) == -1)
usr/src/lib/storage/libg_fc/common/map.c
4085
g_get_perf_statistics(char *path, uchar_t *perf_ptr)
usr/src/lib/storage/libg_fc/common/map.c
4091
path);
usr/src/lib/storage/libg_fc/common/map.c
4097
if ((fd = g_object_open(path, O_NDELAY | O_RDONLY)) == -1)
usr/src/lib/storage/libg_fc/common/map.c
4113
g_start(char *path)
usr/src/lib/storage/libg_fc/common/map.c
4118
P_DPRINTF(" g_start: Start: Path %s\n", path);
usr/src/lib/storage/libg_fc/common/map.c
4119
if ((fd = g_object_open(path, O_NDELAY | O_RDONLY)) == -1)
usr/src/lib/storage/libg_fc/common/map.c
4127
g_stop(char *path, int immediate_flag)
usr/src/lib/storage/libg_fc/common/map.c
4131
P_DPRINTF(" g_stop: Stop: Path %s\n", path);
usr/src/lib/storage/libg_fc/common/map.c
4132
if ((fd = g_object_open(path, O_NDELAY | O_RDONLY)) == -1)
usr/src/lib/storage/libg_fc/common/map.c
4140
g_reserve(char *path)
usr/src/lib/storage/libg_fc/common/map.c
4144
P_DPRINTF(" g_reserve: Reserve: Path %s\n", path);
usr/src/lib/storage/libg_fc/common/map.c
4145
if ((fd = g_object_open(path, O_NDELAY | O_RDONLY)) == -1)
usr/src/lib/storage/libg_fc/common/map.c
4153
g_release(char *path)
usr/src/lib/storage/libg_fc/common/map.c
4157
P_DPRINTF(" g_release: Release: Path %s\n", path);
usr/src/lib/storage/libg_fc/common/map.c
4158
if ((fd = g_object_open(path, O_NDELAY | O_RDONLY)) == -1)
usr/src/lib/storage/libg_fc/common/map.c
4431
char path[MAXPATHLEN], m_phys_path[MAXPATHLEN], *ptr;
usr/src/lib/storage/libg_fc/common/map.c
4443
(void) strncpy(path, devpath, len);
usr/src/lib/storage/libg_fc/common/map.c
4444
path[len] = '\0';
usr/src/lib/storage/libg_fc/common/map.c
4446
(void) strcpy(path, devpath);
usr/src/lib/storage/libg_fc/common/map.c
4470
if (strcasecmp(m_phys_path, path) == 0) {
usr/src/lib/storage/libg_fc/common/map.c
4764
g_get_fca_port_topology(char *path, uint32_t *port_top, int verbose)
usr/src/lib/storage/libg_fc/common/map.c
4776
if (path == NULL) {
usr/src/lib/storage/libg_fc/common/map.c
4784
(void) strcpy(drvr_path, path);
usr/src/lib/storage/libg_fc/common/map.c
4785
if (strstr(path, SCSI_VHCI)) {
usr/src/lib/storage/libg_fc/common/map.c
4978
g_port_offline(char *path)
usr/src/lib/storage/libg_fc/common/map.c
4980
return (g_set_port_state(path, PORT_OFFLINE));
usr/src/lib/storage/libg_fc/common/map.c
4984
g_port_online(char *path)
usr/src/lib/storage/libg_fc/common/map.c
4986
return (g_set_port_state(path, PORT_ONLINE));
usr/src/lib/storage/libg_fc/common/map.c
5937
my_devfs_path_free(char *path)
usr/src/lib/storage/libg_fc/common/map.c
5939
if (path != NULL) {
usr/src/lib/storage/libg_fc/common/map.c
5940
free(path);
usr/src/lib/storage/libg_fc/common/map.c
878
g_get_limited_map(char *path, struct lilpmap *map_ptr, int verbose)
usr/src/lib/storage/libg_fc/common/map.c
888
(void) strcpy(drvr_path, path);
usr/src/lib/sun_fc/common/FCHBA.cc
53
FCHBA::FCHBA(string path) : HBA() {
usr/src/lib/sun_fc/common/FCHBA.cc
55
log.debug("Constructing new HBA (%s)", path.c_str());
usr/src/lib/sun_fc/common/FCHBA.cc
58
addPort(new FCHBAPort(path));
usr/src/lib/sun_fc/common/FCHBA.h
44
FCHBA(std::string path);
usr/src/lib/sun_fc/common/FCHBANPIVPort.cc
103
void FCHBANPIVPort::fp_ioctl(string path, int cmd, fcio_t *fcio) {
usr/src/lib/sun_fc/common/FCHBANPIVPort.cc
107
int fd = HBA::_open(path, O_NDELAY | O_RDONLY);
usr/src/lib/sun_fc/common/FCHBANPIVPort.cc
62
path = lookupControllerPath(thePath);
usr/src/lib/sun_fc/common/FCHBANPIVPort.cc
66
path = "/devices";
usr/src/lib/sun_fc/common/FCHBANPIVPort.cc
67
path += thePath;
usr/src/lib/sun_fc/common/FCHBANPIVPort.cc
68
path += ":fc";
usr/src/lib/sun_fc/common/FCHBANPIVPort.h
47
FCHBANPIVPort(std::string path);
usr/src/lib/sun_fc/common/FCHBANPIVPort.h
49
{ return path; }
usr/src/lib/sun_fc/common/FCHBANPIVPort.h
58
std::string path;
usr/src/lib/sun_fc/common/FCHBANPIVPort.h
63
static void fp_ioctl(std::string path, int cmd, fcio_t *arg);
usr/src/lib/sun_fc/common/FCHBAPort.cc
1216
void FCHBAPort::fp_ioctl(string path, int cmd, fcio_t *fcio, int openflag) {
usr/src/lib/sun_fc/common/FCHBAPort.cc
1219
int fd = HBA::_open(path, openflag);
usr/src/lib/sun_fc/common/FCHBAPort.cc
1259
void FCHBAPort::fp_ioctl(string path, int cmd, fcio_t *fcio) {
usr/src/lib/sun_fc/common/FCHBAPort.cc
1261
fp_ioctl(path, cmd, fcio, O_NDELAY | O_RDONLY);
usr/src/lib/sun_fc/common/FCHBAPort.cc
444
path = lookupControllerPath(thePath);
usr/src/lib/sun_fc/common/FCHBAPort.cc
445
sscanf(path.c_str(), "/dev/cfg/c%d", &controllerNumber);
usr/src/lib/sun_fc/common/FCHBAPort.cc
449
path = "/devices";
usr/src/lib/sun_fc/common/FCHBAPort.cc
450
path += thePath;
usr/src/lib/sun_fc/common/FCHBAPort.cc
451
path += ":fc";
usr/src/lib/sun_fc/common/FCHBAPort.cc
457
if (stat(path.c_str(), &sbuf) == -1) {
usr/src/lib/sun_fc/common/FCHBAPort.cc
458
throw IOError("Unable to stat device path: " + path);
usr/src/lib/sun_fc/common/FCHBAPort.h
125
std::string path;
usr/src/lib/sun_fc/common/FCHBAPort.h
139
static void fp_ioctl(std::string path, int cmd, fcio_t *arg);
usr/src/lib/sun_fc/common/FCHBAPort.h
140
static void fp_ioctl(std::string path, int cmd, fcio_t *arg,
usr/src/lib/sun_fc/common/FCHBAPort.h
48
FCHBAPort(std::string path);
usr/src/lib/sun_fc/common/FCHBAPort.h
50
{ return path; }
usr/src/lib/sun_fc/common/HBA.cc
280
int HBA::_open(std::string path, int flag) {
usr/src/lib/sun_fc/common/HBA.cc
284
if ((fd = open(path.c_str(), flag)) < 0) {
usr/src/lib/sun_fc/common/HBA.cc
286
path.c_str(), errno, strerror(errno));
usr/src/lib/sun_fc/common/HBA.cc
297
msg += path;
usr/src/lib/sun_fc/common/HBA.h
79
static int _open(std::string path, int flag);
usr/src/lib/sun_fc/common/HBANPIVPort.cc
71
string HBANPIVPort::lookupControllerPath(string path) {
usr/src/lib/sun_fc/common/HBANPIVPort.cc
99
if (strstr(buf, path.c_str())) {
usr/src/lib/sun_fc/common/HBANPIVPort.h
51
std::string lookupControllerPath(std::string path);
usr/src/lib/sun_fc/common/HBAPort.cc
120
if (warg->path) {
usr/src/lib/sun_fc/common/HBAPort.cc
126
strncmp(start, warg->path, warg->len) != 0 ||
usr/src/lib/sun_fc/common/HBAPort.cc
170
warg.path = NULL;
usr/src/lib/sun_fc/common/HBAPort.cc
177
warg.path = mappings->entry[j].ScsiId.OSDeviceName +
usr/src/lib/sun_fc/common/HBAPort.cc
181
warg.path = mappings->entry[j].ScsiId.OSDeviceName;
usr/src/lib/sun_fc/common/HBAPort.cc
208
string HBAPort::lookupControllerPath(string path) {
usr/src/lib/sun_fc/common/HBAPort.cc
236
if (strstr(buf, path.c_str())) {
usr/src/lib/sun_fc/common/HBAPort.cc
81
string path = getPath();
usr/src/lib/sun_fc/common/HBAPort.cc
83
if (stat(path.c_str(), &sbuf) == -1) {
usr/src/lib/sun_fc/common/HBAPort.cc
87
log.debug("Unable to stat %s: %s", path.c_str(),
usr/src/lib/sun_fc/common/HBAPort.cc
99
char *path;
usr/src/lib/sun_fc/common/HBAPort.h
124
std::string lookupControllerPath(std::string path);
usr/src/lib/sun_fc/common/TgtFCHBA.cc
111
std::string path = port->getPath();
usr/src/lib/sun_fc/common/TgtFCHBA.cc
112
string::size_type offset = path.find_last_of(".");
usr/src/lib/sun_fc/common/TgtFCHBA.cc
114
string portwwnString = path.substr(offset+1);
usr/src/lib/sun_fc/common/TgtFCHBA.cc
186
std::string path = port->getPath();
usr/src/lib/sun_fc/common/TgtFCHBA.cc
187
string::size_type offset = path.find_last_of(".");
usr/src/lib/sun_fc/common/TgtFCHBA.cc
189
string portwwnString = path.substr(offset+1);
usr/src/lib/sun_fc/common/TgtFCHBA.cc
54
TgtFCHBA::TgtFCHBA(string path) : HBA()
usr/src/lib/sun_fc/common/TgtFCHBA.cc
57
log.debug("Constructing new Target mode HBA (%s)", path.c_str());
usr/src/lib/sun_fc/common/TgtFCHBA.cc
62
addPort(new TgtFCHBAPort(path));
usr/src/lib/sun_fc/common/TgtFCHBA.cc
73
"Failed to get HBA attribute for %s", path.c_str());
usr/src/lib/sun_fc/common/TgtFCHBA.h
44
TgtFCHBA(std::string path);
usr/src/lib/sun_fc/common/TgtFCHBAPort.cc
227
log.debug("Initializing HBA port %s", path.c_str());
usr/src/lib/sun_fc/common/TgtFCHBAPort.cc
228
path = thePath;
usr/src/lib/sun_fc/common/TgtFCHBAPort.cc
257
string::size_type offset = path.find_last_of(".");
usr/src/lib/sun_fc/common/TgtFCHBAPort.cc
259
string portwwnString = path.substr(offset+1);
usr/src/lib/sun_fc/common/TgtFCHBAPort.cc
311
string::size_type offset = path.find_last_of(".");
usr/src/lib/sun_fc/common/TgtFCHBAPort.cc
313
string portwwnString = path.substr(offset+1);
usr/src/lib/sun_fc/common/TgtFCHBAPort.h
135
std::string path;
usr/src/lib/sun_fc/common/TgtFCHBAPort.h
47
TgtFCHBAPort(std::string path);
usr/src/lib/sun_fc/common/TgtFCHBAPort.h
49
{ return path; }
usr/src/lib/sun_sas/common/Sun_sasGetPhyStatistics.c
132
(void) strlcpy(path, hba_port_ptr->device_path,
usr/src/lib/sun_sas/common/Sun_sasGetPhyStatistics.c
133
sizeof (path));
usr/src/lib/sun_sas/common/Sun_sasGetPhyStatistics.c
134
charptr = strrchr(path, ':');
usr/src/lib/sun_sas/common/Sun_sasGetPhyStatistics.c
142
node = di_init(path, DINFOCPYONE);
usr/src/lib/sun_sas/common/Sun_sasGetPhyStatistics.c
148
path, phy, strerror(errno));
usr/src/lib/sun_sas/common/Sun_sasGetPhyStatistics.c
162
"device \"%s\" when get phyIndex: %08lx", path, phy);
usr/src/lib/sun_sas/common/Sun_sasGetPhyStatistics.c
173
path, phy);
usr/src/lib/sun_sas/common/Sun_sasGetPhyStatistics.c
48
char *charptr, path[MAXPATHLEN + 1];
usr/src/lib/sun_sas/common/devlink_disco.c
113
warg.path = NULL;
usr/src/lib/sun_sas/common/devlink_disco.c
120
warg.path = mappings->entry[j].
usr/src/lib/sun_sas/common/devlink_disco.c
125
warg.path = mappings->entry[j].ScsiId.
usr/src/lib/sun_sas/common/devlink_disco.c
153
lookupLink(char *path, char *link, const char *dir, const char *mname)
usr/src/lib/sun_sas/common/devlink_disco.c
206
subpath = strstr(buf, path);
usr/src/lib/sun_sas/common/devlink_disco.c
209
(void) strlcpy(tmpPath, path, MAXPATHLEN);
usr/src/lib/sun_sas/common/devlink_disco.c
236
lookupControllerLink(char *path, char *link)
usr/src/lib/sun_sas/common/devlink_disco.c
240
return (lookupLink(path, link, dir, mname));
usr/src/lib/sun_sas/common/devlink_disco.c
249
lookupSMPLink(char *path, char *link)
usr/src/lib/sun_sas/common/devlink_disco.c
253
return (lookupLink(path, link, dir, mname));
usr/src/lib/sun_sas/common/devlink_disco.c
42
char *path;
usr/src/lib/sun_sas/common/devlink_disco.c
63
if (warg->path) {
usr/src/lib/sun_sas/common/devlink_disco.c
68
strncmp(start, warg->path, warg->len) != 0 ||
usr/src/lib/sun_sas/common/devtree_device_disco.c
1069
di_path_t path = DI_PATH_NIL;
usr/src/lib/sun_sas/common/devtree_device_disco.c
1077
if ((path = di_path_phci_next_path(node, path)) ==
usr/src/lib/sun_sas/common/devtree_device_disco.c
1083
if ((nodechild == DI_NODE_NIL) && (path == DI_PATH_NIL)) {
usr/src/lib/sun_sas/common/devtree_device_disco.c
1096
while (path != DI_PATH_NIL) {
usr/src/lib/sun_sas/common/devtree_device_disco.c
1097
if (get_attached_paths_info(path, port_ptr)
usr/src/lib/sun_sas/common/devtree_device_disco.c
1101
path = di_path_phci_next_path(node, path);
usr/src/lib/sun_sas/common/devtree_device_disco.c
641
get_attached_paths_info(di_path_t path, struct sun_sas_port *port_ptr)
usr/src/lib/sun_sas/common/devtree_device_disco.c
672
pathdevpath = di_path_devfs_path(path);
usr/src/lib/sun_sas/common/devtree_device_disco.c
674
state = di_path_state(path);
usr/src/lib/sun_sas/common/devtree_device_disco.c
684
if ((clientnode = di_path_client_node(path)) != DI_NODE_NIL) {
usr/src/lib/sun_sas/common/devtree_device_disco.c
715
if ((unit_address = di_path_bus_addr(path)) != NULL) {
usr/src/lib/sun_sas/common/devtree_device_disco.c
746
if (di_path_prop_lookup_strings(path, "attached-port",
usr/src/lib/sun_sas/common/devtree_device_disco.c
883
if (di_path_prop_lookup_strings(path, "variant",
usr/src/lib/sun_sas/common/devtree_device_disco.c
946
if (di_path_prop_lookup_ints(path, "lun", &propIntData) != -1) {
usr/src/lib/sun_sas/common/devtree_device_disco.c
966
if (di_path_prop_lookup_int64s(path, "lun64", &propInt64Data) != -1) {
usr/src/lib/sun_sas/common/devtree_device_disco.c
980
if (di_path_prop_lookup_ints(path, "target", &propIntData) != -1) {
usr/src/lib/sun_sas/common/devtree_device_disco.c
984
di_path_instance(path);
usr/src/lib/sun_sas/common/devtree_phy_disco.c
40
char *path;
usr/src/lib/sun_sas/common/sun_sas.h
281
extern HBA_STATUS lookupControllerLink(char *path, char *link);
usr/src/lib/sun_sas/common/sun_sas.h
282
extern HBA_STATUS lookupSMPLink(char *path, char *link);
usr/src/lib/sun_sas/common/verify.c
38
char *charptr, path[MAXPATHLEN+1];
usr/src/lib/sun_sas/common/verify.c
49
(void) strlcpy(path, hba_ptr->device_path, sizeof (path));
usr/src/lib/sun_sas/common/verify.c
51
charptr = strrchr(path, ':');
usr/src/lib/sun_sas/common/verify.c
58
node = di_init(path, DINFOCPYALL);
usr/src/lib/sun_sas/common/verify.c
62
path, strerror(errno));
usr/src/lib/udapl/libdat/include/dat_osd.h
177
#define dat_os_fopen(path) ((DAT_OS_FILE *)fopen((path), "rF"))
usr/src/lib/varpd/libvarpd/common/libvarpd_door.c
403
libvarpd_door_server_create(varpd_handle_t *vhp, const char *path)
usr/src/lib/varpd/libvarpd/common/libvarpd_door.c
421
if ((fd = open(path, O_CREAT | O_RDWR, 0666)) == -1) {
usr/src/lib/varpd/libvarpd/common/libvarpd_door.c
442
(void) fdetach(path);
usr/src/lib/varpd/libvarpd/common/libvarpd_door.c
443
if (fattach(vip->vdi_doorfd, path) != 0) {
usr/src/lib/varpd/libvarpd/common/libvarpd_plugin.c
164
libvarpd_plugin_load_cb(varpd_impl_t *vip, const char *path, void *unused)
usr/src/lib/varpd/libvarpd/common/libvarpd_plugin.c
168
varpd_load_path = path;
usr/src/lib/varpd/libvarpd/common/libvarpd_plugin.c
169
dlp = dlopen(path, RTLD_LOCAL | RTLD_NOW);
usr/src/lib/varpd/libvarpd/common/libvarpd_plugin.c
171
(void) fprintf(stderr, "dlopen failed - %s\n", path);
usr/src/lib/varpd/libvarpd/common/libvarpd_plugin.c
172
path = NULL;
usr/src/lib/varpd/libvarpd/common/libvarpd_plugin.c
178
libvarpd_plugin_load(varpd_handle_t *vph, const char *path)
usr/src/lib/varpd/libvarpd/common/libvarpd_plugin.c
183
if (vip == NULL || path == NULL)
usr/src/lib/varpd/libvarpd/common/libvarpd_plugin.c
191
ret = libvarpd_dirwalk(vip, path, ".so", libvarpd_plugin_load_cb, NULL);
usr/src/lib/varpd/libvarpd/common/libvarpd_util.c
38
libvarpd_dirwalk(varpd_impl_t *vip, const char *path, const char *suffix,
usr/src/lib/varpd/libvarpd/common/libvarpd_util.c
46
assert(vip != NULL && path != NULL);
usr/src/lib/varpd/libvarpd/common/libvarpd_util.c
48
if (asprintf(&dirpath, "%s/%s", path, libvarpd_isaext()) == -1)
usr/src/psm/promif/ieee1275/common/prom_devname.c
102
s = prom_strrchr(path, '/');
usr/src/psm/promif/ieee1275/common/prom_devname.c
98
prom_path_options(register char *path)
usr/src/psm/promif/ieee1275/common/prom_io.c
33
prom_open(char *path)
usr/src/psm/promif/ieee1275/common/prom_io.c
41
if ((uintptr_t)path > (uint32_t)-1) {
usr/src/psm/promif/ieee1275/common/prom_io.c
42
opath = path;
usr/src/psm/promif/ieee1275/common/prom_io.c
44
path = promplat_alloc(len);
usr/src/psm/promif/ieee1275/common/prom_io.c
45
if (path == NULL)
usr/src/psm/promif/ieee1275/common/prom_io.c
47
(void) prom_strcpy(path, opath);
usr/src/psm/promif/ieee1275/common/prom_io.c
56
ci[3] = p1275_ptr2cell(path); /* Arg1: Pathname */
usr/src/psm/promif/ieee1275/common/prom_io.c
66
promplat_free(path, len);
usr/src/psm/promif/ieee1275/common/prom_node.c
211
prom_finddevice(char *path)
usr/src/psm/promif/ieee1275/common/prom_node.c
218
if ((uintptr_t)path > (uint32_t)-1) {
usr/src/psm/promif/ieee1275/common/prom_node.c
219
opath = path;
usr/src/psm/promif/ieee1275/common/prom_node.c
221
path = promplat_alloc(len);
usr/src/psm/promif/ieee1275/common/prom_node.c
222
if (path == NULL) {
usr/src/psm/promif/ieee1275/common/prom_node.c
225
(void) prom_strcpy(path, opath);
usr/src/psm/promif/ieee1275/common/prom_node.c
234
ci[3] = p1275_ptr2cell(path); /* Arg1: pathname */
usr/src/psm/promif/ieee1275/common/prom_node.c
243
promplat_free(path, len);
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
106
ci[6] = p1275_ptr2cell(path); /* Arg4: Pathname */
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
114
promplat_free(path, len + 1);
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
33
prom_fopen(ihandle_t fsih, char *path)
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
41
if ((uintptr_t)path > (uint32_t)-1) {
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
42
opath = path;
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
44
path = promplat_alloc(len);
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
45
if (path == NULL)
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
47
(void) prom_strcpy(path, opath);
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
50
len = prom_strlen(path);
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
59
ci[6] = p1275_ptr2cell(path); /* Arg4: Pathname */
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
67
promplat_free(path, len + 1);
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
80
prom_volopen(ihandle_t fsih, char *path)
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
88
if ((uintptr_t)path > (uint32_t)-1) {
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
89
opath = path;
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
91
path = promplat_alloc(len);
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
92
if (path == NULL)
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
94
(void) prom_strcpy(path, opath);
usr/src/psm/promif/ieee1275/sun4/prom_fio.c
97
len = prom_strlen(path);
usr/src/psm/stand/boot/common/readfile.c
1320
openpath(char *path, char *fname, int flags)
usr/src/psm/stand/boot/common/readfile.c
1334
for (p = path; /* forever */; p = q) {
usr/src/psm/stand/cpr/sparcv9/sun4u/util.c
128
cpr_fs_volopen(char *path)
usr/src/psm/stand/cpr/sparcv9/sun4u/util.c
135
return (prom_volopen(cb_rih, path));
usr/src/psm/stand/cpr/sparcv9/sun4u/util.c
142
cpr_fs_open(char *path)
usr/src/psm/stand/cpr/sparcv9/sun4u/util.c
149
return (prom_fopen(cb_rih, path));
usr/src/psm/stand/cpr/sparcv9/sun4u/util.c
47
cpr_statefile_open(char *path, char *fs_dev)
usr/src/psm/stand/cpr/sparcv9/sun4u/util.c
59
handle = prom_open(path);
usr/src/psm/stand/cpr/sparcv9/sun4u/util.c
87
if (*path != '/') {
usr/src/psm/stand/cpr/sparcv9/sun4u/util.c
88
(void) prom_sprintf(fs_name, "/%s", path);
usr/src/psm/stand/cpr/sparcv9/sun4u/util.c
91
return (cpr_fs_open(path));
usr/src/psm/stand/lib/names/sparc/common/uname-m.c
48
platcmp(char *path, char *dir)
usr/src/psm/stand/lib/names/sparc/common/uname-m.c
54
if (strncmp(path, prefix, sizeof (prefix) - 1) != 0)
usr/src/psm/stand/lib/names/sparc/common/uname-m.c
57
path += sizeof (prefix) - 1;
usr/src/psm/stand/lib/names/sparc/common/uname-m.c
58
if (strncmp(path, dir, len) != 0)
usr/src/psm/stand/lib/names/sparc/common/uname-m.c
60
path += len;
usr/src/psm/stand/lib/names/sparc/common/uname-m.c
61
if (strcmp(path, suffix) != 0)
usr/src/stand/lib/fs/common/fsswitch.c
282
kern_mountroot(char *path)
usr/src/stand/lib/fs/common/fsswitch.c
284
return (mountroot(path));
usr/src/stand/lib/fs/hsfs/hsfsops.c
156
find(fileid_t *filep, char *path)
usr/src/stand/lib/fs/hsfs/hsfsops.c
162
if (path == NULL || *path == '\0') {
usr/src/stand/lib/fs/hsfs/hsfsops.c
168
printf("find(): path=<%s>\n", path);
usr/src/stand/lib/fs/hsfs/hsfsops.c
176
while (*path) {
usr/src/stand/lib/fs/hsfs/hsfsops.c
177
while (*path == '/')
usr/src/stand/lib/fs/hsfs/hsfsops.c
178
path++;
usr/src/stand/lib/fs/hsfs/hsfsops.c
179
if (*(q = path) == '\0')
usr/src/stand/lib/fs/hsfs/hsfsops.c
186
if ((inode = dlook(filep, path)) != 0) {
usr/src/stand/lib/fs/hsfs/hsfsops.c
195
path = q;
usr/src/stand/lib/fs/hsfs/hsfsops.c
220
dlook(fileid_t *filep, char *path)
usr/src/stand/lib/fs/hsfs/hsfsops.c
231
if (path == NULL || *path == '\0')
usr/src/stand/lib/fs/hsfs/hsfsops.c
239
len = strlen(path);
usr/src/stand/lib/fs/hsfs/hsfsops.c
241
if (in = get_dcache(dv, path, ip->i_number)) {
usr/src/stand/lib/fs/hsfs/hsfsops.c
261
if (udp->d_namlen == len && (strcmp(path, udp->d_name) == 0)) {
usr/src/stand/lib/fs/hsfs/hsfsops.c
262
set_dcache(dv, path, ip->i_number, udp->d_ino);
usr/src/stand/lib/fs/hsfs/hsfsops.c
270
if (strcmp(path, "*") == 0)
usr/src/stand/lib/fs/nfs/mount.c
139
nfsmountroot(char *path, struct nfs_file *filep)
usr/src/stand/lib/fs/nfs/mount.c
154
(rpcproc_t)MOUNTPROC_MNT, xdr_path, (caddr_t)&path,
usr/src/stand/lib/fs/nfs/mount.c
159
root_hostname, path);
usr/src/stand/lib/fs/nfs/mount.c
315
nfs3mountroot(char *path, struct nfs_file *filep)
usr/src/stand/lib/fs/nfs/mount.c
335
(rpcproc_t)MOUNTPROC_MNT, xdr_path, (caddr_t)&path,
usr/src/stand/lib/fs/nfs/mount.c
343
root_hostname, path);
usr/src/stand/lib/fs/nfs/mount.c
385
nfs4init(char *path, uint16_t nfs_port)
usr/src/stand/lib/fs/nfs/mount.c
442
error = lookup(path, &rootpath, TRUE);
usr/src/stand/lib/fs/nfs/mount.c
445
printf("boot: lookup %s failed\n", path);
usr/src/stand/lib/fs/nfs/nfs2ops.c
345
nfsgetsymlink(struct nfs_file *cfile, char **path)
usr/src/stand/lib/fs/nfs/nfs2ops.c
369
*path = linkres.readlinkres_u.data;
usr/src/stand/lib/fs/nfs/nfs3ops.c
407
nfs3getsymlink(struct nfs_file *cfile, char **path)
usr/src/stand/lib/fs/nfs/nfs3ops.c
438
*path = symlink_path;
usr/src/stand/lib/fs/nfs/nfs4ops.c
594
nfs4getsymlink(struct nfs_file *cfile, char **path)
usr/src/stand/lib/fs/nfs/nfs4ops.c
641
*path = NULL;
usr/src/stand/lib/fs/nfs/nfs4ops.c
648
*path = symlink_path;
usr/src/stand/lib/fs/nfs/nfs_inet.h
418
extern int nfsgetsymlink(struct nfs_file *cfile, char **path);
usr/src/stand/lib/fs/nfs/nfsops.c
156
boot_nfs_open(char *path, int flags)
usr/src/stand/lib/fs/nfs/nfsops.c
163
printf("boot_nfs_open(%s, %x)\n", path, flags);
usr/src/stand/lib/fs/nfs/nfsops.c
172
if (path == NULL || *path == '\0') {
usr/src/stand/lib/fs/nfs/nfsops.c
203
if (lookup(path, &filep->file, FALSE) != 0) {
usr/src/stand/lib/fs/nfs/nfsops.c
206
printf("boot_nfs_open(): Cannot open '%s'.\n", path);
usr/src/stand/lib/fs/nfs/nfsops.c
218
path, filep->desc);
usr/src/stand/lib/fs/nfs/pathname.c
92
stpn_set(struct st_pathname *pnp, char *path)
usr/src/stand/lib/fs/nfs/pathname.c
96
bcopy(pnp->pn_path, path, pnp->pn_pathlen);
usr/src/stand/lib/fs/ufs/ufsops.c
169
find(fileid_t *filep, char *path)
usr/src/stand/lib/fs/ufs/ufsops.c
179
if (path == NULL || *path == '\0') {
usr/src/stand/lib/fs/ufs/ufsops.c
185
bcopy(path, lpath, strlen(path));
usr/src/stand/lib/fs/ufs/ufsops.c
321
dlook(fileid_t *filep, char *path)
usr/src/stand/lib/fs/ufs/ufsops.c
334
if (path == NULL || *path == '\0')
usr/src/stand/lib/fs/ufs/ufsops.c
340
len = strlen(path);
usr/src/stand/lib/fs/ufs/ufsops.c
345
if ((in = get_dcache(devp->di_dcookie, path, ip->i_number)) != 0)
usr/src/stand/lib/fs/ufs/ufsops.c
365
if (dp->d_namlen == len && strcmp(path, dp->d_name) == 0)
usr/src/stand/lib/fs/ufs/ufsops.c
371
if (strcmp(path, "*") == 0)
usr/src/stand/lib/fs/ufs/ufsops.c
90
static ino_t find(fileid_t *filep, char *path);
usr/src/stand/lib/fs/ufs/ufsops.c
91
static ino_t dlook(fileid_t *filep, char *path);
usr/src/stand/sys/bootvfs.h
94
extern int kern_mountroot(char *path);
usr/src/test/crypto-tests/tests/digest/parser_runner.c
327
char *path = NULL;
usr/src/test/crypto-tests/tests/digest/parser_runner.c
328
if (asprintf(&path, "%s/%s", DATA_PATH, input_file) < 0) {
usr/src/test/crypto-tests/tests/digest/parser_runner.c
332
ctx = parser_init(path, digest_len, &error);
usr/src/test/crypto-tests/tests/digest/parser_runner.c
334
err(EXIT_FAILURE, "%s", path);
usr/src/test/crypto-tests/tests/digest/parser_runner.c
336
free(path);
usr/src/test/crypto-tests/tests/digest/parser_runner.c
45
parser_init(const char *path, size_t hash_len, int *errp)
usr/src/test/crypto-tests/tests/digest/parser_runner.c
53
fp = fopen(path, "r");
usr/src/test/i2c-tests/tests/ioctl/i2c_ioctl_util.c
247
i2c_ioctl_test_get_fd(i2c_dev_t dev, const char *path, int flags)
usr/src/test/i2c-tests/tests/ioctl/i2c_ioctl_util.c
249
char *dup = strdup(path), *lasts;
usr/src/test/i2c-tests/tests/ioctl/i2c_ioctl_util.c
252
"%s", path);
usr/src/test/i2c-tests/tests/ioctl/i2c_ioctl_util.c
272
"path %s", ent, path);
usr/src/test/i2c-tests/tests/ioctl/i2c_ioctl_util.c
283
"path %s", ent, path);
usr/src/test/i2c-tests/tests/ioctl/i2c_ioctl_util.c
292
"path %s", ent, path);
usr/src/test/i2c-tests/tests/ioctl/i2c_ioctl_util.c
307
path);
usr/src/test/i2c-tests/tests/ioctl/i2c_ioctl_util.c
316
"type 0x%x, but expected 0x%x", path, type, dev);
usr/src/test/i2c-tests/tests/ioctl/i2c_ioctl_util.c
323
"minor corresponding to path %s", path);
usr/src/test/i2c-tests/tests/ioctl/i2c_ioctl_util.c
329
"path for %s", path);
usr/src/test/i2c-tests/tests/libi2c/claimed-addrs.c
54
char path[PATH_MAX];
usr/src/test/i2c-tests/tests/libi2c/claimed-addrs.c
55
(void) snprintf(path, sizeof (path), "/dev/eeprom/%s/%d/eeprom",
usr/src/test/i2c-tests/tests/libi2c/claimed-addrs.c
57
int fd = open(path, O_RDONLY);
usr/src/test/i2c-tests/tests/libi2c/claimed-addrs.c
60
path);
usr/src/test/i2c-tests/tests/libi2c/discovery.c
105
warnx("TEST FAILED: nprops mismatch on %s: %u vs. %u", path,
usr/src/test/i2c-tests/tests/libi2c/discovery.c
112
"properties when discovered by devi and path\n", path);
usr/src/test/i2c-tests/tests/libi2c/discovery.c
220
disc_port_path(i2c_hdl_t *hdl, const char *path, uint32_t portno,
usr/src/test/i2c-tests/tests/libi2c/discovery.c
226
if (i2c_port_init_by_path(hdl, path, &port)) {
usr/src/test/i2c-tests/tests/libi2c/discovery.c
229
"expected 0x%x", path, i2c_port_portno(port),
usr/src/test/i2c-tests/tests/libi2c/discovery.c
236
"0x%x", path, i2c_port_type(port), type);
usr/src/test/i2c-tests/tests/libi2c/discovery.c
242
"properties\n", path);
usr/src/test/i2c-tests/tests/libi2c/discovery.c
247
path);
usr/src/test/i2c-tests/tests/libi2c/discovery.c
316
const char *path = i2c_mux_disc_path(disc);
usr/src/test/i2c-tests/tests/libi2c/discovery.c
319
if (strstr(path, "i2csim0/0/0x70") == NULL)
usr/src/test/i2c-tests/tests/libi2c/discovery.c
324
path, i2c_mux_disc_nports(disc));
usr/src/test/i2c-tests/tests/libi2c/discovery.c
332
"with %s", path, i2c_mux_disc_name(disc), driver);
usr/src/test/i2c-tests/tests/libi2c/discovery.c
338
"discovery information\n", path);
usr/src/test/i2c-tests/tests/libi2c/discovery.c
377
const char *path = i2c_device_disc_path(disc);
usr/src/test/i2c-tests/tests/libi2c/discovery.c
382
if (strcmp(disc_devtab[i].dd_path, path) == 0) {
usr/src/test/i2c-tests/tests/libi2c/discovery.c
75
disc_ctrl_path(i2c_hdl_t *hdl, i2c_ctrl_t *ctrl, const char *path)
usr/src/test/i2c-tests/tests/libi2c/discovery.c
80
if (!i2c_ctrl_init_by_path(hdl, path, &alt)) {
usr/src/test/i2c-tests/tests/libi2c/discovery.c
82
"controller by path %s", path);
usr/src/test/i2c-tests/tests/libi2c/discovery.c
87
warnx("TEST FAILED: name mismatch on %s: %s vs. %s", path,
usr/src/test/i2c-tests/tests/libi2c/discovery.c
93
warnx("TEST FAILED: path mismatch on %s: %s vs. %s", path,
usr/src/test/i2c-tests/tests/libi2c/discovery.c
99
warnx("TEST FAILED: instance mismatch on %s: %d vs. %d", path,
usr/src/test/libc-tests/tests/common/test_common.c
282
char path[MAXPATHLEN];
usr/src/test/libc-tests/tests/common/test_common.c
307
(void) snprintf(path, sizeof (path), "%s/cfg/%s", stf, fname);
usr/src/test/libc-tests/tests/common/test_common.c
308
if (access(path, F_OK) == 0) {
usr/src/test/libc-tests/tests/common/test_common.c
309
fname = path;
usr/src/test/libc-tests/tests/common/test_common.c
312
(void) snprintf(path, sizeof (path), "cfg/%s", fname);
usr/src/test/libc-tests/tests/common/test_common.c
313
if (access(path, F_OK) == 0) {
usr/src/test/libc-tests/tests/common/test_common.c
314
fname = path;
usr/src/test/libc-tests/tests/symbols/symbols_test.c
689
show_file(test_t t, const char *path)
usr/src/test/libc-tests/tests/symbols/symbols_test.c
696
f = fopen(path, "r");
usr/src/test/libc-tests/tests/symbols/symbols_test.c
698
test_debugf(t, "fopen(%s): %s", path, strerror(errno));
usr/src/test/libc-tests/tests/symbols/symbols_test.c
702
test_debugf(t, "----->> begin (%s) <<------", path);
usr/src/test/libc-tests/tests/symbols/symbols_test.c
708
test_debugf(t, "----->> end (%s) <<------", path);
usr/src/test/libc-tests/tests/threads/thread_name.c
182
(void) snprintf(path, sizeof (path),
usr/src/test/libc-tests/tests/threads/thread_name.c
185
fd = open(path, O_RDWR);
usr/src/test/libc-tests/tests/threads/thread_name.c
47
char path[PATH_MAX];
usr/src/test/libc-tests/tests/utimes.c
102
compare_linktime(char *path, bool trunc, timespec_t *atim, timespec_t *mtim,
usr/src/test/libc-tests/tests/utimes.c
107
if (lstat(path, &st) == -1)
usr/src/test/libc-tests/tests/utimes.c
108
err(EXIT_FAILURE, "lstat %s", path);
usr/src/test/libc-tests/tests/utimes.c
114
reset(char *path, timespec_t *atim, timespec_t *mtim)
usr/src/test/libc-tests/tests/utimes.c
116
if (utimes(path, NULL) == -1)
usr/src/test/libc-tests/tests/utimes.c
118
if (compare_filetime(path, true, atim, mtim, true)) {
usr/src/test/libc-tests/tests/utimes.c
140
char path[MAXPATHLEN + 1];
usr/src/test/libc-tests/tests/utimes.c
151
if (snprintf(path, sizeof (path), "%s/file", dir) >= sizeof (path))
usr/src/test/libc-tests/tests/utimes.c
154
if ((fd = open(path, O_CREAT, 0644)) == -1)
usr/src/test/libc-tests/tests/utimes.c
155
err(EXIT_FAILURE, "open file %s", path);
usr/src/test/libc-tests/tests/utimes.c
157
if (snprintf(lpath, sizeof (lpath), "%s/link", dir) >= sizeof (path))
usr/src/test/libc-tests/tests/utimes.c
160
if (symlink(path, lpath) == -1)
usr/src/test/libc-tests/tests/utimes.c
173
if (utimes(path, tv) == -1)
usr/src/test/libc-tests/tests/utimes.c
174
err(EXIT_FAILURE, "utimes(%s)", path);
usr/src/test/libc-tests/tests/utimes.c
175
if (!compare_filetime(path, true, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
180
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
186
if (!compare_filetime(path, true, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
197
if (lutimes(path, tv) == -1)
usr/src/test/libc-tests/tests/utimes.c
198
err(EXIT_FAILURE, "lutimes(%s)", path);
usr/src/test/libc-tests/tests/utimes.c
199
if (!compare_filetime(path, true, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
204
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
214
if (compare_filetime(path, true, atim, mtim, true)) {
usr/src/test/libc-tests/tests/utimes.c
220
if (!reset(path, atim, mtim) || !reset_link(lpath, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
224
if (utimes(path, tv) == -1)
usr/src/test/libc-tests/tests/utimes.c
225
err(EXIT_FAILURE, "utimes(%s)", path);
usr/src/test/libc-tests/tests/utimes.c
227
if (!compare_filetime(path, true, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
241
err(EXIT_FAILURE, "futimes(%s)", path);
usr/src/test/libc-tests/tests/utimes.c
242
if (!compare_filetime(path, true, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
256
if (!compare_filetime(path, true, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
261
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
267
if (futimesat(rfd, path, tv) == -1)
usr/src/test/libc-tests/tests/utimes.c
268
err(EXIT_FAILURE, "futimesat(dnfd, %s)", path);
usr/src/test/libc-tests/tests/utimes.c
269
if (!compare_filetime(path, true, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
274
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
280
if (!compare_filetime(path, true, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
288
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
294
if (!compare_filetime(path, true, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
299
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
305
if (!compare_filetime(path, true, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
310
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
318
if (!compare_filetime(path, true, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
323
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
329
if (!compare_filetime(path, true, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
340
err(EXIT_FAILURE, "futimesns(%s)", path);
usr/src/test/libc-tests/tests/utimes.c
341
if (!compare_filetime(path, false, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
363
if (utimensat(rfd, path, ts, 0) == -1)
usr/src/test/libc-tests/tests/utimes.c
364
err(EXIT_FAILURE, "utimensat(dnfd, %s)", path);
usr/src/test/libc-tests/tests/utimes.c
365
if (!compare_filetime(path, false, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
370
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
376
if (!compare_filetime(path, false, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
384
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
390
if (!compare_filetime(path, false, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
395
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
401
if (!compare_filetime(path, false, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
406
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
414
if (!compare_filetime(path, false, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
419
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
425
if (!compare_filetime(path, false, atim, mtim, false)) {
usr/src/test/libc-tests/tests/utimes.c
430
if (!reset(path, atim, mtim))
usr/src/test/libc-tests/tests/utimes.c
449
if (compare_filetime(path, false, atim, mtim, true)) {
usr/src/test/libc-tests/tests/utimes.c
463
if (unlink(path) == -1)
usr/src/test/libc-tests/tests/utimes.c
464
err(EXIT_FAILURE, "unlink(%s)", path);
usr/src/test/libc-tests/tests/utimes.c
90
compare_filetime(char *path, bool trunc, timespec_t *atim, timespec_t *mtim,
usr/src/test/libc-tests/tests/utimes.c
95
if (stat(path, &st) == -1)
usr/src/test/libc-tests/tests/utimes.c
96
err(EXIT_FAILURE, "stat %s", path);
usr/src/test/nvme-tests/tests/ioctl/nvme_ioctl_util.c
109
if (snprintf(path, sizeof (path), "/devices%s", mpath) >=
usr/src/test/nvme-tests/tests/ioctl/nvme_ioctl_util.c
110
sizeof (path)) {
usr/src/test/nvme-tests/tests/ioctl/nvme_ioctl_util.c
116
fd = open(path, oflag);
usr/src/test/nvme-tests/tests/ioctl/nvme_ioctl_util.c
118
err(EXIT_FAILURE, "failed to open minor path %s", path);
usr/src/test/nvme-tests/tests/ioctl/nvme_ioctl_util.c
79
char name[128], *mpath, path[PATH_MAX];
usr/src/test/nvme-tests/tests/libnvme/format.c
177
char *devfs, path[PATH_MAX];
usr/src/test/nvme-tests/tests/libnvme/format.c
193
if (snprintf(path, sizeof (path), "/devices/%s:c,raw", devfs) >=
usr/src/test/nvme-tests/tests/libnvme/format.c
194
sizeof (path)) {
usr/src/test/nvme-tests/tests/libnvme/format.c
207
fd = open(path, O_RDWR | O_NDELAY);
usr/src/test/nvme-tests/tests/libnvme/format.c
209
warn("failed to open %s", path);
usr/src/test/os-tests/tests/fifo-tvnsec.c
202
char path[1024];
usr/src/test/os-tests/tests/fifo-tvnsec.c
217
(void) snprintf(path, sizeof (path), "/tmp/fifo-tvnsec.%" _PRIdID
usr/src/test/os-tests/tests/fifo-tvnsec.c
219
if (mkfifo(path, 0666) != 0) {
usr/src/test/os-tests/tests/fifo-tvnsec.c
228
pipes[1] = open(path, O_RDONLY | O_NONBLOCK);
usr/src/test/os-tests/tests/fifo-tvnsec.c
230
err(EXIT_FAILURE, "failed to open %s read-only", path);
usr/src/test/os-tests/tests/fifo-tvnsec.c
233
pipes[0] = open(path, O_WRONLY | O_NONBLOCK);
usr/src/test/os-tests/tests/fifo-tvnsec.c
235
err(EXIT_FAILURE, "failed to open %s write-only", path);
usr/src/test/os-tests/tests/fifo-tvnsec.c
242
(void) unlink(path);
usr/src/test/os-tests/tests/file-locking/acquire-lock.c
130
char *modestr, *path;
usr/src/test/os-tests/tests/file-locking/acquire-lock.c
140
path = argv[3];
usr/src/test/os-tests/tests/file-locking/acquire-lock.c
153
fd = open(path, rdonly ? O_RDONLY : O_WRONLY);
usr/src/test/os-tests/tests/file-locking/acquire-lock.c
155
err(EXIT_FAILURE, "Failed to open %s", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
187
dpio_test_cbops_write(int fd, const char *path)
usr/src/test/os-tests/tests/gpio/dpio_test.c
196
dpio_fail("failed to get DPIO_IOC_CUROUT on %s: %s", path,
usr/src/test/os-tests/tests/gpio/dpio_test.c
200
dpio_pass("DPIO_IOC_CUROUT successful on %s", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
205
dpio_fail("failed to get DPIO_IOC_TIMING on %s: %s", path,
usr/src/test/os-tests/tests/gpio/dpio_test.c
209
dpio_pass("DPIO_IOC_TIMING successful on %s", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
214
dpio_fail("write failed on %s: %s", path, strerror(ret));
usr/src/test/os-tests/tests/gpio/dpio_test.c
218
"expected 4 bytes", path, ret);
usr/src/test/os-tests/tests/gpio/dpio_test.c
221
dpio_pass("write successful on %s", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
225
path, strerror(errno));
usr/src/test/os-tests/tests/gpio/dpio_test.c
230
dpio_pass("write time advanced on %s", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
241
char path[PATH_MAX];
usr/src/test/os-tests/tests/gpio/dpio_test.c
246
(void) snprintf(path, sizeof (path), "/dev/dpio/%s", name);
usr/src/test/os-tests/tests/gpio/dpio_test.c
247
fd = open(path, O_RDWR);
usr/src/test/os-tests/tests/gpio/dpio_test.c
250
dpio_pass("failed to open %s", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
253
path, strerror(errno));
usr/src/test/os-tests/tests/gpio/dpio_test.c
259
"%s", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
262
dpio_pass("successfully opened %s", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
270
dpio_pass("successfully failed to read %s", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
273
path, strerror(errno));
usr/src/test/os-tests/tests/gpio/dpio_test.c
275
dpio_fail("failed to read %s: %s", path,
usr/src/test/os-tests/tests/gpio/dpio_test.c
281
path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
283
dpio_pass("successfully read %s", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
288
dpio_test_cbops_write(fd, path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
303
path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
306
"%s: %s, expected ENOTSUP", path, strerror(errno));
usr/src/test/os-tests/tests/gpio/dpio_test.c
308
dpio_pass("DPIO_IOC_CUROUT failed on %s", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
313
dpio_fail("wrote to %s, but expected failure", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
316
"ENOTSUP", path, strerror(errno));
usr/src/test/os-tests/tests/gpio/dpio_test.c
318
dpio_pass("successfully failed to write %s", path);
usr/src/test/os-tests/tests/gpio/dpio_test.c
370
char path[PATH_MAX];
usr/src/test/os-tests/tests/gpio/dpio_test.c
372
(void) snprintf(path, sizeof (path), "/dev/dpio/%s",
usr/src/test/os-tests/tests/gpio/dpio_test.c
375
nonexcl = open(path, O_RDWR);
usr/src/test/os-tests/tests/gpio/dpio_test.c
382
exclfd = open(path, O_RDWR | O_EXCL);
usr/src/test/os-tests/tests/gpio/dpio_test.c
394
exclfd = open(path, O_RDWR | O_EXCL);
usr/src/test/os-tests/tests/gpio/dpio_test.c
402
nonexcl = open(path, O_RDWR);
usr/src/test/os-tests/tests/gpio/dpio_test.c
423
char path[PATH_MAX];
usr/src/test/os-tests/tests/gpio/dpio_test.c
426
(void) snprintf(path, sizeof (path), "/dev/dpio/%s",
usr/src/test/os-tests/tests/gpio/dpio_test.c
429
fd = open(path, O_RDWR);
usr/src/test/os-tests/tests/gpio/dpio_test.c
431
dpio_fail("failed to open %s for destruction tests: %s", path,
usr/src/test/os-tests/tests/libtopo/digraph-test.c
201
test_serialize(topo_hdl_t *thp, topo_digraph_t *tdg, const char *path)
usr/src/test/os-tests/tests/libtopo/digraph-test.c
205
if ((xml_out = fopen(path, "w")) == NULL) {
usr/src/test/os-tests/tests/libtopo/digraph-test.c
210
logmsg("\tSerializing topology to XML (%s)", path);
usr/src/test/os-tests/tests/libtopo/digraph-test.c
77
test_deserialize(topo_hdl_t *thp, const char *path)
usr/src/test/os-tests/tests/libtopo/digraph-test.c
85
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/test/os-tests/tests/libtopo/digraph-test.c
86
logmsg("\tfailed to open %s (%s)", path, strerror(errno));
usr/src/test/os-tests/tests/libtopo/digraph-test.c
90
logmsg("\tfailed to stat %s (%s)", path, strerror(errno));
usr/src/test/os-tests/tests/odirectory.c
44
odir_test_one(const char *test, const char *path, int flags, int err)
usr/src/test/os-tests/tests/odirectory.c
46
int fd = open(path, flags | O_DIRECTORY | O_RDONLY, 0644);
usr/src/test/os-tests/tests/odirectory.c
52
"%d", test, path, err);
usr/src/test/os-tests/tests/odirectory.c
58
test, path, err);
usr/src/test/os-tests/tests/odirectory.c
62
"found %d, expected %d", test, path, errno, err);
usr/src/test/os-tests/tests/regression/illumos-15036.c
64
char path[MAXPATHLEN];
usr/src/test/os-tests/tests/regression/illumos-15036.c
67
(void) snprintf(path, sizeof (path), "%s/%s", dir, de->d_name);
usr/src/test/os-tests/tests/regression/illumos-15036.c
68
if (lstat(path, &st) != 0 || (st.st_mode & S_IFREG) == 0) {
usr/src/test/os-tests/tests/regression/illumos-15036.c
71
result_fds[nvalid] = open(path, O_RDONLY, 0);
usr/src/test/os-tests/tests/spoof-ras/spoof-ras.c
437
spoof_run_proc(char *path, char *args[])
usr/src/test/os-tests/tests/spoof-ras/spoof-ras.c
444
err(EXIT_FAILURE, "Unable to fork to execute %s", path);
usr/src/test/os-tests/tests/spoof-ras/spoof-ras.c
446
(void) execv(path, args);
usr/src/test/os-tests/tests/spoof-ras/spoof-ras.c
447
err(EXIT_FAILURE, "Failed to execute %s", path);
usr/src/test/os-tests/tests/spoof-ras/spoof-ras.c
460
warnx("Child process %s exited with %d", path, status);
usr/src/test/os-tests/tests/syscall/fchmodat.c
35
char *path;
usr/src/test/os-tests/tests/syscall/fchmodat.c
47
if ((path = mkdtemp(template)) == NULL) {
usr/src/test/os-tests/tests/syscall/fchmodat.c
53
(void) snprintf(file, sizeof (file), "%s/file", path);
usr/src/test/os-tests/tests/syscall/fchmodat.c
54
(void) snprintf(link, sizeof (link), "%s/link", path);
usr/src/test/os-tests/tests/syscall/fchmodat.c
60
(void) rmdir(path);
usr/src/test/os-tests/tests/syscall/fchmodat.c
69
(void) rmdir(path);
usr/src/test/os-tests/tests/syscall/fchmodat.c
89
(void) rmdir(path);
usr/src/test/os-tests/tests/syscall/open.c
43
char *path;
usr/src/test/os-tests/tests/syscall/open.c
48
if ((path = mktemp(tmpname)) == NULL) {
usr/src/test/os-tests/tests/syscall/open.c
67
fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_DIRECT, 0644);
usr/src/test/os-tests/tests/syscall/open.c
70
(void) unlink(path);
usr/src/test/os-tests/tests/vfs/statvfs.c
45
statvfs_fail(const char *path, int exp, struct statvfs *svp)
usr/src/test/os-tests/tests/vfs/statvfs.c
53
if (statvfs(path, svp) == 0) {
usr/src/test/os-tests/tests/vfs/statvfs.c
55
path, strerrorname_np(exp));
usr/src/test/os-tests/tests/vfs/statvfs.c
61
"expected %s, found %s", path, strerrorname_np(exp),
usr/src/test/os-tests/tests/vfs/statvfs.c
67
path, strerrorname_np(exp));
usr/src/test/os-tests/tests/vfs/statvfs.c
72
statvfs_pass(const char *path, const char *fs)
usr/src/test/os-tests/tests/vfs/statvfs.c
76
if (statvfs(path, &sv) != 0) {
usr/src/test/os-tests/tests/vfs/statvfs.c
78
"expected success", path, strerrorname_np(errno));
usr/src/test/os-tests/tests/vfs/statvfs.c
82
(void) printf("TEST PASSED: statvfs on %s worked\n", path);
usr/src/test/os-tests/tests/vfs/statvfs.c
89
"found %s", path, fs, sv.f_basetype);
usr/src/test/os-tests/tests/vfs/statvfs.c
94
path, fs);
usr/src/test/os-tests/tests/vfs/syncfs.c
153
syncfs_pass(const char *path)
usr/src/test/os-tests/tests/vfs/syncfs.c
156
int fd = open(path, O_RDONLY);
usr/src/test/os-tests/tests/vfs/syncfs.c
158
err(EXIT_FAILURE, "failed to open %s", path);
usr/src/test/os-tests/tests/vfs/syncfs.c
163
strerrorname_np(errno), path);
usr/src/test/os-tests/tests/vfs/syncfs.c
166
(void) printf("TEST PASSED: syncfs returned 0 on %s\n", path);
usr/src/test/os-tests/tests/writev.c
35
char path[] = "/var/tmp/writev_test.XXXXXX";
usr/src/test/os-tests/tests/writev.c
40
(void) unlink(path);
usr/src/test/os-tests/tests/writev.c
52
int fd = mkstemp(path);
usr/src/test/util-tests/tests/libjedec/hex2spd/libjedec_hex2spd.c
158
char path[PATH_MAX];
usr/src/test/util-tests/tests/libjedec/hex2spd/libjedec_hex2spd.c
165
if (snprintf(path, sizeof (path), "%s/%s.spd", dir, test->ht_file) >=
usr/src/test/util-tests/tests/libjedec/hex2spd/libjedec_hex2spd.c
166
sizeof (path)) {
usr/src/test/util-tests/tests/libjedec/hex2spd/libjedec_hex2spd.c
172
data = hex2spd(path, &dlen);
usr/src/test/util-tests/tests/libjedec/hex2spd/libjedec_hex2spd.c
180
warnx("TEST FAILURE: failed to parse %s: 0x%x", path, spd_err);
usr/src/test/util-tests/tests/libjedec/hex2spd/libjedec_hex2spd.c
80
hex2spd(const char *path, uint32_t *lenp)
usr/src/test/util-tests/tests/libjedec/hex2spd/libjedec_hex2spd.c
88
f = fopen(path, "r");
usr/src/test/util-tests/tests/libjedec/hex2spd/libjedec_hex2spd.c
91
path);
usr/src/test/zfs-tests/tests/functional/cli_root/zfs_diff/socket.c
34
char *path;
usr/src/test/zfs-tests/tests/functional/cli_root/zfs_diff/socket.c
40
path = argv[1];
usr/src/test/zfs-tests/tests/functional/cli_root/zfs_diff/socket.c
42
(void) strncpy(sock.sun_path, (char *)path, size - 1);
usr/src/tools/cpcgen/cpcgen.c
1040
cpcgen_cfile_intel_event(FILE *f, nvlist_t *nvl, const char *path, uint_t ent)
usr/src/tools/cpcgen/cpcgen.c
1047
"in %s, entry %u", path, ent);
usr/src/tools/cpcgen/cpcgen.c
1056
name, ent, path);
usr/src/tools/cpcgen/cpcgen.c
1093
"counter value \"%s\"", name, ent, path, counter);
usr/src/tools/cpcgen/cpcgen.c
1110
warn("failed to write out entry %s from %s", name, path);
usr/src/tools/cpcgen/cpcgen.c
1127
path);
usr/src/tools/cpcgen/cpcgen.c
1198
cpcgen_remove_tmpfile(int dirfd, const char *path)
usr/src/tools/cpcgen/cpcgen.c
1201
(void) unlinkat(dirfd, path, 0);
usr/src/tools/cpcgen/cpcgen.c
1367
cpcgen_skip_intel_entry(nvlist_t *nvl, const char *path, uint_t ent)
usr/src/tools/cpcgen/cpcgen.c
1377
"in %s, entry %u", path, ent);
usr/src/tools/cpcgen/cpcgen.c
1390
"property", event, ent, path);
usr/src/tools/cpcgen/cpcgen.c
1490
cpcgen_manual_amd_event(FILE *f, nvlist_t *nvl, const char *path, uint32_t ent)
usr/src/tools/cpcgen/cpcgen.c
1499
path, ent);
usr/src/tools/cpcgen/cpcgen.c
1506
name, path, ent);
usr/src/tools/cpcgen/cpcgen.c
1554
name, ent, path);
usr/src/tools/cpcgen/cpcgen.c
1566
"%u) in file %s", i, name, ent, path);
usr/src/tools/cpcgen/cpcgen.c
1573
i, name, ent, path);
usr/src/tools/cpcgen/cpcgen.c
1725
cpcgen_cfile_amd_event(FILE *f, nvlist_t *nvl, const char *path, uint_t ent)
usr/src/tools/cpcgen/cpcgen.c
1733
path, ent);
usr/src/tools/cpcgen/cpcgen.c
1739
"for C translation", name, ent, path);
usr/src/tools/cpcgen/cpcgen.c
1744
warn("failed to write out entry %s from %s", name, path);
usr/src/tools/cpcgen/cpcgen.c
1764
name, ent, path);
usr/src/tools/cpcgen/cpcgen.c
1777
"%u) in file %s", i, name, ent, path);
usr/src/tools/cpcgen/cpcgen.c
1786
i, name, ent, path);
usr/src/tools/cpcgen/cpcgen.c
1793
"bit value: %d; skipping", name, ent, path, bit);
usr/src/tools/cpcgen/cpcgen.c
1803
path);
usr/src/tools/cpcgen/cpcgen.c
382
cpcgen_map_lookup(const char *path)
usr/src/tools/cpcgen/cpcgen.c
387
if (strcmp(path, m->cmap_path) == 0) {
usr/src/tools/cpcgen/cpcgen.c
531
char *path;
usr/src/tools/cpcgen/cpcgen.c
537
if (asprintf(&path, "%s/%s", datadir, file) == -1) {
usr/src/tools/cpcgen/cpcgen.c
542
if ((fd = open(path, O_RDONLY)) < 0) {
usr/src/tools/cpcgen/cpcgen.c
543
err(EXIT_FAILURE, "failed to open data file %s", path);
usr/src/tools/cpcgen/cpcgen.c
547
err(EXIT_FAILURE, "failed to stat %s", path);
usr/src/tools/cpcgen/cpcgen.c
552
err(EXIT_FAILURE, "failed to mmap %s", path);
usr/src/tools/cpcgen/cpcgen.c
558
path, jerr.nje_pos, jerr.nje_message);
usr/src/tools/cpcgen/cpcgen.c
562
err(EXIT_FAILURE, "failed to munmap %s", path);
usr/src/tools/cpcgen/cpcgen.c
566
err(EXIT_FAILURE, "failed to close data file %s", path);
usr/src/tools/cpcgen/cpcgen.c
568
free(path);
usr/src/tools/cpcgen/cpcgen.c
577
cpcgen_use_arch(const char *path, cpc_type_t type, const char *platform)
usr/src/tools/cpcgen/cpcgen.c
583
if (*path != '/') {
usr/src/tools/cpcgen/cpcgen.c
585
"leading '/'", path);
usr/src/tools/cpcgen/cpcgen.c
587
if ((slash = strchr(path + 1, '/')) == NULL) {
usr/src/tools/cpcgen/cpcgen.c
589
"second '/'", path);
usr/src/tools/cpcgen/cpcgen.c
592
len = slash - path - 1;
usr/src/tools/cpcgen/cpcgen.c
599
if (strncmp(path + 1, cpcgen_intel_whitelist[i].cwhite_short,
usr/src/tools/cpcgen/cpcgen.c
745
char *fstr, *path, *tstr;
usr/src/tools/cpcgen/cpcgen.c
765
(path = strtok_r(NULL, ",", &last)) == NULL ||
usr/src/tools/cpcgen/cpcgen.c
788
if ((name = cpcgen_use_arch(path, type, platform)) == NULL)
usr/src/tools/cpcgen/cpcgen.c
791
if ((map = cpcgen_map_lookup(path)) == NULL) {
usr/src/tools/cpcgen/cpcgen.c
794
parsed = cpcgen_read_datafile(datadir, path);
usr/src/tools/cpcgen/cpcgen.c
801
if ((map->cmap_path = strdup(path)) == NULL) {
usr/src/tools/cpcgen/cpcgen.c
928
cpcgen_manual_intel_event(FILE *f, nvlist_t *nvl, const char *path,
usr/src/tools/cpcgen/cpcgen.c
936
"in %s, entry %u", path, ent);
usr/src/tools/cscope-fast/dir.c
143
char path[PATHLEN + 1];
usr/src/tools/cscope-fast/dir.c
178
while (fscanf(names, "%s", path) == 1) {
usr/src/tools/cscope-fast/dir.c
179
if (*path == '-') { /* if an option */
usr/src/tools/cscope-fast/dir.c
180
i = path[1];
usr/src/tools/cscope-fast/dir.c
192
s = path + 2; /* for "-Ipath" */
usr/src/tools/cscope-fast/dir.c
195
"%s", path);
usr/src/tools/cscope-fast/dir.c
196
s = path;
usr/src/tools/cscope-fast/dir.c
229
} else if (vpaccess(path, READ) == 0) {
usr/src/tools/cscope-fast/dir.c
230
addsrcfile(path);
usr/src/tools/cscope-fast/dir.c
234
path);
usr/src/tools/cscope-fast/dir.c
269
char path[PATHLEN + 1];
usr/src/tools/cscope-fast/dir.c
278
(void) sprintf(path, "%s/%s", dir, entry->d_name);
usr/src/tools/cscope-fast/dir.c
280
issrcfile(path) && infilelist(path) == NO) {
usr/src/tools/cscope-fast/dir.c
281
addsrcfile(path); /* add it to the list */
usr/src/tools/cscope-fast/dir.c
345
char path[PATHLEN + 1];
usr/src/tools/cscope-fast/dir.c
360
(void) sprintf(path, "%s/%s", incdirs[i], file);
usr/src/tools/cscope-fast/dir.c
361
if (infilelist(path) == YES) {
usr/src/tools/cscope-fast/dir.c
365
if (vpaccess(compath(path), READ) == 0) {
usr/src/tools/cscope-fast/dir.c
366
addsrcfile(path);
usr/src/tools/cscope-fast/dir.c
392
addsrcfile(char *path)
usr/src/tools/cscope-fast/dir.c
404
p->file = stralloc(compath(path));
usr/src/tools/cscope-fast/display.c
660
pathcomponents(char *path, int components)
usr/src/tools/cscope-fast/display.c
665
s = path + strlen(path) - 1;
usr/src/tools/cscope-fast/display.c
667
while (s > path && *--s != '/') {
usr/src/tools/cscope-fast/display.c
671
if (s > path && *s == '/') {
usr/src/tools/cscope-fast/exec.c
65
execute(char *path, ...)
usr/src/tools/cscope-fast/exec.c
83
va_start(ap, path);
usr/src/tools/cscope-fast/exec.c
90
(void) execvp(path, args); /* returns only on failure */
usr/src/tools/cscope-fast/exec.c
91
(void) sprintf(msg, "\ncscope: cannot execute %s", path);
usr/src/tools/cscope-fast/find.c
1265
static char path[PATHLEN + 1];
usr/src/tools/cscope-fast/find.c
1272
return (path);
usr/src/tools/cscope-fast/find.c
1278
(void) sprintf(path, "%s/%s", prependpath, file);
usr/src/tools/cscope-fast/find.c
1279
return (path);
usr/src/tools/cscope-fast/find.c
1288
(void) sprintf(path,
usr/src/tools/cscope-fast/find.c
1290
if (access(path, READ) != -1) {
usr/src/tools/cscope-fast/find.c
1291
return (path);
usr/src/tools/cscope-fast/find.c
1295
(void) strcpy(path, file); /* for lastfilepath check */
usr/src/tools/cscope-fast/global.h
210
void addsrcfile(char *path);
usr/src/tools/cscope-fast/global.h
228
char *pathcomponents(char *path, int components);
usr/src/tools/cscope-fast/library.h
53
int vpopen(char *path, int oflag);
usr/src/tools/cscope-fast/library.h
55
int vpstat(char *path, struct stat *statp);
usr/src/tools/cscope-fast/main.c
139
char path[PATHLEN + 1]; /* file path */
usr/src/tools/cscope-fast/main.c
171
(void) sprintf(path, "CSCOPEDEPTH=%d", ++cscopedepth);
usr/src/tools/cscope-fast/main.c
172
(void) putenv(stralloc(path));
usr/src/tools/cscope-fast/main.c
209
(void) sprintf(path, "%s/%s", home, reffile);
usr/src/tools/cscope-fast/main.c
213
reffile = stralloc(path);
usr/src/tools/cscope-fast/main.c
214
(void) sprintf(path, "%s/%s", home, invname);
usr/src/tools/cscope-fast/main.c
215
invname = stralloc(path);
usr/src/tools/cscope-fast/main.c
216
(void) sprintf(path, "%s/%s", home, invpost);
usr/src/tools/cscope-fast/main.c
217
invpost = stralloc(path);
usr/src/tools/cscope-fast/main.c
304
if (fscanf(oldrefs, "%s", path) != 1) {
usr/src/tools/cscope-fast/main.c
311
dbvpdirs[i] = stralloc(path);
usr/src/tools/cscope-fast/main.c
362
while (fscanf(names, "%s", path) == 1 &&
usr/src/tools/cscope-fast/main.c
363
*path == '-') {
usr/src/tools/cscope-fast/main.c
364
i = path[1];
usr/src/tools/cscope-fast/main.c
365
s = path + 2; /* for "-Ipath" */
usr/src/tools/cscope-fast/main.c
369
"%s", path);
usr/src/tools/cscope-fast/main.c
370
s = path;
usr/src/tools/cscope-fast/main.c
392
if (fscanf(oldrefs, "%s", path) != 1) {
usr/src/tools/cscope-fast/main.c
398
srcfiles[i] = stralloc(path);
usr/src/tools/cscope-fast/main.c
427
(void) strcpy(path, reffile);
usr/src/tools/cscope-fast/main.c
428
s = basename(path);
usr/src/tools/cscope-fast/main.c
430
(void) strcat(path, "n");
usr/src/tools/cscope-fast/main.c
433
newreffile = stralloc(path);
usr/src/tools/cscope-fast/main.c
435
newinvname = stralloc(path);
usr/src/tools/cscope-fast/main.c
437
newinvpost = stralloc(path);
usr/src/tools/cscope-fast/main.c
533
(void) strcpy(path, buf + 1);
usr/src/tools/cscope-fast/main.c
534
if (infilelist(path) == NO &&
usr/src/tools/cscope-fast/main.c
535
vpaccess(path, READ) == 0) {
usr/src/tools/cscope-fast/main.c
536
addsrcfile(path);
usr/src/tools/cscope-fast/main.c
613
char path[PATHLEN + 1]; /* file path */
usr/src/tools/cscope-fast/main.c
712
(void) strcpy(path, s);
usr/src/tools/cscope-fast/main.c
714
s = basename(path);
usr/src/tools/cscope-fast/main.c
718
s = path + strlen(path);
usr/src/tools/cscope-fast/main.c
720
invname = stralloc(path);
usr/src/tools/cscope-fast/main.c
722
invpost = stralloc(path);
usr/src/tools/cscope-fast/vp.h
47
extern int vpaccess(char *path, mode_t amode);
usr/src/tools/cscope-fast/vpaccess.c
39
vpaccess(char *path, mode_t amode)
usr/src/tools/cscope-fast/vpaccess.c
45
if ((returncode = access(path, amode)) == -1 && path[0] != '/') {
usr/src/tools/cscope-fast/vpaccess.c
48
(void) sprintf(buf, "%s/%s", vpdirs[i], path);
usr/src/tools/cscope-fast/vpopen.c
42
vpopen(char *path, int oflag)
usr/src/tools/cscope-fast/vpopen.c
48
if ((returncode = open(path, oflag, 0666)) == -1 && *path != '/' &&
usr/src/tools/cscope-fast/vpopen.c
52
(void) sprintf(buf, "%s/%s", vpdirs[i], path);
usr/src/tools/cscope-fast/vpstat.c
39
vpstat(char *path, struct stat *statp)
usr/src/tools/cscope-fast/vpstat.c
45
if ((returncode = stat(path, statp)) == -1 && path[0] != '/') {
usr/src/tools/cscope-fast/vpstat.c
48
(void) sprintf(buf, "%s/%s", vpdirs[i], path);
usr/src/tools/cw/cw.c
426
discard_file_name(cw_ictx_t *ctx, const char *path)
usr/src/tools/cw/cw.c
431
if (path == NULL) {
usr/src/tools/cw/cw.c
434
ext = strrchr(path, '.');
usr/src/tools/cw/cw.c
458
id_source_file(const char *path)
usr/src/tools/cw/cw.c
460
const char *ext = strrchr(path, '.');
usr/src/tools/cw/cw.c
484
is_asm_file(const char *path)
usr/src/tools/cw/cw.c
486
return (id_source_file(path) == SOURCE_FILE_T_S);
usr/src/tools/find_elf/find_elf.c
201
path_t path;
usr/src/tools/find_elf/find_elf.c
214
path_init(&path, arg, relpath);
usr/src/tools/find_elf/find_elf.c
221
process_dir(&path, fd, &sb, DF_NONE);
usr/src/tools/find_elf/find_elf.c
248
path_init(&path, dir, relpath);
usr/src/tools/find_elf/find_elf.c
254
process_file(&path, fd, &sb, DF_NONE);
usr/src/tools/findunref/findunref.c
113
char path[MAXPATHLEN];
usr/src/tools/findunref/findunref.c
167
(void) strlcpy(path, tstampfile, MAXPATHLEN);
usr/src/tools/findunref/findunref.c
169
(void) snprintf(path, MAXPATHLEN, "%s/%s", argv[0], tstampfile);
usr/src/tools/findunref/findunref.c
171
if (stat(path, &tsstat) == -1)
usr/src/tools/findunref/findunref.c
172
die("cannot stat timestamp file \"%s\"", path);
usr/src/tools/findunref/findunref.c
205
char path[MAXPATHLEN];
usr/src/tools/findunref/findunref.c
216
while (fgets(path, sizeof (path), fp) != NULL) {
usr/src/tools/findunref/findunref.c
217
newline = strrchr(path, '\n');
usr/src/tools/findunref/findunref.c
221
if (pnset_add(pnsetp, path) == 0)
usr/src/tools/findunref/findunref.c
247
char path[MAXPATHLEN];
usr/src/tools/findunref/findunref.c
258
while (fgets(path, sizeof (path), fp) != NULL) {
usr/src/tools/findunref/findunref.c
259
newline = strrchr(path, '\n');
usr/src/tools/findunref/findunref.c
263
if (pnset_add(pnsetp, path) == 0)
usr/src/tools/findunref/findunref.c
283
chdir_scmdata(const char *path, const char *meta,
usr/src/tools/findunref/findunref.c
284
pnset_t *(*manifest_func)(const char *path))
usr/src/tools/findunref/findunref.c
290
(void) snprintf(scmpath, MAXPATHLEN, "%s/%s", path, meta);
usr/src/tools/findunref/findunref.c
307
strncmp(path, scmdata.root, scmdata.rootlen - 1) != 0) {
usr/src/tools/findunref/findunref.c
311
(void) strlcpy(basepath, path, MAXPATHLEN);
usr/src/tools/findunref/findunref.c
322
"for \"%s\"\n", path);
usr/src/tools/findunref/findunref.c
354
chdir_git(const char *path)
usr/src/tools/findunref/findunref.c
356
chdir_scmdata(path, ".git", git_manifest);
usr/src/tools/findunref/findunref.c
360
chdir_hg(const char *path)
usr/src/tools/findunref/findunref.c
362
chdir_scmdata(path, ".hg", hg_manifest);
usr/src/tools/findunref/findunref.c
367
check_scmdata(const char *path, const struct FTW *ftwp)
usr/src/tools/findunref/findunref.c
372
path += scmdata.rootlen;
usr/src/tools/findunref/findunref.c
375
path));
usr/src/tools/findunref/findunref.c
383
check_tw(const char *path, const struct FTW *ftwp)
usr/src/tools/findunref/findunref.c
388
path, path + ftwp->base);
usr/src/tools/findunref/findunref.c
448
checkpath(const char *path, const struct stat *statp, int type,
usr/src/tools/findunref/findunref.c
456
if (statp->st_atime >= tstamp || pnset_check(exsetp, path))
usr/src/tools/findunref/findunref.c
463
if (scm == NULL || scm->checkfunc(path, ftwp))
usr/src/tools/findunref/findunref.c
464
(void) puts(path);
usr/src/tools/findunref/findunref.c
471
if (pnset_check(exsetp, path)) {
usr/src/tools/findunref/findunref.c
480
scm->chdirfunc(path);
usr/src/tools/findunref/findunref.c
485
warn("cannot read \"%s\"", path);
usr/src/tools/findunref/findunref.c
489
warn("cannot stat \"%s\"", path);
usr/src/tools/findunref/findunref.c
503
pnset_add(pnset_t *pnsetp, const char *path)
usr/src/tools/findunref/findunref.c
517
pnsetp->paths[pnsetp->npath] = strdup(path);
usr/src/tools/findunref/findunref.c
529
pnset_check(const pnset_t *pnsetp, const char *path)
usr/src/tools/findunref/findunref.c
534
if (fnmatch(pnsetp->paths[i], path, 0) == 0)
usr/src/tools/protolist/protolist.c
122
if ((c = readlink(path, symsrc, MAXPATHLEN)) == -1)
usr/src/tools/protolist/protolist.c
42
visit_dir(const char *path, const struct stat *st,
usr/src/tools/protolist/protolist.c
63
if ((path[0] == '.') && (path[1] == '\0'))
usr/src/tools/protolist/protolist.c
67
abs_name = (char *)(path + 2);
usr/src/tools/smatch/src/ast-model.c
25
GtkTreePath *path);
usr/src/tools/smatch/src/ast-model.c
262
GtkTreePath *path)
usr/src/tools/smatch/src/ast-model.c
269
indices = gtk_tree_path_get_indices(path);
usr/src/tools/smatch/src/ast-model.c
270
depth = gtk_tree_path_get_depth(path);
usr/src/tools/smatch/src/ast-model.c
290
GtkTreePath *path;
usr/src/tools/smatch/src/ast-model.c
294
path = gtk_tree_path_new();
usr/src/tools/smatch/src/ast-model.c
296
gtk_tree_path_prepend_index(path, node->index);
usr/src/tools/smatch/src/ast-model.c
299
return path;
usr/src/tools/smatch/src/check_locking.c
587
const char *path, *lname;
usr/src/tools/smatch/src/check_locking.c
595
path = false_positives[i][0];
usr/src/tools/smatch/src/check_locking.c
598
len_path = strlen(path);
usr/src/tools/smatch/src/check_locking.c
605
if (strncmp(get_filename(), path, len_path) == 0 &&
usr/src/tools/smatch/src/lib.c
388
char *path = arg+1;
usr/src/tools/smatch/src/lib.c
396
path = *++next;
usr/src/tools/smatch/src/lib.c
397
if (!path)
usr/src/tools/smatch/src/lib.c
401
add_pre_buffer("#add_include \"%s/\"\n", path);
usr/src/tools/smatch/src/lib.c
420
char *path = *++next;
usr/src/tools/smatch/src/lib.c
421
if (!path)
usr/src/tools/smatch/src/lib.c
423
add_pre_buffer("#add_isystem \"%s/\"\n", path);
usr/src/tools/smatch/src/lib.c
425
char *path = *++next;
usr/src/tools/smatch/src/lib.c
426
if (!path)
usr/src/tools/smatch/src/lib.c
428
add_pre_buffer("#add_dirafter \"%s/\"\n", path);
usr/src/tools/smatch/src/pre-process.c
1082
const char **path;
usr/src/tools/smatch/src/pre-process.c
1111
path = stream->next_path;
usr/src/tools/smatch/src/pre-process.c
1115
path = includepath;
usr/src/tools/smatch/src/pre-process.c
1120
path = expect ? angle_includepath : quote_includepath;
usr/src/tools/smatch/src/pre-process.c
1124
if (do_include_path(path, list, token, filename, flen))
usr/src/tools/smatch/src/pre-process.c
1959
static void add_path_entry(struct token *token, const char *path,
usr/src/tools/smatch/src/pre-process.c
1972
if (strcmp(*dst, path) == 0)
usr/src/tools/smatch/src/pre-process.c
1976
next = path;
usr/src/tools/smatch/src/pre-process.c
2036
static void add_dirafter_entry(struct token *token, const char *path)
usr/src/tools/smatch/src/pre-process.c
2047
*dst = path;
usr/src/tools/smatch/src/pre-process.c
2307
char path[256];
usr/src/tools/smatch/src/pre-process.c
2330
snprintf(path, sizeof(path), "/usr/include/%s-%s/", arch, os);
usr/src/tools/smatch/src/pre-process.c
2331
add_pre_buffer("#add_system \"%s/\"\n", path);
usr/src/tools/smatch/src/pre-process.c
815
static int already_tokenized(const char *path)
usr/src/tools/smatch/src/pre-process.c
819
for (stream = *hash_stream(path); stream >= 0 ; stream = next) {
usr/src/tools/smatch/src/pre-process.c
824
if (strcmp(path, s->name))
usr/src/tools/smatch/src/pre-process.c
830
if (strcmp(path, s->name))
usr/src/tools/smatch/src/pre-process.c
882
const char *path = stream->path;
usr/src/tools/smatch/src/pre-process.c
883
if (!path) {
usr/src/tools/smatch/src/pre-process.c
885
path = "";
usr/src/tools/smatch/src/pre-process.c
892
path = m;
usr/src/tools/smatch/src/pre-process.c
894
stream->path = path;
usr/src/tools/smatch/src/pre-process.c
896
includepath[0] = path;
usr/src/tools/smatch/src/pre-process.c
903
static int try_include(const char *path, const char *filename, int flen, struct token **where, const char **next_path)
usr/src/tools/smatch/src/pre-process.c
906
int plen = strlen(path);
usr/src/tools/smatch/src/pre-process.c
909
memcpy(fullname, path, plen);
usr/src/tools/smatch/src/pre-process.c
910
if (plen && path[plen-1] != '/') {
usr/src/tools/smatch/src/pre-process.c
929
const char *path;
usr/src/tools/smatch/src/pre-process.c
931
while ((path = *pptr++) != NULL) {
usr/src/tools/smatch/src/pre-process.c
932
if (!try_include(path, filename, flen, list, pptr))
usr/src/tools/smatch/src/smatch_flow.c
1915
char *path;
usr/src/tools/smatch/src/smatch_flow.c
1921
path = getcwd(NULL, 0);
usr/src/tools/smatch/src/smatch_flow.c
1923
if (path) {
usr/src/tools/smatch/src/smatch_flow.c
1924
len = strlen(path) + 1 + strlen(base_file) + 1;
usr/src/tools/smatch/src/smatch_flow.c
1926
snprintf(full_base_file, len, "%s/%s", path, base_file);
usr/src/tools/smatch/src/token.h
54
const char *path; // input-file path - see set_stream_include_path()
usr/src/tools/smatch/src/tokenize.c
325
current->path = NULL;
usr/src/ucbcmd/install.d/install.c
192
char *path;
usr/src/ucbcmd/install.d/install.c
210
if (!stat(path = to, &to_sb)) {
usr/src/ucbcmd/install.d/install.c
214
(void) sprintf(path = pbuf, "%s/%s", to, (C = strrchr(from, '/')) ? ++C : from);
usr/src/ucbcmd/install.d/install.c
215
if (stat(path, &to_sb))
usr/src/ucbcmd/install.d/install.c
219
fprintf(stderr, gettext("install: %s isn't a regular file.\n"), path);
usr/src/ucbcmd/install.d/install.c
223
fprintf(stderr, gettext("install: %s and %s are the same file.\n"), from, path);
usr/src/ucbcmd/install.d/install.c
227
(void) unlink(path);
usr/src/ucbcmd/install.d/install.c
232
if ((to_fd = open(path, O_CREAT|O_WRONLY|O_TRUNC, 0)) < 0) {
usr/src/ucbcmd/install.d/install.c
233
fprintf(stderr, gettext("install: %s: %s\n"), path, strerror(errno));
usr/src/ucbcmd/install.d/install.c
237
fprintf(stderr, gettext("install: chmod: %s: %s\n"), path, strerror(errno));
usr/src/ucbcmd/install.d/install.c
243
status = copy(from, to_fd, path); /* copy */
usr/src/ucbcmd/install.d/install.c
247
sprintf(buf, "strip %s", path);
usr/src/ucbcmd/install.d/install.c
250
if (chown(path, pp->pw_uid, gp->gr_gid) && errno != EPERM) {
usr/src/ucbcmd/install.d/install.c
251
fprintf(stderr, gettext("install: chown: %s: %s\n"), path, strerror(errno));
usr/src/ucbcmd/install.d/install.c
257
(void) unlink(path);
usr/src/ucblib/libucb/port/gen/statfs.c
39
statfs64(char *path, struct statfs64 *buf)
usr/src/ucblib/libucb/port/gen/statfs.c
49
if ((ret = statvfs64(path, &vbuf)) != -1)
usr/src/ucblib/libucb/port/gen/statfs.c
81
statfs(char *path, struct statfs *buf)
usr/src/ucblib/libucb/port/gen/statfs.c
91
if ((ret = statvfs(path, &vbuf)) != -1)
usr/src/uts/common/c2/audit_event.c
1819
struct audit_path *path;
usr/src/uts/common/c2/audit_event.c
1824
path = kmem_alloc(path_len, KM_SLEEP);
usr/src/uts/common/c2/audit_event.c
1836
path->audp_sect[0] = dir_path;
usr/src/uts/common/c2/audit_event.c
1837
path->audp_sect[1] = dir_path + strlen(dir_path) + 1;
usr/src/uts/common/c2/audit_event.c
1838
path->audp_size = path_len;
usr/src/uts/common/c2/audit_event.c
1839
path->audp_ref = 1; /* not used */
usr/src/uts/common/c2/audit_event.c
1840
path->audp_cnt = 1; /* one path string */
usr/src/uts/common/c2/audit_event.c
1842
au_uwrite(au_to_path(path));
usr/src/uts/common/c2/audit_event.c
1846
kmem_free(path, path_len);
usr/src/uts/common/c2/audit_token.c
579
char *path = app->audp_sect[0];
usr/src/uts/common/c2/audit_token.c
594
(void) au_append_buf(path, bytes, token);
usr/src/uts/common/contract/device.c
1205
char *path;
usr/src/uts/common/contract/device.c
1215
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/contract/device.c
1219
bcopy(dtmpl->ctd_minor, path, strlen(dtmpl->ctd_minor) + 1);
usr/src/uts/common/contract/device.c
1222
dip = e_ddi_hold_devi_by_path(path, 0);
usr/src/uts/common/contract/device.c
1225
"for device path (%s)", path);
usr/src/uts/common/contract/device.c
1226
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/contract/device.c
1238
minor = i_ddi_strdup(path, KM_SLEEP);
usr/src/uts/common/contract/device.c
1239
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/contract/device.c
1331
char *path;
usr/src/uts/common/contract/device.c
1372
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/contract/device.c
1374
if (ddi_dev_pathname(dev, spec_type, path) != DDI_SUCCESS) {
usr/src/uts/common/contract/device.c
1379
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/contract/device.c
1385
dtmpl->ctd_minor = path;
usr/src/uts/common/contract/device.c
1395
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/contract/device.c
1591
char *path = NULL;
usr/src/uts/common/contract/device.c
1623
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/contract/device.c
1624
(void) ddi_pathname(dip, path);
usr/src/uts/common/contract/device.c
1670
size_t len = strlen(path);
usr/src/uts/common/contract/device.c
1676
ASSERT(strncmp(ctd->cond_minor, path, len) == 0 &&
usr/src/uts/common/contract/device.c
1928
if (path)
usr/src/uts/common/contract/device.c
1929
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/contract/device.c
986
char *path;
usr/src/uts/common/contract/device.c
988
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/contract/device.c
989
(void) ddi_pathname(dip, path);
usr/src/uts/common/contract/device.c
991
"device=%s", path));
usr/src/uts/common/contract/device.c
992
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/cpr/cpr_misc.c
46
#define cpr_open(path, mode, vpp) (vn_open(path, UIO_SYSSPACE, \
usr/src/uts/common/cpr/cpr_misc.c
473
char *path = cpr_build_statefile_path();
usr/src/uts/common/cpr/cpr_misc.c
475
if (path == NULL)
usr/src/uts/common/cpr/cpr_misc.c
480
if (rc = vn_open(path, UIO_SYSSPACE,
usr/src/uts/common/cpr/cpr_misc.c
482
cpr_err(CE_WARN, "cannot open statefile %s", path);
usr/src/uts/common/fs/autofs/auto_subr.c
1214
margs.dir = argsp->path;
usr/src/uts/common/fs/autofs/auto_subr.c
1666
char *path,
usr/src/uts/common/fs/autofs/auto_subr.c
1676
AUTOFS_DPRINT((4, "auto_getmntpnt: path=%s\n", path));
usr/src/uts/common/fs/autofs/auto_subr.c
1715
error = pn_get_buf(path, UIO_SYSSPACE, &lookpn,
usr/src/uts/common/fs/autofs/auto_subr.c
1731
if ((error = pn_get(path, UIO_SYSSPACE, &lookpn)) == 0) {
usr/src/uts/common/fs/autofs/auto_subr.c
1746
path, (void *)*mvpp, error));
usr/src/uts/common/fs/autofs/auto_subr.c
649
reqst.path = fnip->fi_path;
usr/src/uts/common/fs/autofs/auto_subr.c
746
reqst.path = fnip->fi_path;
usr/src/uts/common/fs/autofs/auto_subr.c
863
if (aargs->path)
usr/src/uts/common/fs/autofs/auto_subr.c
864
kmem_free(aargs->path, strlen(aargs->path) + 1);
usr/src/uts/common/fs/autofs/auto_subr.c
947
if (argsp->addr.buf == NULL || argsp->path == NULL ||
usr/src/uts/common/fs/autofs/auto_subr.c
974
if (strcmp(argsp->path, buff) != 0) {
usr/src/uts/common/fs/autofs/auto_subr.c
977
"got '%s' instead.", buff, argsp->path);
usr/src/uts/common/fs/autofs/auto_vfsops.c
422
args.path = (char *)(uintptr_t)args32.path;
usr/src/uts/common/fs/autofs/auto_vfsops.c
539
error = copystr(args.path, strbuff, sizeof (strbuff), &len);
usr/src/uts/common/fs/autofs/auto_vfsops.c
541
error = copyinstr(args.path, strbuff, sizeof (strbuff), &len);
usr/src/uts/common/fs/autofs/auto_xdr.c
126
if (!xdr_string(xdrs, &objp->path, AUTOFS_MAXPATHLEN))
usr/src/uts/common/fs/autofs/auto_xdr.c
272
if (!xdr_string(xdrs, &objp->path, AUTOFS_MAXPATHLEN))
usr/src/uts/common/fs/dev/sdev_ncache.c
360
char *path;
usr/src/uts/common/fs/dev/sdev_ncache.c
375
path = np->nvp_paths[i];
usr/src/uts/common/fs/dev/sdev_ncache.c
376
n = strlen(path) + 1;
usr/src/uts/common/fs/dev/sdev_ncache.c
380
bcopy(path, lp->ncn_name, n);
usr/src/uts/common/fs/dev/sdev_ncache.c
660
char *path;
usr/src/uts/common/fs/dev/sdev_ncache.c
671
path = kmem_alloc(n, KM_SLEEP);
usr/src/uts/common/fs/dev/sdev_ncache.c
672
(void) sprintf(path, "%s/%s", dv->sdev_path, nm);
usr/src/uts/common/fs/dev/sdev_ncache.c
675
if ((lp = sdev_nc_findpath(ncl, path)) != NULL) {
usr/src/uts/common/fs/dev/sdev_ncache.c
695
kmem_free(path, n);
usr/src/uts/common/fs/dev/sdev_ncache.c
749
sdev_nc_findpath(sdev_nc_list_t *ncl, char *path)
usr/src/uts/common/fs/dev/sdev_ncache.c
757
if (strcmp(path, lp->ncn_name) == 0)
usr/src/uts/common/fs/dev/sdev_ncache.c
848
sdev_nc_path_exists(sdev_nc_list_t *ncl, char *path)
usr/src/uts/common/fs/dev/sdev_ncache.c
856
if ((lp = sdev_nc_findpath(ncl, path)) == NULL) {
usr/src/uts/common/fs/dev/sdev_ncache.c
863
lp = sdev_nc_findpath(ncl, path);
usr/src/uts/common/fs/dev/sdev_ncache.c
880
path, curproc->p_user.u_comm));
usr/src/uts/common/fs/dev/sdev_ncache.c
883
path, curproc->p_user.u_comm);
usr/src/uts/common/fs/dev/sdev_plugin.c
797
const char *path;
usr/src/uts/common/fs/dev/sdev_plugin.c
805
path = dv->sdev_path + 5;
usr/src/uts/common/fs/dev/sdev_plugin.c
811
if (strcmp(spp->sp_name, path) == 0) {
usr/src/uts/common/fs/dev/sdev_plugin.c
818
if ((strncmp(spp->sp_name, path,
usr/src/uts/common/fs/dev/sdev_plugin.c
819
vlen - 1) == 0) && path[vlen] == '/') {
usr/src/uts/common/fs/dev/sdev_plugin.c
834
char *path;
usr/src/uts/common/fs/dev/sdev_plugin.c
838
path = dv->sdev_path + strlen("/dev/");
usr/src/uts/common/fs/dev/sdev_plugin.c
843
if (strcmp(spp->sp_name, path) == 0) {
usr/src/uts/common/fs/dev/sdev_plugin.c
855
char *path;
usr/src/uts/common/fs/dev/sdev_plugin.c
858
path = dv->sdev_path;
usr/src/uts/common/fs/dev/sdev_plugin.c
859
ASSERT(path);
usr/src/uts/common/fs/dev/sdev_plugin.c
862
path += 5;
usr/src/uts/common/fs/dev/sdev_profile.c
845
char *path, char *tgt, int type)
usr/src/uts/common/fs/dev/sdev_profile.c
851
if ((strlen(path) > 5) && (strncmp(path, "/dev/", 5) == 0)) {
usr/src/uts/common/fs/dev/sdev_profile.c
852
path += 5;
usr/src/uts/common/fs/dev/sdev_profile.c
855
if (pn_get(path, UIO_SYSSPACE, &pn) != 0)
usr/src/uts/common/fs/dev/sdev_profile.c
874
path, rv);
usr/src/uts/common/fs/dev/sdev_subr.c
2528
sdev_modctl_lookup(const char *path, vnode_t **r_vp)
usr/src/uts/common/fs/dev/sdev_subr.c
2540
if (error = pn_get((char *)path, UIO_SYSSPACE, &pn))
usr/src/uts/common/fs/dev/sdev_subr.c
2798
sdev_modctl_devexists(const char *path)
usr/src/uts/common/fs/dev/sdev_subr.c
2803
error = sdev_modctl_lookup(path, &vp);
usr/src/uts/common/fs/dev/sdev_subr.c
2805
path, curproc->p_user.u_comm,
usr/src/uts/common/fs/dev/sdev_zvolops.c
224
devzvol_make_dsname(const char *path, const char *name)
usr/src/uts/common/fs/dev/sdev_zvolops.c
230
if (strcmp(path, ZVOL_DIR) == 0)
usr/src/uts/common/fs/dev/sdev_zvolops.c
234
ptr = path + strlen(ZVOL_DIR);
usr/src/uts/common/fs/devfs/devfs_vfsops.c
499
char *path,
usr/src/uts/common/fs/devfs/devfs_vfsops.c
506
ASSERT(path && callback);
usr/src/uts/common/fs/devfs/devfs_vfsops.c
508
if (*path != '/' || devfs_mntinfo == NULL)
usr/src/uts/common/fs/devfs/devfs_vfsops.c
511
dcmn_err(("devfs_walk: path = %s", path));
usr/src/uts/common/fs/devfs/devfs_vfsops.c
515
(void) snprintf(dirpath, MAXPATHLEN, "/devices%s", path);
usr/src/uts/common/fs/fs_reparse.h
80
extern int reparse_create(const char *path, const char *data);
usr/src/uts/common/fs/fs_reparse.h
81
extern int reparse_delete(const char *path);
usr/src/uts/common/fs/hsfs/hsfs_vfsops.c
231
static int hs_mountfs(struct vfs *vfsp, dev_t dev, char *path,
usr/src/uts/common/fs/hsfs/hsfs_vfsops.c
571
char *path,
usr/src/uts/common/fs/hsfs/hsfs_vfsops.c
594
size_t pathbufsz = strlen(path) + 1;
usr/src/uts/common/fs/hsfs/hsfs_vfsops.c
729
(void) strlcpy(fsp->hsfs_fsmnt, path, pathbufsz);
usr/src/uts/common/fs/lookup.c
932
localpath(char *path, struct vnode *vrootp, cred_t *cr)
usr/src/uts/common/fs/lookup.c
945
return (path);
usr/src/uts/common/fs/lookup.c
947
if (pn_get(path, UIO_SYSSPACE, &pn) != 0)
usr/src/uts/common/fs/lookup.c
975
ret = path + (pn.pn_path - pn.pn_buf);
usr/src/uts/common/fs/mntfs/mntvnops.c
1299
mntfs_special_info_string(char *path, uint_t *major, uint_t *minor, cred_t *cr)
usr/src/uts/common/fs/mntfs/mntvnops.c
1306
if (path == NULL || *path != '/' ||
usr/src/uts/common/fs/mntfs/mntvnops.c
1307
lookupnameat(path + 1, UIO_SYSSPACE, FOLLOW, NULLVPP, &vp, rootdir))
usr/src/uts/common/fs/nfs/nfs4_client.c
4233
char *path;
usr/src/uts/common/fs/nfs/nfs4_client.c
4239
path = NULL;
usr/src/uts/common/fs/nfs/nfs4_client.c
4249
fn_path_realloc(&path, fnp->fn_name);
usr/src/uts/common/fs/nfs/nfs4_client.c
4258
return (path);
usr/src/uts/common/fs/nfs/nfs4_client_secinfo.c
563
char *path = inpath, *comp_start, *slash = NULL;
usr/src/uts/common/fs/nfs/nfs4_client_secinfo.c
566
while ((count != nth) && (*path != '\0')) {
usr/src/uts/common/fs/nfs/nfs4_client_secinfo.c
568
comp_start = path;
usr/src/uts/common/fs/nfs/nfs4_client_secinfo.c
571
while (*path == '/')
usr/src/uts/common/fs/nfs/nfs4_client_secinfo.c
572
path++;
usr/src/uts/common/fs/nfs/nfs4_client_secinfo.c
574
if (*path != '\0') {
usr/src/uts/common/fs/nfs/nfs4_client_secinfo.c
575
comp_start = path;
usr/src/uts/common/fs/nfs/nfs4_client_secinfo.c
579
if ((slash = strchr(path, '/')) == NULL)
usr/src/uts/common/fs/nfs/nfs4_client_secinfo.c
582
path = slash + 1;
usr/src/uts/common/fs/nfs/nfs4_srv.c
10131
nfs4_create_components(char *path, component4 *comp4)
usr/src/uts/common/fs/nfs/nfs4_srv.c
10136
if (path == NULL)
usr/src/uts/common/fs/nfs/nfs4_srv.c
10139
plen = strlen(path) + 1; /* include the terminator */
usr/src/uts/common/fs/nfs/nfs4_srv.c
10140
ori_path = path;
usr/src/uts/common/fs/nfs/nfs4_srv.c
10144
for (nxtc = path; nxtc < ori_path + plen; nxtc++) {
usr/src/uts/common/fs/nfs/nfs4_srv.c
10146
if ((slen = nxtc - path) == 0) {
usr/src/uts/common/fs/nfs/nfs4_srv.c
10147
path = nxtc + 1;
usr/src/uts/common/fs/nfs/nfs4_srv.c
10152
bcopy(path, buf, slen);
usr/src/uts/common/fs/nfs/nfs4_srv.c
10158
path = nxtc + 1;
usr/src/uts/common/fs/nfs/nfs4_srv.c
10172
make_pathname4(char *path, pathname4 *pathname)
usr/src/uts/common/fs/nfs/nfs4_srv.c
10180
if (path == NULL) {
usr/src/uts/common/fs/nfs/nfs4_srv.c
10187
if ((ncomp = nfs4_create_components(path, NULL)) == 0) {
usr/src/uts/common/fs/nfs/nfs4_srv.c
10195
ncomp = nfs4_create_components(path, comp4);
usr/src/uts/common/fs/nfs/nfs4_srv.c
10272
char *server, *path, *symbuf;
usr/src/uts/common/fs/nfs/nfs4_srv.c
10303
path = utf8_to_str(&fs->rootpath.pathname4_val[i], &len, NULL);
usr/src/uts/common/fs/nfs/nfs4_srv.c
10304
if (path == NULL)
usr/src/uts/common/fs/nfs/nfs4_srv.c
10307
(void) strcat(symbuf, path);
usr/src/uts/common/fs/nfs/nfs4_srv.c
10309
kmem_free(path, len);
usr/src/uts/common/fs/nfs/nfs4_srv.c
10378
char *path = dss_path->path;
usr/src/uts/common/fs/nfs/nfs4_srv.c
10381
if (strcmp(path, NFS4_DSS_VAR_DIR) == 0) {
usr/src/uts/common/fs/nfs/nfs4_srv.c
10396
cmpret = strcmp(path, newpath);
usr/src/uts/common/fs/nfs/nfs4_srv.c
10422
kmem_free(dss_path->path, strlen(dss_path->path) + 1);
usr/src/uts/common/fs/nfs/nfs4_srv.c
10458
char *path = dss_path->path;
usr/src/uts/common/fs/nfs/nfs4_srv.c
10461
if (strcmp(path, NFS4_DSS_VAR_DIR) == 0) {
usr/src/uts/common/fs/nfs/nfs4_srv.c
10466
if (strncmp(path, newpath, strlen(path)) == 0) {
usr/src/uts/common/fs/nfs/nfs4_srv.c
1073
char *path = sip->dss_paths[i]->path;
usr/src/uts/common/fs/nfs/nfs4_srv.c
1075
if (path != NULL) {
usr/src/uts/common/fs/nfs/nfs4_srv.c
1076
kmem_free(path,
usr/src/uts/common/fs/nfs/nfs4_srv.c
1077
strlen(path) + 1);
usr/src/uts/common/fs/nfs/nfs4_srv.c
951
char *path, unsigned index)
usr/src/uts/common/fs/nfs/nfs4_srv.c
963
len = strlen(path) + 1;
usr/src/uts/common/fs/nfs/nfs4_srv.c
964
dss_path->path = kmem_alloc(len, KM_SLEEP);
usr/src/uts/common/fs/nfs/nfs4_srv.c
965
(void) strlcpy(dss_path->path, path, len);
usr/src/uts/common/fs/nfs/nfs4_state.c
1771
char *path, *dir;
usr/src/uts/common/fs/nfs/nfs4_state.c
1778
dir = dss_path->path;
usr/src/uts/common/fs/nfs/nfs4_state.c
1782
path = kmem_alloc(pathlen, KM_SLEEP);
usr/src/uts/common/fs/nfs/nfs4_state.c
1783
(void) sprintf(path, "%s/%s/%s", dir, dir_leaf, leaf);
usr/src/uts/common/fs/nfs/nfs4_state.c
1785
(void) vn_remove(path, UIO_SYSSPACE, RMFILE);
usr/src/uts/common/fs/nfs/nfs4_state.c
1787
kmem_free(path, pathlen);
usr/src/uts/common/fs/nfs/nfs4_state.c
817
char *path = paths[i];
usr/src/uts/common/fs/nfs/nfs4_state.c
819
(void) sprintf(state, "%s/%s", path, NFS4_DSS_STATE_LEAF);
usr/src/uts/common/fs/nfs/nfs4_state.c
820
(void) sprintf(oldstate, "%s/%s", path, NFS4_DSS_OLDSTATE_LEAF);
usr/src/uts/common/fs/nfs/nfs4_state.c
994
rfs4_ss_clid_write_one(cp, dss_path->path, leaf);
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1844
char *mntpt, *orig_path, *path;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1858
orig_path = path = fn_path(VTOSV(stubvp)->sv_name);
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1882
kmem_free(path, strlen(path) + 1);
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1883
path = esi->esi_path;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1884
if (*path == '.')
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1885
path++;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1886
if (path[0] == '/' && path[1] == '/')
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1887
path++;
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1888
has_leading_slash = (*path == '/');
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1891
spec_len += strlen(path);
usr/src/uts/common/fs/nfs/nfs4_stub_vnops.c
1903
has_leading_slash ? "" : "/", path);
usr/src/uts/common/fs/nfs/nfs4_subr.c
1671
char *path;
usr/src/uts/common/fs/nfs/nfs4_subr.c
1678
path = fn_path(fname);
usr/src/uts/common/fs/nfs/nfs4_subr.c
1703
(void) nfs4lookup_setup(path, &lookuparg, 1);
usr/src/uts/common/fs/nfs/nfs4_subr.c
1778
kmem_free(path, strlen(path)+1);
usr/src/uts/common/fs/nfs/nfs4_subr.c
3132
char *path;
usr/src/uts/common/fs/nfs/nfs4_subr.c
3150
path = fn_path(rp->r_svnode.sv_name);
usr/src/uts/common/fs/nfs/nfs4_subr.c
3152
(void *)rp, path, type, rp->r_flags,
usr/src/uts/common/fs/nfs/nfs4_subr.c
3154
kmem_free(path, strlen(path)+1);
usr/src/uts/common/fs/nfs/nfs4_subr.c
559
char *path;
usr/src/uts/common/fs/nfs/nfs4_subr.c
562
path = kmem_alloc(len + 1, KM_SLEEP);
usr/src/uts/common/fs/nfs/nfs4_subr.c
563
bcopy(u8s->utf8string_val, path, len);
usr/src/uts/common/fs/nfs/nfs4_subr.c
564
path[len] = '\0';
usr/src/uts/common/fs/nfs/nfs4_subr.c
567
"Invalid UTF-8 filename: %s", path);
usr/src/uts/common/fs/nfs/nfs4_subr.c
569
kmem_free(path, len + 1);
usr/src/uts/common/fs/nfs/nfs_cmd.c
321
char *path;
usr/src/uts/common/fs/nfs/nfs_cmd.c
325
path = exi->exi_export.ex_path;
usr/src/uts/common/fs/nfs/nfs_cmd.c
326
if (path == NULL)
usr/src/uts/common/fs/nfs/nfs_cmd.c
338
(void) strncpy(req.arg.charmap.path, path, MAXPATHLEN);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
294
mount_root(char *name, char *path, int version, struct nfs_args *args,
usr/src/uts/common/fs/nfs/nfs_dlinet.c
314
rc = getfile(name, args->hostname, args->addr, path);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
327
rc = mountnfs(args->addr, args->hostname, path,
usr/src/uts/common/fs/nfs/nfs_dlinet.c
331
rc = mountnfs3(args->addr, args->hostname, path,
usr/src/uts/common/fs/nfs/nfs_dlinet.c
390
args->hostname, path);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
405
char *path, fhandle_t *fh, int *proto)
usr/src/uts/common/fs/nfs/nfs_dlinet.c
427
server, path);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
443
xdr_bp_path_t, (char *)&path,
usr/src/uts/common/fs/nfs/nfs_dlinet.c
449
server, path);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
485
char *path, nfs_fh3 *fh, int *proto)
usr/src/uts/common/fs/nfs/nfs_dlinet.c
512
server, path);
usr/src/uts/common/fs/nfs/nfs_dlinet.c
531
xdr_bp_path_t, (char *)&path,
usr/src/uts/common/fs/nfs/nfs_dlinet.c
537
server, path);
usr/src/uts/common/fs/nfs/nfs_server.c
2987
char *path, /* pathname to evaluate */
usr/src/uts/common/fs/nfs/nfs_server.c
3003
if (*path == '/') {
usr/src/uts/common/fs/nfs/nfs_server.c
3004
while (*path == '/')
usr/src/uts/common/fs/nfs/nfs_server.c
3005
path++;
usr/src/uts/common/fs/nfs/nfs_server.c
3010
error = pn_get_buf(path, UIO_SYSSPACE, &pn, namebuf, sizeof (namebuf));
usr/src/uts/common/fs/nfs/nfs_server.c
3036
error = pn_get(path, UIO_SYSSPACE, &pn);
usr/src/uts/common/fs/nfs/nfs_server.c
3059
MCLpath(char **path)
usr/src/uts/common/fs/nfs/nfs_server.c
3061
unsigned char c = (unsigned char)**path;
usr/src/uts/common/fs/nfs/nfs_server.c
3081
(*path)++;
usr/src/uts/common/fs/nfs/nfs_server.c
3084
(*path)++;
usr/src/uts/common/fs/nfs/nfs_server.c
3161
char *path;
usr/src/uts/common/fs/nfs/nfs_server.c
3174
path = exi->exi_export.ex_path;
usr/src/uts/common/fs/nfs/nfs_server.c
3175
if (path == NULL) {
usr/src/uts/common/fs/nfs/nfs_server.c
3179
zone = zone_find_by_any_path(path, B_FALSE);
usr/src/uts/common/fs/nfs/nfs_subr.c
2656
char *path;
usr/src/uts/common/fs/nfs/nfs_subr.c
2659
path = rp->r_path;
usr/src/uts/common/fs/nfs/nfs_subr.c
2660
if (path) {
usr/src/uts/common/fs/nfs/nfs_subr.c
2662
len = strlen(path) + 1;
usr/src/uts/common/fs/nfs/nfs_subr.c
2663
kmem_free(path, len);
usr/src/uts/common/fs/nfs/nfs_subr.c
4696
failover_lookup(char *path, vnode_t *root,
usr/src/uts/common/fs/nfs/nfs_subr.c
4710
len = strlen(path) + 1;
usr/src/uts/common/fs/nfs/nfs_subr.c
4712
(void) strcpy(tmppath, path);
usr/src/uts/common/fs/pathname.c
143
pn_set(struct pathname *pnp, const char *path)
usr/src/uts/common/fs/pathname.c
148
error = copystr(path, pnp->pn_path, pnp->pn_bufsize, &pnp->pn_pathlen);
usr/src/uts/common/fs/pathname.c
233
char c, *cp, *path, saved;
usr/src/uts/common/fs/pathname.c
236
path = pnp->pn_path;
usr/src/uts/common/fs/pathname.c
239
saved = path[MAXNAMELEN];
usr/src/uts/common/fs/pathname.c
240
path[MAXNAMELEN] = '/'; /* guarantees loop termination */
usr/src/uts/common/fs/pathname.c
241
for (cp = path; (c = *cp) != '/'; cp++)
usr/src/uts/common/fs/pathname.c
243
path[MAXNAMELEN] = saved;
usr/src/uts/common/fs/pathname.c
244
if (cp - path == MAXNAMELEN)
usr/src/uts/common/fs/pathname.c
247
path[pathlen] = '/'; /* guarantees loop termination */
usr/src/uts/common/fs/pathname.c
248
for (cp = path; (c = *cp) != '/'; cp++)
usr/src/uts/common/fs/pathname.c
250
path[pathlen] = '\0';
usr/src/uts/common/fs/pathname.c
254
pnp->pn_pathlen = pathlen - (cp - path);
usr/src/uts/common/fs/pathname.c
281
char *path = pnp->pn_path + pnp->pn_pathlen - 1;
usr/src/uts/common/fs/pathname.c
284
while (path > buf && *path == '/')
usr/src/uts/common/fs/pathname.c
285
--path;
usr/src/uts/common/fs/pathname.c
286
endpath = path + 1;
usr/src/uts/common/fs/pathname.c
287
while (path > buf && *path != '/')
usr/src/uts/common/fs/pathname.c
288
--path;
usr/src/uts/common/fs/pathname.c
289
if (*path == '/')
usr/src/uts/common/fs/pathname.c
290
path++;
usr/src/uts/common/fs/pathname.c
292
pnp->pn_path = path;
usr/src/uts/common/fs/pathname.c
293
pnp->pn_pathlen = endpath - path;
usr/src/uts/common/fs/sharefs/sharetab.c
402
SHARETAB_COPYIN(path);
usr/src/uts/common/fs/sharefs/sharetab.c
89
SHARETAB_DELETE_FIELD(path);
usr/src/uts/common/fs/smbsrv/smb2_tree_connect.c
70
sr, (uint_t)PathLength, &tcon->path);
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
102
char *new_name, *path;
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
107
path = dst_fqi->fq_path.pn_path;
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
157
rc = smb_pathname_reduce(sr, sr->user_cr, path, tnode, tnode,
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
394
smb_setinfo_link(smb_request_t *sr, smb_node_t *node, char *path, int flags)
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
409
smb_pathname_init(sr, dst_pn, path);
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
437
char *path;
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
441
path = dst_fqi->fq_path.pn_path;
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
483
rc = smb_pathname_reduce(sr, sr->user_cr, path, tnode, tnode,
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
546
char *path;
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
556
path = src_fqi->fq_path.pn_path;
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
557
rc = smb_pathname_reduce(sr, sr->user_cr, path, tnode, tnode,
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
59
smb_setinfo_rename(smb_request_t *sr, smb_node_t *node, char *path, int flags)
usr/src/uts/common/fs/smbsrv/smb_cmn_rename.c
74
smb_pathname_init(sr, dst_pn, path);
usr/src/uts/common/fs/smbsrv/smb_common_transact.c
762
char *comment, uint16_t access, char *path, char *password)
usr/src/uts/common/fs/smbsrv/smb_common_transact.c
775
(void) smb_mbc_encodef(text, "s", path);
usr/src/uts/common/fs/smbsrv/smb_dfs.c
146
char *path;
usr/src/uts/common/fs/smbsrv/smb_dfs.c
180
sr, &fnlen, &path);
usr/src/uts/common/fs/smbsrv/smb_dfs.c
184
reftype = smb_dfs_get_reftype((const char *)path);
usr/src/uts/common/fs/smbsrv/smb_dfs.c
203
status = smb_dfs_referrals_get(sr, path, reftype, &refrsp);
usr/src/uts/common/fs/smbsrv/smb_dfs.c
256
char *path;
usr/src/uts/common/fs/smbsrv/smb_dfs.c
271
sr, &maxver, &path);
usr/src/uts/common/fs/smbsrv/smb_dfs.c
275
reftype = smb_dfs_get_reftype((const char *)path);
usr/src/uts/common/fs/smbsrv/smb_dfs.c
294
status = smb_dfs_referrals_get(sr, path, reftype, &refrsp);
usr/src/uts/common/fs/smbsrv/smb_dfs.c
355
smb_dfs_get_reftype(const char *path)
usr/src/uts/common/fs/smbsrv/smb_dfs.c
360
if (*path == '\0')
usr/src/uts/common/fs/smbsrv/smb_dfs.c
363
if (smb_unc_init(path, &unc) != 0)
usr/src/uts/common/fs/smbsrv/smb_directory.c
376
char *path;
usr/src/uts/common/fs/smbsrv/smb_directory.c
399
path = pn->pn_path;
usr/src/uts/common/fs/smbsrv/smb_directory.c
402
rc = smb_pathname_reduce(sr, sr->user_cr, path, tnode, tnode,
usr/src/uts/common/fs/smbsrv/smb_find.c
570
char *path;
usr/src/uts/common/fs/smbsrv/smb_find.c
578
rc = smbsr_decode_data(sr, "%Abw", sr, &path, &type, &key_len);
usr/src/uts/common/fs/smbsrv/smb_kshare.c
846
smb_kshare_export_trans(smb_server_t *sv, char *name, char *path, char *cmnt)
usr/src/uts/common/fs/smbsrv/smb_kshare.c
851
ASSERT(path);
usr/src/uts/common/fs/smbsrv/smb_kshare.c
867
if (path)
usr/src/uts/common/fs/smbsrv/smb_kshare.c
868
shr->shr_path = smb_mem_strdup(path);
usr/src/uts/common/fs/smbsrv/smb_odir.c
280
smb_odir_openpath(smb_request_t *sr, char *path, uint16_t sattr,
usr/src/uts/common/fs/smbsrv/smb_odir.c
299
smb_convert_wildcards(path);
usr/src/uts/common/fs/smbsrv/smb_odir.c
301
rc = smb_pathname_reduce(sr, sr->user_cr, path,
usr/src/uts/common/fs/smbsrv/smb_ofile.c
1858
char *path;
usr/src/uts/common/fs/smbsrv/smb_ofile.c
1878
path = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/fs/smbsrv/smb_ofile.c
1881
rc = smb_node_getshrpath(node, tree, path, MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_ofile.c
1883
(void) strlcpy(path, node->od_name, MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_ofile.c
1887
path);
usr/src/uts/common/fs/smbsrv/smb_ofile.c
1888
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1075
char *path = pn->pn_path;
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1078
path += strspn(path, "\\");
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1081
if ((strcmp(path, "..") == 0) || (strncmp(path, "..\\", 3) == 0)) {
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1119
char *path = pn->pn_path;
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1121
if ((name = path) != 0) {
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1187
smb_stream_parse_name(char *path, char *filename, char *stream)
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1192
ASSERT(path);
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1196
fname = strrchr(path, '\\');
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1197
fname = (fname == NULL) ? path : fname + 1;
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1238
smb_is_stream_name(char *path)
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1242
if (path == NULL)
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1245
colonp = strchr(path, ':');
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1249
if (strstr(path, "::"))
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1323
smb_pathname_dfs_preprocess(smb_request_t *sr, char *path, size_t pathsz)
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1332
if ((rc = smb_unc_init(path, &unc)) != 0)
usr/src/uts/common/fs/smbsrv/smb_pathname.c
1341
(void) snprintf(path, pathsz, "/%s", (linkpath) ? linkpath : "");
usr/src/uts/common/fs/smbsrv/smb_pathname.c
150
const char *path,
usr/src/uts/common/fs/smbsrv/smb_pathname.c
187
if (path == NULL)
usr/src/uts/common/fs/smbsrv/smb_pathname.c
190
if (*path == '\0')
usr/src/uts/common/fs/smbsrv/smb_pathname.c
195
len = strlcpy(usepath, path, SMB_MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_pathname.c
431
smb_pathname(smb_request_t *sr, char *path, int flags,
usr/src/uts/common/fs/smbsrv/smb_pathname.c
448
if (path == NULL)
usr/src/uts/common/fs/smbsrv/smb_pathname.c
462
if ((err = pn_set(&upn, path)) != 0) {
usr/src/uts/common/fs/smbsrv/smb_pathname.c
467
if (mnt_pn != NULL && (err = pn_set(mnt_pn, path) != 0)) {
usr/src/uts/common/fs/smbsrv/smb_pathname.c
48
smb_is_executable(char *path)
usr/src/uts/common/fs/smbsrv/smb_pathname.c
51
int len = strlen(path);
usr/src/uts/common/fs/smbsrv/smb_pathname.c
53
if ((len >= 4) && (path[len - 4] == '.')) {
usr/src/uts/common/fs/smbsrv/smb_pathname.c
54
(void) strcpy(extension, &path[len - 3]);
usr/src/uts/common/fs/smbsrv/smb_pathname.c
761
smb_lookuppathvptovp(smb_request_t *sr, char *path, vnode_t *startvp,
usr/src/uts/common/fs/smbsrv/smb_pathname.c
773
if (pn_set(&pn, path) == 0) {
usr/src/uts/common/fs/smbsrv/smb_pathname.c
806
smb_pathname_init(smb_request_t *sr, smb_pathname_t *pn, char *path)
usr/src/uts/common/fs/smbsrv/smb_pathname.c
812
pn->pn_path = smb_pathname_strdup(sr, path);
usr/src/uts/common/fs/smbsrv/smb_print.c
59
char *path;
usr/src/uts/common/fs/smbsrv/smb_print.c
73
path = smb_srm_zalloc(sr, MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_print.c
74
op->fqi.fq_path.pn_path = path;
usr/src/uts/common/fs/smbsrv/smb_print.c
76
(void) snprintf(path, MAXPATHLEN, "%s%05u", identifier, new_id);
usr/src/uts/common/fs/smbsrv/smb_server.c
867
(void) strlcpy(ioc->path, spdoc->sd_path,
usr/src/uts/common/fs/smbsrv/smb_set_fileinfo.c
532
char *path;
usr/src/uts/common/fs/smbsrv/smb_set_fileinfo.c
559
path = smb_srm_zalloc(sr, SMB_MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_set_fileinfo.c
562
(void) snprintf(path, SMB_MAXPATHLEN, "%s\\%s",
usr/src/uts/common/fs/smbsrv/smb_set_fileinfo.c
567
sr->tid_tree, path, SMB_MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_set_fileinfo.c
572
(void) strlcat(path, "\\", SMB_MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_set_fileinfo.c
573
(void) strlcat(path, fname, SMB_MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_set_fileinfo.c
584
status = smb_setinfo_rename(sr, sinfo->si_node, path, flags);
usr/src/uts/common/fs/smbsrv/smb_tree.c
238
(void) smb_strlwr(tcon->path);
usr/src/uts/common/fs/smbsrv/smb_tree.c
240
if ((name = smb_tree_get_sharename(tcon->path)) == NULL) {
usr/src/uts/common/fs/smbsrv/smb_tree.c
241
smb_tree_log(sr, tcon->path, "invalid UNC path");
usr/src/uts/common/fs/smbsrv/smb_tree.c
668
char *sharename = tcon->path;
usr/src/uts/common/fs/smbsrv/smb_tree.c
795
char *sharename = tcon->path;
usr/src/uts/common/fs/smbsrv/smb_tree.c
869
char *name = tcon->path;
usr/src/uts/common/fs/smbsrv/smb_tree_connect.c
285
&tcon->path, &tcon->service);
usr/src/uts/common/fs/smbsrv/smb_tree_connect.c
97
rc = smbsr_decode_data(sr, "%AAA", sr, &tcon->path,
usr/src/uts/common/fs/smbsrv/smb_vss.c
144
char *snapname, *path;
usr/src/uts/common/fs/smbsrv/smb_vss.c
159
path = smb_srm_alloc(sr, MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_vss.c
162
err = smb_node_getmntpath(cur_node, path, MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_vss.c
171
smb_vss_map_gmttoken(sr->tid_tree, path, gmttoken, toktime,
usr/src/uts/common/fs/smbsrv/smb_vss.c
201
char *p, *path;
usr/src/uts/common/fs/smbsrv/smb_vss.c
207
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/fs/smbsrv/smb_vss.c
208
(void) snprintf(path, MAXPATHLEN, ".zfs/snapshot/%s/", snapname);
usr/src/uts/common/fs/smbsrv/smb_vss.c
209
len = strlen(path);
usr/src/uts/common/fs/smbsrv/smb_vss.c
210
p = path + len;
usr/src/uts/common/fs/smbsrv/smb_vss.c
214
vp = smb_lookuppathvptovp(sr, path, fsrootvp, fsrootvp);
usr/src/uts/common/fs/smbsrv/smb_vss.c
222
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/fs/smbsrv/smb_vss.c
261
smb_vss_find_gmttoken(const char *path)
usr/src/uts/common/fs/smbsrv/smb_vss.c
265
p = path;
usr/src/uts/common/fs/smbsrv/smb_vss.c
316
smb_vss_remove_first_token_from_path(char *path)
usr/src/uts/common/fs/smbsrv/smb_vss.c
321
src = path;
usr/src/uts/common/fs/smbsrv/smb_vss.c
322
dest = path;
usr/src/uts/common/fs/smbsrv/smb_vss.c
350
smb_string_t path;
usr/src/uts/common/fs/smbsrv/smb_vss.c
352
path.buf = resource_path;
usr/src/uts/common/fs/smbsrv/smb_vss.c
355
&path, smb_string_xdr, &count, xdr_uint32_t);
usr/src/uts/common/fs/smbsrv/smb_vss.c
397
smb_vss_map_gmttoken(smb_tree_t *tree, char *path, char *gmttoken,
usr/src/uts/common/fs/smbsrv/smb_vss.c
406
request.gts_path = path;
usr/src/uts/common/fs/specfs/specsubr.c
1013
FENDBG((CE_NOTE, "fenced off all snodes for dip: %s", path));
usr/src/uts/common/fs/specfs/specsubr.c
1014
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/fs/specfs/specsubr.c
1026
char *path;
usr/src/uts/common/fs/specfs/specsubr.c
1031
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/fs/specfs/specsubr.c
1032
(void) ddi_pathname(dip, path);
usr/src/uts/common/fs/specfs/specsubr.c
1055
FENDBG((CE_NOTE, "unfenced all snodes for dip: %s", path));
usr/src/uts/common/fs/specfs/specsubr.c
1056
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/fs/specfs/specsubr.c
962
char *path;
usr/src/uts/common/fs/specfs/specsubr.c
976
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/fs/specfs/specsubr.c
977
(void) ddi_pathname(dip, path);
usr/src/uts/common/fs/specfs/specsubr.c
988
(void *)csp, path));
usr/src/uts/common/fs/specfs/specsubr.c
989
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/fs/ufs/ufs_vfsops.c
1116
(void) copystr(path, fsp->fs_fsmnt, sizeof (fsp->fs_fsmnt) - 1, &len);
usr/src/uts/common/fs/ufs/ufs_vfsops.c
1327
"failed mount of %s", path);
usr/src/uts/common/fs/ufs/ufs_vfsops.c
800
char *path, cred_t *cr, int isroot, void *raw_argsp, int args_len)
usr/src/uts/common/fs/ufs/ufs_vfsops.c
987
"log for %s; Please run fsck(8)", path);
usr/src/uts/common/fs/vfs.c
246
const char *path;
usr/src/uts/common/fs/vfs.c
249
path = refstr_value(mntpt);
usr/src/uts/common/fs/vfs.c
250
vn_setpath_str(*vpp, path, strlen(path));
usr/src/uts/common/fs/vfs.c
4764
char *path = NULL;
usr/src/uts/common/fs/vfs.c
4774
path = kmem_alloc(strsize + 1, KM_SLEEP);
usr/src/uts/common/fs/vfs.c
4775
(void) snprintf(path, strsize + 1, LOFINODE_PATH, vfsp->vfs_lofi_id);
usr/src/uts/common/fs/vfs.c
4782
err = lookupname(path, UIO_SYSSPACE, FOLLOW, NULLVPP, vpp);
usr/src/uts/common/fs/vfs.c
4794
kmem_free(path, strsize + 1);
usr/src/uts/common/fs/vfs.c
813
vfs_mountfs(char *module, char *spec, char *path)
usr/src/uts/common/fs/vfs.c
823
mounta.dir = path;
usr/src/uts/common/fs/vfs.c
824
if (lookupname(path, UIO_SYSSPACE, FOLLOW, NULLVPP, &mvp)) {
usr/src/uts/common/fs/vfs.c
825
cmn_err(CE_WARN, "Cannot find %s", path);
usr/src/uts/common/fs/vfs.c
829
cmn_err(CE_WARN, "Cannot mount %s", path);
usr/src/uts/common/fs/vfs.c
842
char *path;
usr/src/uts/common/fs/vfs.c
954
path = kmem_alloc(plen + MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/fs/vfs.c
955
(void) strcpy(path, "/devices");
usr/src/uts/common/fs/vfs.c
957
if (i_ddi_prompath_to_devfspath(rootfs.bo_name, path + plen)
usr/src/uts/common/fs/vfs.c
959
lookupname(path, UIO_SYSSPACE, FOLLOW, NULLVPP, &rvp)) {
usr/src/uts/common/fs/vfs.c
962
path[plen + MAXPATHLEN - 1] = '\0';
usr/src/uts/common/fs/vfs.c
965
path);
usr/src/uts/common/fs/vfs.c
968
kmem_free(path, plen + MAXPATHLEN);
usr/src/uts/common/fs/zfs/dsl_dir.c
371
getcomponent(const char *path, char *component, const char **nextp)
usr/src/uts/common/fs/zfs/dsl_dir.c
375
if ((path == NULL) || (path[0] == '\0'))
usr/src/uts/common/fs/zfs/dsl_dir.c
378
p = strpbrk(path, "/@");
usr/src/uts/common/fs/zfs/dsl_dir.c
383
if (p == NULL || p == path) {
usr/src/uts/common/fs/zfs/dsl_dir.c
390
(p[0] != '@' || strpbrk(path+1, "/@") || p[1] == '\0'))
usr/src/uts/common/fs/zfs/dsl_dir.c
392
if (strlen(path) >= ZFS_MAX_DATASET_NAME_LEN)
usr/src/uts/common/fs/zfs/dsl_dir.c
394
(void) strcpy(component, path);
usr/src/uts/common/fs/zfs/dsl_dir.c
397
if (p - path >= ZFS_MAX_DATASET_NAME_LEN)
usr/src/uts/common/fs/zfs/dsl_dir.c
399
(void) strncpy(component, path, p - path);
usr/src/uts/common/fs/zfs/dsl_dir.c
400
component[p - path] = '\0';
usr/src/uts/common/fs/zfs/dsl_dir.c
407
if (strchr(path, '/'))
usr/src/uts/common/fs/zfs/dsl_dir.c
409
if (p - path >= ZFS_MAX_DATASET_NAME_LEN)
usr/src/uts/common/fs/zfs/dsl_dir.c
411
(void) strncpy(component, path, p - path);
usr/src/uts/common/fs/zfs/dsl_dir.c
412
component[p - path] = '\0';
usr/src/uts/common/fs/zfs/vdev_disk.c
1272
const char *path = NULL;
usr/src/uts/common/fs/zfs/vdev_disk.c
1277
path = vebe->vebe_devpath;
usr/src/uts/common/fs/zfs/vdev_disk.c
1284
return (path);
usr/src/uts/common/fs/zfs/zfs_ioctl.c
2134
char *path = zc->zc_value;
usr/src/uts/common/fs/zfs/zfs_ioctl.c
2142
error = spa_vdev_setpath(spa, guid, path);
usr/src/uts/common/fs/zfs/zfs_znode.c
2125
char *path = buf + len - 1;
usr/src/uts/common/fs/zfs/zfs_znode.c
2128
*path = '\0';
usr/src/uts/common/fs/zfs/zfs_znode.c
2156
if (path[0] != '/')
usr/src/uts/common/fs/zfs/zfs_znode.c
2157
*--path = '/';
usr/src/uts/common/fs/zfs/zfs_znode.c
2172
path -= complen;
usr/src/uts/common/fs/zfs/zfs_znode.c
2173
ASSERT(path >= buf);
usr/src/uts/common/fs/zfs/zfs_znode.c
2174
bcopy(component, path, complen);
usr/src/uts/common/fs/zfs/zfs_znode.c
2195
(void) memmove(buf, path, buf + len - path);
usr/src/uts/common/fs/zfs/zfs_znode.c
2226
char *path = buf + len - 1;
usr/src/uts/common/fs/zfs/zfs_znode.c
2232
*path = '\0';
usr/src/uts/common/fs/zut/zut.c
45
zut_open_dir(char *path, vnode_t *startvp, cred_t *cr, int flags,
usr/src/uts/common/fs/zut/zut.c
55
(void) strlcpy(pn.pn_buf, path, MAXPATHLEN);
usr/src/uts/common/fs/zut/zut.c
56
pn.pn_pathlen = strlen(path);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1019
audiohd_do_set_pin_volume(audiohd_state_t *statep, audiohd_path_t *path,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1026
if (path->mute_wid && val == 0) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1029
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1030
path->mute_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1032
path->mute_dir |
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1040
tmp = l * path->gain_bits / 100;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1042
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1043
path->gain_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1045
AUDIOHDC_AMP_SET_LEFT | path->gain_dir |
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1047
tmp = r * path->gain_bits / 100;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1049
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1050
path->gain_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1052
AUDIOHDC_AMP_SET_RIGHT | path->gain_dir |
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1055
if (path->mute_wid && path->mute_wid != path->gain_wid) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1059
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1060
path->mute_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1062
path->mute_dir |
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1067
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1068
path->mute_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1070
path->mute_dir |
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1080
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1128
if ((path = statep->path[i]) == NULL)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1131
codec = path->codec;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1132
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1133
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1136
if ((pin->device == type) && path->gain_wid) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1137
audiohd_do_set_pin_volume(statep, path, val);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1149
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1192
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1193
if (!path)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1195
codec = path->codec;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1196
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1197
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1202
if ((clr == color) && path->gain_wid) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1203
audiohd_do_set_pin_volume(statep, path, val);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1215
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1224
if ((path = statep->path[i]) == NULL ||
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1225
path->path_type != RECORD)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1232
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1233
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1234
widget = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1239
path->codec->index, pin->wid);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1241
codec = path->codec;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1245
path->codec->index, pin->wid);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1260
path = (audiohd_path_t *)w->priv;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1266
if (path->sum_wid) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1267
w = codec->widget[path->sum_wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1269
for (i = 0; i < path->pin_nums; i++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1270
if (path->pin_wid[i] == pin->wid) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1272
statep, codec->index, path->sum_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1274
path->sum_selconn[i]);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1344
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1356
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1357
if (path == NULL || path->path_type != PLAY)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1359
caddr = path->codec->index;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1360
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1361
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1362
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1364
audiohd_set_pin_monitor_gain(path->codec, statep,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1375
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1385
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1386
if (!path || path->path_type != BEEP)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1388
codec = path->codec;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1402
tmp = val * path->gain_bits / 100;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1410
path->beep_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1418
audiohd_do_set_beep_volume(statep, path, val);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1425
audiohd_do_set_beep_volume(audiohd_state_t *statep, audiohd_path_t *path,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1435
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1436
path->mute_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1438
path->mute_dir |
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1447
tmp = l * path->gain_bits / 100;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1449
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1450
path->gain_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1452
AUDIOHDC_AMP_SET_LEFT | path->gain_dir |
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1454
tmp = r * path->gain_bits / 100;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1456
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1457
path->gain_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1459
AUDIOHDC_AMP_SET_RIGHT | path->gain_dir |
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1461
if (path->mute_wid != path->gain_wid) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1465
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1466
path->mute_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1468
path->mute_dir |
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1473
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1474
path->mute_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1476
path->mute_dir |
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1644
audiohd_path_t *path = NULL;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1655
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1656
if (path == NULL || path->path_type != LOOPBACK)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1659
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1660
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1661
widget = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1667
path->codec->index, wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1670
path->codec->index, wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1676
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1685
path->codec->index, wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1688
path->codec->index, wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1885
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1898
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1899
if (path == NULL)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1901
codec = path->codec;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1903
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1904
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1954
if (path->path_type == BEEP) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1955
widget = codec->widget[path->beep_wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
1957
path->gain_wid != 0) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3227
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3267
path = (audiohd_path_t *)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3270
path->adda_wid = wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3271
path->pin_wid[0] = widget->wid_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3272
path->pin_nums = 1;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3273
path->path_type = PLAY;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3274
path->codec = codec;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3275
path->statep = statep;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3277
wdac->priv = path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3283
statep->path[statep->pathnum++] = path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3338
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3347
path = codec->statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3348
if (path == NULL || path->path_type != PLAY ||
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3349
path->codec != codec)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3351
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3352
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3425
if (path->pin_nums == 1) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3426
path->mute_wid = pin->mute_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3427
path->mute_dir = pin->mute_dir;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3428
path->gain_wid = pin->gain_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3429
path->gain_dir = pin->gain_dir;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3430
path->gain_bits = pin->gain_bits;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3432
wdac = codec->widget[path->adda_wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3434
wid = path->pin_wid[0];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3446
path->mute_wid = widget->wid_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3447
path->mute_dir =
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3453
path->mute_wid = widget->wid_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3454
path->mute_dir =
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3472
path->gain_dir =
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3474
path->gain_bits = gain;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3475
path->gain_wid = widget->wid_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3481
path->gain_dir =
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3483
path->gain_bits = gain;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3484
path->gain_wid = widget->wid_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3492
path->gain_bits >>= AUDIOHD_GAIN_OFF;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3509
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3517
path = codec->statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3518
if (!path || path->path_type != PLAY || path->codec != codec)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3520
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3521
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3612
int depth, audiohd_path_t *path)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3655
path->pin_wid[path->pin_nums++] = wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3656
pin->adc_wid = path->adda_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3670
allowmixer, depth + 1, path);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3687
path);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3691
num = path->pin_nums - 1;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3692
path->sum_selconn[num] = i;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3693
path->sum_wid = wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3700
if (path->pin_nums > 0)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3710
path);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3737
audiohd_path_t *path = NULL;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3752
if (path == NULL)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3753
path = kmem_zalloc(sizeof (audiohd_path_t),
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3756
bzero(path, sizeof (audiohd_port_t));
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3758
path->adda_wid = wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3772
widget->avail_conn[i], 1, 0, path);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3774
path->codec = codec;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3775
path->statep = statep;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3776
path->path_type = RECORD;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3777
path->tag = ++rtag;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3779
statep->path[statep->pathnum++] = path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3781
widget->priv = path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3782
path = NULL;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3787
if (path)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3788
kmem_free(path, sizeof (audiohd_path_t));
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3800
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3809
path = codec->statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3810
if (path == NULL || path->path_type != RECORD ||
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3811
path->codec != codec)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3814
wid = path->adda_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3815
wadc = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3825
path->mute_wid = w->wid_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3826
path->mute_dir = AUDIOHDC_AMP_SET_OUTPUT;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3830
(w->wid_wid != path->sum_wid)) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3831
path->mute_wid = w->wid_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3832
path->mute_dir = AUDIOHDC_AMP_SET_INPUT;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3840
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3853
if (gain && gain > path->gain_bits) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3854
path->gain_dir = AUDIOHDC_AMP_SET_OUTPUT;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3855
path->gain_bits = gain;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3856
path->gain_wid = w->wid_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3859
if (gain && (gain > path->gain_bits) &&
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3860
(w->wid_wid != path->sum_wid)) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3861
path->gain_dir = AUDIOHDC_AMP_SET_INPUT;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3862
path->gain_bits = gain;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3863
path->gain_wid = w->wid_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3870
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3872
path->gain_bits >>= AUDIOHD_GAIN_OFF;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3878
if (path->pin_nums == 1) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3879
wid = path->pin_wid[0];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3880
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3882
pin->gain_dir = path->gain_dir;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3883
pin->gain_bits = path->gain_bits;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3884
pin->gain_wid = path->gain_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3885
pin->mute_wid = path->mute_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3886
pin->mute_dir = path->mute_dir;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3895
wid = path->sum_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3896
wsum = path->codec->widget[wid]; /* sum widget */
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3898
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3899
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3900
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3908
wid = wsum->avail_conn[path->sum_selconn[i]];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3909
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3930
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3936
wid = wsum->avail_conn[path->sum_selconn[i]];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3937
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3958
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3975
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3982
path = codec->statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3983
if (path == NULL || path->path_type != RECORD ||
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3984
path->codec != codec)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3986
wid = path->adda_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3987
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
3988
while (w && (w->wid_wid != path->sum_wid) &&
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4014
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4029
wid = path->sum_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4030
wsum = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4041
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4048
(path->sum_selconn[j] <<
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4055
path->sum_selconn[j]);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4058
wid = wsum->avail_conn[path->sum_selconn[j]];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4059
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4090
w = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4201
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4209
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4210
if (path == NULL || path->codec != codec ||
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4211
path->path_type != PLAY)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4213
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4214
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4254
path->mon_wid[j][l] = wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4266
path->mon_wid[j][l] = wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4283
path->mon_wid[j][l] = 0;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4292
path->maxmixer[j] = l;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4362
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4369
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4370
if (!path || path->codec != codec || path->path_type != PLAY)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4372
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4373
for (k = 0; k < path->maxmixer[j]; k++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4374
wid = path->mon_wid[j][k];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4443
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4451
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4452
if (!path || path->codec != codec || path->path_type != PLAY)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4454
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4455
id = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4458
for (k = 0; k < path->maxmixer[j]; k++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4459
wid = path->mon_wid[j][k];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4539
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4576
path = (audiohd_path_t *)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4579
path->beep_wid = wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4580
path->pin_wid[0] = widget->wid_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4581
path->pin_nums = 1;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4582
path->path_type = BEEP;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4584
path->codec = codec;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4585
path->statep = statep;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4588
statep->path[statep->pathnum++] = path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4603
path = (audiohd_path_t *)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4606
path->beep_wid = wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4607
path->pin_nums = 0;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4608
path->path_type = BEEP;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4610
path->codec = codec;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4611
path->statep = statep;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4613
statep->path[statep->pathnum++] = path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4630
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4637
path = codec->statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4638
if (path == NULL || path->path_type != BEEP ||
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4639
path->codec != codec)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4641
if (path->pin_nums == 0) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4642
path->mute_wid = path->beep_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4643
path->mute_dir = AUDIOHDC_AMP_SET_OUTPUT;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4644
wbeep = codec->widget[path->beep_wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4648
path->gain_dir = AUDIOHDC_AMP_SET_OUTPUT;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4649
path->gain_bits = gain;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4650
path->gain_wid = path->beep_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4652
path->gain_bits >>= AUDIOHD_GAIN_OFF;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4655
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4656
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4658
wbeep = codec->widget[path->beep_wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4665
path->mute_wid = widget->wid_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4666
path->mute_dir =
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4685
if (gain && gain > path->gain_bits) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4686
path->gain_dir =
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4688
path->gain_bits = gain;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4689
path->gain_wid =
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4699
path->gain_bits >>= AUDIOHD_GAIN_OFF;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4714
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4721
path = codec->statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4722
if (!path || path->path_type != BEEP || path->codec != codec)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4724
if (path->pin_nums == 0) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4725
widget = codec->widget[path->beep_wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4729
path->beep_wid, AUDIOHDC_VERB_SET_AMP_MUTE,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4736
path->beep_wid, AUDIOHDC_VERB_SET_AMP_MUTE,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4745
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4746
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4802
audiohd_path_t *path)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4822
path->pin_wid[path->pin_nums++] = wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4829
pin->adc_wid = path->adda_wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4830
path->pin_wid[path->pin_nums++] = wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4846
widget->avail_conn[0], depth + 1, path);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4856
widget->avail_conn[i], depth + 1, path);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4860
num = path->pin_nums - 1;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4861
path->sum_selconn[num] = i;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4862
path->sum_wid = wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4880
audiohd_path_t *path = NULL;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4892
if (path == NULL)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4893
path = kmem_zalloc(sizeof (audiohd_path_t), KM_SLEEP);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4895
bzero(path, sizeof (audiohd_port_t));
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4896
path->adda_wid = wid;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4900
widget->avail_conn[i], 0, path);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4902
path->codec = codec;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4903
path->statep = statep;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4904
path->path_type = LOOPBACK;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4905
path->tag = ++rtag;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4907
statep->path[statep->pathnum++] = path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4909
widget->priv = path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4910
path = NULL;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4918
if (path)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
4919
kmem_free(path, sizeof (audiohd_path_t));
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
515
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
519
if (statep->path[i]) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
520
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
521
kmem_free(path, sizeof (audiohd_path_t));
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5437
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5444
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5445
if (!path || path->path_type != PLAY)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5448
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5449
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5450
widget = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5454
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5460
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5461
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5462
widget = path->codec->widget[wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5466
path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5486
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5497
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5498
if (path->codec != codec || path->path_type != RECORD)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5500
sumwgt = codec->widget[path->sum_wid];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5502
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5503
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5522
path->sum_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5524
path->sum_selconn[j]);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5526
path->tag;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5536
path->sum_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5538
path->sum_selconn[j]);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5540
path->tag;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5557
statep, path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5560
path->mute_dir |
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5569
statep, path->codec->index,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5572
path->mute_dir |
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5588
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5589
if (!path || path->path_type != RECORD)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5591
for (j = 0; j < path->pin_nums; j++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5592
wid = path->pin_wid[j];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5605
path->tag;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
5614
path->tag;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
566
audiohd_init_play_path(audiohd_path_t *path)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
577
audiohd_state_t *statep = path->statep;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
578
hda_codec_t *codec = path->codec;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
581
for (i = 0; i < path->pin_nums; i++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
582
wid = path->pin_wid[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
589
path->adda_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
598
path->adda_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
611
wid = path->pin_wid[0];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
622
path->adda_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
629
path->adda_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
656
path->adda_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
664
path->adda_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
671
audiohd_init_record_path(audiohd_path_t *path)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
673
audiohd_state_t *statep = path->statep;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
674
hda_codec_t *codec = path->codec;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
680
for (i = 0; i < path->pin_nums; i++) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
681
wid = path->pin_wid[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
693
path->adda_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
702
path->adda_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
713
statep->port[PORT_ADC]->index = path->tag;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
723
path->adda_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
725
path->tag <<
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
729
path->adda_wid,
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
738
audiohd_path_t *path;
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
741
path = statep->path[i];
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
742
if (!path)
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
744
switch (path->path_type) {
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
746
audiohd_init_play_path(path);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.c
749
audiohd_init_record_path(path);
usr/src/uts/common/io/audio/drv/audiohd/audiohd.h
842
audiohd_path_t *path[AUDIOHD_PORT_MAX];
usr/src/uts/common/io/audio/impl/audio_client.c
1507
char path[MAXPATHLEN];
usr/src/uts/common/io/audio/impl/audio_client.c
1540
(void) snprintf(path, sizeof (path),
usr/src/uts/common/io/audio/impl/audio_client.c
1543
rv = ddi_create_minor_node(d->d_dip, path, S_IFCHR,
usr/src/uts/common/io/audio/impl/audio_client.c
1556
char path[MAXPATHLEN];
usr/src/uts/common/io/audio/impl/audio_client.c
1563
(void) snprintf(path, sizeof (path), "%s%d",
usr/src/uts/common/io/audio/impl/audio_client.c
1565
(void) ddi_remove_minor_node(d->d_dip, path);
usr/src/uts/common/io/blkdev/blkdev.c
1953
char *path = NULL;
usr/src/uts/common/io/blkdev/blkdev.c
1972
path = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/io/blkdev/blkdev.c
1974
n = snprintf(path, MAXPATHLEN, "/devices");
usr/src/uts/common/io/blkdev/blkdev.c
1975
(void) ddi_pathname(dip, path + n);
usr/src/uts/common/io/blkdev/blkdev.c
1976
n = strlen(path);
usr/src/uts/common/io/blkdev/blkdev.c
1977
n += snprintf(path + n, MAXPATHLEN - n, ":x");
usr/src/uts/common/io/blkdev/blkdev.c
1988
path[n - 1] = c;
usr/src/uts/common/io/blkdev/blkdev.c
1990
if (nvlist_add_string(attr, DEV_PHYS_PATH, path) != 0)
usr/src/uts/common/io/blkdev/blkdev.c
2008
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
15603
u32 *temp_reading, u8 path, u8 port)
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
15624
if ((path == 0) && (cmd_args[1] == 0))
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
3519
u8 path, port;
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
3521
path = PATH_ID(cb);
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
3535
path = path ^ 1;
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
3547
lane = (port<<1) + path;
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
3560
path = path ^ 1;
usr/src/uts/common/io/bnxe/577xx/common/bnxe_clc.c
3562
lane = path << 1 ;
usr/src/uts/common/io/bnxe/577xx/drivers/common/include/l4/mm_l4if.h
325
lm_path_state_t * path);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_hw_init_reset.c
832
#define E2_2P_PF_NUM(path, port, pf) (((pf) << 1) | (path)) /* pf: 0..3 ==> pf_num: 0..7 */
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_hw_init_reset.c
833
#define E2_4P_PF_NUM(path, port, pf) (((pf) << 2) | ((port) << 1) | (path)) /* pf: 0..1 ==> pf_num: 0..7 */
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_hw_init_reset.c
834
#define E2_PF_NUM(path, port, pf) ((port_mode == LM_CHIP_PORT_MODE_4) ? E2_4P_PF_NUM(path, port, pf) : E2_2P_PF_NUM(path, port, pf))
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/include/lm_l4if.h
131
lm_path_state_t *path);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/include/lm_l4if.h
34
lm_path_state_t *path,
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/include/lm_l4if.h
44
lm_path_state_t *path,
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/include/lm_l4if.h
480
IN lm_path_state_t * path);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/include/lm_l4st.h
606
lm_path_state_t *path;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1357
lm_path_state_t *path,
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1364
DbgBreakIf(!(pdev && state_blk && path && neigh && path_const && path_cached && path_delegated));
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1367
path->hdr.state_blk = state_blk;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1368
path->hdr.state_id = STATE_ID_PATH;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1369
path->hdr.status = STATE_STATUS_NORMAL;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1370
d_list_push_tail(&state_blk->path_list, &path->hdr.link);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1371
path->neigh = neigh;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1373
path->num_dependents = 0;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1375
mm_memcpy(&path->path_cached, path_cached, sizeof(path->path_cached));
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1376
mm_memcpy(&path->path_const, path_const, sizeof(path->path_const));
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1377
mm_memcpy(&path->path_delegated, path_delegated, sizeof(path->path_delegated));
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1394
lm_path_state_t *path,
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1401
DbgBreakIf(!(pdev && state_blk && tcp && path && tcp_const && tcp_cached && tcp_delegated));
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1402
DbgBreakIf(path->hdr.state_id != STATE_ID_PATH || path->hdr.status != STATE_STATUS_NORMAL);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1420
tcp->path = path;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1421
path->num_dependents++;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1531
mss = _lm_tcp_calc_mss(tcp->path->path_cached.path_mtu,
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1533
(tcp->path->path_const.ip_version == IP_VERSION_IPV6),
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1536
tcp->path->neigh->neigh_const.vlan_tag != 0);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1578
mss = _lm_tcp_calc_mss(tcp->path->path_cached.path_mtu,
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1580
(tcp->path->path_const.ip_version == IP_VERSION_IPV6),
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1583
tcp->path->neigh->neigh_const.vlan_tag != 0);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1786
_lm_tcp_calc_mss(tcp->path->path_cached.path_mtu,
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1788
(tcp->path->path_const.ip_version == IP_VERSION_IPV6),
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
1791
tcp->path->neigh->neigh_const.vlan_tag != 0);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2248
lm_path_state_t *path = tcp->path;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2249
lm_neigh_state_t *neigh = path->neigh;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2344
ttcp_st->mss = _lm_tcp_calc_mss(tcp->path->path_cached.path_mtu,
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2346
(tcp->path->path_const.ip_version == IP_VERSION_IPV6),
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2349
tcp->path->neigh->neigh_const.vlan_tag != 0) & 0xffff;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2428
lm_path_state_t * path = tcp->path;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2429
lm_neigh_state_t * neigh = path->neigh;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2491
xtcp_ag->mss = _lm_tcp_calc_mss(tcp->path->path_cached.path_mtu,
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2493
(tcp->path->path_const.ip_version == IP_VERSION_IPV6),
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2496
tcp->path->neigh->neigh_const.vlan_tag != 0) & 0xfffc; /* MSS value set in the XStorm should be multiple of 4 */
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2602
xtcp_st->ip_version_1b = (tcp->path->path_const.ip_version == IP_VERSION_IPV4)? 0 : 1;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2603
if (tcp->path->path_const.ip_version == IP_VERSION_IPV4) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2605
xtcp_st->ip_union.padded_ip_v4.ip_v4.ip_remote_addr = path->path_const.u.ipv4.dst_ip;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2606
xtcp_st->ip_union.padded_ip_v4.ip_v4.ip_local_addr = path->path_const.u.ipv4.src_ip;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2613
src_ip[0] = HTON32(path->path_const.u.ipv4.src_ip);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2614
dst_ip[0] = HTON32(path->path_const.u.ipv4.dst_ip);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2618
xtcp_st->ip_union.ip_v6.ip_remote_addr_lo_lo = path->path_const.u.ipv6.dst_ip[0];
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2619
xtcp_st->ip_union.ip_v6.ip_remote_addr_lo_hi = path->path_const.u.ipv6.dst_ip[1];
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2620
xtcp_st->ip_union.ip_v6.ip_remote_addr_hi_lo = path->path_const.u.ipv6.dst_ip[2];
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2621
xtcp_st->ip_union.ip_v6.ip_remote_addr_hi_hi = path->path_const.u.ipv6.dst_ip[3];
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2623
xtcp_st->ip_union.ip_v6.ip_local_addr_lo_lo = path->path_const.u.ipv6.src_ip[0];
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2624
xtcp_st->ip_union.ip_v6.ip_local_addr_lo_hi = path->path_const.u.ipv6.src_ip[1];
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2625
xtcp_st->ip_union.ip_v6.ip_local_addr_hi_lo = path->path_const.u.ipv6.src_ip[2];
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2626
xtcp_st->ip_union.ip_v6.ip_local_addr_hi_hi = path->path_const.u.ipv6.src_ip[3];
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2639
src_ip[i] = HTON32(path->path_const.u.ipv6.src_ip[i]);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2640
dst_ip[i] = HTON32(path->path_const.u.ipv6.dst_ip[i]);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2825
if(tcp->path->path_const.ip_version == IP_VERSION_IPV4) { /* IPV4 */
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2827
tuple.dst_ip[0] = tcp->path->path_const.u.ipv4.dst_ip;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2828
tuple.src_ip[0] = tcp->path->path_const.u.ipv4.src_ip;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2832
tuple.dst_ip[i] = tcp->path->path_const.u.ipv6.dst_ip[i];
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
2833
tuple.src_ip[i] = tcp->path->path_const.u.ipv6.src_ip[i];
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3477
lm_path_state_t * path = (lm_path_state_t *) d_list_peek_head(&pdev->toe_info.state_blk.path_list);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3478
while(path) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3479
if(path->neigh == neigh_state) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3480
DbgBreakIf(path->hdr.status == STATE_STATUS_NORMAL);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3482
path = (lm_path_state_t *) d_list_next_entry(&path->hdr.link);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3557
if (tcp->path->path_const.ip_version == IP_VERSION_IPV6) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3605
if (tcp->path->path_const.ip_version == IP_VERSION_IPV4) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3620
if (tcp->path->path_const.ip_version == IP_VERSION_IPV4) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3710
(tcp->path->path_const.ip_version == IP_VERSION_IPV6),
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3713
tcp->path->neigh->neigh_const.vlan_tag != 0);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3792
DbgBreakIf(tcp->path->hdr.status != STATE_STATUS_NORMAL);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3793
DbgBreakIf(tcp->path->neigh->hdr.status != STATE_STATUS_NORMAL);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3799
DbgBreakIf(tcp->path->neigh->hdr.status != STATE_STATUS_NORMAL);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3807
DbgBreakIf(tcp->path->neigh->hdr.status != STATE_STATUS_NORMAL);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3812
DbgBreakIf(tcp->path->hdr.status != STATE_STATUS_NORMAL);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
3813
DbgBreakIf(tcp->path->neigh->hdr.status != STATE_STATUS_NORMAL);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4077
if( IP_VERSION_IPV4 == tcp->path->path_const.ip_version )
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4081
else if( IP_VERSION_IPV6 == tcp->path->path_const.ip_version )
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4224
if (!lm_fl_reset_is_inprogress(pdev) && (tcp->path != NULL)) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4231
DbgBreakIf(tcp->path->hdr.status != STATE_STATUS_NORMAL);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4232
tcp->path->num_dependents--;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4233
tcp->path = NULL;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4279
lm_path_state_t *path)
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4283
if (path->neigh != NULL) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4285
DbgBreakIf(path->neigh->hdr.status != STATE_STATUS_NORMAL);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4287
path->neigh->num_dependents--;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4288
path->neigh = NULL;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4291
DbgBreakIf(!lm_fl_reset_is_inprogress(pdev) && (path->hdr.status != STATE_STATUS_UPLOAD_DONE));
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4292
d_list_remove_entry(&path->hdr.state_blk->path_list, &path->hdr.link);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4439
ip_version = (tcp->path->path_const.ip_version == IP_VERSION_IPV4)? STATS_IP_4_IDX : STATS_IP_6_IDX;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4601
ip_version = (tcp->path->path_const.ip_version == IP_VERSION_IPV4)? STATS_IP_4_IDX : STATS_IP_6_IDX;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
4841
ip_version = (tcp->path->path_const.ip_version == IP_VERSION_IPV4)? STATS_IP_4_IDX : STATS_IP_6_IDX;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5512
lm_path_state_t * path = NULL;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5585
DbgBreakIf(tcp->path->num_dependents == 0);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5586
tcp->path->num_dependents--;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5591
if( IP_VERSION_IPV4 == tcp->path->path_const.ip_version )
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5595
else if( IP_VERSION_IPV6 == tcp->path->path_const.ip_version )
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5601
if (tcp->path->hdr.status == STATE_STATUS_UPLOAD_PENDING &&
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5602
tcp->path->num_dependents == 0) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5604
path = tcp->path;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5606
tcp->path = NULL;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5638
if (path) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5639
DbgMessage(pdev, INFORMl4sp, "_lm_tcp_comp_upload_request: last tcp dependent of pending path %p\n", path);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5640
_lm_tcp_comp_upload_path_request(pdev, path);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5662
if (tcp_state->path == (lm_path_state_t*)path_state) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
5686
if (tcp_state->path && (tcp_state->path->neigh == (lm_neigh_state_t*)neigh_state)) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
6479
IN lm_path_state_t * path)
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
6483
DbgBreakIf(!(pdev && path));
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
6485
if (path->path_const.ip_version == IP_VERSION_IPV4) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
6486
src_ip_byte = path->path_const.u.ipv4.src_ip & 0x000000FF;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
6488
src_ip_byte = path->path_const.u.ipv6.src_ip[0] & 0x000000FF;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4sp.c
6505
if ((current_tcp->path == NULL) || (lm_tcp_get_src_ip_cam_byte(pdev,current_tcp->path) == src_ip_byte)) {
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/lm_l4tx.c
236
ip_version = (tcp->path->path_const.ip_version == IP_VERSION_IPV4)? STATS_IP_4_IDX : STATS_IP_6_IDX;
usr/src/uts/common/io/bnxe/577xx/hsi/hw/include/clc.h
729
u32 *temp_reading, u8 path, u8 port);
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/bdn.h
178
#define BDN_NETPORT_NOW(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, netport[(papo.path << 1) + papo.port].now))
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/bdn.h
179
#define BDN_NETPORT_ON_PORT_RESET(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, netport[(papo.path << 1) + papo.port].on_port_reset))
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/bdn.h
180
#define BDN_NETPORT_NEXT_OS_BOOT(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, netport[(papo.path << 1) + papo.port].next_os_boot))
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/bdn.h
191
int bd_populate_port_reset_config(int path, int port);
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/multi_thread_def.h
68
u16 path;
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/nvm_map.h
321
#define NVM_OFFSET_PATH(field,path) \
usr/src/uts/common/io/bnxe/577xx/hsi/mcp/nvm_map.h
322
((u32_t)((path == 0) ? (NVM_OFFSET(field)) : (PATH1_NVM_OFFSET(field))))
usr/src/uts/common/io/bnxe/bnxe_mm_l4.c
93
lm_path_state_t * path
usr/src/uts/common/io/bofi.c
4505
char *path = "";
usr/src/uts/common/io/bofi.c
4520
(void) nvlist_lookup_string(detector, FM_FMRI_DEV_PATH, &path);
usr/src/uts/common/io/bofi.c
4534
if (strcmp(path, hppath) != 0)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
104
int sbd_is_zvol(char *path);
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3597
sbd_is_zvol(char *path)
usr/src/uts/common/io/comstar/lu/stmf_sbd/sbd.c
3601
if (SBD_IS_ZVOL(path) == 0)
usr/src/uts/common/io/consconfig_dacf.c
1892
char *path;
usr/src/uts/common/io/consconfig_dacf.c
1902
path = get_alias(name, buf);
usr/src/uts/common/io/consconfig_dacf.c
1903
if (path == NULL)
usr/src/uts/common/io/consconfig_dacf.c
1906
tdev = ddi_pathname_to_dev_t(path);
usr/src/uts/common/io/consconfig_dacf.c
362
i_consconfig_createvp(char *path)
usr/src/uts/common/io/consconfig_dacf.c
368
DPRINTF(DPRINT_L0, "i_consconfig_createvp: %s\n", path);
usr/src/uts/common/io/consconfig_dacf.c
371
if (strchr(path, ':') == NULL) {
usr/src/uts/common/io/consconfig_dacf.c
374
if (i_ddi_prompath_to_devfspath(path, buf) != DDI_SUCCESS) {
usr/src/uts/common/io/consconfig_dacf.c
383
(void) snprintf(fullpath, MAXPATHLEN, "/devices%s", path);
usr/src/uts/common/io/consconfig_dacf.c
405
char *path;
usr/src/uts/common/io/consconfig_dacf.c
420
path = NULL;
usr/src/uts/common/io/consconfig_dacf.c
422
path = consconfig_usb_kb_path;
usr/src/uts/common/io/consconfig_dacf.c
424
path = usb_kb_path;
usr/src/uts/common/io/consconfig_dacf.c
425
if (path != NULL)
usr/src/uts/common/io/consconfig_dacf.c
426
DPRINTF(DPRINT_L0, "usb keyboard path = %s\n", path);
usr/src/uts/common/io/consconfig_dacf.c
428
path = plat_kbdpath();
usr/src/uts/common/io/consconfig_dacf.c
429
if (path != NULL)
usr/src/uts/common/io/consconfig_dacf.c
430
DPRINTF(DPRINT_L0, "keyboard path = %s\n", path);
usr/src/uts/common/io/consconfig_dacf.c
432
path = NULL;
usr/src/uts/common/io/consconfig_dacf.c
434
path = consconfig_usb_ms_path;
usr/src/uts/common/io/consconfig_dacf.c
436
path = usb_ms_path;
usr/src/uts/common/io/consconfig_dacf.c
437
if (path != NULL)
usr/src/uts/common/io/consconfig_dacf.c
438
DPRINTF(DPRINT_L0, "usb mouse path = %s\n", path);
usr/src/uts/common/io/consconfig_dacf.c
440
path = plat_mousepath();
usr/src/uts/common/io/consconfig_dacf.c
441
if (path != NULL)
usr/src/uts/common/io/consconfig_dacf.c
442
DPRINTF(DPRINT_L0, "mouse path = %s\n", path);
usr/src/uts/common/io/consconfig_dacf.c
444
path = plat_stdinpath();
usr/src/uts/common/io/consconfig_dacf.c
445
if (path != NULL)
usr/src/uts/common/io/consconfig_dacf.c
446
DPRINTF(DPRINT_L0, "stdin path = %s\n", path);
usr/src/uts/common/io/consconfig_dacf.c
448
path = plat_stdoutpath();
usr/src/uts/common/io/consconfig_dacf.c
449
if (path != NULL)
usr/src/uts/common/io/consconfig_dacf.c
450
DPRINTF(DPRINT_L0, "stdout path = %s\n", path);
usr/src/uts/common/io/consconfig_dacf.c
452
path = plat_diagpath();
usr/src/uts/common/io/consconfig_dacf.c
453
if (path != NULL)
usr/src/uts/common/io/consconfig_dacf.c
454
DPRINTF(DPRINT_L0, "diag path = %s\n", path);
usr/src/uts/common/io/consconfig_dacf.c
456
path = plat_fbpath();
usr/src/uts/common/io/consconfig_dacf.c
457
if (path != NULL)
usr/src/uts/common/io/consconfig_dacf.c
458
DPRINTF(DPRINT_L0, "fb path = %s\n", path);
usr/src/uts/common/io/consconfig_dacf.c
724
char *path;
usr/src/uts/common/io/consconfig_dacf.c
726
if (plat_virtual_console_path(&path) >= 0) {
usr/src/uts/common/io/consconfig_dacf.c
729
sp->cons_stdin_path = path;
usr/src/uts/common/io/consconfig_dacf.c
730
sp->cons_stdout_path = path;
usr/src/uts/common/io/conskbd.c
1372
char path[MAXPATHLEN + 1];
usr/src/uts/common/io/conskbd.c
1378
path) == DDI_SUCCESS)
usr/src/uts/common/io/conskbd.c
1382
path);
usr/src/uts/common/io/conskbd.c
1387
path) == DDI_SUCCESS)
usr/src/uts/common/io/conskbd.c
1390
" %s", path);
usr/src/uts/common/io/conskbd.c
1848
char path[MAXPATHLEN + 1];
usr/src/uts/common/io/conskbd.c
1931
path) == DDI_SUCCESS) {
usr/src/uts/common/io/conskbd.c
1935
path);
usr/src/uts/common/io/conskbd.c
1940
if (ddi_dev_pathname(devt, S_IFCHR, path) ==
usr/src/uts/common/io/conskbd.c
1944
" debugging: %s", path);
usr/src/uts/common/io/conskbd.c
1971
if (ddi_dev_pathname(devt, S_IFCHR, path) ==
usr/src/uts/common/io/conskbd.c
1974
" not available: %s", path);
usr/src/uts/common/io/devinfo.c
1349
char *path;
usr/src/uts/common/io/devinfo.c
1376
path = kmem_alloc(plen, KM_SLEEP);
usr/src/uts/common/io/devinfo.c
1377
(void) snprintf(path, plen, "devices/%s", all->root_path);
usr/src/uts/common/io/devinfo.c
1378
if (lookupnameat(path, UIO_SYSSPACE, FOLLOW, NULLVPP, &vp, rootdir)) {
usr/src/uts/common/io/devinfo.c
1381
kmem_free(path, plen);
usr/src/uts/common/io/devinfo.c
1384
kmem_free(path, plen);
usr/src/uts/common/io/devinfo.c
1921
goto path;
usr/src/uts/common/io/devinfo.c
1931
path:
usr/src/uts/common/io/devinfo.c
3384
char *path;
usr/src/uts/common/io/devinfo.c
3491
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/io/devinfo.c
3493
ddi_pathname((dev_info_t *)node, path), data);
usr/src/uts/common/io/devinfo.c
3494
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2129
char *path;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2138
path = (char *)fcio->fcio_obuf;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dfc.c
2146
(void) ddi_pathname(hba->dip, path);
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2324
char *path;
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2335
path = (char *)(kmem_zalloc(MAXPATHLEN, KM_SLEEP));
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2350
ddi_pathname(dip, path));
usr/src/uts/common/io/fibre-channel/fca/qlc/ql_api.c
2473
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15646
char *path = NULL;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15684
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15685
if (path == NULL)
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15688
(void) ddi_pathname(dip, path);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
15704
return (path);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1755
char *path;
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1844
path = fcp_get_lun_path(plun);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1845
if (path == NULL) {
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1851
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1855
bcopy(path, map->targetDriver,
usr/src/uts/common/io/fibre-channel/ulp/fcp.c
1903
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/io/hotplug/hpcsvc/hpcsvc.c
908
hpc_find_bus_by_name(char *path)
usr/src/uts/common/io/hotplug/hpcsvc/hpcsvc.c
913
if (strcmp(path, busp->bus_name) == 0)
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2172
hermon_hw_addr_path_t *path, uint_t type)
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2178
_NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*path))
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2180
udav = (hermon_hw_udav_t *)(void *)path;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2182
path->mlid = av->av_src_path;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2183
path->rlid = av->av_dlid;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2187
path->max_stat_rate = 7; break;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2189
path->max_stat_rate = 8; break;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2191
path->max_stat_rate = 9; break;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2193
path->max_stat_rate = 10; break;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2195
path->max_stat_rate = 11; break;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2197
path->max_stat_rate = 12; break;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2199
path->max_stat_rate = 13; break;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2201
path->max_stat_rate = 14; break;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2203
path->max_stat_rate = 15; break;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2205
path->max_stat_rate = 0; break;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2210
path->max_stat_rate = hermon_srate_override;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2226
path->grh = av->av_send_grh;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2228
path->mgid_index = av->av_sgid_ix;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2236
path->mgid_index = ((av->av_port_num - 1) * gidtbl_sz) +
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2253
if ((path->grh) || (type == HERMON_ADDRPATH_QP)) {
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2254
path->flow_label = av->av_flow;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2255
path->tclass = av->av_tclass;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2256
path->hop_limit = av->av_hop;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2257
bcopy(&(av->av_dgid.gid_prefix), &(path->rgid_h),
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2259
bcopy(&(av->av_dgid.gid_guid), &(path->rgid_l),
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2262
path->rgid_l = 0x2;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2263
path->flow_label = 0;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2264
path->tclass = 0;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2265
path->hop_limit = 0;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2266
path->rgid_h = 0;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2287
hermon_get_addr_path(hermon_state_t *state, hermon_hw_addr_path_t *path,
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2292
_NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*path))
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2295
av->av_src_path = path->mlid;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2296
av->av_dlid = path->rlid;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2299
switch (path->max_stat_rate) {
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2331
av->av_send_grh = path->grh;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2333
av->av_sgid_ix = path->mgid_index;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2340
av->av_sgid_ix = path->mgid_index - ((av->av_port_num - 1) *
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2343
av->av_port_num = ((hermon_hw_udav_t *)(void *)path)->portnum;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2345
av->av_flow = path->flow_label;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2346
av->av_tclass = path->tclass;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2347
av->av_hop = path->hop_limit;
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2349
bcopy(&(path->rgid_h), &(av->av_dgid.gid_prefix), sizeof (uint64_t));
usr/src/uts/common/io/ib/adapters/hermon/hermon_misc.c
2350
bcopy(&(path->rgid_l), &(av->av_dgid.gid_guid), sizeof (uint64_t));
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1873
tavor_hw_addr_path_t *path, uint_t type, tavor_qphdl_t qp)
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1878
_NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*path))
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1880
path->ml_path = av->av_src_path;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1881
path->rlid = av->av_dlid;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1882
path->sl = av->av_srvl;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1886
path->portnum = av->av_port_num;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1897
path->max_stat_rate = 0; /* 4x@DDR injection rate */
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1899
path->max_stat_rate = 3; /* 1x@DDR injection rate */
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1901
path->max_stat_rate = 2; /* 4x@SDR injection rate */
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1903
path->max_stat_rate = 1; /* 1x@SDR injection rate */
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1905
path->max_stat_rate = 0; /* Max */
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1911
path->max_stat_rate = 0; /* 4x@SDR injection rate */
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1913
path->max_stat_rate = 1; /* 1x@SDR injection rate */
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1915
path->max_stat_rate = 0; /* Max */
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1943
path->grh = av->av_send_grh;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1945
path->mgid_index = av->av_sgid_ix;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1952
path->mgid_index = ((av->av_port_num - 1) * gidtbl_sz) +
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1955
path->flow_label = av->av_flow;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1956
path->tclass = av->av_tclass;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1957
path->hop_limit = av->av_hop;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1958
path->rgid_h = av->av_dgid.gid_prefix;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1971
if ((path->grh) || (type == TAVOR_ADDRPATH_QP)) {
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1972
path->rgid_l = av->av_dgid.gid_guid;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1974
path->rgid_l = 0x2;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1993
tavor_get_addr_path(tavor_state_t *state, tavor_hw_addr_path_t *path,
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
1998
_NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*path))
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2001
av->av_src_path = path->ml_path;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2002
av->av_port_num = path->portnum;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2003
av->av_dlid = path->rlid;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2004
av->av_srvl = path->sl;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2022
if (path->max_stat_rate == 0) {
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2024
} else if (path->max_stat_rate == 1) {
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2026
} else if (path->max_stat_rate == 2) {
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2028
} else if (path->max_stat_rate == 3) {
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2032
if (path->max_stat_rate == 0) {
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2034
} else if (path->max_stat_rate == 1) {
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2047
av->av_send_grh = path->grh;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2049
av->av_sgid_ix = path->mgid_index;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2057
av->av_sgid_ix = path->mgid_index - ((av->av_port_num - 1) *
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2060
av->av_flow = path->flow_label;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2061
av->av_tclass = path->tclass;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2062
av->av_hop = path->hop_limit;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2063
av->av_dgid.gid_prefix = path->rgid_h;
usr/src/uts/common/io/ib/adapters/tavor/tavor_misc.c
2064
av->av_dgid.gid_guid = path->rgid_l;
usr/src/uts/common/io/ib/clients/eoib/eib_ibt.c
405
ibt_path_info_t path;
usr/src/uts/common/io/ib/clients/eoib/eib_ibt.c
426
bzero(&path, sizeof (ibt_path_info_t));
usr/src/uts/common/io/ib/clients/eoib/eib_ibt.c
428
&attr, 1, &path, NULL);
usr/src/uts/common/io/ib/clients/eoib/eib_ibt.c
429
if ((ret != IBT_SUCCESS) || (path.pi_hca_guid == 0)) {
usr/src/uts/common/io/ib/clients/eoib/eib_ibt.c
439
bcopy(&path.pi_prim_cep_path.cep_adds_vect, &av->av_vect,
usr/src/uts/common/io/ib/clients/eoib/eib_ibt.c
971
ibt_path_info_t path;
usr/src/uts/common/io/ib/clients/eoib/eib_ibt.c
982
&path_attr, 1, &path, &num_paths);
usr/src/uts/common/io/ib/clients/eoib/eib_ibt.c
984
switch (srate = path.pi_prim_cep_path.cep_adds_vect.av_srate) {
usr/src/uts/common/io/ib/clients/eoib/enx_fip.c
252
ibt_path_info_t path;
usr/src/uts/common/io/ib/clients/eoib/enx_fip.c
291
bzero(&path, sizeof (ibt_path_info_t));
usr/src/uts/common/io/ib/clients/eoib/enx_fip.c
293
&attr, 1, &path, NULL);
usr/src/uts/common/io/ib/clients/eoib/enx_fip.c
294
if ((ret != IBT_SUCCESS) || (path.pi_hca_guid == 0)) {
usr/src/uts/common/io/ib/clients/eoib/enx_fip.c
305
bcopy(&path.pi_prim_cep_path.cep_adds_vect, gw_addr->ga_vect,
usr/src/uts/common/io/ib/clients/ibd/ibd.c
2970
ibt_path_info_t path;
usr/src/uts/common/io/ib/clients/ibd/ibd.c
2992
&path_attr, 1, &path, &num_paths) != IBT_SUCCESS)
usr/src/uts/common/io/ib/clients/ibd/ibd.c
3003
switch (path.pi_prim_cep_path.cep_adds_vect.av_srate) {
usr/src/uts/common/io/ib/clients/ibd/ibd_cm.c
2650
ibd_rc_try_connect(ibd_state_t *state, ibd_ace_t *ace, ibt_path_info_t *path)
usr/src/uts/common/io/ib/clients/ibd/ibd_cm.c
2657
status = ibd_rc_connect(state, ace, path,
usr/src/uts/common/io/ib/clients/ibd/ibd_cm.c
2665
status = ibd_rc_connect(state, ace, path,
usr/src/uts/common/io/ib/clients/ibd/ibd_cm.c
2674
(void) ibd_rc_connect(state, ace, path,
usr/src/uts/common/io/ib/clients/ibd/ibd_cm.c
2684
ibd_rc_connect(ibd_state_t *state, ibd_ace_t *ace, ibt_path_info_t *path,
usr/src/uts/common/io/ib/clients/ibd/ibd_cm.c
2731
path->pi_sid =
usr/src/uts/common/io/ib/clients/ibd/ibd_cm.c
2739
open_args.oc_path = path;
usr/src/uts/common/io/ib/clients/iser/iser.c
371
ibt_path_info_t path;
usr/src/uts/common/io/ib/clients/iser/iser.c
377
status = iser_ib_get_paths(&local_ip, &remote_ip, &path, NULL);
usr/src/uts/common/io/ib/clients/iser/iser_ib.c
320
ibt_path_info_t *path, ibt_path_ip_src_t *path_src_ip)
usr/src/uts/common/io/ib/clients/iser/iser_ib.c
331
(void) bzero(path, sizeof (ibt_path_info_t));
usr/src/uts/common/io/ib/clients/iser/iser_ib.c
333
&ipattr, path, NULL, path_src_ip);
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
116
rds_path_up(rds_path_t *path)
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
121
ASSERT(path != NULL);
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
124
RDS_VALIDATE_PATH(path);
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
129
while ((p) && ((p->lnode_ip != path->local.node_ipaddr) ||
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
130
(p->rnode_ip != path->remote.node_ipaddr))) {
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
141
p->lnode_ip = path->local.node_ipaddr;
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
142
p->rnode_ip = path->remote.node_ipaddr;
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
146
p1->libd_ip = path->local.ipaddr;
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
147
p1->ribd_ip = path->remote.ipaddr;
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
150
(void) strcpy(p1->lifname, path->local.ifname);
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
151
(void) strcpy(p1->rifname, path->remote.ifname);
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
166
p1->libd_ip = path->local.ipaddr;
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
167
p1->ribd_ip = path->remote.ipaddr;
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
172
(void) strcpy(p1->lifname, path->local.ifname);
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
173
(void) strcpy(p1->rifname, path->remote.ifname);
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
183
rds_path_down(rds_path_t *path)
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
188
ASSERT(path != NULL);
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
191
RDS_VALIDATE_PATH(path);
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
196
while ((p) && ((p->lnode_ip != path->local.node_ipaddr) ||
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
197
(p->rnode_ip != path->remote.node_ipaddr))) {
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
204
"(0x%x <-> 0x%x)", path->local.node_ipaddr,
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
205
path->remote.node_ipaddr);
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
211
while ((p1) && ((p1->libd_ip != path->local.ipaddr) ||
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
212
(p1->ribd_ip != path->remote.ipaddr))) {
usr/src/uts/common/io/ib/clients/rds/rdsib_sc.c
219
"(0x%x <-> 0x%x)", path->local.ipaddr, path->remote.ipaddr);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
114
rdsv3_path_up(rds_path_t *path)
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
119
ASSERT(path != NULL);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
122
RDS_VALIDATE_PATH(path);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
127
while ((p) && ((p->lnode_ip != path->local.node_ipaddr) ||
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
128
(p->rnode_ip != path->remote.node_ipaddr))) {
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
139
p->lnode_ip = path->local.node_ipaddr;
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
140
p->rnode_ip = path->remote.node_ipaddr;
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
144
p1->libd_ip = path->local.ipaddr;
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
145
p1->ribd_ip = path->remote.ipaddr;
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
148
(void) strcpy(p1->lifname, path->local.ifname);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
149
(void) strcpy(p1->rifname, path->remote.ifname);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
164
p1->libd_ip = path->local.ipaddr;
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
165
p1->ribd_ip = path->remote.ipaddr;
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
170
(void) strcpy(p1->lifname, path->local.ifname);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
171
(void) strcpy(p1->rifname, path->remote.ifname);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
181
rdsv3_path_down(rds_path_t *path)
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
186
ASSERT(path != NULL);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
189
RDS_VALIDATE_PATH(path);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
194
while ((p) && ((p->lnode_ip != path->local.node_ipaddr) ||
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
195
(p->rnode_ip != path->remote.node_ipaddr))) {
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
202
"(0x%x <-> 0x%x)", path->local.node_ipaddr,
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
203
path->remote.node_ipaddr);
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
209
while ((p1) && ((p1->libd_ip != path->local.ipaddr) ||
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
210
(p1->ribd_ip != path->remote.ipaddr))) {
usr/src/uts/common/io/ib/clients/rdsv3/rdsv3_sc.c
217
"(0x%x <-> 0x%x)", path->local.ipaddr, path->remote.ipaddr);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2684
mdi_pathinfo_t *path = NULL, *temp;
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2692
for (path = mdi_get_next_phci_path(dip, path); path; ) {
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2694
"offling path %p", path);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2696
if (MDI_PI_IS_ONLINE(path)) {
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2697
rval2 = mdi_pi_offline(path, NDI_UNCONFIG);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2704
(void *)dip, (void *)path, rval2);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2708
temp = path;
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
2709
path = mdi_get_next_phci_path(dip, path);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
448
char path[MAXPATHLEN];
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
467
(void) strcpy(path, "/devices");
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
468
(void) ddi_pathname(apid_dip, path + strlen(path));
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
469
ssiz = (uint32_t)strlen(path) + 1;
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
471
"%s: len = %x\n\tpath = %s", msg, ssiz, path);
usr/src/uts/common/io/ib/ibnex/ibnex_ioctl.c
490
} else if (ddi_copyout(&path, ioc.buf,
usr/src/uts/common/io/ib/ibtl/ibtl_ibnex.c
188
char path[MAXPATHLEN];
usr/src/uts/common/io/ib/ibtl/ibtl_ibnex.c
236
(void) strcpy(path, "/devices");
usr/src/uts/common/io/ib/ibtl/ibtl_ibnex.c
237
(void) ddi_pathname(child, path + strlen(path));
usr/src/uts/common/io/ib/ibtl/ibtl_ibnex.c
240
"device path = %s", path);
usr/src/uts/common/io/ib/ibtl/ibtl_ibnex.c
242
if (nvlist_add_string(nvl, "devpath", path)) {
usr/src/uts/common/io/ib/ibtl/ibtl_ibnex.c
245
"failed to fill in path %s", path);
usr/src/uts/common/io/ib/ibtl/ibtl_ibnex.c
411
char path[IBTL_IBNEX_STR_LEN];
usr/src/uts/common/io/ib/ibtl/ibtl_ibnex.c
443
(void) snprintf(path, IBTL_IBNEX_STR_LEN,
usr/src/uts/common/io/ib/ibtl/ibtl_ibnex.c
446
(void) strcat(tmp, path);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_path.c
165
ibt_path_info_t path;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_path.c
246
uint8_t max_paths, ibt_path_info_t *path, uint8_t *num_paths_p)
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_path.c
295
*path = path_cachep->path; /* retval */
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_path.c
309
ibt_path_attr_t *attrp, uint8_t max_paths, ibt_path_info_t *path)
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_path.c
347
path_cachep->path = *path;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
1076
IBT_PATH_PKEY, &path_attr, 1, &path, NULL)) !=
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
1081
cm_adds = &path.pi_prim_cep_path.cep_adds_vect;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
1082
*cm_pkt_lt = path.pi_prim_pkt_lt;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
5663
sa_path_record_t *path;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
5775
path = NULL;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
5779
&path);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
5788
} else if ((npaths == 0) || (path == NULL)) {
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
5797
node_lid = path->DLID; /* LID */
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
5803
kmem_free(path, len);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
6106
sa_path_record_t *path;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
6277
path = NULL;
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
6281
&path);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
6291
} else if ((npaths == 0) || (path == NULL)) {
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
6303
nr_req.LID = path->DLID; /* LID */
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
6310
kmem_free(path, len);
usr/src/uts/common/io/ib/mgt/ibcm/ibcm_ti.c
937
ibt_path_info_t path;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4504
sa_path_record_t *path;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4517
&len, &path);
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4521
if (ret == IBMF_SUCCESS && path) {
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4522
ibdm_dump_path_info(path);
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4528
gid_info->gl_dgid_hi = path->DGID.gid_prefix;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4529
gid_info->gl_dgid_lo = path->DGID.gid_guid;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4530
gid_info->gl_sgid_hi = path->SGID.gid_prefix;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4531
gid_info->gl_sgid_lo = path->SGID.gid_guid;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4532
gid_info->gl_p_key = path->P_Key;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4535
gid_info->gl_slid = path->SLID;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4536
gid_info->gl_dlid = path->DLID;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4542
gid_info->gl_SL = path->SL;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
4556
kmem_free(path, len);
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
6811
sa_path_record_t *path;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
6866
IBMF_SAA_PKEY_WC, 0, B_TRUE, &npaths, 0, &path_len, &path);
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
6868
if ((ret != IBMF_SUCCESS) || path == NULL) {
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
6876
gidinfo->gl_dgid_hi = path->DGID.gid_prefix;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
6877
gidinfo->gl_dgid_lo = path->DGID.gid_guid;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
6878
gidinfo->gl_sgid_hi = path->SGID.gid_prefix;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
6879
gidinfo->gl_sgid_lo = path->SGID.gid_guid;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
6880
gidinfo->gl_p_key = path->P_Key;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
6883
gidinfo->gl_slid = path->SLID;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
6884
gidinfo->gl_dlid = path->DLID;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
6888
gidinfo->gl_SL = path->SL;
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
6909
kmem_free(path, path_len);
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
7162
ibdm_dump_path_info(sa_path_record_t *path)
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
7168
path->DGID.gid_prefix, path->DGID.gid_guid);
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
7170
path->SGID.gid_prefix, path->SGID.gid_guid);
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
7172
path->SLID, path->DLID);
usr/src/uts/common/io/ib/mgt/ibdm/ibdm.c
7174
path->P_Key, path->SL);
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
120
p = &dcb_config->tc_config[i].path[direction];
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
142
p = &dcb_config->tc_config[i].path[direction];
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
231
refill[tc] = tc_config[tc].path[direction].data_credits_refill;
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
250
bwgid[tc] = tc_config[tc].path[direction].bwg_id;
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
260
tsa[tc] = tc_config[tc].path[direction].tsa;
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
279
if (prio_mask & tc_config[tc].path[direction].up_to_tc_bitmap)
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
324
p = &dcb_config->tc_config[j].path[i];
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.h
102
struct ixgbe_dcb_tc_path path[2]; /* One each for Tx/Rx */
usr/src/uts/common/io/mac/mac_util.c
1632
(void) strlcpy(driver_path, iget_p->dev[i].path, MAXPATHLEN);
usr/src/uts/common/io/ppm/ppm.c
1056
"level %d\n", cpup->path, level))
usr/src/uts/common/io/ppm/ppm.c
1154
str, ppmd->path, ppmd->level, new))
usr/src/uts/common/io/ppm/ppm.c
1179
str, cpup->path, old, new))
usr/src/uts/common/io/ppm/ppm.c
1623
ppmd->path, *result))
usr/src/uts/common/io/ppm/ppm.c
1982
ppmd->path, cmpt, old, new))
usr/src/uts/common/io/ppm/ppm.c
2026
ppmd->path, *result))
usr/src/uts/common/io/ppm/ppm.c
2125
ppmd->path, cmpt, old, new))
usr/src/uts/common/io/ppm/ppm.c
2169
ppmd->path, *result))
usr/src/uts/common/io/ppm/ppm.c
2473
str, ppmd->path, change, ppmd->level, level, ret))
usr/src/uts/common/io/ppm/ppm.c
542
char *path = NULL;
usr/src/uts/common/io/ppm/ppm.c
552
path = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/io/ppm/ppm.c
554
STRUCT_FGETP(bydev, path), path, MAXPATHLEN, NULL);
usr/src/uts/common/io/ppm/ppm.c
558
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/io/ppm/ppm.c
564
domp = ppm_get_domain_by_dev(path);
usr/src/uts/common/io/ppm/ppm.c
565
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/io/ppm/ppm.c
637
l += strlen(ppmd->path) + 1;
usr/src/uts/common/io/ppm/ppm.c
644
for (s = ppmd->path; *s != 0; )
usr/src/uts/common/io/ppm/ppm.c
680
char *path = NULL;
usr/src/uts/common/io/ppm/ppm.c
693
path = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/io/ppm/ppm.c
695
STRUCT_FGETP(norm, path), path, MAXPATHLEN, NULL);
usr/src/uts/common/io/ppm/ppm.c
699
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/io/ppm/ppm.c
703
domp = ppm_get_domain_by_dev(path);
usr/src/uts/common/io/ppm/ppm.c
704
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/io/ppm/ppm.c
763
char path[MAXNAMELEN];
usr/src/uts/common/io/ppm/ppm.c
836
ppmd->path, ppm_get_ctlstr(reqp->request_type, D_LOCKS)))
usr/src/uts/common/io/ppm/ppm.c
926
(void) ddi_pathname(rdip, path);
usr/src/uts/common/io/ppm/ppm.c
929
if (strcmp(owned->path, path) == 0)
usr/src/uts/common/io/ppm/ppm_subr.c
1130
dc->path = kmem_zalloc((strlen(f) + 1), KM_SLEEP);
usr/src/uts/common/io/ppm/ppm_subr.c
1131
(void) strcpy(dc->path, f);
usr/src/uts/common/io/ppm/ppm_subr.c
1407
"method(%x), ", d->path, d->cmd, d->method))
usr/src/uts/common/io/ppm/ppm_subr.c
160
char *key_path = key_dc->path;
usr/src/uts/common/io/ppm/ppm_subr.c
173
if ((strcmp(dc->path, key_path) == 0) &&
usr/src/uts/common/io/ppm/ppm_subr.c
188
if ((strcmp(dc->path, key_path) == 0) &&
usr/src/uts/common/io/ppm/ppm_subr.c
401
char path[MAXNAMELEN];
usr/src/uts/common/io/ppm/ppm_subr.c
408
PPM_GET_PATHNAME(dip, path);
usr/src/uts/common/io/ppm/ppm_subr.c
438
if (ppm_match_devs(path, dbp) == 0)
usr/src/uts/common/io/ppm/ppm_subr.c
456
char path[MAXNAMELEN];
usr/src/uts/common/io/ppm/ppm_subr.c
463
(void) strcpy(path, dev_path);
usr/src/uts/common/io/ppm/ppm_subr.c
464
if ((wccnt = ppm_count_char(path, '*')) > 2)
usr/src/uts/common/io/ppm/ppm_subr.c
467
for (i = 0, cp = path, pos = 0; i < wccnt; i++, cp++, pos++) {
usr/src/uts/common/io/ppm/ppm_subr.c
479
ASSERT(wcpos[0] < strlen(path));
usr/src/uts/common/io/ppm/ppm_subr.c
483
ASSERT(wcpos[1] == (strlen(path) - 1));
usr/src/uts/common/io/ppm/ppm_subr.c
491
if ((wccnt > 0) && (wcpos[0] < (strlen(path) - 1))) {
usr/src/uts/common/io/ppm/ppm_subr.c
492
cp = path + wcpos[0] + 1;
usr/src/uts/common/io/ppm/ppm_subr.c
50
#define PPM_GET_PATHNAME(dip, path) \
usr/src/uts/common/io/ppm/ppm_subr.c
503
dbp->name = kmem_zalloc((strlen(path) + 1), KM_SLEEP);
usr/src/uts/common/io/ppm/ppm_subr.c
504
(void) strcpy(dbp->name, path);
usr/src/uts/common/io/ppm/ppm_subr.c
51
(void) ddi_pathname((dip), (path)); \
usr/src/uts/common/io/ppm/ppm_subr.c
532
char path[MAXNAMELEN];
usr/src/uts/common/io/ppm/ppm_subr.c
54
(void) strcat((path), "@"); \
usr/src/uts/common/io/ppm/ppm_subr.c
540
(void) strcpy(path, dev_path);
usr/src/uts/common/io/ppm/ppm_subr.c
543
if (strncmp(path, dbp->name, dbp->wcpos[0]) != 0)
usr/src/uts/common/io/ppm/ppm_subr.c
549
cp = path + dbp->wcpos[0];
usr/src/uts/common/io/ppm/ppm_subr.c
55
(void) strcat((path), ddi_get_name_addr((dip)));\
usr/src/uts/common/io/ppm/ppm_subr.c
557
cp = path + dbp->wcpos[0] + 1;
usr/src/uts/common/io/ppm/ppm_subr.c
632
char path[MAXNAMELEN];
usr/src/uts/common/io/ppm/ppm_subr.c
634
ddi_pathname(dip, path), domp->name))
usr/src/uts/common/io/ppm/ppm_subr.c
649
char path[MAXNAMELEN];
usr/src/uts/common/io/ppm/ppm_subr.c
653
PPM_GET_PATHNAME(dip, path);
usr/src/uts/common/io/ppm/ppm_subr.c
655
if (strcmp(path, owned->path) == 0)
usr/src/uts/common/io/ppm/ppm_subr.c
659
new_owned->path = kmem_zalloc(strlen(path) + 1, KM_SLEEP);
usr/src/uts/common/io/ppm/ppm_subr.c
660
(void) strcpy(new_owned->path, path);
usr/src/uts/common/io/ppm/ppm_subr.c
673
char path[MAXNAMELEN];
usr/src/uts/common/io/ppm/ppm_subr.c
679
(void) ddi_pathname(dip, path);
usr/src/uts/common/io/ppm/ppm_subr.c
691
new->path = kmem_zalloc(strlen(path) + 1, KM_SLEEP);
usr/src/uts/common/io/ppm/ppm_subr.c
692
(void) strcpy(new->path, path);
usr/src/uts/common/io/ppm/ppm_subr.c
701
new->path, domp->name, (void *)new))
usr/src/uts/common/io/ppm/ppm_subr.c
775
pdp->path, (void *)pdp))
usr/src/uts/common/io/ppm/ppm_subr.c
780
kmem_free(pdp->path, strlen(pdp->path) + 1);
usr/src/uts/common/io/ppm/ppm_subr.c
842
ASSERT(dc && dc->path);
usr/src/uts/common/io/ppm/ppm_subr.c
849
err = ldi_open_by_name(dc->path, FWRITE|FREAD, kcred, &(dc->lh), li);
usr/src/uts/common/io/ppm/ppm_subr.c
855
dc->path, err);
usr/src/uts/common/io/ppm/ppm_subr.c
957
if (pm_noinvol_detached(owned->path) || owned->initializing)
usr/src/uts/common/io/qede/579xx/hsi/hw/misc_bits.h
254
#define MISC_REG_RESET_BLOCKS(path, _reg_, _bits_) \
usr/src/uts/common/io/qede/579xx/hsi/hw/misc_bits.h
256
REG_WRITE(path, _reg_ ## _CLEAR, _bits_); \
usr/src/uts/common/io/qede/579xx/hsi/hw/misc_bits.h
257
REG_WRITE(path, _reg_ ## _SET, _bits_); \
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
432
#define BDN_NETPORT_NOW(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, netport[(papo.path << 1) + papo.port].now))
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
433
#define BDN_NETPORT_ON_PORT_RESET(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, netport[(papo.path << 1) + papo.port].on_port_reset))
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
434
#define BDN_NETPORT_NEXT_OS_BOOT(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, netport[(papo.path << 1) + papo.port].next_os_boot))
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
435
#define BDN_NETPORT_DIAG_CTRL(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, netport[(papo.path << 1) + papo.port].diag_ctrl))
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
439
#define BDN_FC_NPIV_NOW(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, fc_npiv[(papo.path << 1) + papo.port].now))
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
440
#define BDN_FC_NPIV_NOW_CFG(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, fc_npiv[(papo.path << 1) + papo.port].now.fc_npiv_cfg))
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
441
#define BDN_FC_NPIV_NOW_SETTINGS(papo, idx) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, fc_npiv[(papo.path << 1) + papo.port].now.settings[idx]))
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
442
#define BDN_ISCSI_BOOT_NEXT_DLR_CFG(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, iscsi_boot[(papo.path << 1) + papo.port].next_dlr.cfg))
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
443
#define BDN_ISCSI_BOOT_NEXT_DLR_INITIATOR(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, iscsi_boot[(papo.path << 1) + papo.port].next_dlr.initiator_cfg))
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
444
#define BDN_ISCSI_BOOT_NEXT_DLR_TARGET(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, iscsi_boot[(papo.path << 1) + papo.port].next_dlr.target_params))
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
445
#define BDN_ISCSI_BOOT_NEXT_DLR_AUTHENTICATION(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, iscsi_boot[(papo.path << 1) + papo.port].next_dlr.authentication))
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
446
#define BDN_FCOE_BOOT_NEXT_DLR_CFG(papo) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, fcoe_boot[(papo.path << 1) + papo.port].next_dlr.cfg))
usr/src/uts/common/io/qede/579xx/hsi/mcp/bdn.h
447
#define BDN_FCOE_BOOT_NEXT_DLR_TARGET(papo, idx) (ASN1_P->bdn_addr + OFFSETOF(struct bdn, fcoe_boot[(papo.path << 1) + papo.port].next_dlr.fcoe_targets[idx]))
usr/src/uts/common/io/qede/579xx/hsi/mcp/mcp_private.h
382
struct private_path path[MCP_GLOB_PATH_MAX];
usr/src/uts/common/io/qede/579xx/hsi/mcp/mcp_public.h
1740
struct public_path path[MCP_GLOB_PATH_MAX];
usr/src/uts/common/io/qede/579xx/hsi/mcp/nvm_cfg.h
1936
struct nvm_cfg1_path path[MCP_GLOB_PATH_MAX]; /* 0x228 */
usr/src/uts/common/io/rsm/rsm.c
333
extern void rsmka_enqueue_msgbuf(path_t *path, void *data);
usr/src/uts/common/io/rsm/rsm.c
334
extern void rsmka_dequeue_msgbuf(path_t *path);
usr/src/uts/common/io/rsm/rsm.c
335
extern msgbuf_elem_t *rsmka_gethead_msgbuf(path_t *path);
usr/src/uts/common/io/rsm/rsm.c
3739
path_t *path = (path_t *)arg;
usr/src/uts/common/io/rsm/rsm.c
3746
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
3753
if (path->state != RSMKA_PATH_ACTIVE) {
usr/src/uts/common/io/rsm/rsm.c
3757
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
3758
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
3765
(void) rsmipc_send_controlmsg(path, RSMIPC_MSG_SQREADY_ACK);
usr/src/uts/common/io/rsm/rsm.c
3768
path->sendq_token.msgbuf_avail = RSMIPC_MAX_MESSAGES;
usr/src/uts/common/io/rsm/rsm.c
3771
cv_broadcast(&path->sendq_token.sendq_cv);
usr/src/uts/common/io/rsm/rsm.c
3777
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
3779
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
3794
path_t *path;
usr/src/uts/common/io/rsm/rsm.c
3801
path = rsm_find_path(hdlr_argp->adapter_name,
usr/src/uts/common/io/rsm/rsm.c
3807
if (path == NULL) {
usr/src/uts/common/io/rsm/rsm.c
3813
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
3816
taskq_wait(path->recv_taskq);
usr/src/uts/common/io/rsm/rsm.c
3818
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
3825
path->flags &= ~RSMKA_WAIT_FOR_SQACK;
usr/src/uts/common/io/rsm/rsm.c
3827
if (path->state != RSMKA_PATH_ACTIVE) {
usr/src/uts/common/io/rsm/rsm.c
3829
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
3830
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
3837
" src=%lx:%llx\n", path, msghdr->rsmipc_src, src_hwaddr));
usr/src/uts/common/io/rsm/rsm.c
3843
path->remote_incn = msg->rsmipc_local_incn;
usr/src/uts/common/io/rsm/rsm.c
3844
path->sendq_token.msgbuf_avail = 0;
usr/src/uts/common/io/rsm/rsm.c
3845
path->procmsg_cnt = 0;
usr/src/uts/common/io/rsm/rsm.c
3857
(void) taskq_dispatch(path->recv_taskq,
usr/src/uts/common/io/rsm/rsm.c
3858
rsm_sqready_ack_deferred, path, KM_NOSLEEP);
usr/src/uts/common/io/rsm/rsm.c
3860
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
3875
path_t *path;
usr/src/uts/common/io/rsm/rsm.c
3883
path = rsm_find_path(hdlr_argp->adapter_name,
usr/src/uts/common/io/rsm/rsm.c
3890
if (path == NULL) {
usr/src/uts/common/io/rsm/rsm.c
3896
if ((path->state != RSMKA_PATH_ACTIVE) ||
usr/src/uts/common/io/rsm/rsm.c
3897
!(path->flags & RSMKA_WAIT_FOR_SQACK)) {
usr/src/uts/common/io/rsm/rsm.c
3899
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
3900
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
3910
if (path->local_incn != msghdr->rsmipc_incn) {
usr/src/uts/common/io/rsm/rsm.c
3912
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
3913
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
3921
" src=%lx:%llx\n", path, msghdr->rsmipc_src, src_hwaddr));
usr/src/uts/common/io/rsm/rsm.c
3926
path->flags &= ~RSMKA_WAIT_FOR_SQACK;
usr/src/uts/common/io/rsm/rsm.c
3929
path->remote_incn = msg->rsmipc_local_incn;
usr/src/uts/common/io/rsm/rsm.c
3932
path->sendq_token.msgbuf_avail = RSMIPC_MAX_MESSAGES;
usr/src/uts/common/io/rsm/rsm.c
3935
cv_broadcast(&path->sendq_token.sendq_cv);
usr/src/uts/common/io/rsm/rsm.c
3938
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
3940
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
3955
path_t *path;
usr/src/uts/common/io/rsm/rsm.c
3963
path = rsm_find_path(hdlr_argp->adapter_name,
usr/src/uts/common/io/rsm/rsm.c
3966
if (path == NULL) {
usr/src/uts/common/io/rsm/rsm.c
3973
if (path->state != RSMKA_PATH_ACTIVE) {
usr/src/uts/common/io/rsm/rsm.c
3974
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
3975
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
3977
"rsm_add_credits enter:path=%lx !ACTIVE\n", path));
usr/src/uts/common/io/rsm/rsm.c
3984
if (path->local_incn != msghdr->rsmipc_incn) {
usr/src/uts/common/io/rsm/rsm.c
3986
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
3987
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
3996
"curr credits=%d src=%lx:%llx\n", path, msg->rsmipc_credits,
usr/src/uts/common/io/rsm/rsm.c
3997
path->sendq_token.msgbuf_avail, msghdr->rsmipc_src,
usr/src/uts/common/io/rsm/rsm.c
4002
path->sendq_token.msgbuf_avail += msg->rsmipc_credits;
usr/src/uts/common/io/rsm/rsm.c
4004
ASSERT(path->sendq_token.msgbuf_avail <= RSMIPC_MAX_MESSAGES);
usr/src/uts/common/io/rsm/rsm.c
4007
cv_broadcast(&path->sendq_token.sendq_cv);
usr/src/uts/common/io/rsm/rsm.c
4010
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
4012
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
4887
path_t *path = (path_t *)arg;
usr/src/uts/common/io/rsm/rsm.c
4899
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
4902
head = rsmka_gethead_msgbuf(path);
usr/src/uts/common/io/rsm/rsm.c
4904
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
4944
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
4946
rsmka_dequeue_msgbuf(path);
usr/src/uts/common/io/rsm/rsm.c
4949
if (path->procmsg_cnt < RSMIPC_MAX_MESSAGES)
usr/src/uts/common/io/rsm/rsm.c
4950
path->procmsg_cnt++;
usr/src/uts/common/io/rsm/rsm.c
4952
ASSERT(path->procmsg_cnt <= RSMIPC_MAX_MESSAGES);
usr/src/uts/common/io/rsm/rsm.c
4955
if ((path->state == RSMKA_PATH_ACTIVE) &&
usr/src/uts/common/io/rsm/rsm.c
4956
(path->procmsg_cnt >= RSMIPC_LOTSFREE_MSGBUFS)) {
usr/src/uts/common/io/rsm/rsm.c
4961
e = rsmipc_send_controlmsg(path, RSMIPC_MSG_CREDIT);
usr/src/uts/common/io/rsm/rsm.c
4963
path->procmsg_cnt = 0;
usr/src/uts/common/io/rsm/rsm.c
4973
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
4975
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
4989
path_t *path;
usr/src/uts/common/io/rsm/rsm.c
4999
path = rsm_find_path(hdlr_argp->adapter_name,
usr/src/uts/common/io/rsm/rsm.c
5003
if (path == NULL) {
usr/src/uts/common/io/rsm/rsm.c
5009
if (path->state != RSMKA_PATH_ACTIVE) {
usr/src/uts/common/io/rsm/rsm.c
5010
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
5011
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5014
" path=%lx !ACTIVE\n", path));
usr/src/uts/common/io/rsm/rsm.c
5022
if (path->local_incn != msghdr->rsmipc_incn) {
usr/src/uts/common/io/rsm/rsm.c
5024
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
5025
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5033
rsmka_enqueue_msgbuf(path, data);
usr/src/uts/common/io/rsm/rsm.c
5040
(void) taskq_dispatch(path->recv_taskq,
usr/src/uts/common/io/rsm/rsm.c
5041
rsm_intr_proc_deferred, path, KM_NOSLEEP);
usr/src/uts/common/io/rsm/rsm.c
5043
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5060
path_t *path;
usr/src/uts/common/io/rsm/rsm.c
5068
path = rsm_find_path(hdlr_argp->adapter_name,
usr/src/uts/common/io/rsm/rsm.c
5071
if (path == NULL) {
usr/src/uts/common/io/rsm/rsm.c
5077
if ((path->state == RSMKA_PATH_UP) &&
usr/src/uts/common/io/rsm/rsm.c
5078
(path->flags & RSMKA_SQCREATE_PENDING)) {
usr/src/uts/common/io/rsm/rsm.c
5084
(void) rsmka_do_path_active(path, RSMKA_NO_SLEEP);
usr/src/uts/common/io/rsm/rsm.c
5087
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
5089
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
513
int rsmipc_send_controlmsg(path_t *path, int msgtype);
usr/src/uts/common/io/rsm/rsm.c
5297
path_t *path;
usr/src/uts/common/io/rsm/rsm.c
5406
path = SQ_TOKEN_TO_PATH(sendq_token);
usr/src/uts/common/io/rsm/rsm.c
5407
adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsm.c
5412
"rsmipc_send: path=%lx sendq_hdl=%lx\n", path, ipc_handle));
usr/src/uts/common/io/rsm/rsm.c
5427
req->rsmipc_hdr.rsmipc_incn = path->remote_incn;
usr/src/uts/common/io/rsm/rsm.c
5435
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5442
(path->state == RSMKA_PATH_ACTIVE)) {
usr/src/uts/common/io/rsm/rsm.c
5444
&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5446
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5459
if (path->state != RSMKA_PATH_ACTIVE) {
usr/src/uts/common/io/rsm/rsm.c
5460
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5475
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5481
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5488
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5522
reply->rsmipc_hdr.rsmipc_incn = path->remote_incn;
usr/src/uts/common/io/rsm/rsm.c
5564
req->rsmipc_hdr.rsmipc_incn = path->remote_incn;
usr/src/uts/common/io/rsm/rsm.c
5572
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5579
(path->state == RSMKA_PATH_ACTIVE)) {
usr/src/uts/common/io/rsm/rsm.c
5581
&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5583
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5597
if (path->state != RSMKA_PATH_ACTIVE) {
usr/src/uts/common/io/rsm/rsm.c
5598
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5615
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5621
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5628
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5870
rsmipc_send_controlmsg(path_t *path, int msgtype)
usr/src/uts/common/io/rsm/rsm.c
5884
ASSERT(MUTEX_HELD(&path->mutex));
usr/src/uts/common/io/rsm/rsm.c
5886
adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsm.c
5889
"msgtype=%d %lx:%llx->%lx:%llx procmsg=%d\n", path, msgtype,
usr/src/uts/common/io/rsm/rsm.c
5890
my_nodeid, adapter->hwaddr, path->remote_node,
usr/src/uts/common/io/rsm/rsm.c
5891
path->remote_hwaddr, path->procmsg_cnt));
usr/src/uts/common/io/rsm/rsm.c
5893
if (path->state != RSMKA_PATH_ACTIVE) {
usr/src/uts/common/io/rsm/rsm.c
5899
ipc_handle = path->sendq_token.rsmpi_sendq_handle;
usr/src/uts/common/io/rsm/rsm.c
5904
msg.rsmipc_hdr.rsmipc_incn = path->remote_incn;
usr/src/uts/common/io/rsm/rsm.c
5907
msg.rsmipc_credits = path->procmsg_cnt;
usr/src/uts/common/io/rsm/rsm.c
5909
msg.rsmipc_local_incn = path->local_incn;
usr/src/uts/common/io/rsm/rsm.c
5913
PATH_HOLD_NOLOCK(path);
usr/src/uts/common/io/rsm/rsm.c
5914
SENDQ_TOKEN_HOLD(path);
usr/src/uts/common/io/rsm/rsm.c
5918
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5930
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsm.c
5942
(void) cv_reltimedwait(&path->sendq_token.sendq_cv,
usr/src/uts/common/io/rsm/rsm.c
5943
&path->mutex, drv_usectohz(10000), TR_CLOCK_TICK);
usr/src/uts/common/io/rsm/rsm.c
5946
} while (path->state == RSMKA_PATH_ACTIVE);
usr/src/uts/common/io/rsm/rsm.c
5949
SENDQ_TOKEN_RELE(path);
usr/src/uts/common/io/rsm/rsm.c
5950
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1005
do_path_down(path, 0);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1008
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1011
path->state));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1022
while (path->ref_cnt != 0) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1023
cv_wait(&path->hold_cv, &path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1026
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1034
unlink_sendq_token(&path->sendq_token, path->remote_node);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1037
destroy_path(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1062
path_t *path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1068
path = (path_t *)path_cookie;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1069
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1070
PATH_HOLD_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1072
path = lookup_path(adapter_name, adapter_instance,
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1076
while (path->state == RSMKA_PATH_GOING_DOWN)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1077
cv_wait(&path->hold_cv, &path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1079
DBG_PRINTF((category, RSM_DEBUG, "rsmka_path_up: path = %lx\n", path));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1080
rval = do_path_up(path, flags);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1081
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1106
path_t *path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1112
path = (path_t *)path_cookie;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1113
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1114
PATH_HOLD_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1116
path = lookup_path(adapter_devname, instance, remote_node,
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1120
while (path->state == RSMKA_PATH_GOING_DOWN)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1121
cv_wait(&path->hold_cv, &path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1124
"rsmka_path_down: path = %lx\n", path));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1126
switch (path->state) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1129
path->flags &= ~RSMKA_SQCREATE_PENDING;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1130
path->state = RSMKA_PATH_GOING_DOWN;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1131
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1137
taskq_wait(path->recv_taskq);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1139
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1140
path->state = RSMKA_PATH_DOWN;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1141
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1144
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1147
do_path_down(path, flags);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1154
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1158
"rsm_path_down: invalid path state %d\n", path->state));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1162
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1259
path_t *path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1278
path = SQ_TOKEN_TO_PATH(sendq_token);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1279
PATH_HOLD(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1280
up_token = &path->work_token[RSMKA_IPC_UP_INDEX];
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1281
down_token = &path->work_token[RSMKA_IPC_DOWN_INDEX];
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1295
if (path->state == RSMKA_PATH_ACTIVE) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1309
PATH_RELE(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1312
PATH_RELE(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1334
path = SQ_TOKEN_TO_PATH(sendq_token);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1338
path));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
134
extern int rsmipc_send_controlmsg(path_t *path, int msgtype);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1340
path, RSMKA_USE_COOKIE);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1366
path_t *path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1378
path = SQ_TOKEN_TO_PATH(token);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1379
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1380
if (path->state == RSMKA_PATH_UP) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1381
PATH_HOLD_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1382
(void) rsmka_do_path_active(path, 0);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1384
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1401
rsmka_do_path_active(path_t *path, int flags)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1403
work_token_t *up_token = &path->work_token[RSMKA_IPC_UP_INDEX];
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1404
work_token_t *down_token = &path->work_token[RSMKA_IPC_DOWN_INDEX];
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1414
ASSERT(MUTEX_HELD(&path->mutex));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1421
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1431
if (path->state != RSMKA_PATH_ACTIVE) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1443
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1454
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1456
error = create_ipc_sendq(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1458
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1459
if (path->state != RSMKA_PATH_UP) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1465
sqhdl = path->sendq_token.rsmpi_sendq_handle;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1466
path->sendq_token.rsmpi_sendq_handle = NULL;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1467
adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1468
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1474
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1476
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1480
(uintptr_t)path));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1486
path->flags &= ~RSMKA_SQCREATE_PENDING;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1487
path->state = RSMKA_PATH_ACTIVE;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1492
path->procmsg_cnt = 0;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1493
path->sendq_token.msgbuf_avail = 0;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1499
path->local_incn = (int64_t)tv.tv_sec;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1508
(void) rsmipc_send_controlmsg(path, RSMIPC_MSG_SQREADY);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1510
path->flags |= RSMKA_WAIT_FOR_SQACK;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1523
path->flags |= RSMKA_SQCREATE_PENDING;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1526
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1541
do_path_up(path_t *path, int flags)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1548
ASSERT(MUTEX_HELD(&path->mutex));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1551
if (path->state == RSMKA_PATH_ACTIVE) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1554
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1558
path->state = RSMKA_PATH_UP;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1561
path->msgbuf_head = 0;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1562
path->msgbuf_tail = RSMIPC_MAX_MESSAGES - 1;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1563
path->msgbuf_cnt = 0;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1564
path->procmsg_cnt = 0;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1569
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1571
node_alive = rsmka_check_node_alive(path->remote_node);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1573
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1575
rval = rsmka_do_path_active(path, flags);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1577
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1595
do_path_down(path_t *path, int flags)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1597
work_token_t *up_token = &path->work_token[RSMKA_IPC_UP_INDEX];
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1598
work_token_t *down_token = &path->work_token[RSMKA_IPC_DOWN_INDEX];
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1603
ASSERT(MUTEX_HELD(&path->mutex));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1612
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1622
if (path->state == RSMKA_PATH_ACTIVE) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1633
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1649
path->state = RSMKA_PATH_GOING_DOWN;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1654
path->flags &= ~RSMKA_WAIT_FOR_SQACK;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1660
cv_broadcast(&path->sendq_token.sendq_cv);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1662
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1669
taskq_wait(path->recv_taskq);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1678
path_importer_disconnect(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1690
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1697
if (path->msgbuf_cnt != 0)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1699
(uintptr_t)path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1701
while (path->sendq_token.ref_cnt != 0)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1702
cv_wait(&path->sendq_token.sendq_cv,
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1703
&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1706
if (path->sendq_token.rsmpi_sendq_handle != NULL)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1707
path->local_adapter->rsmpi_ops->rsm_sendq_destroy(
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1708
path->sendq_token.rsmpi_sendq_handle);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1710
path->sendq_token.rsmpi_sendq_handle = NULL;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1712
path->state = RSMKA_PATH_DOWN;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1714
cv_signal(&path->hold_cv);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1733
path_importer_disconnect(path_t *path)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1736
adapter_t *adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1737
rsm_node_id_t remote_node = path->remote_node;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2116
link_path(path_t *path)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2119
adapter_t *adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2129
adapter->next_path = path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2130
path->next_path = first_path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2147
destroy_path(path_t *path)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2150
adapter_t *adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2157
mutex_enter(&path->local_adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2158
ASSERT(path->ref_cnt == 0);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2165
if (path->remote_node == current->remote_node &&
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2166
path->remote_hwaddr == current->remote_hwaddr)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2179
path->local_adapter->listhead->path_count--;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2181
mutex_exit(&path->local_adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2185
taskq_destroy(path->recv_taskq);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2187
kmem_free(path->msgbuf_queue,
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2192
cv_destroy(&path->hold_cv);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2199
rsmka_enqueue_msgbuf(path_t *path, void *data)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2204
ASSERT(MUTEX_HELD(&path->mutex));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2206
ASSERT(path->msgbuf_cnt < RSMIPC_MAX_MESSAGES);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2210
path->msgbuf_cnt++;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2212
if (path->msgbuf_tail == RSMIPC_MAX_MESSAGES - 1) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2213
path->msgbuf_tail = 0;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2215
path->msgbuf_tail++;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2218
path->msgbuf_queue[path->msgbuf_tail].active = B_TRUE;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2220
bcopy(data, &(path->msgbuf_queue[path->msgbuf_tail].msg),
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2233
rsmka_dequeue_msgbuf(path_t *path)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2238
ASSERT(MUTEX_HELD(&path->mutex));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2240
if (path->msgbuf_cnt == 0)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2243
path->msgbuf_cnt--;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2245
path->msgbuf_queue[path->msgbuf_head].active = B_FALSE;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2247
if (path->msgbuf_head == RSMIPC_MAX_MESSAGES - 1) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2248
path->msgbuf_head = 0;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2250
path->msgbuf_head++;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2259
rsmka_gethead_msgbuf(path_t *path)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2263
ASSERT(MUTEX_HELD(&path->mutex));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2265
if (path->msgbuf_cnt == 0)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2268
head = &path->msgbuf_queue[path->msgbuf_head];
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2488
path_t *path = SQ_TOKEN_TO_PATH(token);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2493
ASSERT(path->ref_cnt == 0);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2540
path_t *path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2544
path = SQ_TOKEN_TO_PATH(token);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2545
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2546
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2547
SENDQ_TOKEN_RELE(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2548
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2572
path_t *path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2595
path = SQ_TOKEN_TO_PATH(token);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2597
"path %lx\n", path));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2598
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2599
if (path->state != RSMKA_PATH_ACTIVE ||
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2600
path->ref_cnt == 0) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2601
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2607
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2617
path = SQ_TOKEN_TO_PATH(prev_used);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2619
"path %lx\n", path));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2620
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2621
if (path->state != RSMKA_PATH_ACTIVE ||
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2622
path->ref_cnt == 0) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2623
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2636
PATH_HOLD_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2637
SENDQ_TOKEN_HOLD(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2643
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2662
create_ipc_sendq(path_t *path)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2672
path));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2674
adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2675
token = &path->sendq_token;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2677
srvc_offset = path->remote_hwaddr;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2684
path->remote_hwaddr,
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2800
path_t *path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2873
path = adapter->next_path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2874
while (path != NULL) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2876
rem_cntlr->remote_nodeid = path->remote_node;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2880
path->remote_devinst);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2881
rem_cntlr->remote_hwaddr = path->remote_hwaddr;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2882
rem_cntlr->connection_state = path->state;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2884
path = path->next_path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
312
path_t *path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
353
path = WORK_TOKEN_TO_PATH(work_token, work_opcode -1);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
361
"do_deferred_work:up, path = %lx\n", path));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
362
error = create_ipc_sendq(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
363
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
364
if (path->state != RSMKA_PATH_UP) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
373
sendq_handle = path->sendq_token.
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
375
path->sendq_token.rsmpi_sendq_handle =
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
377
adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
378
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
385
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
396
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
397
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
405
path->flags &= ~RSMKA_SQCREATE_PENDING;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
406
path->state = RSMKA_PATH_ACTIVE;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
412
path->procmsg_cnt = 0;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
413
path->sendq_token.msgbuf_avail = 0;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
419
path->local_incn = (int64_t)tv.tv_sec;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
429
(void) rsmipc_send_controlmsg(path,
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
432
path->flags |= RSMKA_WAIT_FOR_SQACK;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
442
path->flags |= RSMKA_SQCREATE_PENDING;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
454
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
455
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
460
"do_deferred_work:down, path = %lx\n", path));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
472
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
473
path->state = RSMKA_PATH_DOWN;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
477
path->flags &= ~RSMKA_WAIT_FOR_SQACK;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
484
cv_broadcast(&path->sendq_token.sendq_cv);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
486
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
489
taskq_wait(path->recv_taskq);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
496
path_importer_disconnect(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
505
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
512
if (path->msgbuf_cnt != 0)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
515
(uintptr_t)path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
523
while (path->sendq_token.ref_cnt != 0)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
524
cv_wait(&path->sendq_token.sendq_cv,
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
525
&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
527
sendq_handle = path->sendq_token.rsmpi_sendq_handle;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
528
path->sendq_token.rsmpi_sendq_handle = NULL;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
532
adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
538
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
539
mutex_exit(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
870
path_t *path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
877
path = kmem_zalloc(sizeof (path_t), KM_SLEEP);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
894
mutex_init(&path->mutex, NULL, MUTEX_DEFAULT, NULL);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
896
PATH_HOLD(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
897
path->state = RSMKA_PATH_DOWN;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
898
path->remote_node = remote_node;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
899
path->remote_hwaddr = remote_hwaddr;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
900
path->remote_devinst = rem_adapt_instance;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
901
path->local_adapter = adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
907
path->recv_taskq = taskq_create_instance(tq_name, adapter_instance,
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
912
path->msgbuf_queue = (msgbuf_elem_t *)kmem_zalloc(
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
919
cv_init(&path->sendq_token.sendq_cv, NULL, CV_DEFAULT, NULL);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
920
cv_init(&path->hold_cv, NULL, CV_DEFAULT, NULL);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
923
link_path(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
926
link_sendq_token(&path->sendq_token, remote_node);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
931
DBG_PRINTF((category, RSM_DEBUG, "rsmka_add_path: path = %lx\n", path));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
934
return ((void *)path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
948
path_t *path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
953
path = (path_t *)path_cookie;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
954
mutex_enter(&path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
956
path = lookup_path(adapter_name, instance, remote_node,
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
963
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
967
"rsmka_remove_path: path = %lx\n", path));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
969
while (path->state == RSMKA_PATH_GOING_DOWN)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
970
cv_wait(&path->hold_cv, &path->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
974
if (cancel_work(&path->work_token[RSMKA_IPC_UP_INDEX])) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
975
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
977
if (cancel_work(&path->work_token[RSMKA_IPC_DOWN_INDEX])) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
978
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
987
PATH_RELE_NOLOCK(path);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
989
switch (path->state) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
992
path->flags &= ~RSMKA_SQCREATE_PENDING;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
993
path->state = RSMKA_PATH_DOWN;
usr/src/uts/common/io/sata/impl/sata.c
17032
char path[MAXPATHLEN];
usr/src/uts/common/io/sata/impl/sata.c
17036
(void) strcpy(path, "/devices");
usr/src/uts/common/io/sata/impl/sata.c
17049
(void) ddi_pathname(tdip, path + strlen(path));
usr/src/uts/common/io/sata/impl/sata.c
17051
size = strlen(path) + 1;
usr/src/uts/common/io/sata/impl/sata.c
17061
else if (ddi_copyout((void *)&path, ioc->buf, ioc->bufsiz,
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1291
nvf_open(char *path, int flags, int mode)
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
1325
if (nvf_errno = vn_open(path, UIO_SYSSPACE, fflags,
usr/src/uts/common/io/scsi/adapters/iscsi/nvfile.c
94
static int nvf_open(char *path, int flags, int mode);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
1031
(void) sprintf(&mpt->m_phy_info[i].smhba_info.path[0],
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15292
mdi_pathinfo_t *path;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15297
path = mdi_pi_find(pdip, NULL, addr);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15299
return (path);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15305
mdi_pathinfo_t *path;
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15313
path = mdi_pi_find(parent, NULL, addr);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c
15317
return (path);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
122
mpt->m_phy_info[i].smhba_info.path);
usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas_smhba.c
252
(void) strncpy(pname, phyp->path, strlen(phyp->path));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
1755
__func__, pptr->path, SAS_ADDR_PRT(pptr->sas_address));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2017
char path[32];
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2071
amt = sizeof (path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2072
amt = min(sizeof (pwrk->phy->path), amt);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2073
(void) memcpy(path, pwrk->phy->path, amt);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2084
path, pwrk->htag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2100
path, pwrk->htag, pwrk->state, pwrk->onwire);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2104
path, pwrk->htag, pwrk->state);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2804
pptr->path, tgt->target_num, SAS_ADDR_PRT(pptr->sas_address));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
2931
(void) strncpy(pmcs_tbuf_ptr->phy_path, phyp->path, 32);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
3070
__func__, ks_name, (void *)phyp, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c
922
pmcs_phy_name(pwp, phyp, phyp->path, sizeof (phyp->path));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
308
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
330
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
347
__func__, pptr->path, rc);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
382
__func__, pptr->path, rc);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
396
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
411
__func__, pptr->path, rc);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
441
__func__, pptr->path, rc);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
574
__func__, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
657
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
909
__func__, (void *)xp, (void *)phyp, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
939
func_name, reason_string, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_ds.c
958
__func__, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1088
char *path;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1097
path = "????";
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1100
path = pwrk->phy->path;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1113
"(tag 0x%x) %s on %s", __func__, htag, emsg, path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1124
__func__, htag, path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1139
char *path = NULL;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1162
path = pptr->path;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1186
__func__, htag, emsg, path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1197
__func__, htag, path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1213
char *path;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1235
path = pptr->path;
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1238
path = "(no phy)";
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1246
__func__, path, htag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1250
__func__, pwrk->abt_htag, path, htag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1259
path, htag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1264
path, htag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1271
scope ? "all" : "tag", path, htag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_intr.c
1277
scope ? "all" : "tag", htag, path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
174
__func__, xp->phy->path, xp->qdepth);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
186
__func__, xp->phy->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
494
pmcs_latch_status(pwp, sp, status, rp, 18, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_sata.c
496
pmcs_latch_status(pwp, sp, status, NULL, 0, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1068
"%s: Can't reach PHY %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
1928
"now %u", pwrk->phy->path, xp->maxdepth);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2035
"0x%x for %s", __func__, pwrk->htag, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2046
__func__, (void *)sp, pwrk->htag, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2073
__func__, pptr->path, sts);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2133
xp->target_num, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2139
xp->target_num, pptr->path, sts);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2151
slen, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2163
0, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2198
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2212
__func__, (void *)pkt, pptr->path, (void *)pwrk);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2436
pwrk->phy->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2453
pwrk->phy->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
254
"0x%p (%s)", __func__, ua, (void *)tgt, (void *)phyp, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2586
"%s: max depth now %u", pwrk->phy->path, xp->maxdepth);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2642
"0x%x for %s", __func__, pwrk->htag, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2649
__func__, (void *)sp, pwrk->htag, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2692
"recovery", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2703
pwrk->phy->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2716
__func__, (void *)pkt, pptr->path, (void *)pwrk);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2924
phyp->path, pwrk->htag, msg,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2949
pmcs_latch_status(pwp, sp, STATUS_GOOD, NULL, 0, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
2989
pmcs_latch_status(pwp, sp, STATUS_GOOD, NULL, 0, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
3043
pmcs_latch_status(pwp, sp, STATUS_BUSY, NULL, 0, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
3052
0, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
3058
phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
3069
sizeof (parity), phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
3089
uint8_t *snsp, size_t snslen, char *path)
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
3112
pmcs_prt(pwp, PMCS_PRT_DEBUG_SCSI_STATUS, NULL, NULL, c1, path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c
3134
path, status, CMD2PKT(sp)->pkt_cdbp[0] & 0xff,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_smhba.c
257
(void) strncpy(pname, phyp->path, strlen(phyp->path));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1325
__func__, pptr->path, tmp);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1331
__func__, pptr->path, tmp);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1338
__func__, status, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1345
" registered with device_id 0x%x (portid %d)", pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1398
__func__, status, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1401
"%s: device %s deregistered", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1938
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
1997
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2010
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2615
"but no work scheduled", pptr->path, pptr->dead,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2782
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
2924
"will not enumerate", (void *)lphyp, lphyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3202
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3258
__func__, (void *)pptr, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3306
__func__, rphy->path, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3389
"dev %s " SAS_ADDR_FMT " dev id 0x%x lr 0x%x", dtype, pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3505
"(now %d wide)", __func__, pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3506
ctmp->path, ctmp->width);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3531
SAS_ADDR_FMT " dev id 0x%x lr 0x%x", pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3545
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3599
pmcs_phy_name(pwp, ctmp, ctmp->path, sizeof (ctmp->path));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3616
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3638
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3695
"%s: check %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3726
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3738
__func__, pptr->path, pptr->ncphy, nphy);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3765
pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3801
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3847
"(killing)", __func__, ctmp->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3859
__func__, ctmp->path, PHY_TYPE(local));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3871
"(killing)", __func__, ctmp->path, ctmp->atdt,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3884
"changed speed from %s to %s", __func__, ctmp->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3904
ctmp->path, SAS_ADDR_PRT(ctmp->sas_address),
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3914
__func__, ctmp->path, PHY_TYPE(ctmp));
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
3955
__func__, ctmp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4011
"%s: %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4062
"%s: checking %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4134
"%s: subsidiary %s", __func__, ctmp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4171
"%s: Can't reach PHY %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4292
__func__, pptr->path, nag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4305
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4357
__func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4369
"%s has %d phys and %s SAS2", pptr->path, result,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4404
"%s: Can't reach PHY %s", __func__, expander->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4525
__func__, pptr->path, nag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4584
pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4601
__func__, pptr->path, tgt_support, ini_support);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4622
pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4641
"expander (%s)", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4650
pptr->path, tgt_support, ini_support);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4691
"to %s being slower", pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4694
ctmp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4885
"(%s) already in progress.", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4951
__func__, pmcs_get_typename(pptr->dtype), pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
4956
__func__, tag, pmcs_get_typename(pptr->dtype), pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5121
pmcs_tmf2str(tmf), pptr->path, (unsigned long long) lun, tag);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5152
pptr->path, (unsigned long long) lun);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5765
__func__, device_id, pptr->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5766
phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5771
"device id 0x%x", __func__, phyp->path,
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5772
pptr->path, device_id);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
5984
phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6023
tphyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
6114
pmcs_get_typename(pptr->dtype), pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7283
tphyp->path, level);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7318
(void *)phyp, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7322
(void *)phyp, phyp->path, callername, off);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7326
"%s: PHY 0x%p path %s", __func__, (void *)phyp, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7372
(void *)phy_next->parent, phy_next->path, level);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7403
(void *)phyp, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7407
(void *)phyp, phyp->path, callername, off);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7411
"%s: PHY 0x%p path %s", __func__, (void *)phyp, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
760
"%s: Not resetting HBA PHY @ %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
766
"%s: Can't reach PHY %s", __func__, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7752
phyp->path, (void *)phyp->target);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7849
if ((strnlen(phyp->path, 5) >= 5) &&
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7850
(strnlen(ctmp->path, 5) >= 5)) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7851
if (memcmp((void *)&phyp->path[5],
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7852
(void *)&ctmp->path[5],
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7853
strnlen(phyp->path, 32) - 5) == 0) {
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
7870
__func__, (void *)ctmp, phyp->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
809
__func__, mbar, pptr->parent->path, pptr->phynum);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
828
"%s: sending %s to %s", __func__, mbar, pptr->path);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
8339
(void *)phyp, phyp->path, phyp->ref_count);
usr/src/uts/common/io/scsi/adapters/pmcs/pmcs_subr.c
880
pptr->path);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2904
mpapi_path_data_t *path;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2911
path = kmem_zalloc(
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2936
path->resp = res;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2937
path->path_name = pname;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2938
path->valid = 1;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2939
path->hide = 0;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2940
path->prop.id = item->oid.raw_oid;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/mpapi_impl.c
2941
item->idata = (void *)path;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3591
char *path;
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3616
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3619
"to complete", ddi_pathname(vlun->svl_dip, path),
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
3622
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
6268
vhci_ioc_devi_to_path(dev_info_t *dip, caddr_t path)
usr/src/uts/common/io/scsi/adapters/scsi_vhci/scsi_vhci.c
6270
(void) ddi_pathname(dip, path);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi.h
585
void pqi_start_io(pqi_state_t *s, pqi_queue_group_t *qg, pqi_path_t path,
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
105
mutex_enter(&qg->submit_lock[path]);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
108
io->io_queue_path = path;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
109
list_insert_tail(&qg->request_list[path], io);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
113
iq_pi = qg->iq_pi_copy[path];
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
114
while ((io = list_remove_head(&qg->request_list[path])) != NULL) {
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
138
(uintptr_t)qg->iq_ci[path] -
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
141
iq_ci = *qg->iq_ci[path];
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
145
list_insert_head(&qg->request_list[path], io);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
154
next_elem = qg->iq_element_array[path] +
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
171
(void) memcpy(qg->iq_element_array[path],
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
183
if (iq_pi != qg->iq_pi_copy[path]) {
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
184
qg->iq_pi_copy[path] = iq_pi;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
185
ddi_put32(s->s_datap, qg->iq_pi[path], iq_pi);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
189
mutex_exit(&qg->submit_lock[path]);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
196
int path;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
200
path = AIO_PATH;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
203
path = RAID_PATH;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
214
path, io);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_hw.c
92
pqi_start_io(pqi_state_t *s, pqi_queue_group_t *qg, pqi_path_t path,
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_util.c
53
int path = io->io_queue_path;
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_util.c
62
mutex_enter(&qg->submit_lock[path]);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_util.c
64
list_remove(&qg->request_list[path], io);
usr/src/uts/common/io/scsi/adapters/smartpqi/smartpqi_util.c
66
mutex_exit(&qg->submit_lock[path]);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3093
mdi_pathinfo_t *path = NULL;
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3147
(void) scsi_findchild(self, name, addr, 1, &child, &path, NULL);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3148
if (path) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3150
ASSERT(path && (child == NULL));
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3151
mdi_hold_path(path);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3156
ASSERT(child && (path == NULL));
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3164
ASSERT((path == NULL) && (child == NULL));
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3203
if (path) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3204
if (mdi_dc_return_dev_state(path, dcp) != MDI_SUCCESS)
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3290
ASSERT(child || path);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3291
if (path) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3292
if (mdi_pi_online(path, NDI_USER_REQ) != MDI_SUCCESS)
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3301
ASSERT(child || path);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3304
if (path) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3305
if (mdi_pi_offline(path, NDI_USER_REQ) != MDI_SUCCESS)
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3315
ASSERT(child || path);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3318
if (path) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3320
if (mdi_pi_offline(path, NDI_USER_REQ) == MDI_SUCCESS) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3322
mdi_rele_path(path);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3325
(void) mdi_pi_free(path, 0);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3326
path = NULL;
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3346
if (path) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3348
mdi_rele_path(path);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
3350
if (path || child)
usr/src/uts/common/io/scsi/impl/scsi_hba.c
5894
char path[MAXPATHLEN];
usr/src/uts/common/io/scsi/impl/scsi_hba.c
5942
(void) ddi_pathname(self, path);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
5943
(void) strlcat(path, "/luns@", sizeof (path));
usr/src/uts/common/io/scsi/impl/scsi_hba.c
5944
(void) strlcat(path, taddr, sizeof (path));
usr/src/uts/common/io/scsi/impl/scsi_hba.c
5945
(void) strlcat(path, ",*", sizeof (path));
usr/src/uts/common/io/scsi/impl/scsi_hba.c
5955
lunchg2->lunchg2_path = strdup(path);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6718
mdi_pathinfo_t *path = NULL;
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6730
(void) scsi_findchild(self, NULL, addr, 0, &child, &path, NULL);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6732
if ((child == NULL) && (path == NULL)) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6751
ASSERT(child && (path == NULL));
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6773
} else if (path) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6774
ASSERT(path && (child == NULL));
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6786
mdi_hold_path(path);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6787
spathname = mdi_pi_spathname(path); /* valid after free */
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6789
rval = mdi_pi_offline(path, 0);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6793
if (mdi_pi_device_remove(path))
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6797
mdi_rele_path(path);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6799
(void) mdi_pi_free(path, 0);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
6804
ASSERT((path == NULL) && (child == NULL));
usr/src/uts/common/io/scsi/impl/scsi_hba.c
8925
char path[MAXPATHLEN];
usr/src/uts/common/io/scsi/impl/scsi_hba.c
8927
(void) ddi_pathname(self, path);
usr/src/uts/common/io/scsi/impl/scsi_hba.c
8928
(void) strlcat(path, "/luns@", sizeof (path));
usr/src/uts/common/io/scsi/impl/scsi_hba.c
8929
(void) strlcat(path, tgt_addr, sizeof (path));
usr/src/uts/common/io/scsi/impl/scsi_hba.c
8930
(void) strlcat(path, ",*", sizeof (path));
usr/src/uts/common/io/scsi/impl/scsi_hba.c
8936
if (strcmp(path, p->lunchg2_path) == 0) {
usr/src/uts/common/io/scsi/impl/scsi_hba.c
8943
lunchg2->lunchg2_path = strdup(path);
usr/src/uts/common/io/scsi/impl/scsi_subr.c
1277
char *ddi_pathname(dev_info_t *dip, char *path);
usr/src/uts/common/io/scsi/targets/sd.c
18811
char *path;
usr/src/uts/common/io/scsi/targets/sd.c
18823
path = kmem_alloc(MAXPATHLEN, km_flag);
usr/src/uts/common/io/scsi/targets/sd.c
18824
if (path == NULL) {
usr/src/uts/common/io/scsi/targets/sd.c
18831
n = snprintf(path, MAXPATHLEN, "/devices");
usr/src/uts/common/io/scsi/targets/sd.c
18832
(void) ddi_pathname(SD_DEVINFO(un), path + n);
usr/src/uts/common/io/scsi/targets/sd.c
18833
n = strlen(path);
usr/src/uts/common/io/scsi/targets/sd.c
18834
n += snprintf(path + n, MAXPATHLEN - n, ":x");
usr/src/uts/common/io/scsi/targets/sd.c
18844
path[n - 1] = c;
usr/src/uts/common/io/scsi/targets/sd.c
18846
err = nvlist_add_string(attr_list, DEV_PHYS_PATH, path);
usr/src/uts/common/io/scsi/targets/sd.c
18863
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/io/sysmsg.c
329
bind_consadm_conf(char *path)
usr/src/uts/common/io/sysmsg.c
338
if (vn_open(path, UIO_SYSSPACE, FREAD, 0, &vp, 0, 0) != 0)
usr/src/uts/common/io/sysmsg.c
343
path, err);
usr/src/uts/common/io/sysmsg.c
354
path, err);
usr/src/uts/common/io/usb/hcd/ehci/ehci_xfer.c
1018
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/io/usb/hcd/ehci/ehci_xfer.c
1027
"%s", ddi_pathname(dip, path));
usr/src/uts/common/io/usb/hcd/ehci/ehci_xfer.c
1029
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/io/usb/usba/hubdi.c
8209
char *path;
usr/src/uts/common/io/usb/usba/hubdi.c
8225
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/io/usb/usba/hubdi.c
8226
(void) strcpy(path, "/devices");
usr/src/uts/common/io/usb/usba/hubdi.c
8227
(void) ddi_pathname(child_dip, path + strlen(path));
usr/src/uts/common/io/usb/usba/hubdi.c
8228
size = strlen(path) + 1;
usr/src/uts/common/io/usb/usba/hubdi.c
8231
"%s: device path=%s size=%d", msg, path, size);
usr/src/uts/common/io/usb/usba/hubdi.c
8248
} else if (ddi_copyout((void *)path,
usr/src/uts/common/io/usb/usba/hubdi.c
8256
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/krtld/kobj.c
1095
char *path = kobj_zalloc(MAXPATHLEN, KM_WAIT);
usr/src/uts/common/krtld/kobj.c
1101
mach_modpath(path, filename);
usr/src/uts/common/krtld/kobj.c
1102
if (*path != '\0')
usr/src/uts/common/krtld/kobj.c
1103
(void) strcat(path, " ");
usr/src/uts/common/krtld/kobj.c
1104
return (strcat(path, MOD_DEFPATH));
usr/src/uts/common/krtld/kobj.c
1727
char *path = NULL, *depstr = NULL;
usr/src/uts/common/krtld/kobj.c
1746
if (path == NULL)
usr/src/uts/common/krtld/kobj.c
1747
path = kobj_alloc(MAXPATHLEN, KM_WAIT);
usr/src/uts/common/krtld/kobj.c
1748
if ((_lib = expand_libmacro(libname, path,
usr/src/uts/common/krtld/kobj.c
1749
path)) != NULL)
usr/src/uts/common/krtld/kobj.c
1791
if (path != NULL)
usr/src/uts/common/krtld/kobj.c
1792
kobj_free(path, MAXPATHLEN);
usr/src/uts/common/krtld/kobj.c
4475
expand_libmacro(char *tail, char *path, char *pathend)
usr/src/uts/common/krtld/kobj.c
4517
if ((file = kobj_open_path(path, 1, 1)) !=
usr/src/uts/common/krtld/kobj.c
4520
return (path);
usr/src/uts/common/krtld/kobj.c
4532
return (expand_libmacro(p2, path, pathend));
usr/src/uts/common/krtld/kobj.c
4567
file = kobj_open_path(path, 1, 1);
usr/src/uts/common/krtld/kobj.c
4574
if (!more_macro || (expand_libmacro(endp, path,
usr/src/uts/common/krtld/kobj.c
4576
return (path);
usr/src/uts/common/krtld/kobj.c
706
char path[MAXPATHLEN];
usr/src/uts/common/krtld/kobj.c
785
path, path)) != NULL)
usr/src/uts/common/nfs/nfs4.h
386
char *path;
usr/src/uts/common/nfs/nfs_cmd.h
60
char path[MAXPATHLEN];
usr/src/uts/common/os/core.c
100
why, path);
usr/src/uts/common/os/core.c
103
fn, pid, why, error, path);
usr/src/uts/common/os/core.c
86
core_log(struct core_globals *cg, int error, const char *why, const char *path,
usr/src/uts/common/os/core.c
96
if (path == NULL)
usr/src/uts/common/os/dacf_clnt.c
216
char *path, *pathp;
usr/src/uts/common/os/dacf_clnt.c
246
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/dacf_clnt.c
247
if ((pathp = ddi_pathname(devi, path)) == NULL)
usr/src/uts/common/os/dacf_clnt.c
251
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/dacf_clnt.c
269
char *path, *pathp;
usr/src/uts/common/os/dacf_clnt.c
300
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/dacf_clnt.c
301
if ((pathp = ddi_pathname(devi, path)) == NULL)
usr/src/uts/common/os/dacf_clnt.c
305
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/dacf_clnt.c
311
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/dacf_clnt.c
312
if ((pathp = ddi_pathname(devi, path)) == NULL)
usr/src/uts/common/os/dacf_clnt.c
324
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/ddi_hp_impl.c
307
ddihp_modctl(int hp_op, char *path, char *cn_name, uintptr_t arg,
usr/src/uts/common/os/ddi_hp_impl.c
316
dip = e_ddi_hold_devi_by_path(path, 0);
usr/src/uts/common/os/ddi_hp_impl.c
322
"cn_name %s arg %p rval %p\n", (void *)dip, hp_op, path, cn_name,
usr/src/uts/common/os/ddifm.c
352
char path[MAXPATHLEN];
usr/src/uts/common/os/ddifm.c
422
(void) strlcpy(path, devpath, sizeof (path));
usr/src/uts/common/os/ddifm.c
426
(void) strcpy(path, "/");
usr/src/uts/common/os/ddifm.c
428
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/ddifm.c
431
(void) strlcat(path, ":", sizeof (path));
usr/src/uts/common/os/ddifm.c
432
(void) strlcat(path, minor_name, sizeof (path));
usr/src/uts/common/os/ddifm.c
435
fm_fmri_dev_set(detector, FM_DEV_SCHEME_VERSION, NULL, path,
usr/src/uts/common/os/devcfg.c
1019
"of node %s failed", path);
usr/src/uts/common/os/devcfg.c
1027
"of node %s failed", path);
usr/src/uts/common/os/devcfg.c
1034
i_ddi_strdup(path, KM_SLEEP);
usr/src/uts/common/os/devcfg.c
1047
"of node %s failed", path);
usr/src/uts/common/os/devcfg.c
1064
"%s 0x%p\n", path, (void *)dip));
usr/src/uts/common/os/devcfg.c
1087
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/devcfg.c
4426
static char path[MAXPATHLEN];
usr/src/uts/common/os/devcfg.c
4434
ddi_pathname(dip, path));
usr/src/uts/common/os/devcfg.c
4503
char *path;
usr/src/uts/common/os/devcfg.c
4518
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/devcfg.c
4519
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/devcfg.c
4520
pmajor = ddi_name_to_major(path);
usr/src/uts/common/os/devcfg.c
4523
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/devcfg.c
4787
i_ndi_devi_report_status_change(dev_info_t *dip, char *path)
usr/src/uts/common/os/devcfg.c
4816
if (path == NULL) {
usr/src/uts/common/os/devcfg.c
4817
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/devcfg.c
4819
ddi_pathname(dip, path), ddi_driver_name(dip),
usr/src/uts/common/os/devcfg.c
4821
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/devcfg.c
4824
path, ddi_driver_name(dip),
usr/src/uts/common/os/devcfg.c
5034
char *path;
usr/src/uts/common/os/devcfg.c
5049
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/devcfg.c
5050
(void) i_log_devfs_remove_devinfo(ddi_pathname(dip, path),
usr/src/uts/common/os/devcfg.c
5053
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/devcfg.c
5214
char *path;
usr/src/uts/common/os/devcfg.c
5216
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/devcfg.c
5217
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/devcfg.c
5218
log_and_free_brevq(path, brevq);
usr/src/uts/common/os/devcfg.c
5219
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/devcfg.c
5231
char *path;
usr/src/uts/common/os/devcfg.c
5234
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/devcfg.c
5235
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/devcfg.c
5236
p = path + strlen(path);
usr/src/uts/common/os/devcfg.c
5241
log_and_free_brevq(path, brn->brn_child);
usr/src/uts/common/os/devcfg.c
5245
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/devcfg.c
5256
char *path;
usr/src/uts/common/os/devcfg.c
5258
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/devcfg.c
5268
(void) ddi_deviname(child, path);
usr/src/uts/common/os/devcfg.c
5269
if (strcmp(path, brn->brn_deviname) == 0)
usr/src/uts/common/os/devcfg.c
5283
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/devcfg.c
5284
(void) strcat(path, brn->brn_deviname);
usr/src/uts/common/os/devcfg.c
5285
log_and_free_brevq(path, brn->brn_child);
usr/src/uts/common/os/devcfg.c
5311
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/devcfg.c
6047
char *path = NULL;
usr/src/uts/common/os/devcfg.c
6156
path = i_ddi_strdup(
usr/src/uts/common/os/devcfg.c
6173
(void) i_log_devfs_remove_devinfo(path,
usr/src/uts/common/os/devcfg.c
6181
if (path)
usr/src/uts/common/os/devcfg.c
6182
strfree(path);
usr/src/uts/common/os/devcfg.c
6928
path_to_major(char *path)
usr/src/uts/common/os/devcfg.c
6936
major = ddi_name_to_major(path);
usr/src/uts/common/os/devcfg.c
6939
path, ddi_major_to_name(major)));
usr/src/uts/common/os/devcfg.c
6947
nodeid = prom_finddevice(path);
usr/src/uts/common/os/devcfg.c
6958
"path_to_major: can't bind <%s>\n", path));
usr/src/uts/common/os/devcfg.c
6970
path, p));
usr/src/uts/common/os/devcfg.c
6997
char *path;
usr/src/uts/common/os/devcfg.c
7051
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/devcfg.c
7052
if (e_ddi_majorinstance_to_path(major, instance, path) == 0) {
usr/src/uts/common/os/devcfg.c
7053
dip = e_ddi_hold_devi_by_path(path, flags);
usr/src/uts/common/os/devcfg.c
7066
(strcmp(path, ddi_pathname(dip, vpath)) != 0))) {
usr/src/uts/common/os/devcfg.c
7072
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/devcfg.c
7177
e_ddi_hold_devi_by_path(char *path, int flags)
usr/src/uts/common/os/devcfg.c
7184
return (resolve_pathname(path, &dip, NULL, NULL) ? NULL : dip);
usr/src/uts/common/os/devcfg.c
7807
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/devcfg.c
7809
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/devcfg.c
7812
hdl->mtc_op, major, flags, path, rv);
usr/src/uts/common/os/devcfg.c
7813
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/devcfg.c
8398
char *path;
usr/src/uts/common/os/devcfg.c
8404
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/devcfg.c
8405
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/devcfg.c
8407
if (strcmp(path, cons_array[i]) == 0) {
usr/src/uts/common/os/devcfg.c
8412
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/devcfg.c
8569
e_ddi_retire_device(char *path, char **cons_array)
usr/src/uts/common/os/devcfg.c
8579
dip = e_ddi_hold_devi_by_path(path, 0);
usr/src/uts/common/os/devcfg.c
8591
" NOP. Just returning SUCCESS. path=%s", path));
usr/src/uts/common/os/devcfg.c
8633
RIO_DEBUG((CE_NOTE, "retire: subtree retire notify: path = %s", path));
usr/src/uts/common/os/devcfg.c
8656
RIO_DEBUG((CE_WARN, "retire failed: path = %s", path));
usr/src/uts/common/os/devcfg.c
8658
RIO_DEBUG((CE_NOTE, "retire succeeded: path = %s", path));
usr/src/uts/common/os/devcfg.c
8669
char *path = (char *)arg;
usr/src/uts/common/os/devcfg.c
8671
ASSERT(path);
usr/src/uts/common/os/devcfg.c
8673
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/devcfg.c
8681
(void *)dip, path));
usr/src/uts/common/os/devcfg.c
8684
RIO_DEBUG((CE_NOTE, "Unfenced device: %s", path));
usr/src/uts/common/os/devcfg.c
8715
e_ddi_unretire_device(char *path)
usr/src/uts/common/os/devcfg.c
8722
ASSERT(path);
usr/src/uts/common/os/devcfg.c
8723
ASSERT(*path == '/');
usr/src/uts/common/os/devcfg.c
8725
if (strcmp(path, "/") == 0) {
usr/src/uts/common/os/devcfg.c
8727
"device unretire: %s", path);
usr/src/uts/common/os/devcfg.c
8737
find_dip.fd_path = path;
usr/src/uts/common/os/devcfg.c
8750
"device unretire: %s", path);
usr/src/uts/common/os/devcfg.c
876
char *path;
usr/src/uts/common/os/devcfg.c
8827
char *path;
usr/src/uts/common/os/devcfg.c
8842
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/devcfg.c
8844
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/devcfg.c
8847
(void *)dip, path));
usr/src/uts/common/os/devcfg.c
885
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/devcfg.c
8853
if (e_ddi_device_retired(path) == 0) {
usr/src/uts/common/os/devcfg.c
8854
RIO_VERBOSE((CE_NOTE, "device is NOT retired: path=%s", path));
usr/src/uts/common/os/devcfg.c
8856
(void) e_ddi_unretire_device(path);
usr/src/uts/common/os/devcfg.c
8857
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/devcfg.c
886
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/devcfg.c
8861
RIO_DEBUG((CE_NOTE, "attach: device is retired: path=%s", path));
usr/src/uts/common/os/devcfg.c
8866
RIO_DEBUG((CE_NOTE, "attach: Mark and fence subtree: path=%s", path));
usr/src/uts/common/os/devcfg.c
8867
(void) mark_and_fence(dip, path);
usr/src/uts/common/os/devcfg.c
8870
ddi_walk_devs(ddi_get_child(dip), mark_and_fence, path);
usr/src/uts/common/os/devcfg.c
8874
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/devcfg.c
888
path, (void *)dip));
usr/src/uts/common/os/devcfg.c
9051
path_to_dip(char *path)
usr/src/uts/common/os/devcfg.c
9057
pdup = ddi_strdup(path, KM_NOSLEEP);
usr/src/uts/common/os/devcfg.c
9059
cmn_err(CE_PANIC, "path strdup failed: %s", path);
usr/src/uts/common/os/devcfg.c
9065
kmem_free(pdup, strlen(path) + 1);
usr/src/uts/common/os/devcfg.c
909
path, (void *)dip));
usr/src/uts/common/os/devcfg.c
942
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/devcfg.c
953
"node %s failed", path);
usr/src/uts/common/os/devcfg.c
956
"%s 0x%p%s\n", path, (void *)dip,
usr/src/uts/common/os/devcfg.c
994
major = ddi_name_to_major(path);
usr/src/uts/common/os/devid_cache.c
1066
e_devid_cache_path_to_devid(char *path, char *ua,
usr/src/uts/common/os/devid_cache.c
1075
if (path == NULL || *path == '\0' || (ua && *ua == '\0') ||
usr/src/uts/common/os/devid_cache.c
1084
pathlen = strlen(path);
usr/src/uts/common/os/devid_cache.c
1110
if (strcmp(cand, path) == 0)
usr/src/uts/common/os/devid_cache.c
1122
if (strncmp(path, cand, pathlen) != 0)
usr/src/uts/common/os/devid_cache.c
1177
devid_log(char *fmt, ddi_devid_t devid, char *path)
usr/src/uts/common/os/devid_cache.c
1180
if (path) {
usr/src/uts/common/os/devid_cache.c
1181
cmn_err(CE_CONT, "%s: %s %s\n", fmt, path, devidstr);
usr/src/uts/common/os/devid_cache.c
517
char *path, *fullpath;
usr/src/uts/common/os/devid_cache.c
528
path = kmem_alloc(pathlen, KM_SLEEP);
usr/src/uts/common/os/devid_cache.c
529
bcopy(devpath, path, pathlen);
usr/src/uts/common/os/devid_cache.c
542
path = kmem_alloc(pathlen, KM_SLEEP);
usr/src/uts/common/os/devid_cache.c
543
bcopy(fullpath, path, pathlen);
usr/src/uts/common/os/devid_cache.c
547
DEVID_LOG_REG(("register", devid, path));
usr/src/uts/common/os/devid_cache.c
558
if (strcmp(path, np->nvp_devpath) == 0) {
usr/src/uts/common/os/devid_cache.c
560
"register: %s path match\n", path));
usr/src/uts/common/os/devid_cache.c
572
kmem_free(path, pathlen);
usr/src/uts/common/os/devid_cache.c
586
"devid %s does not match\n", path));
usr/src/uts/common/os/devid_cache.c
597
path, devid_stored, devid_new);
usr/src/uts/common/os/devid_cache.c
613
"devid register: %s devid match\n", path));
usr/src/uts/common/os/devid_cache.c
619
kmem_free(path, pathlen);
usr/src/uts/common/os/devid_cache.c
631
new_nvp->nvp_devpath = path;
usr/src/uts/common/os/devid_cache.c
694
char *path = mdi_pi_pathname(pip);
usr/src/uts/common/os/devid_cache.c
697
path));
usr/src/uts/common/os/devid_cache.c
882
char *path, **paths;
usr/src/uts/common/os/devid_cache.c
919
path = i_ddi_strdup(paths[i], KM_SLEEP);
usr/src/uts/common/os/devid_cache.c
920
paths[i] = path;
usr/src/uts/common/os/driver_lyr.c
3517
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/driver_lyr.c
3518
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/driver_lyr.c
3520
"for device %s", path);
usr/src/uts/common/os/driver_lyr.c
3521
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/driver_lyr.c
3680
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/driver_lyr.c
3681
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/driver_lyr.c
3683
"for device %s", path);
usr/src/uts/common/os/driver_lyr.c
3684
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/driver_lyr.c
548
ldi_vp_from_name(const char *path, vnode_t **vpp)
usr/src/uts/common/os/driver_lyr.c
554
if ((path == NULL) || (vpp == NULL))
usr/src/uts/common/os/driver_lyr.c
571
ASSERT(*path == '/');
usr/src/uts/common/os/driver_lyr.c
572
ret = lookupnameat(path + 1, UIO_SYSSPACE, FOLLOW, NULLVPP,
usr/src/uts/common/os/driver_lyr.c
601
if (strncmp(path, "/devices/", 9) == 0)
usr/src/uts/common/os/driver_lyr.c
602
path += strlen("/devices");
usr/src/uts/common/os/driver_lyr.c
610
ret = resolve_pathname(path, &dip, &dev, &spec_type);
usr/src/uts/common/os/exec.c
148
char *path = NULL;
usr/src/uts/common/os/exec.c
159
path = kmem_alloc(allocsize, KM_NOSLEEP);
usr/src/uts/common/os/exec.c
160
if (path == NULL) {
usr/src/uts/common/os/exec.c
165
bcopy(vp->v_path, path, allocsize);
usr/src/uts/common/os/exec.c
173
if (path == NULL) {
usr/src/uts/common/os/exec.c
176
path = kmem_alloc(allocsize, KM_NOSLEEP);
usr/src/uts/common/os/exec.c
177
if (path == NULL) {
usr/src/uts/common/os/exec.c
181
(void) snprintf(path, allocsize, "/dev/fd/%d", fd);
usr/src/uts/common/os/exec.c
184
error = exec_common(path, argp, envp, vp, EBA_NONE);
usr/src/uts/common/os/exec.c
186
kmem_free(path, allocsize);
usr/src/uts/common/os/exec.c
772
char path[MAXNAMELEN];
usr/src/uts/common/os/exec.c
776
bzero(path, sizeof (path));
usr/src/uts/common/os/exec.c
779
ret = vnodetopath(pp->p_zone->zone_rootvp, vp, path,
usr/src/uts/common/os/exec.c
780
sizeof (path), cred);
usr/src/uts/common/os/exec.c
783
if ((ret != 0) || (ret == 0 && path[0] == '\0'))
usr/src/uts/common/os/exec.c
789
"file=%s", cred->cr_uid, path);
usr/src/uts/common/os/exec.c
803
pp->p_zone->zone_rootpath, path + 1);
usr/src/uts/common/os/fio.c
1574
fgetstartvp(int fd, char *path, vnode_t **startvpp)
usr/src/uts/common/os/fio.c
1580
if (fd == AT_FDCWD && path == NULL)
usr/src/uts/common/os/fio.c
1589
if (path == NULL)
usr/src/uts/common/os/fio.c
1591
else if (copyin(path, &startchar, sizeof (char)))
usr/src/uts/common/os/fio.c
1620
fsetattrat(int fd, char *path, int flags, struct vattr *vap)
usr/src/uts/common/os/fio.c
1632
if ((error = fgetstartvp(fd, path, &startvp)) != 0)
usr/src/uts/common/os/fio.c
1640
if (path != NULL) {
usr/src/uts/common/os/fio.c
1641
if (error = lookupnameat(path, UIO_USERSPACE,
usr/src/uts/common/os/firmload.c
79
char *path;
usr/src/uts/common/os/firmload.c
86
path = kmem_asprintf("firmware/%s/%s", drvname, imgname);
usr/src/uts/common/os/firmload.c
89
fh->fh_buf = kobj_open_path(path, 1, 0);
usr/src/uts/common/os/firmload.c
90
strfree(path);
usr/src/uts/common/os/flock.c
199
static void path(lock_descriptor_t *, lock_descriptor_t *);
usr/src/uts/common/os/flock.c
4479
path(lock1, lock2);
usr/src/uts/common/os/flock.c
4491
path(lock1, lock2);
usr/src/uts/common/os/instance.c
1054
in_make_path(char *path)
usr/src/uts/common/os/instance.c
1064
if (path == NULL || path[0] != '/')
usr/src/uts/common/os/instance.c
1067
(void) snprintf(buf, sizeof (buf), "%s", path);
usr/src/uts/common/os/instance.c
1517
in_walk_instances(in_node_t *np, char *path, char *this,
usr/src/uts/common/os/instance.c
1535
rval = (*f)(path, np, dp, arg);
usr/src/uts/common/os/instance.c
1543
path, next, f, arg);
usr/src/uts/common/os/instance.c
1564
char *path;
usr/src/uts/common/os/instance.c
1566
path = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/instance.c
1570
rval = in_walk_instances(root->in_child, path, path, f, arg);
usr/src/uts/common/os/instance.c
1574
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/instance.c
1579
e_ddi_path_to_instance(char *path)
usr/src/uts/common/os/instance.c
1583
np = in_make_path(path);
usr/src/uts/common/os/instance.c
411
char *path;
usr/src/uts/common/os/instance.c
445
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/instance.c
446
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/instance.c
448
(void) strcat(path, "@");
usr/src/uts/common/os/instance.c
449
(void) strcat(path, addr);
usr/src/uts/common/os/instance.c
451
plen = strlen(path);
usr/src/uts/common/os/instance.c
474
(strcmp(ibp[ibpi], path + plen - ibplen) == 0))
usr/src/uts/common/os/instance.c
510
(void) strcpy(ipath, path);
usr/src/uts/common/os/instance.c
519
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/instance.c
531
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/instance.c
629
mkpathname(char *path, in_node_t *np, int len)
usr/src/uts/common/os/instance.c
63
static in_node_t *in_make_path(char *path);
usr/src/uts/common/os/instance.c
636
if (mkpathname(path, np->in_parent, len) == DDI_FAILURE)
usr/src/uts/common/os/instance.c
639
len_needed = strlen(path);
usr/src/uts/common/os/instance.c
653
(void) sprintf(path+strlen(path), "/%s", np->in_node_name);
usr/src/uts/common/os/instance.c
655
(void) sprintf(path+strlen(path), "/%s@%s", np->in_node_name,
usr/src/uts/common/os/instance.c
666
e_ddi_instance_majorinstance_to_path(major_t major, uint_t inst, char *path)
usr/src/uts/common/os/instance.c
682
*path = 0;
usr/src/uts/common/os/instance.c
683
ret = mkpathname(path, dp->ind_node, MAXPATHLEN);
usr/src/uts/common/os/klpd.c
791
get_path(char *buf, const char *path, int len)
usr/src/uts/common/os/klpd.c
797
len = strlen(path);
usr/src/uts/common/os/klpd.c
799
if (*path == '/' && len < MAXPATHLEN) {
usr/src/uts/common/os/klpd.c
800
(void) strcpy(buf, path);
usr/src/uts/common/os/klpd.c
816
while (len > 3 && strncmp("../", path, 3) == 0) {
usr/src/uts/common/os/klpd.c
818
path += 3;
usr/src/uts/common/os/klpd.c
832
(void) strcpy(buf + lc + 1, path);
usr/src/uts/common/os/modctl.c
1000
if (path == NULL)
usr/src/uts/common/os/modctl.c
1007
retval = copyinstr(path, pathbuf, MAXPATHLEN, &pathsz);
usr/src/uts/common/os/modctl.c
1074
modctl_is_retired(char *path, int *statep)
usr/src/uts/common/os/modctl.c
1082
if (path == NULL || statep == NULL)
usr/src/uts/common/os/modctl.c
1086
error = copyinstr(path, pathbuf, MAXPATHLEN, &pathsz);
usr/src/uts/common/os/modctl.c
1104
modctl_unretire(char *path)
usr/src/uts/common/os/modctl.c
1112
if (path == NULL)
usr/src/uts/common/os/modctl.c
1116
retval = copyinstr(path, pathbuf, MAXPATHLEN, &pathsz);
usr/src/uts/common/os/modctl.c
1263
char *path = NULL;
usr/src/uts/common/os/modctl.c
1340
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/modctl.c
1368
(void) ddi_pathname_minor(dmdp, path);
usr/src/uts/common/os/modctl.c
1369
len = strlen(path) + 1;
usr/src/uts/common/os/modctl.c
1370
*(path + len) = '\0'; /* set double termination */
usr/src/uts/common/os/modctl.c
1379
if (copyout(path, upaths, len + 1)) {
usr/src/uts/common/os/modctl.c
1403
if (path)
usr/src/uts/common/os/modctl.c
1404
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/modctl.c
1588
modctl_get_fbname(char *path)
usr/src/uts/common/os/modctl.c
1601
if (copyout(pathname, path, strlen(pathname)+1) != 0) {
usr/src/uts/common/os/modctl.c
1615
modctl_reread_dacf(char *path)
usr/src/uts/common/os/modctl.c
1622
if (path == NULL) {
usr/src/uts/common/os/modctl.c
1625
if (copyinstr(path, filename, MAXPATHLEN, 0) != 0) {
usr/src/uts/common/os/modctl.c
1972
modctl_inst_walker(const char *path, in_node_t *np, in_drv_t *dp, void *arg)
usr/src/uts/common/os/modctl.c
1986
pe->pe_dir = i_ddi_strdup((char *)path, KM_SLEEP);
usr/src/uts/common/os/modctl.c
2083
char *path;
usr/src/uts/common/os/modctl.c
2099
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/modctl.c
2103
(void) snprintf(path, MAXPATHLEN, "%s/%s",
usr/src/uts/common/os/modctl.c
2105
devi = e_ddi_hold_devi_by_path(path, 0);
usr/src/uts/common/os/modctl.c
2114
path, err);
usr/src/uts/common/os/modctl.c
2125
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/modctl.c
2150
char *path;
usr/src/uts/common/os/modctl.c
2159
path = kmem_zalloc(pathlen + 1, KM_SLEEP);
usr/src/uts/common/os/modctl.c
2160
if ((ret = copyinstr(upath, path, pathlen, NULL)) == 0) {
usr/src/uts/common/os/modctl.c
2161
ret = sdev_modctl_devexists(path);
usr/src/uts/common/os/modctl.c
2164
kmem_free(path, pathlen + 1);
usr/src/uts/common/os/modctl.c
2292
modctl_hp(int subcmd, const char *path, char *cn_name, uintptr_t arg,
usr/src/uts/common/os/modctl.c
2299
if (path == NULL)
usr/src/uts/common/os/modctl.c
2303
error = copyinstr(path, devpath, MAXPATHLEN, &pathsz);
usr/src/uts/common/os/modctl.c
2746
char path[MOD_MAXPATH];
usr/src/uts/common/os/modctl.c
2747
size_t n, resid = sizeof (path);
usr/src/uts/common/os/modctl.c
2748
char *p = path;
usr/src/uts/common/os/modctl.c
2783
mp = mod_hold_installed_mod(path, 1, 1, &rc);
usr/src/uts/common/os/modctl.c
774
char *path;
usr/src/uts/common/os/modctl.c
784
vfsp = path_to_vfs(pathvfs[i].path);
usr/src/uts/common/os/modctl.c
811
pathvfs[i].path = tmp;
usr/src/uts/common/os/modctl.c
991
modctl_retire(char *path, char *uconstraints, size_t ulen)
usr/src/uts/common/os/modsysfile.c
1506
setbootpath(char *path)
usr/src/uts/common/os/modsysfile.c
1509
(void) copystr(path, rootfs.bo_name, BO_MAXOBJNAME, NULL);
usr/src/uts/common/os/sunddi.c
10000
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/sunddi.c
10017
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/sunddi.c
10022
(void) ddi_pathname(rdip, path);
usr/src/uts/common/os/sunddi.c
10031
if (devfs_walk(path, visit_dvnode, &bsa)) {
usr/src/uts/common/os/sunddi.c
10033
"devfs walk failed for: %s", path);
usr/src/uts/common/os/sunddi.c
10034
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/sunddi.c
10039
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/sunddi.c
6561
pathname_work(dev_info_t *dip, char *path)
usr/src/uts/common/os/sunddi.c
6566
*path = '\0';
usr/src/uts/common/os/sunddi.c
6567
return (path);
usr/src/uts/common/os/sunddi.c
6569
(void) pathname_work(ddi_get_parent(dip), path);
usr/src/uts/common/os/sunddi.c
6570
bp = path + strlen(path);
usr/src/uts/common/os/sunddi.c
6572
return (path);
usr/src/uts/common/os/sunddi.c
6576
ddi_pathname(dev_info_t *dip, char *path)
usr/src/uts/common/os/sunddi.c
6578
return (pathname_work(dip, path));
usr/src/uts/common/os/sunddi.c
6582
ddi_pathname_minor(struct ddi_minor_data *dmdp, char *path)
usr/src/uts/common/os/sunddi.c
6585
*path = '\0';
usr/src/uts/common/os/sunddi.c
6587
(void) ddi_pathname(dmdp->dip, path);
usr/src/uts/common/os/sunddi.c
6589
(void) strcat(path, ":");
usr/src/uts/common/os/sunddi.c
6590
(void) strcat(path, dmdp->ddm_name);
usr/src/uts/common/os/sunddi.c
6593
return (path);
usr/src/uts/common/os/sunddi.c
6597
pathname_work_obp(dev_info_t *dip, char *path)
usr/src/uts/common/os/sunddi.c
6607
(void) strcpy(path, obp_path);
usr/src/uts/common/os/sunddi.c
6609
return (path);
usr/src/uts/common/os/sunddi.c
6619
obp_path = pathname_work_obp(ddi_get_parent(dip), path);
usr/src/uts/common/os/sunddi.c
6626
bp = path + strlen(path);
usr/src/uts/common/os/sunddi.c
6630
return (path);
usr/src/uts/common/os/sunddi.c
6640
ddi_pathname_obp(dev_info_t *dip, char *path)
usr/src/uts/common/os/sunddi.c
6643
if (dip == NULL || path == NULL)
usr/src/uts/common/os/sunddi.c
6647
return (pathname_work_obp(dip, path));
usr/src/uts/common/os/sunddi.c
6702
ddi_dev_pathname(dev_t devt, int spec_type, char *path)
usr/src/uts/common/os/sunddi.c
6717
(void) snprintf(path, MAXPATHLEN, "%s:%s", CLONE_PATH, drvname);
usr/src/uts/common/os/sunddi.c
6726
if (e_ddi_majorinstance_to_path(major, instance, path) != DDI_SUCCESS)
usr/src/uts/common/os/sunddi.c
6732
if ((dip = e_ddi_hold_devi_by_path(path, 0)) == NULL)
usr/src/uts/common/os/sunddi.c
6740
(void) strcat(path, ":");
usr/src/uts/common/os/sunddi.c
6741
(void) strcat(path, minorname);
usr/src/uts/common/os/sunddi.c
6748
ASSERT(strlen(path) < MAXPATHLEN);
usr/src/uts/common/os/sunddi.c
6751
fail: *path = 0;
usr/src/uts/common/os/sunddi.c
6760
e_ddi_majorinstance_to_path(major_t major, int instance, char *path)
usr/src/uts/common/os/sunddi.c
6766
*path = 0;
usr/src/uts/common/os/sunddi.c
6772
path) == DDI_SUCCESS) {
usr/src/uts/common/os/sunddi.c
6773
ASSERT(strlen(path) < MAXPATHLEN);
usr/src/uts/common/os/sunddi.c
6797
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/sunddi.c
6801
ASSERT(strlen(path) < MAXPATHLEN);
usr/src/uts/common/os/sunddi.c
6808
*path = 0;
usr/src/uts/common/os/sunddi.c
7639
ddi_debug_devid_devts_per_path(char *path, int ndevs, dev_t *devs)
usr/src/uts/common/os/sunddi.c
7643
cmn_err(CE_CONT, "dev_ts per path %s\n", path);
usr/src/uts/common/os/sunddi.c
9226
char *path = (char *)arg;
usr/src/uts/common/os/sunddi.c
9232
(void) ddi_pathname(dip, path);
usr/src/uts/common/os/sunddi.c
9234
"node: %s", path);
usr/src/uts/common/os/sunddi.c
9247
char *path;
usr/src/uts/common/os/sunddi.c
9277
if (set_infant_dip_offline(dip, resp->path) == DDI_SUCCESS)
usr/src/uts/common/os/sunddi.c
9297
branch_set_offline(dev_info_t *dip, char *path)
usr/src/uts/common/os/sunddi.c
9307
if (set_infant_dip_offline(dip, path) == DDI_SUCCESS)
usr/src/uts/common/os/sunddi.c
9318
res.path = path;
usr/src/uts/common/os/sunddi.c
9337
char *path;
usr/src/uts/common/os/sunddi.c
9363
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/sunddi.c
9404
if (dip == NULL || branch_set_offline(dip, path)
usr/src/uts/common/os/sunddi.c
9429
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/sunddi.c
9441
char *path;
usr/src/uts/common/os/sunddi.c
9548
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/os/sunddi.c
9549
ret = set_infant_dip_offline(dip, path);
usr/src/uts/common/os/sunddi.c
9551
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/os/sunddi.c
9994
char *path;
usr/src/uts/common/os/sunmdi.c
2930
static char path[MAXPATHLEN]; /* mdi_pathmap_mutex protects */
usr/src/uts/common/os/sunmdi.c
2968
(void) ddi_pathname(ph->ph_dip, path);
usr/src/uts/common/os/sunmdi.c
2969
(void) sprintf(path + strlen(path), "/%s@%s",
usr/src/uts/common/os/sunmdi.c
2971
if (mod_hash_find(mdi_pathmap_bypath, (mod_hash_key_t)path, &hv) == 0) {
usr/src/uts/common/os/sunmdi.c
2976
path_persistent = i_ddi_strdup(path, KM_SLEEP);
usr/src/uts/common/os/sunmdi.c
2985
(void) snprintf(path, sizeof(path), "%s%d/%s@%s",
usr/src/uts/common/os/sunmdi.c
2988
path_persistent = i_ddi_strdup(path, KM_SLEEP);
usr/src/uts/common/os/sunmdi.c
3036
char *path;
usr/src/uts/common/os/sunmdi.c
3043
path = (char *)hv;
usr/src/uts/common/os/sunmdi.c
3045
path = NULL;
usr/src/uts/common/os/sunmdi.c
3047
return (path);
usr/src/uts/common/os/sunmdi.c
3058
char *path;
usr/src/uts/common/os/sunmdi.c
3065
path = (char *)hv;
usr/src/uts/common/os/sunmdi.c
3067
path = NULL;
usr/src/uts/common/os/sunmdi.c
3069
return (path);
usr/src/uts/common/os/sunmdi.c
3327
mdi_pathinfo_t *path = NULL;
usr/src/uts/common/os/sunmdi.c
3332
path = ph->ph_path_head;
usr/src/uts/common/os/sunmdi.c
3333
while (path != NULL) {
usr/src/uts/common/os/sunmdi.c
3334
if (path == pip) {
usr/src/uts/common/os/sunmdi.c
3337
prev = path;
usr/src/uts/common/os/sunmdi.c
3338
path = (mdi_pathinfo_t *)MDI_PI(path)->pi_phci_link;
usr/src/uts/common/os/sunmdi.c
3341
if (path) {
usr/src/uts/common/os/sunmdi.c
3344
MDI_PI(prev)->pi_phci_link = MDI_PI(path)->pi_phci_link;
usr/src/uts/common/os/sunmdi.c
3347
(mdi_pathinfo_t *)MDI_PI(path)->pi_phci_link;
usr/src/uts/common/os/sunmdi.c
3349
if (ph->ph_path_tail == path) {
usr/src/uts/common/os/sunmdi.c
3370
mdi_pathinfo_t *path;
usr/src/uts/common/os/sunmdi.c
3375
path = ct->ct_path_head;
usr/src/uts/common/os/sunmdi.c
3376
while (path != NULL) {
usr/src/uts/common/os/sunmdi.c
3377
if (path == pip) {
usr/src/uts/common/os/sunmdi.c
3380
prev = path;
usr/src/uts/common/os/sunmdi.c
3381
path = (mdi_pathinfo_t *)MDI_PI(path)->pi_client_link;
usr/src/uts/common/os/sunmdi.c
3384
if (path) {
usr/src/uts/common/os/sunmdi.c
3388
MDI_PI(path)->pi_client_link;
usr/src/uts/common/os/sunmdi.c
3391
(mdi_pathinfo_t *)MDI_PI(path)->pi_client_link;
usr/src/uts/common/os/sunmdi.c
3393
if (ct->ct_path_tail == path) {
usr/src/uts/common/os/sunmdi.c
3396
if (ct->ct_path_last == path) {
usr/src/uts/common/os/sunmdi.c
4137
mdi_pi_pathname_obp(mdi_pathinfo_t *pip, char *path)
usr/src/uts/common/os/sunmdi.c
4140
if ((pip == NULL) || (path == NULL))
usr/src/uts/common/os/sunmdi.c
4144
(void) strcpy(path, obp_path);
usr/src/uts/common/os/sunmdi.c
4147
path = NULL;
usr/src/uts/common/os/sunmdi.c
4149
return (path);
usr/src/uts/common/os/sunmdi.c
8573
bus_config_one_phci_child(char *path)
usr/src/uts/common/os/sunmdi.c
8580
devnm = strrchr(path, '/');
usr/src/uts/common/os/sunmdi.c
8587
if ((ph_dip = e_ddi_hold_devi_by_path(path, 0)) != NULL) {
usr/src/uts/common/os/sunmdi.c
9435
mdi_vhcache_pathinfo_t *path, *nxt_path;
usr/src/uts/common/os/sunmdi.c
9444
path = client->cct_cpi_head;
usr/src/uts/common/os/sunmdi.c
9446
for ( ; path != NULL; path = nxt_path) {
usr/src/uts/common/os/sunmdi.c
9447
nxt_path = path->cpi_next;
usr/src/uts/common/os/sunmdi.c
9448
if ((path->cpi_cphci->cphci_phci != NULL) &&
usr/src/uts/common/os/sunmdi.c
9449
(path->cpi_pip != NULL)) {
usr/src/uts/common/os/sunmdi.c
9450
enqueue_tail_vhcache_pathinfo(client, path);
usr/src/uts/common/os/sunmdi.c
9451
} else if (path->cpi_pip != NULL) {
usr/src/uts/common/os/sunmdi.c
9453
free_vhcache_pathinfo(path);
usr/src/uts/common/os/sunpm.c
1943
pm_free_keeper(char *path, int pwr)
usr/src/uts/common/os/sunpm.c
1950
if (strcmp(dp->pdr_keeper, path) != 0)
usr/src/uts/common/os/sunpm.c
1956
pm_unkeeps(dp->pdr_kept_count, path, dp->pdr_kept_paths, pwr);
usr/src/uts/common/os/sunpm.c
1975
pm_free_kept(char *path)
usr/src/uts/common/os/sunpm.c
1990
if (strcmp(dp->pdr_kept_paths[i], path) == 0) {
usr/src/uts/common/os/sunpm.c
1991
pm_unkepts(path, dp->pdr_keeper);
usr/src/uts/common/os/sunpm.c
2021
pm_free_keeps(char *path, int pwr)
usr/src/uts/common/os/sunpm.c
2029
PMD(PMD_KEEPS, ("%s: %s\n", pmf, path))
usr/src/uts/common/os/sunpm.c
2038
pm_free_keeper(path, pwr);
usr/src/uts/common/os/sunpm.c
2042
pm_free_kept(path);
usr/src/uts/common/os/sunpm.c
2051
pm_is_kept(char *path)
usr/src/uts/common/os/sunpm.c
2060
if (strcmp(dp->pdr_kept_paths[i], path) == 0)
usr/src/uts/common/os/sunpm.c
5173
char *path = 0;
usr/src/uts/common/os/sunpm.c
5177
path = ddi_pathname(dip, pathbuf);
usr/src/uts/common/os/sunpm.c
5181
if (strcmp(rp->ptr_physpath, path) != 0)
usr/src/uts/common/os/sunpm.c
5326
char *path;
usr/src/uts/common/os/sunpm.c
5357
path =
usr/src/uts/common/os/sunpm.c
5361
(void) strcpy(path, keptp);
usr/src/uts/common/os/sunpm.c
5362
paths[0] = path;
usr/src/uts/common/os/sunpm.c
5393
path =
usr/src/uts/common/os/sunpm.c
5395
(void) strcpy(path, keptp);
usr/src/uts/common/os/sunpm.c
5396
dp->pdr_kept_paths[i] = path;
usr/src/uts/common/os/sunpm.c
5422
path =
usr/src/uts/common/os/sunpm.c
5426
(void) strcpy(path, keptp);
usr/src/uts/common/os/sunpm.c
5427
paths[0] = path;
usr/src/uts/common/os/sunpm.c
7192
pm_record_invol_path(char *path, int flags, int noinvolpm, int volpmd,
usr/src/uts/common/os/sunpm.c
7201
plen = strlen(path) + 1;
usr/src/uts/common/os/sunpm.c
7209
(void) strcpy(np->ni_path, path);
usr/src/uts/common/os/sunpm.c
7216
np->ni_major = pm_path_to_major(path);
usr/src/uts/common/os/sunpm.c
7222
int comp = strcmp(path, ip->ni_path);
usr/src/uts/common/os/sunpm.c
7225
pmf, path, ip->ni_path))
usr/src/uts/common/os/sunpm.c
7240
panic("%s already in pm_noinvol list", path);
usr/src/uts/common/os/sunpm.c
7248
PMD(PMD_NOINVOL, ("%s: %s append after %s\n", pmf, path,
usr/src/uts/common/os/sunpm.c
7253
PMD(PMD_NOINVOL, ("%s: %s added to end-of-list\n", pmf, path))
usr/src/uts/common/os/sunpm.c
7524
char *path;
usr/src/uts/common/os/sunpm.c
7545
path = ip->ni_path;
usr/src/uts/common/os/sunpm.c
7546
if (path != NULL && !(ip->ni_flags & PMC_DRIVER_REMOVED)) {
usr/src/uts/common/os/sunpm.c
7565
PMD(PMD_NOINVOL, ("%s: holding %s\n", pmf, path))
usr/src/uts/common/os/sunpm.c
7566
dip = e_ddi_hold_devi_by_path(path, 0);
usr/src/uts/common/os/sunpm.c
7569
pmf, path, (int)maj))
usr/src/uts/common/os/sunpm.c
7571
"driver", path);
usr/src/uts/common/os/sunpm.c
7575
PMD(PMD_DHR, ("%s: release %s\n", pmf, path))
usr/src/uts/common/os/sunpm.c
7882
pm_path_to_major(char *path)
usr/src/uts/common/os/sunpm.c
7889
PMD(PMD_NOINVOL, ("%s: %s\n", pmf, path))
usr/src/uts/common/os/sunpm.c
7891
np = strrchr(path, '/');
usr/src/uts/common/os/sunpm.c
7895
np = path;
usr/src/uts/common/os/sunpm.c
7903
ret = i_path_to_major(path, np);
usr/src/uts/common/os/sunpm.c
8096
i_path_to_major(char *path, char *leaf_name)
usr/src/uts/common/os/sunpm.c
8101
if ((maj = path_to_major(path)) == DDI_MAJOR_T_NONE) {
usr/src/uts/common/os/sunpm.c
8218
adjust_ancestors(char *path, int wasvolpmd)
usr/src/uts/common/os/sunpm.c
8227
size_t pathbuflen = strlen(path) + 1;
usr/src/uts/common/os/sunpm.c
8233
PMD(PMD_NOINVOL, ("%s: %s wasvolpmd %d\n", pmf, path, wasvolpmd))
usr/src/uts/common/os/sunpm.c
8235
(void) strcpy(pathbuf, path);
usr/src/uts/common/os/sunpm.c
8248
path, dip);
usr/src/uts/common/os/sunpm.c
8322
pm_noinvol_process_ancestors(char *path)
usr/src/uts/common/os/sunpm.c
8328
if (strstr(path, lp->ni_path) &&
usr/src/uts/common/os/sunpm.c
8347
pm_noinvol_detached(char *path)
usr/src/uts/common/os/sunpm.c
8355
if (strcmp(path, ip->ni_path) == 0) {
usr/src/uts/common/os/sunpm.c
8358
"%s\n", pmf, path))
usr/src/uts/common/os/sunpm.c
8366
path))
usr/src/uts/common/os/sunpm.c
9108
pm_noinvol_update(int subcmd, int volpmd, int wasvolpmd, char *path,
usr/src/uts/common/os/sunpm.c
9116
args.bpni_path = path;
usr/src/uts/common/os/sunpm.c
9123
path, (void *)tdip, subcmd, wasvolpmd, volpmd))
usr/src/uts/common/os/swapgeneric.c
1053
path_to_devinfo(char *path)
usr/src/uts/common/os/swapgeneric.c
1062
fn.nodeid = prom_finddevice(path);
usr/src/uts/common/os/swapgeneric.c
1083
path, p));
usr/src/uts/common/os/swapgeneric.c
795
load_parent_drivers(dev_info_t *dip, char *path)
usr/src/uts/common/os/swapgeneric.c
804
if (path)
usr/src/uts/common/os/swapgeneric.c
805
major = ddi_name_to_major(path);
usr/src/uts/common/os/swapgeneric.c
818
if (path) {
usr/src/uts/common/os/swapgeneric.c
819
p = strrchr(path, '/');
usr/src/uts/common/os/swapgeneric.c
83
static dev_info_t *path_to_devinfo(char *path);
usr/src/uts/common/os/tlabel.c
551
getlabel(const char *path, bslabel_t *label_p)
usr/src/uts/common/os/tlabel.c
558
if (path == NULL)
usr/src/uts/common/os/tlabel.c
562
if ((error = copyinstr(path, spath, MAXPATHLEN, NULL)) != 0) {
usr/src/uts/common/os/zone.c
3189
zone_find_by_path(const char *path)
usr/src/uts/common/os/zone.c
3195
if (path == NULL) {
usr/src/uts/common/os/zone.c
3202
ASSERT(*path == '/');
usr/src/uts/common/os/zone.c
3206
if (ZONE_PATH_VISIBLE(path, zone))
usr/src/uts/common/os/zone.c
3452
char *path;
usr/src/uts/common/os/zone.c
3480
path = kmem_alloc(pathlen, KM_SLEEP);
usr/src/uts/common/os/zone.c
3481
(void) strncpy(path, pn.pn_path,
usr/src/uts/common/os/zone.c
3483
path[pathlen - 2] = '/';
usr/src/uts/common/os/zone.c
3484
path[pathlen - 1] = '\0';
usr/src/uts/common/os/zone.c
3499
zone->zone_rootpath = path;
usr/src/uts/common/os/zone.c
3501
if (pathlen > 5 && strcmp(path + pathlen - 5, "/lu/") == 0)
usr/src/uts/common/os/zone.c
6995
zone_find_by_any_path(const char *path, boolean_t treat_abs)
usr/src/uts/common/os/zone.c
7000
if (path == NULL) {
usr/src/uts/common/os/zone.c
7005
if (*path != '/') {
usr/src/uts/common/os/zone.c
7028
if (strncmp(path, rootpath_start, pathlen) == 0)
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3886
pcm_pathname(dev_info_t *dip, char *name, char *path)
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3888
(void) sprintf(path, "%s@%s:%s", ddi_node_name(dip),
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3936
(void) ddi_pathname(init->dip, device.path);
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3939
(void) sprintf(device.path + strlen(device.path), ":%s",
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3948
device.path, init->name, device.driver);
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3965
(void) strcpy(device.path, init->name);
usr/src/uts/common/pcmcia/nexus/pcmcia.c
4045
pcm_pathname(dip, dp->ddm_name, md->path);
usr/src/uts/common/pcmcia/nexus/pcmcia.c
4047
(void) ddi_pathname(dip, md->path);
usr/src/uts/common/pcmcia/nexus/pcmcia.c
4050
(void) sprintf(md->path + strlen(md->path),
usr/src/uts/common/rpc/rpcib.c
100
ibt_path_info_t path;
usr/src/uts/common/rpc/rpcib.c
1840
qp_attr.rc_hca_port_num = rptp->path.pi_prim_cep_path.cep_hca_port_num;
usr/src/uts/common/rpc/rpcib.c
1853
rptp->path.pi_sid = ibt_get_ip_sid(IPPROTO_TCP, nfs_rdma_port);
usr/src/uts/common/rpc/rpcib.c
1854
chan_args.oc_path = &rptp->path;
usr/src/uts/common/rpc/rpcib.c
1983
IBT_PATH_NO_FLAGS, &ipattr, &rptp->path,
usr/src/uts/common/rpc/rpcib.c
1987
rptp->path.pi_hca_guid == hca->hca_guid) {
usr/src/uts/common/smbsrv/smb_ioctl.h
70
char path[MAXPATHLEN];
usr/src/uts/common/smbsrv/smb_ktypes.h
781
char *path;
usr/src/uts/common/sys/acl.h
314
extern int acl(const char *path, int cmd, int cnt, void *buf);
usr/src/uts/common/sys/autoconf.h
296
extern int e_ddi_retire_device(char *path, char **cons_array);
usr/src/uts/common/sys/autoconf.h
297
extern int e_ddi_unretire_device(char *path);
usr/src/uts/common/sys/crypto/impl.h
1322
int crypto_unload_soft_module(caddr_t path);
usr/src/uts/common/sys/ddi_hp_impl.h
139
int ddihp_modctl(int hp_op, char *path, char *cn_name, uintptr_t arg,
usr/src/uts/common/sys/esunddi.h
177
e_ddi_hold_devi_by_path(char *path, int flags);
usr/src/uts/common/sys/ib/adapters/hermon/hermon_misc.h
679
hermon_hw_addr_path_t *path, uint_t type);
usr/src/uts/common/sys/ib/adapters/hermon/hermon_misc.h
680
void hermon_get_addr_path(hermon_state_t *state, hermon_hw_addr_path_t *path,
usr/src/uts/common/sys/ib/adapters/tavor/tavor_misc.h
537
tavor_hw_addr_path_t *path, uint_t type, tavor_qphdl_t qp);
usr/src/uts/common/sys/ib/adapters/tavor/tavor_misc.h
538
void tavor_get_addr_path(tavor_state_t *state, tavor_hw_addr_path_t *path,
usr/src/uts/common/sys/ib/clients/iser/iser_ib.h
178
ibt_ip_addr_t *local_ip, ibt_ip_addr_t *remote_ip, ibt_path_info_t *path,
usr/src/uts/common/sys/ib/clients/rds/rdsib_sc.h
49
extern void rds_path_up(struct rds_path_s *path);
usr/src/uts/common/sys/ib/clients/rds/rdsib_sc.h
50
extern void rds_path_down(struct rds_path_s *path);
usr/src/uts/common/sys/ib/clients/rdsv3/rdsv3_sc.h
48
extern void rds_path_up(struct rds_path_s *path);
usr/src/uts/common/sys/ib/clients/rdsv3/rdsv3_sc.h
49
extern void rds_path_down(struct rds_path_s *path);
usr/src/uts/common/sys/instance.h
111
uint_t instance, char *path);
usr/src/uts/common/sys/instance.h
129
in_node_t *e_ddi_path_to_instance(char *path);
usr/src/uts/common/sys/pci_tools.h
152
char path[MAXPATHLEN]; /* device path - from kernel */
usr/src/uts/common/sys/ppmio.h
110
caddr32_t path; /* device prom path */
usr/src/uts/common/sys/ppmio.h
122
caddr32_t path; /* device prom path */
usr/src/uts/common/sys/ppmio.h
78
char *path; /* device prom path */
usr/src/uts/common/sys/ppmio.h
96
char *path; /* device prom path */
usr/src/uts/common/sys/ppmvar.h
122
char *path; /* device pathname */
usr/src/uts/common/sys/ppmvar.h
138
char *path; /* control device prom pathname */
usr/src/uts/common/sys/ppmvar.h
92
char *path; /* OBP device pathname */
usr/src/uts/common/sys/rsm/rsmka_path_int.h
142
struct path *next_path;
usr/src/uts/common/sys/rsm/rsmka_path_int.h
270
#define PATH_HOLD(path) { \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
271
mutex_enter(&(path)->mutex); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
272
(path)->ref_cnt++; \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
273
ASSERT((path)->ref_cnt != 0); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
274
mutex_exit(&(path)->mutex); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
277
#define PATH_HOLD_NOLOCK(path) { \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
278
ASSERT(MUTEX_HELD(&(path)->mutex)); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
279
(path)->ref_cnt++; \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
280
ASSERT((path)->ref_cnt != 0); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
283
#define PATH_RELE(path) { \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
284
mutex_enter(&(path)->mutex); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
285
(path)->ref_cnt--; \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
286
ASSERT((path)->ref_cnt >= 0); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
287
if ((path)->ref_cnt == 0) \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
288
cv_signal(&(path)->hold_cv); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
289
mutex_exit(&(path)->mutex); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
292
#define PATH_RELE_NOLOCK(path) { \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
293
ASSERT(MUTEX_HELD(&(path)->mutex)); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
294
(path)->ref_cnt--; \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
295
ASSERT((path)->ref_cnt >= 0); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
296
if ((path)->ref_cnt == 0) \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
297
cv_signal(&(path)->hold_cv); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
300
#define SENDQ_TOKEN_HOLD(path) { \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
301
(path)->sendq_token.ref_cnt++; \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
302
ASSERT((path)->sendq_token.ref_cnt != 0); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
305
#define SENDQ_TOKEN_RELE(path) { \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
306
(path)->sendq_token.ref_cnt--; \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
307
ASSERT((path)->sendq_token.ref_cnt >= 0); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
308
if ((path)->sendq_token.ref_cnt == 0) \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
309
cv_signal(&(path)->sendq_token.sendq_cv); \
usr/src/uts/common/sys/scsi/adapters/mpt_sas/mptsas_var.h
638
char path[8];
usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs_def.h
124
char path[32]; /* path name for this phy */
usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs_def.h
409
"%s line %d", p->path, __func__, __LINE__); \
usr/src/uts/common/sys/scsi/adapters/pmcs/pmcs_def.h
415
"%s line %d", p->path, func, line); \
usr/src/uts/common/sys/sservice.h
535
char path[MAXPATHLEN];
usr/src/uts/common/sys/sunddi.h
1730
ddi_pathname(dev_info_t *dip, char *path);
usr/src/uts/common/sys/sunddi.h
1733
ddi_pathname_minor(struct ddi_minor_data *dmdp, char *path);
usr/src/uts/common/sys/sunddi.h
1736
ddi_pathname_obp(dev_info_t *dip, char *path);
usr/src/uts/common/sys/tiuser.h
210
extern int t_open(const char *path, int oflag, struct t_info *info);
usr/src/uts/common/sys/usb/usbai.h
2566
char *path,
usr/src/uts/common/sys/vnode.h
1371
const char *path, size_t plen);
usr/src/uts/common/sys/zone.h
768
#define ZONE_PATH_VISIBLE(path, zone) \
usr/src/uts/common/sys/zone.h
769
(strncmp((path), (zone)->zone_rootpath, \
usr/src/uts/common/sys/zone.h
778
#define ZONE_PATH_TRANSLATE(path, zone) \
usr/src/uts/common/sys/zone.h
779
(ASSERT(ZONE_PATH_VISIBLE(path, zone)), \
usr/src/uts/common/sys/zone.h
780
(path) + (zone)->zone_rootpathlen - 2)
usr/src/uts/common/syscall/chmod.c
50
fchmodat(int fd, char *path, int mode, int flag)
usr/src/uts/common/syscall/chmod.c
60
error = fsetattrat(fd, path, flag, &vattr);
usr/src/uts/common/syscall/chmod.c
70
chmod(char *path, int mode)
usr/src/uts/common/syscall/chmod.c
72
return (fchmodat(AT_FDCWD, path, mode, 0));
usr/src/uts/common/syscall/chown.c
58
fchownat(int fd, char *path, uid_t uid, gid_t gid, int flag)
usr/src/uts/common/syscall/chown.c
76
error = fsetattrat(fd, path, flag, &vattr);
usr/src/uts/common/syscall/chown.c
83
chown(char *path, uid_t uid, gid_t gid)
usr/src/uts/common/syscall/chown.c
85
return (fchownat(AT_FDCWD, path, uid, gid, 0));
usr/src/uts/common/syscall/chown.c
89
lchown(char *path, uid_t uid, gid_t gid)
usr/src/uts/common/syscall/chown.c
91
return (fchownat(AT_FDCWD, path, uid, gid, AT_SYMLINK_NOFOLLOW));
usr/src/uts/common/syscall/corectl.c
118
corectl_path_alloc(const char *path)
usr/src/uts/common/syscall/corectl.c
123
ccp->ccp_path = refstr_alloc(path);
usr/src/uts/common/syscall/corectl.c
132
refstr_t *path;
usr/src/uts/common/syscall/corectl.c
135
refstr_hold(path = ccp->ccp_path);
usr/src/uts/common/syscall/corectl.c
138
return (path);
usr/src/uts/common/syscall/corectl.c
142
corectl_path_set(corectl_path_t *ccp, const char *path)
usr/src/uts/common/syscall/corectl.c
144
refstr_t *npath = refstr_alloc(path);
usr/src/uts/common/syscall/corectl.c
244
char *path;
usr/src/uts/common/syscall/corectl.c
315
path = kmem_alloc(size, KM_SLEEP);
usr/src/uts/common/syscall/corectl.c
316
error = copyinstr((char *)arg1, path, size, NULL);
usr/src/uts/common/syscall/corectl.c
319
error = set_proc_info((pid_t)arg3, path, 0);
usr/src/uts/common/syscall/corectl.c
321
corectl_path_set(cg->core_default_path, path);
usr/src/uts/common/syscall/corectl.c
322
} else if (*path != '\0' && *path != '/') {
usr/src/uts/common/syscall/corectl.c
325
refstr_t *nrp = refstr_alloc(path);
usr/src/uts/common/syscall/corectl.c
329
if (*path == '\0')
usr/src/uts/common/syscall/corectl.c
341
kmem_free(path, size);
usr/src/uts/common/syscall/corectl.c
463
set_proc_info(pid_t pid, const char *path, core_content_t content)
usr/src/uts/common/syscall/corectl.c
473
if (path != NULL) {
usr/src/uts/common/syscall/corectl.c
474
counter.cc_path = corectl_path_alloc(path);
usr/src/uts/common/syscall/corectl.c
521
if (path != NULL)
usr/src/uts/common/syscall/corectl.c
69
static int set_proc_info(pid_t pid, const char *path, core_content_t content);
usr/src/uts/common/syscall/open.c
304
openat(int fd, char *path, int fmode, int cmode)
usr/src/uts/common/syscall/open.c
306
return (copen(fd, path, OPENMODE(fmode), cmode));
usr/src/uts/common/syscall/open.c
310
open(char *path, int fmode, int cmode)
usr/src/uts/common/syscall/open.c
312
return (openat(AT_FDCWD, path, fmode, cmode));
usr/src/uts/common/syscall/open.c
320
openat64(int fd, char *path, int fmode, int cmode)
usr/src/uts/common/syscall/open.c
322
return (copen(fd, path, OPENMODE64(fmode), cmode));
usr/src/uts/common/syscall/open.c
326
open64(char *path, int fmode, int cmode)
usr/src/uts/common/syscall/open.c
328
return (openat64(AT_FDCWD, path, fmode, cmode));
usr/src/uts/common/syscall/open.c
338
openat32(int fd, char *path, int fmode, int cmode)
usr/src/uts/common/syscall/open.c
340
return (copen(fd, path, OPENMODE32(fmode), cmode));
usr/src/uts/common/syscall/open.c
344
open32(char *path, int fmode, int cmode)
usr/src/uts/common/syscall/open.c
346
return (openat32(AT_FDCWD, path, fmode, cmode));
usr/src/uts/common/syscall/resolvepath.c
36
resolvepath(char *path, char *buf, size_t count)
usr/src/uts/common/syscall/resolvepath.c
44
if (error = pn_get(path, UIO_USERSPACE, &lookpn))
usr/src/uts/common/syscall/systeminfo.c
312
path_to_devinfo(char *path)
usr/src/uts/common/syscall/systeminfo.c
321
fn.nodeid = prom_finddevice(path);
usr/src/uts/common/syscall/utssys.c
818
uts_fusers(char *path, int flags, intptr_t userbp)
usr/src/uts/common/syscall/utssys.c
849
error = lookupname(path, UIO_USERSPACE, FOLLOW, NULLVPP, &fvp);
usr/src/uts/common/xen/io/xdb.c
1101
xdb_setup_node(xdb_t *vdp, char *path)
usr/src/uts/common/xen/io/xdb.c
1123
(void) strlcpy(path, vdp->xs_params_path, MAXPATHLEN);
usr/src/uts/common/xen/io/xdb.c
1154
(void) snprintf(path, MAXPATHLEN, LOFI_DEV_NODE "%d", minor);
usr/src/uts/common/xen/io/xdb.c
1155
(void) xenbus_printf(XBT_NULL, xsname, "node", "%s", path);
usr/src/uts/common/xen/io/xdb.c
1158
vdp->xs_lofi_path = strdup(path);
usr/src/uts/common/xen/io/xdb.c
226
char *path, *rv;
usr/src/uts/common/xen/io/xdb.c
228
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/xen/io/xdb.c
229
(void) ddi_pathname(dip, path);
usr/src/uts/common/xen/io/xdb.c
230
rv = strdup(path);
usr/src/uts/common/xen/io/xdb.c
231
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/xen/io/xdb.c
919
xdb_watch_params_cb(dev_info_t *dip, const char *path, void *arg)
usr/src/uts/common/xen/io/xdb.c
987
xdb_watch_media_req_cb(dev_info_t *dip, const char *path, void *arg)
usr/src/uts/common/xen/io/xdf.c
2093
i_xdf_hvm_find(const char *path, dev_info_t *dip)
usr/src/uts/common/xen/io/xdf.c
2097
ASSERT((path != NULL) || (dip != NULL));
usr/src/uts/common/xen/io/xdf.c
2102
if ((path != NULL) && strcmp(i->xdf_he_path, path) != 0) {
usr/src/uts/common/xen/io/xdf.c
2116
xdf_hvm_hold(const char *path)
usr/src/uts/common/xen/io/xdf.c
2122
i = i_xdf_hvm_find(path, NULL);
usr/src/uts/common/xen/io/xdf.c
2136
char *path;
usr/src/uts/common/xen/io/xdf.c
2139
path = kmem_zalloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/common/xen/io/xdf.c
2140
(void) ddi_pathname(dip, path);
usr/src/uts/common/xen/io/xdf.c
2144
i->xdf_he_path = i_ddi_strdup(path, KM_SLEEP);
usr/src/uts/common/xen/io/xdf.c
2147
ASSERT(i_xdf_hvm_find(path, NULL) == NULL);
usr/src/uts/common/xen/io/xdf.c
2152
kmem_free(path, MAXPATHLEN);
usr/src/uts/common/xen/io/xdf.c
3151
xdf_watch_hp_status_cb(dev_info_t *dip, const char *path, void *arg)
usr/src/uts/common/xen/io/xenbus_client.c
101
state = kmem_alloc(strlen(path) + 1 + strlen(path2) + 1, KM_SLEEP);
usr/src/uts/common/xen/io/xenbus_client.c
102
(void) strcpy(state, path);
usr/src/uts/common/xen/io/xenbus_client.c
267
xenbus_read_driver_state(const char *path)
usr/src/uts/common/xen/io/xenbus_client.c
271
int err = xenbus_gather(XBT_NULL, path, "state", "%d", &result, NULL);
usr/src/uts/common/xen/io/xenbus_client.c
70
xenbus_watch_path(struct xenbus_device *dev, const char *path,
usr/src/uts/common/xen/io/xenbus_client.c
77
watch->node = path;
usr/src/uts/common/xen/io/xenbus_client.c
85
xenbus_dev_fatal(dev, err, "adding watch on %s", path);
usr/src/uts/common/xen/io/xenbus_client.c
93
xenbus_watch_path2(struct xenbus_device *dev, const char *path,
usr/src/uts/common/xen/io/xenbus_xs.c
430
char *strings, *path;
usr/src/uts/common/xen/io/xenbus_xs.c
434
path = join(dir, node);
usr/src/uts/common/xen/io/xenbus_xs.c
435
err = xs_single(t, XS_DIRECTORY, path, (void **)&strings, &len);
usr/src/uts/common/xen/io/xenbus_xs.c
436
kmem_free(path, strlen(path) + 1);
usr/src/uts/common/xen/io/xenbus_xs.c
485
char *path;
usr/src/uts/common/xen/io/xenbus_xs.c
488
path = join(dir, node);
usr/src/uts/common/xen/io/xenbus_xs.c
489
err = xs_single(t, XS_READ, path, retp, len);
usr/src/uts/common/xen/io/xenbus_xs.c
490
kmem_free(path, strlen(path) + 1);
usr/src/uts/common/xen/io/xenbus_xs.c
530
char *path;
usr/src/uts/common/xen/io/xenbus_xs.c
534
path = join(dir, node);
usr/src/uts/common/xen/io/xenbus_xs.c
536
iovec[0].iov_base = (void *)path;
usr/src/uts/common/xen/io/xenbus_xs.c
537
iovec[0].iov_len = strlen(path) + 1;
usr/src/uts/common/xen/io/xenbus_xs.c
542
kmem_free(path, iovec[0].iov_len);
usr/src/uts/common/xen/io/xenbus_xs.c
550
char *path;
usr/src/uts/common/xen/io/xenbus_xs.c
553
path = join(dir, node);
usr/src/uts/common/xen/io/xenbus_xs.c
554
ret = xs_single(t, XS_MKDIR, path, NULL, NULL);
usr/src/uts/common/xen/io/xenbus_xs.c
555
kmem_free(path, strlen(path) + 1);
usr/src/uts/common/xen/io/xenbus_xs.c
563
char *path;
usr/src/uts/common/xen/io/xenbus_xs.c
566
path = join(dir, node);
usr/src/uts/common/xen/io/xenbus_xs.c
567
ret = xs_single(t, XS_RM, path, NULL, NULL);
usr/src/uts/common/xen/io/xenbus_xs.c
568
kmem_free(path, strlen(path) + 1);
usr/src/uts/common/xen/io/xenbus_xs.c
704
xs_watch(const char *path, const char *token)
usr/src/uts/common/xen/io/xenbus_xs.c
708
iov[0].iov_base = (void *)path;
usr/src/uts/common/xen/io/xenbus_xs.c
709
iov[0].iov_len = strlen(path) + 1;
usr/src/uts/common/xen/io/xenbus_xs.c
717
xs_unwatch(const char *path, const char *token)
usr/src/uts/common/xen/io/xenbus_xs.c
721
iov[0].iov_base = (char *)path;
usr/src/uts/common/xen/io/xenbus_xs.c
722
iov[0].iov_len = strlen(path) + 1;
usr/src/uts/common/xen/os/xvdi.c
1289
char *path;
usr/src/uts/common/xen/os/xvdi.c
1296
path = kmem_zalloc(n, KM_SLEEP);
usr/src/uts/common/xen/os/xvdi.c
1297
(void) strlcat(path, dir, n);
usr/src/uts/common/xen/os/xvdi.c
1298
(void) strlcat(path, "/", n);
usr/src/uts/common/xen/os/xvdi.c
1299
(void) strlcat(path, node, n);
usr/src/uts/common/xen/os/xvdi.c
1300
ASSERT((strlen(path) + 1) == n);
usr/src/uts/common/xen/os/xvdi.c
1304
xxw_new->xxw_watch.node = path;
usr/src/uts/common/xen/os/xvdi.c
1337
ASSERT(strcmp(xxwp->xxw_watch.node, path) != 0);
usr/src/uts/common/xen/os/xvdi.c
1338
if (strcmp(xxwp->xxw_watch.node, path) != 0)
usr/src/uts/common/xen/os/xvdi.c
1503
char *path;
usr/src/uts/common/xen/os/xvdi.c
1509
path = kmem_alloc(len, KM_SLEEP);
usr/src/uts/common/xen/os/xvdi.c
1510
(void) snprintf(path, len, "%s/hotplug-status",
usr/src/uts/common/xen/os/xvdi.c
1513
pdp->xd_hp_watch.node = path;
usr/src/uts/common/xen/os/xvdi.c
1632
char *path;
usr/src/uts/common/xen/os/xvdi.c
1637
path = kmem_alloc(len, KM_SLEEP);
usr/src/uts/common/xen/os/xvdi.c
1638
(void) snprintf(path, len, "%s/backend",
usr/src/uts/common/xen/os/xvdi.c
1641
pdp->xd_bepath_watch.node = path;
usr/src/uts/common/xen/os/xvdi.c
1645
kmem_free(path, len);
usr/src/uts/common/xen/os/xvdi.c
1765
char *path;
usr/src/uts/common/xen/os/xvdi.c
1770
path = i_ddi_strdup((char *)vec[XS_WATCH_PATH], KM_SLEEP);
usr/src/uts/common/xen/os/xvdi.c
1773
i_xvdi_probe_path_handler, (void *)path, DDI_SLEEP);
usr/src/uts/common/xen/os/xvdi.c
1777
i_xvdi_watch_device(char *path)
usr/src/uts/common/xen/os/xvdi.c
1781
ASSERT(path != NULL);
usr/src/uts/common/xen/os/xvdi.c
1784
w->node = path;
usr/src/uts/common/xen/os/xvdi.c
1790
"cannot set watch on %s", path);
usr/src/uts/common/xen/os/xvdi.c
1849
char *path, *domain_path, *ep;
usr/src/uts/common/xen/os/xvdi.c
1858
path = xdcp->xs_path_fe;
usr/src/uts/common/xen/os/xvdi.c
1863
path = xdcp->xs_path_be;
usr/src/uts/common/xen/os/xvdi.c
1867
if ((devices = xenbus_directory(XBT_NULL, path, domain_path,
usr/src/uts/common/xen/os/xvdi.c
2342
char *path = arg, *p = NULL;
usr/src/uts/common/xen/os/xvdi.c
2351
(strncmp(path, xdcp->xs_path_fe, strlen(xdcp->xs_path_fe))
usr/src/uts/common/xen/os/xvdi.c
2355
p = path + strlen(xdcp->xs_path_fe);
usr/src/uts/common/xen/os/xvdi.c
2360
(strncmp(path, xdcp->xs_path_be, strlen(xdcp->xs_path_be))
usr/src/uts/common/xen/os/xvdi.c
2364
p = path + strlen(xdcp->xs_path_be);
usr/src/uts/common/xen/os/xvdi.c
2372
"unexpected path prefix in %s", path);
usr/src/uts/common/xen/os/xvdi.c
2382
path);
usr/src/uts/common/xen/os/xvdi.c
2390
path);
usr/src/uts/common/xen/os/xvdi.c
2401
"invalid path %s", path);
usr/src/uts/common/xen/os/xvdi.c
2412
"i_xvdi_probe_path_handler: create for %s", path);
usr/src/uts/common/xen/os/xvdi.c
2416
"i_xvdi_probe_path_handler: %s already exists", path);
usr/src/uts/common/xen/os/xvdi.c
2422
kmem_free(path, strlen(path) + 1);
usr/src/uts/common/xen/sys/xenbus_impl.h
105
typedef void (*xvdi_xb_watch_cb_t)(dev_info_t *dip, const char *path,
usr/src/uts/common/xen/sys/xenbus_impl.h
165
extern int xenbus_watch_path(struct xenbus_device *dev, const char *path,
usr/src/uts/common/xen/sys/xenbus_impl.h
180
extern int xenbus_watch_path2(struct xenbus_device *dev, const char *path,
usr/src/uts/common/xen/sys/xenbus_impl.h
219
extern XenbusState xenbus_read_driver_state(const char *path);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_dr.c
2163
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_dr.c
2174
(void) ddi_pathname(dip, path);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_dr.c
2176
"acpidev: failed to remove node %s (%s).", path, objname);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_dr.c
2177
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_dr.c
456
char *path;
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_dr.c
504
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_dr.c
507
ddi_pathname(dip, path));
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_dr.c
508
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_dr.c
517
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_dr.c
519
"property for %s.\n", ddi_pathname(dip, path));
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_dr.c
520
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_resource.c
1029
char path[MAXPATHLEN];
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_resource.c
1040
(void) ddi_pathname(infop->awi_dip, path);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_resource.c
1046
path, infop->awi_name);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_resource.c
1060
"'reg' property for %s.", path);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_resource.c
1070
"'assigned-addresses' property for %s.", path);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_resource.c
1081
"'interrupts' property for %s.", path);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_resource.c
1092
"'dma-channels' property for %s.", path);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_resource.c
1107
"'ranges' property for %s.", path);
usr/src/uts/i86pc/io/acpi/acpidev/acpidev_resource.c
1119
"'bus-range' property for %s.", path);
usr/src/uts/i86pc/io/acpi/drmach_acpi/drmach_acpi.c
1585
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/i86pc/io/acpi/drmach_acpi/drmach_acpi.c
1588
(void) ddi_pathname(dip, path);
usr/src/uts/i86pc/io/acpi/drmach_acpi/drmach_acpi.c
1589
err = drerr_new(1, EX86_DRVFAIL, path);
usr/src/uts/i86pc/io/acpi/drmach_acpi/drmach_acpi.c
1590
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/acpi/drmach_acpi/drmach_acpi.c
1630
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/i86pc/io/acpi/drmach_acpi/drmach_acpi.c
1636
(void) ddi_pathname(fdip, path);
usr/src/uts/i86pc/io/acpi/drmach_acpi/drmach_acpi.c
1639
(void) ddi_pathname(rdip, path);
usr/src/uts/i86pc/io/acpi/drmach_acpi/drmach_acpi.c
1642
err = drerr_new(1, EX86_DRVFAIL, path);
usr/src/uts/i86pc/io/acpi/drmach_acpi/drmach_acpi.c
1644
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1374
amd_iommu_pci_dip(dev_info_t *rdip, const char *path)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1398
f, driver, instance, (void *)rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1401
f, driver, instance, (void *)rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1422
char *path, *pathp;
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1437
path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1438
if ((pathp = ddi_pathname(rdip, path)) == NULL)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1441
pci_dip = amd_iommu_pci_dip(rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1447
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1456
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1459
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1502
char *path;
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1506
path = kmem_alloc(MAXPATHLEN, km_flags);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1507
if (path == NULL) {
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1511
(void) ddi_pathname(rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1517
f, driver, instance, idx, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1534
"for device %s", f, driver, instance, idx, i, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1547
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1561
char *path;
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1568
path = kmem_alloc(MAXPATHLEN, KM_NOSLEEP);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1569
if (path) {
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1570
(void) ddi_pathname(rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1573
path = "<path-mem-alloc-failed>";
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1592
f, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1597
"for device %s", f, driver, instance, idx, i, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1606
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1621
char *path;
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1640
path = kmem_alloc(MAXPATHLEN, km_flags);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1641
if (path) {
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1642
(void) ddi_pathname(rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1650
f, path,
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1660
"for device %s", f, driver, instance, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1678
"for device %s", f, driver, instance, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1687
f, path,
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1692
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.c
1696
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_impl.h
478
extern dev_info_t *amd_iommu_pci_dip(dev_info_t *rdip, const char *path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1096
amd_iommu_page_table_t **ptp, uint16_t *next_idxp, const char *path,
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
110
f, path, *domainid);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1127
if ((error = amd_iommu_alloc_pgtable(iommu, domainid, path, &pt,
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1131
domainid, (void *)(uintptr_t)va, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1212
amd_iommu_domain_t *dp, const char *path, int km_flags)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1230
(void *)(uintptr_t)pa, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1244
&next_idx, path, km_flags)) != DDI_SUCCESS) {
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1250
(void *)(uintptr_t)pa, level, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1270
dp, path)) != DDI_SUCCESS) {
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1275
iommu->aiomt_idx, (void *)rdip, deviceid, domainid, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1287
amd_iommu_domain_t *dp, map_type_t type, int *domain_freed, char *path)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1311
(void *)(uintptr_t)pageva, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1397
iommu->aiomt_idx, domainid, (void *)rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1406
deviceid, dp, domain_freed, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1452
char *path;
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1464
path = kmem_alloc(MAXPATHLEN, km_flags);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1465
if (path == NULL) {
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1469
(void) ddi_pathname(rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1474
if (amd_iommu_get_deviceid(iommu, rdip, &deviceid, &alias, path)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1478
iommu->aiomt_idx, (void *)rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1486
if (amd_iommu_get_domain(iommu, rdip, alias, deviceid, &domainid, path)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1490
iommu->aiomt_idx, (void *)rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1499
iommu->aiomt_idx, domainid, (void *)rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1555
(void *)(uintptr_t)(pg << MMU_PAGESHIFT), path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1565
pfn << MMU_PAGESHIFT, deviceid, domainid, dp, path,
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1575
(void *)(uintptr_t)pg, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1590
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1603
char *path;
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1618
path = kmem_alloc(MAXPATHLEN, KM_NOSLEEP);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1619
if (path) {
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1620
(void) ddi_pathname(rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1624
path = "<path-mem-alloc-failed>";
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1630
if (amd_iommu_get_deviceid(iommu, rdip, &deviceid, &alias, path)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1634
iommu->aiomt_idx, (void *)rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1642
if (amd_iommu_get_domain(iommu, rdip, alias, deviceid, &domainid, path)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1646
iommu->aiomt_idx, (void *)rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1657
iommu->aiomt_idx, domainid, (void *)rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1674
&domain_freed, path) != DDI_SUCCESS) {
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
1698
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
238
int *aliasp, const char *path)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
271
f, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
274
pci_dip = amd_iommu_pci_dip(rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
279
path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
288
(void *)pci_dip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
301
(void *)pci_dip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
311
path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
317
f, src_bdf, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
393
char *path;
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
409
path = kmem_alloc(MAXPATHLEN, KM_NOSLEEP);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
410
if (path) {
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
412
(void) ddi_pathname(rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
414
(void) strcpy(path, "special-device");
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
418
path = "<path-mem-alloc-failed>";
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
421
if (amd_iommu_get_deviceid(iommu, rdip, &deviceid, &alias, path)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
426
iommu->aiomt_idx, (void *)rdip, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
441
iommu->aiomt_devtbl_sz, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
475
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
481
const char *path)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
493
f, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
502
iommu->aiomt_devtbl_sz, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
512
f, deviceid, (void *)(uintptr_t)(*devtbl_entry), path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
556
int *domain_freed, char *path)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
568
f, domainid, deviceid, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
577
iommu->aiomt_devtbl_sz, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
587
f, deviceid, (void *)(uintptr_t)(*devtbl_entry), path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
770
const char *path, amd_iommu_page_table_t **ptp, int km_flags)
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
805
f, driver, instance, domainid, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
822
f, driver, instance, domainid, path);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
849
f, driver, instance, domainid, path,
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
867
f, driver, instance, domainid, path, ncookies);
usr/src/uts/i86pc/io/amd_iommu/amd_iommu_page_tables.c
88
uint16_t deviceid, domain_id_t *domainid, const char *path)
usr/src/uts/i86pc/io/consplat.c
171
plat_devpath(char *name, char *path)
usr/src/uts/i86pc/io/consplat.c
188
(void) ddi_pathname(dip, path);
usr/src/uts/i86pc/io/consplat.c
190
return (path);
usr/src/uts/i86pc/io/consplat.c
459
static char path[MAXPATHLEN];
usr/src/uts/i86pc/io/consplat.c
483
(void) ddi_pathname(dip, path);
usr/src/uts/i86pc/io/consplat.c
484
bp = path + strlen(path);
usr/src/uts/i86pc/io/consplat.c
487
return (path);
usr/src/uts/i86pc/io/dr/dr_mem_acpi.c
342
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/i86pc/io/dr/dr_mem_acpi.c
350
(void) ddi_pathname(bp->b_dip, path);
usr/src/uts/i86pc/io/dr/dr_mem_acpi.c
355
path, (minor == NULL) ? "" : minor);
usr/src/uts/i86pc/io/dr/dr_mem_acpi.c
357
kmem_free(path, MAXPATHLEN);
usr/src/uts/i86pc/io/pci/pci_tools.c
260
(void) ddi_pathname(dip, devs->path);
usr/src/uts/i86pc/io/ppm_plat.c
149
str, cpup->path, newlevel, ret))
usr/src/uts/i86pc/io/ppm_plat.c
184
char path[MAXNAMELEN];
usr/src/uts/i86pc/io/ppm_plat.c
225
(void) ddi_pathname(cpu_dip, path);
usr/src/uts/i86pc/io/ppm_plat.c
227
dbp->name = kmem_zalloc((strlen(path) + 1),
usr/src/uts/i86pc/io/ppm_plat.c
229
(void) strcpy(dbp->name, path);
usr/src/uts/i86pc/io/ppm_plat.c
243
(void) ddi_pathname(cpu_dip, path);
usr/src/uts/i86pc/io/ppm_plat.c
245
dbp->name = kmem_zalloc((strlen(path) + 1),
usr/src/uts/i86pc/io/ppm_plat.c
247
(void) strcpy(dbp->name, path);
usr/src/uts/i86pc/io/ppm_plat.c
267
char path[MAXNAMELEN];
usr/src/uts/i86pc/io/ppm_plat.c
272
(void) ddi_pathname(cpu_dip, path);
usr/src/uts/i86pc/io/ppm_plat.c
287
if (strcmp(pconf->name, path) != 0) {
usr/src/uts/i86pc/os/mlsetup.c
517
mach_modpath(char *path, const char *filename)
usr/src/uts/i86pc/os/mlsetup.c
529
(void) strcpy(path, SYSTEM_BOOT_PATH "/kernel ");
usr/src/uts/i86pc/os/mlsetup.c
530
path += len + 1;
usr/src/uts/i86pc/os/mlsetup.c
553
(void) strncpy(path, filename, p - filename);
usr/src/uts/i86xpv/os/mp_xen.c
912
const char *path = vec[XS_WATCH_PATH];
usr/src/uts/i86xpv/os/mp_xen.c
916
if ((s = strstr(path, "cpu/")) != NULL &&
usr/src/uts/intel/io/acpica/acpi_enum.c
1013
if (path != NULL)
usr/src/uts/intel/io/acpica/acpi_enum.c
1014
AcpiOsFree(path);
usr/src/uts/intel/io/acpica/acpi_enum.c
523
parse_resources(ACPI_HANDLE handle, dev_info_t *xdip, char *path)
usr/src/uts/intel/io/acpica/acpi_enum.c
553
path, AcpiFormatException(status));
usr/src/uts/intel/io/acpica/acpi_enum.c
844
char *path = NULL;
usr/src/uts/intel/io/acpica/acpi_enum.c
862
path = (char *)rb.Pointer;
usr/src/uts/intel/io/acpica/acpi_enum.c
869
" info for %s", path);
usr/src/uts/intel/io/acpica/acpi_enum.c
878
cmn_err(CE_WARN, "!acpi_enum: no _STA for %s", path);
usr/src/uts/intel/io/acpica/acpi_enum.c
892
status, path);
usr/src/uts/intel/io/acpica/acpi_enum.c
904
"No _HID for %s", path);
usr/src/uts/intel/io/acpica/acpi_enum.c
970
(void) parse_resources(ObjHandle, xdip, path);
usr/src/uts/intel/io/acpica/acpi_enum.c
975
path);
usr/src/uts/intel/io/acpica/acpi_enum.c
977
(void) parse_resources(ObjHandle, xdip, path);
usr/src/uts/intel/io/dktp/controller/ata/ata_disk.c
3041
char *path;
usr/src/uts/intel/io/dktp/controller/ata/ata_disk.c
3049
path = kmem_alloc(MAXPATHLEN + 1, KM_NOSLEEP);
usr/src/uts/intel/io/dktp/controller/ata/ata_disk.c
3050
if (path != NULL) {
usr/src/uts/intel/io/dktp/controller/ata/ata_disk.c
3053
ddi_pathname(ata_ctlp->ac_dip, path),
usr/src/uts/intel/io/dktp/controller/ata/ata_disk.c
3055
kmem_free(path, MAXPATHLEN + 1);
usr/src/uts/intel/io/dktp/controller/ata/ata_disk.c
3061
path = kmem_alloc(MAXPATHLEN + 1, KM_NOSLEEP);
usr/src/uts/intel/io/dktp/controller/ata/ata_disk.c
3062
if (path != NULL) {
usr/src/uts/intel/io/dktp/controller/ata/ata_disk.c
3065
ddi_pathname(ata_ctlp->ac_dip, path),
usr/src/uts/intel/io/dktp/controller/ata/ata_disk.c
3067
kmem_free(path, MAXPATHLEN + 1);
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
799
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
801
(void) ddi_pathname(devi, path);
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
803
"configure: %s\n", path);
usr/src/uts/intel/io/hotplug/pcicfg/pcicfg.c
805
kmem_free(path, MAXPATHLEN);
usr/src/uts/intel/io/vmm/intel/vtd.c
202
ACPI_DMAR_PCI_PATH *path;
usr/src/uts/intel/io/vmm/intel/vtd.c
242
path = (ACPI_DMAR_PCI_PATH *)
usr/src/uts/intel/io/vmm/intel/vtd.c
246
if (PCI_RID2SLOT(rid) != path->Device)
usr/src/uts/intel/io/vmm/intel/vtd.c
248
if (PCI_RID2FUNC(rid) != path->Function)
usr/src/uts/intel/promif/prom_node.c
87
prom_finddevice(char *path)
usr/src/uts/intel/sys/promif.h
83
extern pnode_t prom_finddevice(char *path);
usr/src/uts/intel/sys/promif.h
91
extern int prom_devname_from_pathname(char *path, char *buffer);
usr/src/uts/sparc/io/consplat.c
105
path = get_alias("screen", buf);
usr/src/uts/sparc/io/consplat.c
106
if (path != NULL) {
usr/src/uts/sparc/io/consplat.c
107
fbpath = path;
usr/src/uts/sparc/io/consplat.c
108
return (path);
usr/src/uts/sparc/io/consplat.c
119
char *path, *p, *q;
usr/src/uts/sparc/io/consplat.c
126
path = get_alias("mouse", buf);
usr/src/uts/sparc/io/consplat.c
127
if (path != NULL) {
usr/src/uts/sparc/io/consplat.c
128
mousepath = path;
usr/src/uts/sparc/io/consplat.c
129
return (path);
usr/src/uts/sparc/io/consplat.c
138
if ((path = plat_kbdpath()) == NULL)
usr/src/uts/sparc/io/consplat.c
141
if ((kb_major = path_to_major(path)) == (major_t)-1)
usr/src/uts/sparc/io/consplat.c
154
(void) strcpy(buf, path);
usr/src/uts/sparc/io/consplat.c
73
char *path;
usr/src/uts/sparc/io/consplat.c
82
path = get_alias("keyboard", buf);
usr/src/uts/sparc/io/consplat.c
83
if (path != NULL) {
usr/src/uts/sparc/io/consplat.c
84
kbdpath = path;
usr/src/uts/sparc/io/consplat.c
85
return (path);
usr/src/uts/sparc/io/consplat.c
99
char *path;
usr/src/uts/sparc/os/cpr_sparc.c
424
cpr_next_component(char **path)
usr/src/uts/sparc/os/cpr_sparc.c
428
int len = strlen(*path);
usr/src/uts/sparc/os/cpr_sparc.c
433
if ((slash = strchr(*path, '/'))) {
usr/src/uts/sparc/os/cpr_sparc.c
434
len = slash - *path;
usr/src/uts/sparc/os/cpr_sparc.c
435
(void) strncpy(obuf, *path, len);
usr/src/uts/sparc/os/cpr_sparc.c
437
*path += len + 1; /* Position beyond the slash. */
usr/src/uts/sparc/os/cpr_sparc.c
439
(void) strcpy(obuf, *path);
usr/src/uts/sparc/os/cpr_sparc.c
440
*path += len; /* Position at the terminal NULL. */
usr/src/uts/sun/sys/promif.h
121
extern pnode_t prom_finddevice(char *path); /* Also on obp2.x */
usr/src/uts/sun/sys/promif.h
131
extern int prom_devname_from_pathname(char *path, char *buffer);
usr/src/uts/sun4/io/px/px_ib.c
1096
(void) strlcpy(dev->path, path_name, MAXPATHLEN);
usr/src/uts/sun4/os/mlsetup.c
460
mach_modpath(char *path, const char *fname)
usr/src/uts/sun4/os/mlsetup.c
515
(void) strcpy(path, "/platform/");
usr/src/uts/sun4/os/mlsetup.c
516
(void) strcat(path, platname);
usr/src/uts/sun4/os/mlsetup.c
517
(void) strcat(path, "/kernel");
usr/src/uts/sun4/os/mlsetup.c
519
(void) strcat(path, " /platform/");
usr/src/uts/sun4/os/mlsetup.c
520
(void) strcat(path, defname);
usr/src/uts/sun4/os/mlsetup.c
521
(void) strcat(path, "/kernel");
usr/src/uts/sun4/os/mlsetup.c
546
(void) strncpy(path, fname, p - fname);
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1045
ppmd->path, ppm_get_ctlstr(reqp->request_type, ~0)));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1068
str, ppmd->path, old, new));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1096
str, ppmd->path));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1146
ppmd->path, ppm_get_ctlstr(reqp->request_type, ~0)));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1173
str, ppmd->path, ppmd->level, new));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1236
"rplvl %d level %d\n", str, codev->path,
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1270
ppmd->path, ppm_get_ctlstr(reqp->request_type, ~0)));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1428
char path[MAXPATHLEN], *ctlstr, *str = "xcppm_ctlops";
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1432
ddi_pathname(rdip, path), ctlstr);
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1519
ppmd->path, ppm_get_ctlstr(reqp->request_type, D_LOCKS)));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1564
str, ppmd->path);
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1635
if (strstr(ppmd->path, "pci@8,700000"))
usr/src/uts/sun4u/excalibur/io/xcalppm.c
1637
else if (strstr(ppmd->path, "upa@8,480000"))
usr/src/uts/sun4u/excalibur/io/xcalppm.c
573
str, ppmd->path, change, ppmd->level, level, ret));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
662
cpup->path, level));
usr/src/uts/sun4u/excalibur/io/xcalppm.c
841
str, cpup->path, chstr, cpup->level, ret));
usr/src/uts/sun4u/io/gptwocfg.c
432
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/sun4u/io/gptwocfg.c
438
(void) ddi_pathname(fdip, path);
usr/src/uts/sun4u/io/gptwocfg.c
441
(void) ddi_pathname(saf_dip, path);
usr/src/uts/sun4u/io/gptwocfg.c
445
path, fdip ? (void *)fdip : (void *)saf_dip);
usr/src/uts/sun4u/io/gptwocfg.c
447
kmem_free(path, MAXPATHLEN);
usr/src/uts/sun4u/io/opl_cfg.c
722
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/sun4u/io/opl_cfg.c
723
(void) ddi_pathname(node, path);
usr/src/uts/sun4u/io/opl_cfg.c
724
cmn_err(CE_WARN, "OPL node removal failed: %s (%p)", path,
usr/src/uts/sun4u/io/opl_cfg.c
726
kmem_free(path, MAXPATHLEN);
usr/src/uts/sun4u/io/pci/pci_ib.c
1014
(void) ddi_pathname(ih_p->ih_dip, devs[i].path);
usr/src/uts/sun4u/io/ppm_plat.c
256
str, cpup->path, chstr, level, ret))
usr/src/uts/sun4u/io/ppm_xgsubr.c
275
char path[MAXNAMELEN];
usr/src/uts/sun4u/io/ppm_xgsubr.c
279
(void) ddi_pathname(dip, path);
usr/src/uts/sun4u/io/ppm_xgsubr.c
283
if (strcmp(path, dbp->name) == 0)
usr/src/uts/sun4u/io/ppm_xgsubr.c
285
} else if (strncmp(path, dbp->name, dbp->plen) == 0)
usr/src/uts/sun4u/io/ppm_xgsubr.c
306
char path[MAXNAMELEN];
usr/src/uts/sun4u/io/ppm_xgsubr.c
309
domp->name, ddi_pathname(dip, path)));
usr/src/uts/sun4u/io/ppm_xgsubr.c
324
char path[MAXNAMELEN];
usr/src/uts/sun4u/io/ppm_xgsubr.c
329
(void) ddi_pathname(dip, path);
usr/src/uts/sun4u/io/ppm_xgsubr.c
341
new->path = kmem_zalloc(strlen(path) + 1, KM_SLEEP);
usr/src/uts/sun4u/io/ppm_xgsubr.c
342
(void) strcpy(new->path, path);
usr/src/uts/sun4u/io/ppm_xgsubr.c
352
new->path, domp->name, (void *)new));
usr/src/uts/sun4u/io/ppm_xgsubr.c
410
pdp->path, (void *)pdp));
usr/src/uts/sun4u/io/ppm_xgsubr.c
416
kmem_free(pdp->path, strlen(pdp->path) + 1);
usr/src/uts/sun4u/ngdr/io/dr_mem.c
776
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/sun4u/ngdr/io/dr_mem.c
784
(void) ddi_pathname(bp->b_dip, path);
usr/src/uts/sun4u/ngdr/io/dr_mem.c
789
path, (minor == NULL) ? "" : minor);
usr/src/uts/sun4u/ngdr/io/dr_mem.c
791
kmem_free(path, MAXPATHLEN);
usr/src/uts/sun4u/opl/io/dr_mem.c
759
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/sun4u/opl/io/dr_mem.c
767
(void) ddi_pathname(bp->b_dip, path);
usr/src/uts/sun4u/opl/io/dr_mem.c
772
path, (minor == NULL) ? "" : minor);
usr/src/uts/sun4u/opl/io/dr_mem.c
774
kmem_free(path, MAXPATHLEN);
usr/src/uts/sun4u/opl/io/drmach.c
2716
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/sun4u/opl/io/drmach.c
2722
(void) ddi_pathname(fdip, path);
usr/src/uts/sun4u/opl/io/drmach.c
2725
(void) ddi_pathname(rdip, path);
usr/src/uts/sun4u/opl/io/drmach.c
2728
err = drerr_new(1, EOPL_DRVFAIL, path);
usr/src/uts/sun4u/opl/io/drmach.c
2730
kmem_free(path, MAXPATHLEN);
usr/src/uts/sun4u/opl/io/drmach.c
965
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/sun4u/opl/io/drmach.c
968
(void) ddi_pathname(dip, path);
usr/src/uts/sun4u/opl/io/drmach.c
969
err = drerr_new(1, EOPL_DRVFAIL, path);
usr/src/uts/sun4u/opl/io/drmach.c
971
kmem_free(path, MAXPATHLEN);
usr/src/uts/sun4u/opl/sys/scfd/opcioif.h
57
unsigned char path[SCF_DISK_LED_PATH_MAX];
usr/src/uts/sun4u/os/cpr_impl.c
128
#define cpr_open(path, mode, vpp) (vn_open(path, UIO_SYSSPACE, \
usr/src/uts/sun4u/os/mach_ddi_impl.c
116
if (prom_phandle_to_path((phandle_t)id, path, sizeof (path)) < 0)
usr/src/uts/sun4u/os/mach_ddi_impl.c
131
status_buf, path, board_buf);
usr/src/uts/sun4u/os/mach_ddi_impl.c
91
char path[OBP_MAXPATHLEN];
usr/src/uts/sun4u/serengeti/io/sbdp_dr.c
386
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/sun4u/serengeti/io/sbdp_dr.c
392
(void) ddi_pathname(fdip, path);
usr/src/uts/sun4u/serengeti/io/sbdp_dr.c
395
(void) ddi_pathname(*dip, path);
usr/src/uts/sun4u/serengeti/io/sbdp_dr.c
399
path, fdip ? (void *)fdip : (void *)*dip, rv);
usr/src/uts/sun4u/serengeti/io/sbdp_dr.c
401
kmem_free(path, MAXPATHLEN);
usr/src/uts/sun4u/serengeti/io/sbdp_mem.c
528
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/sun4u/serengeti/io/sbdp_mem.c
534
(void) ddi_pathname(dip, path);
usr/src/uts/sun4u/serengeti/io/sbdp_mem.c
537
"copy-rename aborted", path);
usr/src/uts/sun4u/serengeti/io/sbdp_mem.c
538
kmem_free(path, MAXPATHLEN);
usr/src/uts/sun4v/io/dr_cpu.c
1506
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/sun4v/io/dr_cpu.c
1509
__func__, (void *)path, MAXPATHLEN);
usr/src/uts/sun4v/io/dr_cpu.c
1514
(void) ddi_pathname(fdip, path);
usr/src/uts/sun4v/io/dr_cpu.c
1517
(void) ddi_pathname(dip, path);
usr/src/uts/sun4v/io/dr_cpu.c
1520
path, (fdip) ? (void *)fdip : (void *)dip);
usr/src/uts/sun4v/io/dr_cpu.c
1523
__func__, (void *)path, MAXPATHLEN);
usr/src/uts/sun4v/io/dr_cpu.c
1524
kmem_free(path, MAXPATHLEN);
usr/src/uts/sun4v/io/dr_io.c
723
char *path = kmem_alloc(MAXPATHLEN, KM_SLEEP);
usr/src/uts/sun4v/io/dr_io.c
726
__func__, (void *)path, MAXPATHLEN);
usr/src/uts/sun4v/io/dr_io.c
731
(void) ddi_pathname(fdip, path);
usr/src/uts/sun4v/io/dr_io.c
734
(void) ddi_pathname(dip, path);
usr/src/uts/sun4v/io/dr_io.c
738
__func__, path, (fdip) ? (void *)fdip : (void *)dip);
usr/src/uts/sun4v/io/dr_io.c
743
__func__, (void *)path, MAXPATHLEN);
usr/src/uts/sun4v/io/dr_io.c
744
kmem_free(path, MAXPATHLEN);
usr/src/uts/sun4v/io/niumx/niumx_tools.c
248
(void) strlcpy(dev->path, path_name, MAXPATHLEN);
usr/src/uts/sun4v/io/vds.c
6573
char *path = vd->device_path;
usr/src/uts/sun4v/io/vds.c
6577
if ((status = lookupname(path, UIO_SYSSPACE,
usr/src/uts/sun4v/io/vds.c
6579
PR0("Cannot lookup %s errno %d", path, status);
usr/src/uts/sun4v/io/vds.c
6621
PRN("%s is no longer accessible", path);
usr/src/uts/sun4v/io/vds.c
6634
path, status);
usr/src/uts/sun4v/io/vds.c
6667
PRN("Unsupported vdisk backend %s", path);
usr/src/uts/sun4v/io/vds.c
6683
path, status);
usr/src/uts/sun4v/io/vds.c
6688
"(error %d)", path, status);
usr/src/uts/sun4v/io/vds.c
6694
PRN("%s is now online", path);
usr/src/uts/sun4v/promif/promif_node.c
208
finddevice(char *path)
usr/src/uts/sun4v/promif/promif_node.c
218
CIF_DBG_NODE("finddevice: %s\n", path);
usr/src/uts/sun4v/promif/promif_node.c
220
tp = path;
usr/src/uts/sun4v/promif/promif_node.c
36
static pnode_t finddevice(char *path);
usr/src/uts/sun4v/promif/promif_node.c
56
char *path;
usr/src/uts/sun4v/promif/promif_node.c
60
path = p1275_cell2ptr(ci[3]);
usr/src/uts/sun4v/promif/promif_node.c
62
if (strcmp("/chosen", path) == 0) {
usr/src/uts/sun4v/promif/promif_node.c
64
} else if (strcmp("/options", path) == 0) {
usr/src/uts/sun4v/sys/drctl.h
78
char path[1];
usr/src/uts/sun4v/sys/drctl.h
94
#define res_dev_path un.dev.path