head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	97.04.28.00.54.52;	author morgan;	state Exp;
branches;
next	;


desc
@zefram's manual
@


1.1
log
@Initial revision
@
text
@.\"
.\" $Id$
.\"
.TH CAP_GET_PROC 3 "26th April 1997" "" "Linux Programmer's Manual"
.SH NAME
cap_get_proc, cap_set_proc \- get/set capabilities of the process
.SH SYNOPSIS
.B #include <sys/capability.h>
.sp
.B cap_t cap_get_proc(void);
.sp
.BI "int cap_set_proc(cap_t " caps );
.SH DESCRIPTION
.B cap_get_proc
returns the capability sets of the process.
The returned value must later be disposed of by passing it to
.BR cap_free .
.PP
.B cap_set_proc
sets the capabilities of the process to
.IR caps .
.SH "RETURN VALUE"
.B cap_get_proc
returns a non-NULL value on success, and NULL on failure.
.PP
.B cap_set_proc
returns zero on success, and \-1 on failure.
.SH "CONFORMING TO"
These functions are specified by POSIX.1e.
.SH "SEE ALSO"
.IR cap_clear (3),
.IR cap_copy_ext (3),
.IR cap_from_text (3),
.IR cap_get_file (3),
.IR cap_init (3)
@
