xref: /titanic_51/usr/src/man/man3nsl/nlsprovider.3nsl (revision 23f76dc290ca84b3df56bf58be0a4b8e3a7e38ab)
te
Copyright 1989 AT&T Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
nlsprovider 3NSL "14 Nov 2002" "SunOS 5.11" "Networking Services Library Functions"
NAME
nlsprovider - get name of transport provider
SYNOPSIS

char *nlsprovider(void);
DESCRIPTION

nlsprovider() returns a pointer to a null-terminated character string which contains the name of the transport provider as placed in the environment by the listener process. If the variable is not defined in the environment, a NULL pointer is returned.

The environment variable is only available to server processes started by the listener process.

RETURN VALUES

If the variable is not defined in the environment, a NULL pointer is returned.

FILES

/usr/lib/libnls.so.1

shared object

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelUnsafe
SEE ALSO

nlsadmin(1M), attributes(5)

NOTES

This interface is unsafe in multithreaded applications. Unsafe interfaces should be called only from the main thread.