Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PCREATE(3PROC)         Process Control Library Functions        PCREATE(3PROC)
   2 
   3 NAME
   4      Pcreate, Pxcreate, Pcreate_callback - create and control a process
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      struct ps_prochandle *
  11      Pcreate(const char *file, char *const *argv, int *perr, char *path,
  12          size_t len);
  13 
  14      struct ps_prochandle *
  15      Pxcreate(const char *file, char *const *argv, char *const *envp,
  16          int *perr, char *path, size_t len);
  17 
  18      void
  19      Pcreate_callback(struct ps_prochandle *P);
  20 
  21 DESCRIPTION
  22      The Pcreate() function creates a process controlled by the libproc
  23      library.  The Pxcreate() function does the same while also allowing the
  24      replacement of the environment via envp.
  25 
  26      Both functions cause the caller to fork(2).  Followed by the child
  27      calling exec(2) to load the new process image specified by file.  The


   1 PCREATE(3PROC)         Process Control Library Functions        PCREATE(3PROC)
   2 
   3 NAME
   4      Pcreate, Pxcreate, Pcreate_callback - create and control a process
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      struct ps_prochandle *
  13      Pcreate(const char *file, char *const *argv, int *perr, char *path,
  14          size_t len);
  15 
  16      struct ps_prochandle *
  17      Pxcreate(const char *file, char *const *argv, char *const *envp,
  18          int *perr, char *path, size_t len);
  19 
  20      void
  21      Pcreate_callback(struct ps_prochandle *P);
  22 
  23 DESCRIPTION
  24      The Pcreate() function creates a process controlled by the libproc
  25      library.  The Pxcreate() function does the same while also allowing the
  26      replacement of the environment via envp.
  27 
  28      Both functions cause the caller to fork(2).  Followed by the child
  29      calling exec(2) to load the new process image specified by file.  The