Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 PWRITE(3PROC)          Process Control Library Functions         PWRITE(3PROC)
   2 
   3 NAME
   4      Pwrite - write data to the address space of a process
   5 
   6 SYNOPSIS
   7      Process Control Library (libproc, -lproc)


   8      #include <libproc.h>
   9 
  10      ssize_t
  11      Pwrite(struct ps_prochandle *P, const void *buf, size_t nbyte,
  12          uintptr_t address);
  13 
  14 DESCRIPTION
  15      The Pwrite() function writes data from buf to the process handle P
  16      starting at the address address.  It writes at most nbyte of data.  The
  17      Pwrite() function is logically analogous to the pwrite(2) function.
  18 
  19      For live processes, this function is equivalent to writing to the /proc
  20      file system as file for the process.  For core files, it writes to the
  21      logical address space of what was once the process and not the
  22      corresponding offset in the on-disk file.  ELF objects grabbed through
  23      Pgrab_file(3PROC) do not support being written to.
  24 
  25      The Pwrite() function cannot be used to extend the size of a mapping;
  26      writing to an unmapped region generates an error.
  27 


   1 PWRITE(3PROC)          Process Control Library Functions         PWRITE(3PROC)
   2 
   3 NAME
   4      Pwrite - write data to the address space of a process
   5 
   6 LIBRARY
   7      Process Control Library (libproc, -lproc)
   8 
   9 SYNOPSIS
  10      #include <libproc.h>
  11 
  12      ssize_t
  13      Pwrite(struct ps_prochandle *P, const void *buf, size_t nbyte,
  14          uintptr_t address);
  15 
  16 DESCRIPTION
  17      The Pwrite() function writes data from buf to the process handle P
  18      starting at the address address.  It writes at most nbyte of data.  The
  19      Pwrite() function is logically analogous to the pwrite(2) function.
  20 
  21      For live processes, this function is equivalent to writing to the /proc
  22      file system as file for the process.  For core files, it writes to the
  23      logical address space of what was once the process and not the
  24      corresponding offset in the on-disk file.  ELF objects grabbed through
  25      Pgrab_file(3PROC) do not support being written to.
  26 
  27      The Pwrite() function cannot be used to extend the size of a mapping;
  28      writing to an unmapped region generates an error.
  29