Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 .\"
   2 .\" This file and its contents are supplied under the terms of the
   3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
   4 .\" You may only use this file in accordance with the terms of version
   5 .\" 1.0 of the CDDL.
   6 .\"
   7 .\" A full copy of the text of the CDDL should have accompanied this
   8 .\" source.  A copy of the CDDL is also available via the Internet at
   9 .\" http://www.illumos.org/license/CDDL.
  10 .\"
  11 .\"
  12 .\" Copyright 2015 Joyent, Inc.
  13 .\"
  14 .Dd May 11, 2016
  15 .Dt PGRAB_CORE 3PROC
  16 .Os
  17 .Sh NAME
  18 .Nm Pgrab_core ,
  19 .Nm Pfgrab_core
  20 .Nd grab a core file
  21 .Sh SYNOPSIS
  22 .Lb libproc

  23 .In libproc.h
  24 .Ft "struct ps_prochandle *"
  25 .Fo Pgrab_core
  26 .Fa "const char *core"
  27 .Fa "const char *aout"
  28 .Fa "int gflag"
  29 .Fa "int *perr"
  30 .Fc
  31 .Ft "struct ps_prochandle *"
  32 .Fo Pfgrab_core
  33 .Fa "int core_fd"
  34 .Fa "const char *aout"
  35 .Fa "int *perr"
  36 .Fc
  37 .Sh DESCRIPTION
  38 The
  39 .Fn Pgrab_core
  40 and
  41 .Fn Pfgrab_core
  42 functions open a core file for introspection.


   1 .\"
   2 .\" This file and its contents are supplied under the terms of the
   3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
   4 .\" You may only use this file in accordance with the terms of version
   5 .\" 1.0 of the CDDL.
   6 .\"
   7 .\" A full copy of the text of the CDDL should have accompanied this
   8 .\" source.  A copy of the CDDL is also available via the Internet at
   9 .\" http://www.illumos.org/license/CDDL.
  10 .\"
  11 .\"
  12 .\" Copyright 2015 Joyent, Inc.
  13 .\"
  14 .Dd May 11, 2016
  15 .Dt PGRAB_CORE 3PROC
  16 .Os
  17 .Sh NAME
  18 .Nm Pgrab_core ,
  19 .Nm Pfgrab_core
  20 .Nd grab a core file
  21 .Sh LIBRARY
  22 .Lb libproc
  23 .Sh SYNOPSIS
  24 .In libproc.h
  25 .Ft "struct ps_prochandle *"
  26 .Fo Pgrab_core
  27 .Fa "const char *core"
  28 .Fa "const char *aout"
  29 .Fa "int gflag"
  30 .Fa "int *perr"
  31 .Fc
  32 .Ft "struct ps_prochandle *"
  33 .Fo Pfgrab_core
  34 .Fa "int core_fd"
  35 .Fa "const char *aout"
  36 .Fa "int *perr"
  37 .Fc
  38 .Sh DESCRIPTION
  39 The
  40 .Fn Pgrab_core
  41 and
  42 .Fn Pfgrab_core
  43 functions open a core file for introspection.