Back to index

cell-binutils  2.17cvs20070401
pex-one.c File Reference
#include "config.h"
#include "libiberty.h"

Go to the source code of this file.


const char * pex_one (int flags, const char *executable, char *const *argv, const char *pname, const char *outname, const char *errname, int *status, int *err)

Function Documentation

const char* pex_one ( int  flags,
const char *  executable,
char *const argv,
const char *  pname,
const char *  outname,
const char *  errname,
int status,
int err 

Definition at line 24 of file pex-one.c.

  struct pex_obj *obj;
  const char *errmsg;

  obj = pex_init (0, pname, NULL);
  errmsg = pex_run (obj, flags, executable, argv, outname, errname, err);
  if (errmsg == NULL)
      if (!pex_get_status (obj, 1, status))
         *err = 0;
         errmsg = "pex_get_status failed";
  pex_free (obj);
  return errmsg;  

Here is the call graph for this function: