tiuser.h revision ba3594ba9b5dd4c846c472a8d657edcb7c8109ac
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* 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]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
* All Rights Reserved
*
*/
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
* Copyright 2014 Gary Mills
*/
#ifndef _SYS_TIUSER_H
#define _SYS_TIUSER_H
/*
* The following include file has declarations needed by both the kernel
* level transport providers and the user level library.
*/
#include <sys/tpicommon.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* The following are the events returned by t_look
*/
/*
* Flags for data primitives.
*/
/*
* protocol specific service limits
*/
struct t_info {
};
/*
* netbuf structure
*/
struct netbuf {
unsigned int maxlen;
unsigned int len;
char *buf;
};
#ifdef _SYSCALL32
struct netbuf32 {
};
#endif /* _SYSCALL32 */
/*
* t_bind - format of the address and options arguments of bind
*/
struct t_bind {
unsigned int qlen;
};
/*
* options management
*/
struct t_optmgmt {
};
/*
* disconnect structure
*/
struct t_discon {
int reason; /* reason code */
int sequence; /* sequence number */
};
/*
* call structure
*/
struct t_call {
int sequence; /* sequence number */
};
/*
* data gram structure
*/
struct t_unitdata {
};
/*
* unitdata error
*/
struct t_uderr {
};
/*
* The following are structure types used when dynamically
* allocating the above structures via t_structalloc().
*/
/*
* The following bits specify which fields of the above
* structures should be allocated by t_structalloc().
*/
/*
* the following are the states for the user
*/
#define T_UNINIT 0 /* uninitialized */
/*
* Flags for t_getname.
*/
#define LOCALNAME 0
#define REMOTENAME 1
extern int t_getstate(int fildes);
extern char *t_strerror(int errnum);
/*
* N.B.: this interface is deprecated. Use t_strerror() instead.
*/
extern char *t_errlist[];
extern int t_nerr;
#ifdef __cplusplus
}
#endif
#endif /* _SYS_TIUSER_H */