summaryrefslogtreecommitdiff
path: root/usr.bin/pmdb/pmdb.h
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2003-08-18 17:55:58 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2003-08-18 17:55:58 +0000
commit67aefb38bb64562b01aa14a644c3911373a26570 (patch)
treead689c659289892efddb18f8b6de3028a1694dfd /usr.bin/pmdb/pmdb.h
parentbeff3e6377d5d75d9a8cf18bae505187a6863a5d (diff)
when given only an executable name without a valid path, resolve the
actual executable path from the PATH environment, so the calls to access() and stat() work correctly when loading the process ok art@
Diffstat (limited to 'usr.bin/pmdb/pmdb.h')
-rw-r--r--usr.bin/pmdb/pmdb.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/pmdb/pmdb.h b/usr.bin/pmdb/pmdb.h
index 5cb63a20cf2..98276c8700f 100644
--- a/usr.bin/pmdb/pmdb.h
+++ b/usr.bin/pmdb/pmdb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmdb.h,v 1.6 2003/05/15 00:11:03 jfb Exp $ */
+/* $OpenBSD: pmdb.h,v 1.7 2003/08/18 17:55:57 jfb Exp $ */
/*
* Copyright (c) 2002 Artur Grabowski <art@openbsd.org>
* All rights reserved.
@@ -81,10 +81,12 @@ struct pstate {
#define SS_IGNORE 0x01
/* misc helper functions */
+int getexecpath(const char *, char *, size_t);
int process_kill(struct pstate *);
/* process.c */
int process_load(struct pstate *);
+int process_setargv(struct pstate *, int, char **);
int process_run(struct pstate *);
int process_read(struct pstate *, off_t, void *, size_t);
int process_write(struct pstate *, off_t, void *, size_t);