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

Technical Reference: Communications, 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.

Related Information

The host2netname subroutine, netname2user subroutine.

List of RPC Programming References.

Remote Procedure Call (RPC) Overview for Programming in AIX 5L Version 5.2 Communications Programming Concepts.

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