[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Communications Technical Reference, Volume 1

user2netname Subroutine

Purpose

Converts from a domain-specific user ID to a network name that is independent from the operating system.

Library

C Library (libc.a)

Syntax

#include <rpc/rpc.h>
int user2netname (name, uid, domain)
char *name;
int uid;
char *domain;

Description

The user2netname subroutine converts from a domain-specific user ID to a network name that is independent from the operating system.

This subroutine is the inverse of the netname2user subroutine.

Parameters

name Points to the network name (or netname) of the server process owner.
uid Points to the caller's effective user ID (UID).
domain Points to the domain name.

Return Values

Upon successful completion, this subroutine returns a value of 1. If unsuccessful, it returns a value of 0.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

The host2netname subroutine, netname2user subroutine.

List of RPC Programming References.

Remote Procedure Call (RPC) Overview for Programming in AIX Communications Programming Concepts.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]