Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 79) sorted by relevance

1234

/illumos-kvm-cmd/hw/
H A Dvirtio-9p-local.c27 err = lstat(rpath(fs_ctx, path), stbuf); in local_lstat()
115 fd = open(rpath(fs_ctx, path), O_RDONLY); in local_readlink()
143 return open(rpath(ctx, path), flags); in local_open()
148 return opendir(rpath(ctx, path)); in local_opendir()
243 remove(rpath(fs_ctx, path)); in local_mknod()
280 remove(rpath(fs_ctx, path)); in local_mkdir()
351 remove(rpath(fs_ctx, path)); in local_open2()
444 return truncate(rpath(ctx, path), size); in local_truncate()
490 return remove(rpath(ctx, path)); in local_remove()
504 return statfs(rpath(s, path), stbuf); in local_statfs()
[all …]
H A Dvirtio-9p-xattr.h21 ssize_t (*getxattr)(FsContext *ctx, const char *path,
23 ssize_t (*listxattr)(FsContext *ctx, const char *path,
25 int (*setxattr)(FsContext *ctx, const char *path, const char *name,
28 const char *path, const char *name);
54 static inline ssize_t pt_getxattr(FsContext *ctx, const char *path, in pt_getxattr() argument
57 return lgetxattr(rpath(ctx, path), name, value, size); in pt_getxattr()
60 static inline int pt_setxattr(FsContext *ctx, const char *path, in pt_setxattr() argument
64 return lsetxattr(rpath(ctx, path), name, value, size, flags); in pt_setxattr()
68 const char *path, const char *name) in pt_removexattr() argument
70 return lremovexattr(rpath(ctx, path), name); in pt_removexattr()
[all …]
H A Dvirtio-9p-posix-acl.c26 static ssize_t mp_pacl_getxattr(FsContext *ctx, const char *path, in mp_pacl_getxattr() argument
29 return lgetxattr(rpath(ctx, path), MAP_ACL_ACCESS, value, size); in mp_pacl_getxattr()
32 static ssize_t mp_pacl_listxattr(FsContext *ctx, const char *path, in mp_pacl_listxattr() argument
53 return lsetxattr(rpath(ctx, path), MAP_ACL_ACCESS, value, size, flags); in mp_pacl_setxattr()
57 const char *path, const char *name) in mp_pacl_removexattr() argument
60 ret = lremovexattr(rpath(ctx, path), MAP_ACL_ACCESS); in mp_pacl_removexattr()
73 static ssize_t mp_dacl_getxattr(FsContext *ctx, const char *path, in mp_dacl_getxattr() argument
76 return lgetxattr(rpath(ctx, path), MAP_ACL_DEFAULT, value, size); in mp_dacl_getxattr()
79 static ssize_t mp_dacl_listxattr(FsContext *ctx, const char *path, in mp_dacl_listxattr() argument
104 const char *path, const char *name) in mp_dacl_removexattr() argument
[all …]
H A Dvirtio-9p-xattr.c32 ssize_t v9fs_get_xattr(FsContext *ctx, const char *path, in v9fs_get_xattr() argument
37 return xops->getxattr(ctx, path, name, value, size); in v9fs_get_xattr()
43 ssize_t pt_listxattr(FsContext *ctx, const char *path, in pt_listxattr() argument
65 ssize_t v9fs_list_xattr(FsContext *ctx, const char *path, in v9fs_list_xattr() argument
75 xattr_len = llistxattr(rpath(ctx, path), value, 0); in v9fs_list_xattr()
82 xattr_len = llistxattr(rpath(ctx, path), orig_value, xattr_len); in v9fs_list_xattr()
95 size = xops->listxattr(ctx, path, orig_value, value, vsize); in v9fs_list_xattr()
117 int v9fs_set_xattr(FsContext *ctx, const char *path, const char *name, in v9fs_set_xattr() argument
122 return xops->setxattr(ctx, path, name, value, size, flags); in v9fs_set_xattr()
130 const char *path, const char *name) in v9fs_remove_xattr() argument
[all …]
H A Dvirtio-9p-xattr-user.c21 static ssize_t mp_user_getxattr(FsContext *ctx, const char *path, in mp_user_getxattr() argument
32 return lgetxattr(rpath(ctx, path), name, value, size); in mp_user_getxattr()
35 static ssize_t mp_user_listxattr(FsContext *ctx, const char *path, in mp_user_listxattr() argument
67 static int mp_user_setxattr(FsContext *ctx, const char *path, const char *name, in mp_user_setxattr() argument
78 return lsetxattr(rpath(ctx, path), name, value, size, flags); in mp_user_setxattr()
82 const char *path, const char *name) in mp_user_removexattr() argument
92 return lremovexattr(rpath(ctx, path), name); in mp_user_removexattr()
H A Dpetalogix_s3adsp1800_mmu.c66 char *path; in petalogix_load_device_tree() local
75 path = qemu_find_file(QEMU_FILE_TYPE_BIOS, BINARY_DEVICE_TREE_FILE); in petalogix_load_device_tree()
76 if (path) { in petalogix_load_device_tree()
77 fdt = load_device_tree(path, &fdt_size); in petalogix_load_device_tree()
78 qemu_free(path); in petalogix_load_device_tree()
93 path = qemu_find_file(QEMU_FILE_TYPE_BIOS, BINARY_DEVICE_TREE_FILE); in petalogix_load_device_tree()
94 if (path) { in petalogix_load_device_tree()
95 fdt_size = load_image_targphys(path, addr, 0x10000); in petalogix_load_device_tree()
96 qemu_free(path); in petalogix_load_device_tree()
H A Dvirtio-9p.c947 stat->qid.path == -1 && in donttouch_stat()
1520 v9fs_string_sprintf(&vs->path, "%s/%s", vs->newfidp->path.data, in v9fs_walk_post_newfid_lstat()
1522 v9fs_string_copy(&vs->newfidp->path, &vs->path); in v9fs_walk_post_newfid_lstat()
1529 v9fs_string_free(&vs->path); in v9fs_walk_post_newfid_lstat()
1551 v9fs_string_copy(&vs->fidp->path, &vs->path); in v9fs_walk_post_oldfid_lstat()
1608 v9fs_string_copy(&vs->fidp->path, &vs->path); in v9fs_walk()
1624 v9fs_string_copy(&vs->newfidp->path, &vs->fidp->path); in v9fs_walk()
1627 v9fs_string_sprintf(&vs->path, "%s/%s", vs->newfidp->path.data, in v9fs_walk()
1629 v9fs_string_copy(&vs->newfidp->path, &vs->path); in v9fs_walk()
2810 if (!strncmp(vs->fidp->path.data, fidp->path.data, in v9fs_complete_rename()
[all …]
H A Dvirtex_ml507.c145 char *path; in xilinx_load_device_tree() local
154 path = qemu_find_file(QEMU_FILE_TYPE_BIOS, BINARY_DEVICE_TREE_FILE); in xilinx_load_device_tree()
155 if (path) { in xilinx_load_device_tree()
156 fdt = load_device_tree(path, &fdt_size); in xilinx_load_device_tree()
157 qemu_free(path); in xilinx_load_device_tree()
173 path = qemu_find_file(QEMU_FILE_TYPE_BIOS, BINARY_DEVICE_TREE_FILE); in xilinx_load_device_tree()
174 if (path) { in xilinx_load_device_tree()
175 fdt_size = load_image_targphys(path, addr, 0x10000); in xilinx_load_device_tree()
176 qemu_free(path); in xilinx_load_device_tree()
H A Dxen_domainbuild.c10 static int xenstore_domain_mkdir(char *path) in xenstore_domain_mkdir() argument
28 if (!xs_mkdir(xenstore, 0, path)) { in xenstore_domain_mkdir()
29 fprintf(stderr, "%s: xs_mkdir %s: failed\n", __FUNCTION__, path); in xenstore_domain_mkdir()
32 if (!xs_set_permissions(xenstore, 0, path, perms_ro, 2)) { in xenstore_domain_mkdir()
38 snprintf(subpath, sizeof(subpath), "%s/%s", path, writable[i]); in xenstore_domain_mkdir()
54 char *dom, uuid_string[42], vm[256], path[256]; in xenstore_domain_init1() local
89 snprintf(path, sizeof(path), "cpu/%d/availability",i); in xenstore_domain_init1()
90 xenstore_write_str(dom, path, "online"); in xenstore_domain_init1()
H A Dqdev.c218 if (path != NULL) { in qdev_device_add()
219 bus = qbus_find(path); in qdev_device_add()
641 if (path[0] == '/') { in qbus_find()
646 assert(!path[0]); in qbus_find()
658 assert(path[pos] == '/' || !path[pos]); in qbus_find()
662 if (path[pos] == '\0') { in qbus_find()
681 assert(path[pos] == '/' || !path[pos]); in qbus_find()
685 if (path[pos] == '\0') { in qbus_find()
918 char path[128]; in qdev_get_fw_dev_path() local
923 path[l-1] = '\0'; in qdev_get_fw_dev_path()
[all …]
H A Dsysbus.c190 char path[40]; in sysbus_get_fw_dev_path() local
193 off = snprintf(path, sizeof(path), "%s", qdev_fw_name(dev)); in sysbus_get_fw_dev_path()
196 snprintf(path + off, sizeof(path) - off, "@"TARGET_FMT_plx, in sysbus_get_fw_dev_path()
199 snprintf(path + off, sizeof(path) - off, "@i%04x", s->pio[0]); in sysbus_get_fw_dev_path()
202 return strdup(path); in sysbus_get_fw_dev_path()
H A Dusb-bus.c154 snprintf(downstream->path, sizeof(downstream->path), "%s.%d", in usb_port_location()
155 upstream->path, portnr); in usb_port_location()
157 snprintf(downstream->path, sizeof(downstream->path), "%d", portnr); in usb_port_location()
181 if (strcmp(port->path, dev->port_path) == 0) { in do_attach()
286 dev->port ? dev->port->path : "-", in usb_bus_dev_print()
294 return qemu_strdup(dev->port->path); in usb_get_dev_path()
304 fw_len = 32 + strlen(dev->port->path) * 6; in usb_get_fw_dev_path()
306 in = dev->port->path; in usb_get_fw_dev_path()
340 bus->busnr, dev->addr, port->path, usb_speed(dev->speed), in usb_info()
H A Disa-bus.c183 char path[40]; in isabus_get_fw_dev_path() local
186 off = snprintf(path, sizeof(path), "%s", qdev_fw_name(dev)); in isabus_get_fw_dev_path()
188 snprintf(path + off, sizeof(path) - off, "@%04x", d->ioports[0]); in isabus_get_fw_dev_path()
191 return strdup(path); in isabus_get_fw_dev_path()
H A Dxen_backend.c504 char path[XEN_BUFSIZE], token[XEN_BUFSIZE]; in xenstore_scan() local
511 snprintf(path, sizeof(path), "%s/backend/%s/%d", dom0, type, dom); in xenstore_scan()
513 if (!xs_watch(xenstore, path, token)) { in xenstore_scan()
514 xen_be_printf(NULL, 0, "xen be: watching backend path (%s) failed\n", path); in xenstore_scan()
519 dev = xs_directory(xenstore, 0, path, &cdev); in xenstore_scan()
536 char path[XEN_BUFSIZE], *dom0; in xenstore_update_be() local
540 len = snprintf(path, sizeof(path), "%s/backend/%s/%d", dom0, type, dom); in xenstore_update_be()
542 if (strncmp(path, watch, len) != 0) in xenstore_update_be()
544 if (sscanf(watch+len, "/%u/%255s", &dev, path) != 2) { in xenstore_update_be()
545 strcpy(path, ""); in xenstore_update_be()
[all …]
H A Dwm8750.c47 uint8_t path[4], mpath[2], power, format; member
285 s->path[0] = 0; in wm8750_reset()
286 s->path[1] = 0; in wm8750_reset()
287 s->path[2] = 0; in wm8750_reset()
288 s->path[3] = 0; in wm8750_reset()
464 s->path[0] = (value >> 8) & 1; /* LD2LO */ in wm8750_tx()
470 s->path[1] = (value >> 8) & 1; /* RD2LO */ in wm8750_tx()
476 s->path[2] = (value >> 8) & 1; /* LD2RO */ in wm8750_tx()
482 s->path[3] = (value >> 8) & 1; /* RD2RO */ in wm8750_tx()
602 VMSTATE_UINT8_ARRAY(path, WM8750State, 4),
/illumos-kvm-cmd/audio/
H A Dwavcapture.c8 char *path; member
51 qemu_free (wav->path); in wav_destroy()
72 char *path = wav->path; in wav_capture_info() local
76 path ? path : "<not available>", wav->bytes); in wav_capture_info()
84 int wav_start_capture (CaptureState *s, const char *path, int freq, in wav_start_capture() argument
133 wav->f = qemu_fopen (path, "wb"); in wav_start_capture()
136 path, strerror (errno)); in wav_start_capture()
141 wav->path = qemu_strdup (path); in wav_start_capture()
151 qemu_free (wav->path); in wav_start_capture()
/illumos-kvm-cmd/block/
H A Dvvfat.c305 char* path; member
893 s->path = mapping->path; in init_directories()
1153 !strcmp(path, mapping->path)) in find_mapping_for_path()
1165 strcmp(s->current_mapping->path,mapping->path)) { in open_file()
1408 commit->path = path; in schedule_new_file()
1416 commit->path = path; in schedule_mkdir()
2110 next_mapping->path = mapping->path; in commit_mappings()
2364 mapping->path = commit->path; in handle_renames_and_mkdirs()
2388 assert(!strncmp(m->path, mapping->path, l2)); in handle_renames_and_mkdirs()
2424 mapping->path = commit->path; in handle_renames_and_mkdirs()
[all …]
/illumos-kvm-cmd/target-ppc/
H A Dkvm_ppc.c28 char *path; in kvmppc_read_host_property() local
35 path = qemu_malloc(pathlen); in kvmppc_read_host_property()
37 snprintf(path, pathlen, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop); in kvmppc_read_host_property()
39 f = fopen(path, "rb"); in kvmppc_read_host_property()
54 free(path); in kvmppc_read_host_property()
/illumos-kvm-cmd/
H A Dqemu-sockets.c506 const char *path = qemu_opt_get(opts, "path"); in unix_listen_opts() local
517 if (path && strlen(path)) { in unix_listen_opts()
556 const char *path = qemu_opt_get(opts, "path"); in unix_connect_opts() local
559 if (NULL == path) { in unix_connect_opts()
587 char *path, *optstr; in unix_listen() local
596 path = qemu_malloc(len+1); in unix_listen()
598 qemu_opt_set(opts, "path", path); in unix_listen()
599 qemu_free(path); in unix_listen()
613 int unix_connect(const char *path) in unix_connect() argument
619 qemu_opt_set(opts, "path", path); in unix_connect()
[all …]
H A Dpath.c59 static struct pathelem *add_dir_maybe(struct pathelem *path) in add_dir_maybe() argument
63 if ((dir = opendir(path->pathname)) != NULL) { in add_dir_maybe()
68 path = add_entry(path, dirent->d_name); in add_dir_maybe()
73 return path; in add_dir_maybe()
157 const char *path(const char *name) in path() function
H A Doslib-posix.c115 int qemu_utimensat(int dirfd, const char *path, const struct timespec *times, in qemu_utimensat() argument
124 ret = utimensat(dirfd, path, times, flags); in qemu_utimensat()
136 return utimes(path, NULL); in qemu_utimensat()
144 stat(path, &st); in qemu_utimensat()
160 return utimes(path, &tv[0]); in qemu_utimensat()
/illumos-kvm-cmd/fsdev/
H A Dqemu-fsdev.c34 const char *path = qemu_opt_get(opts, "path"); in qemu_fsdev_add() local
63 if (!path) { in qemu_fsdev_add()
71 fsle->fse.path = qemu_strdup(path); in qemu_fsdev_add()
/illumos-kvm-cmd/tests/cris/
H A Dcheck_stat4.c15 char path[1024] = "/"; in main() local
18 strcat (path, argv[0]); in main()
22 if (lstat (path, &buf) != 0 in main()
H A Dcheck_stat3.c13 char path[1024] = "/"; in main() local
16 strcat (path, argv[0]); in main()
20 if (stat (path, &buf) != 0 in main()
/illumos-kvm-cmd/hw/ide/
H A Dqdev.c44 char path[30]; in idebus_get_fw_dev_path() local
46 snprintf(path, sizeof(path), "%s@%d", qdev_fw_name(dev), in idebus_get_fw_dev_path()
49 return strdup(path); in idebus_get_fw_dev_path()

1234