diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-10 05:27:03 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-10 05:27:03 +0000 |
commit | bda50530f4880bb025a0972d5f0e48c00cdefedc (patch) | |
tree | e2098523c3499c3b9f0441e69fa72fd71a73907a /epoc/epocish.c | |
parent | 92ec5d8d7e4c7ea1f93a37a0df93c5aa05f60a77 (diff) | |
download | perl-bda50530f4880bb025a0972d5f0e48c00cdefedc.tar.gz |
EPOC port update (from Olaf Flebbe <O.Flebbe@science-computing.de>)
p4raw-id: //depot/perl@4782
Diffstat (limited to 'epoc/epocish.c')
-rw-r--r-- | epoc/epocish.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/epoc/epocish.c b/epoc/epocish.c new file mode 100644 index 0000000000..134eaef0e0 --- /dev/null +++ b/epoc/epocish.c @@ -0,0 +1,34 @@ +/* + * Copyright (c) 1999 Olaf Flebbe o.flebbe@gmx.de + * + * You may distribute under the terms of either the GNU General Public + * License or the Artistic License, as specified in the README file. + * + */ + +/* This is indeed C++ Code !! */ + +#include <e32std.h> + +extern "C" { + +epoc_spawn( char *cmd, char *cmdline) { + RProcess p; + TRequestStatus status; + TInt rc; + + rc = p.Create( _L( cmd), _L( cmdline)); + if (rc != KErrNone) + return -1; + + p.Resume(); + + p.Logon( status); + User::WaitForRequest( status); + if (status!=KErrNone) { + return -1; + } + return 0; +} + +} |