Print this page
3946 ::gcore
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libproc/common/llib-lproc
          +++ new/usr/src/lib/libproc/common/llib-lproc
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /* LINTLIBRARY */
  22   22  /* PROTOLIB1 */
  23   23  
  24   24  /*
  25   25   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  26   26   * Use is subject to license terms.
  27   27   */
       28 +/*
       29 + * Copyright (c) 2013 by Delphix. All rights reserved.
       30 + */
  28   31  #include "libproc.h"
  29   32  
  30   33  /*
  31   34   * usr/src/lib/libproc
  32   35   */
  33   36  
  34   37  /* Pcontrol.c */
  35   38  int     _libproc_debug;
  36   39  struct ps_prochandle *Pcreate(const char *file, char *const *argv,
  37   40                  int *perr, char *path, size_t len);
↓ open down ↓ 1 lines elided ↑ open up ↑
  39   42  void    Pcreate_callback(struct ps_prochandle *Pr);
  40   43  struct ps_prochandle *Pgrab(pid_t pid, int gflag, int *perr);
  41   44  const char *Pgrab_error(int error);
  42   45  void    Pfree(struct ps_prochandle *Pr);
  43   46  int     Pstate(struct ps_prochandle *Pr);
  44   47  int     Pasfd(struct ps_prochandle *Pr);
  45   48  int     Pctlfd(struct ps_prochandle *Pr);
  46   49  const psinfo_t *Ppsinfo(struct ps_prochandle *Pr);
  47   50  const pstatus_t *Pstatus(struct ps_prochandle *Pr);
  48   51  int     Pcred(struct ps_prochandle *Pr, prcred_t *pcrp, int ngroups);
  49      -ssize_t Ppriv(struct ps_prochandle *Pr, prpriv_t *pprivp, size_t);
       52 +int     Ppriv(struct ps_prochandle *Pr, prpriv_t **pprivp);
  50   53  void    Psync(struct ps_prochandle *Pr);
  51   54  int     Pcreate_agent(struct ps_prochandle *Pr);
  52   55  void    Pdestroy_agent(struct ps_prochandle *Pr);
  53   56  int     Preopen(struct ps_prochandle *Pr);
  54   57  void    Prelease(struct ps_prochandle *Pr, int flags);
  55   58  int     Pstopstatus(struct ps_prochandle *Pr, long cmd, uint_t msec);
  56   59  int     Pwait(struct ps_prochandle *Pr, uint_t msec);
  57   60  int     Pstop(struct ps_prochandle *Pr, uint_t msec);
  58   61  int     Pdstop(struct ps_prochandle *Pr);
  59   62  int     Pgetareg(struct ps_prochandle *Pr, int regno, prgreg_t *preg);
↓ open down ↓ 328 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX