summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-11-22 17:56:10 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:26 -0500
commite02651b57880bb32ea693abf434751a216df9464 (patch)
treee812717b4126edc8407d71a86ce8217e24bdfc15
parentfa22b4823aab053f0500b117527fa910db70277a (diff)
downloadperk-e02651b57880bb32ea693abf434751a216df9464.tar.bz2
perk-e02651b57880bb32ea693abf434751a216df9464.tar.xz
driver integration 7/9: semantic change: 'name'--> 'path' where applicable.
-rw-r--r--include/perk/perk.h4
-rw-r--r--src/logic/pe_map_raw_image.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h
index f05ae89..67d768e 100644
--- a/include/perk/perk.h
+++ b/include/perk/perk.h
@@ -153,14 +153,14 @@ struct pe_unit_ctx {
perk_api int pe_get_driver_ctx (const char ** argv, const char ** envp, uint32_t flags, struct pe_driver_ctx **);
perk_api void pe_free_driver_ctx (struct pe_driver_ctx *);
-perk_api int pe_get_unit_ctx (struct pe_driver_ctx *, const char * name, struct pe_unit_ctx **);
+perk_api int pe_get_unit_ctx (struct pe_driver_ctx *, const char * path, struct pe_unit_ctx **);
perk_api void pe_free_unit_ctx (struct pe_unit_ctx *);
/* utility api */
perk_api int pe_output_export_symbols (const struct pe_image_meta *, const struct pe_common_ctx *, FILE *);
/* high-level api */
-perk_api int pe_map_raw_image (int fd, const char * name, int prot, struct pe_raw_image *);
+perk_api int pe_map_raw_image (int fd, const char * path, int prot, struct pe_raw_image *);
perk_api int pe_unmap_raw_image (struct pe_raw_image *);
perk_api int pe_get_image_meta (const struct pe_raw_image *, struct pe_image_meta **);
diff --git a/src/logic/pe_map_raw_image.c b/src/logic/pe_map_raw_image.c
index 5792f78..c248ce9 100644
--- a/src/logic/pe_map_raw_image.c
+++ b/src/logic/pe_map_raw_image.c
@@ -8,13 +8,13 @@
#include <perk/perk.h>
-int pe_map_raw_image (int fd, const char * fname, int prot, struct pe_raw_image * map)
+int pe_map_raw_image (int fd, const char * path, int prot, struct pe_raw_image * map)
{
struct stat stat;
bool fnew;
if (fnew = (fd < 0))
- fd = open(fname,O_RDONLY | O_CLOEXEC);
+ fd = open(path,O_RDONLY | O_CLOEXEC);
if ((fd < 0) || (fstat(fd,&stat) < 0))
return -1;