Print this page
Code review comments from jeffpc
*** 6,19 ****
SYNOPSIS
Process Control Library (libproc, -lproc)
#include <libproc.h>
int
! Ppriv(struct ps_prochandle *P, prsecflags_t **psf);
void
! Ppriv_free(struct ps_prochandle *P, prsecflags_t *psf);
DESCRIPTION
The Psecflags() function obtains the security flags of the process handle
P. The security flags structure will be dynamically allocated and a
pointer to it will be placed in psf. It must be released with a call to
--- 6,19 ----
SYNOPSIS
Process Control Library (libproc, -lproc)
#include <libproc.h>
int
! Psecflags(struct ps_prochandle *P, prsecflags_t **psf);
void
! Psecflags_free(struct ps_prochandle *P, prsecflags_t *psf);
DESCRIPTION
The Psecflags() function obtains the security flags of the process handle
P. The security flags structure will be dynamically allocated and a
pointer to it will be placed in psf. It must be released with a call to
*** 23,33 ****
The Psecflags_free() function releases the storage in psf that was
allocated as a result of calling Psecflags().
RETURN VALUES
Upon successful completion, the Psecflags() function returns 0 and psf is
! updated with a pointer to the allocated privilege set. Otherwise, -1 is
returned and psf is not updated.
INTERFACE STABILITY
Uncommitted
--- 23,33 ----
The Psecflags_free() function releases the storage in psf that was
allocated as a result of calling Psecflags().
RETURN VALUES
Upon successful completion, the Psecflags() function returns 0 and psf is
! updated with a pointer to the allocated security flags. Otherwise, -1 is
returned and psf is not updated.
INTERFACE STABILITY
Uncommitted
*** 35,40 ****
See LOCKING in libproc(3LIB).
SEE ALSO
libproc(3LIB), proc(4), security-flags(5)
! illumos May 14, 2016 illumos
--- 35,40 ----
See LOCKING in libproc(3LIB).
SEE ALSO
libproc(3LIB), proc(4), security-flags(5)
! illumos June 6, 2016 illumos