summaryrefslogtreecommitdiff
path: root/PACE/pace/posix/unistd.c
diff options
context:
space:
mode:
authorjwh1 <jwh1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-06-29 07:40:37 +0000
committerjwh1 <jwh1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-06-29 07:40:37 +0000
commit812c7626024ebee75ed16dbf1511cb08c80cd647 (patch)
tree2866ded1da6052eed72975bbb03b2a97fe502c5b /PACE/pace/posix/unistd.c
parent8cdba80eb6a071eb01c04027fd808645914de7ea (diff)
downloadATCD-812c7626024ebee75ed16dbf1511cb08c80cd647.tar.gz
Thu Jun 29 02:38:52 2000 John Heitmann <jwh1@cs.wustl.edu>
Diffstat (limited to 'PACE/pace/posix/unistd.c')
-rw-r--r--PACE/pace/posix/unistd.c35
1 files changed, 34 insertions, 1 deletions
diff --git a/PACE/pace/posix/unistd.c b/PACE/pace/posix/unistd.c
index f8e1e9a4676..3565c1f93a1 100644
--- a/PACE/pace/posix/unistd.c
+++ b/PACE/pace/posix/unistd.c
@@ -12,9 +12,42 @@
* Luther Baker
*
* ============================================================================= */
-
+#include <stdarg.h>
#include "pace/unistd.h"
+int
+execl (const char* path, const char* arg, ...)
+{
+ int result = 0;
+ va_list ap;
+ va_start (ap, arg);
+ result = pace_execv (path, ap);
+ va_end (ap);
+ return result;
+}
+
+int
+execle (const char* path, const char* arg, ...)
+{
+ int result = 0;
+ va_list ap;
+ va_start (ap, arg);
+ result = pace_execve (path, ap, 0);
+ va_end (ap);
+ return result;
+}
+
+int
+execlp (const char* file, const char* arg, ...)
+{
+ int result = 0;
+ va_list ap;
+ va_start (ap, arg);
+ result = pace_execvp (file, ap);
+ va_end (ap);
+ return result;
+}
+
#if !defined (PACE_HAS_INLINE)
# include "pace/posix/unistd.inl"
#endif /* ! PACE_HAS_INLINE */