Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PLDT(3PROC)            Process Control Library Functions           PLDT(3PROC)
   2 
   3 NAME
   4      Pldt, proc_get_ldt - obtain local descriptor table of a process
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      int
  11      Pldt(struct ps_prochandle *P, struct ssd *pldt, int nldt);
  12 
  13      int
  14      proc_get_ldt(pid_t pid, struct ssd *pldt, int nldt);
  15 
  16 DESCRIPTION
  17      The Pldt() function reads the local descriptor table (LDT) of the process
  18      handle P into the buffer pldt.  Up to nldt entries will be read.
  19 
  20      If either pldt is NULL or nldt is 0, then rather than filling in pldt,
  21      only the number of entries currently in the LDT is returned.
  22 
  23      The buffer pldt should contain sufficient space for nldt entries.  For
  24      example, callers could allocate space as:
  25 
  26            pldt = malloc(sizeof (struct ssd) * nldt);
  27 


   1 PLDT(3PROC)            Process Control Library Functions           PLDT(3PROC)
   2 
   3 NAME
   4      Pldt, proc_get_ldt - obtain local descriptor table of a process
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      int
  13      Pldt(struct ps_prochandle *P, struct ssd *pldt, int nldt);
  14 
  15      int
  16      proc_get_ldt(pid_t pid, struct ssd *pldt, int nldt);
  17 
  18 DESCRIPTION
  19      The Pldt() function reads the local descriptor table (LDT) of the process
  20      handle P into the buffer pldt.  Up to nldt entries will be read.
  21 
  22      If either pldt is NULL or nldt is 0, then rather than filling in pldt,
  23      only the number of entries currently in the LDT is returned.
  24 
  25      The buffer pldt should contain sufficient space for nldt entries.  For
  26      example, callers could allocate space as:
  27 
  28            pldt = malloc(sizeof (struct ssd) * nldt);
  29