[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

crdup Kernel Service

Purpose

Copies a credentials structure to a new one.

Syntax

 

#include <sys/cred.h>

 


struct ucred * crdup ( cr)
struct ucred * cr;

Parameter

cr Pointer to the credentials structure that is to be copied.

Description

The crdup kernel service allocates a new credentials structure that is initialized from the contents of the cr parameter.

Execution Environment

The crdup kernel service can be called from the process environment only.

Return Values

Nonzero value A pointer to a newly allocated and initialized credentials structure.

Related Information

Security Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]