Print this page
remove support for non-ANSI compilation


   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  24  * All Rights Reserved
  25  *
  26  */
  27 
  28 /*


  29  * Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
  30  * Use is subject to license terms.
  31  * Copyright 2014 Gary Mills
  32  */
  33 
  34 #ifndef _SYS_TIUSER_H
  35 #define _SYS_TIUSER_H
  36 
  37 #include <sys/types.h>
  38 /*
  39  * The following include file has declarations needed by both the kernel
  40  * level transport providers and the user level library.
  41  */
  42 #include <sys/tpicommon.h>
  43 
  44 #ifdef  __cplusplus
  45 extern "C" {
  46 #endif
  47 
  48 


 175 /*
 176  * the following are the states for the user
 177  */
 178 
 179 #define T_UNINIT        0               /* uninitialized                */
 180 #define T_UNBND         1               /* unbound                      */
 181 #define T_IDLE          2               /* idle                         */
 182 #define T_OUTCON        3               /* outgoing connection pending  */
 183 #define T_INCON         4               /* incoming connection pending  */
 184 #define T_DATAXFER      5               /* data transfer                */
 185 #define T_OUTREL        6               /* outgoing release pending     */
 186 #define T_INREL         7               /* incoming release pending     */
 187 #define T_BADSTATE      8               /* illegal state */
 188 
 189 /*
 190  * Flags for t_getname.
 191  */
 192 #define LOCALNAME       0
 193 #define REMOTENAME      1
 194 
 195 #if defined(__STDC__)
 196 
 197 extern int t_accept(int fildes, int resfd, struct t_call *call);
 198 extern char *t_alloc(int fildes, int struct_type, int fields);
 199 extern int t_bind(int fildes, struct t_bind *req, struct t_bind *ret);
 200 extern int t_close(int fildes);
 201 extern int t_connect(int fildes, struct t_call *sndcall,
 202                     struct t_call *rcvcall);
 203 extern void t_error(const char *errmsg);
 204 extern int t_free(char *ptr, int struct_type);
 205 extern int t_getinfo(int fildes, struct t_info *info);
 206 extern int t_getname(int fildes, struct netbuf *name, int type);
 207 extern int t_getstate(int fildes);
 208 extern int t_listen(int fildes, struct t_call *call);
 209 extern int t_look(int fildes);
 210 extern int t_open(const char *path, int oflag, struct t_info *info);
 211 extern int t_optmgmt(int fildes, struct t_optmgmt *req,
 212                     struct t_optmgmt *ret);
 213 extern int t_rcv(int fildes, char *buf, unsigned nbytes, int *flags);
 214 extern int t_rcvconnect(int fildes, struct t_call *call);
 215 extern int t_rcvdis(int fildes, struct t_discon *discon);
 216 extern int t_rcvrel(int fildes);
 217 extern int t_rcvudata(int fildes, struct t_unitdata *unitdata, int *flags);
 218 extern int t_rcvuderr(int fildes, struct t_uderr *uderr);
 219 extern int t_snd(int fildes, char *buf, unsigned nbytes, int flags);
 220 extern int t_snddis(int fildes, struct t_call *call);
 221 extern int t_sndrel(int fildes);
 222 extern int t_sndudata(int fildes, struct t_unitdata *unitdata);
 223 extern char *t_strerror(int errnum);
 224 extern int t_sync(int fildes);
 225 extern int t_unbind(int fildes);
 226 
 227 /*
 228  *      N.B.:  this interface is deprecated.  Use t_strerror() instead.
 229  */
 230 extern char *t_errlist[];
 231 extern int t_nerr;
 232 
 233 #endif /* __STDC__ */
 234 
 235 #ifdef  __cplusplus
 236 }
 237 #endif
 238 
 239 #endif  /* _SYS_TIUSER_H */


   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
  24  * All Rights Reserved
  25  *
  26  */
  27 
  28 /*
  29  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  30  *
  31  * Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
  32  * Use is subject to license terms.
  33  * Copyright 2014 Gary Mills
  34  */
  35 
  36 #ifndef _SYS_TIUSER_H
  37 #define _SYS_TIUSER_H
  38 
  39 #include <sys/types.h>
  40 /*
  41  * The following include file has declarations needed by both the kernel
  42  * level transport providers and the user level library.
  43  */
  44 #include <sys/tpicommon.h>
  45 
  46 #ifdef  __cplusplus
  47 extern "C" {
  48 #endif
  49 
  50 


 177 /*
 178  * the following are the states for the user
 179  */
 180 
 181 #define T_UNINIT        0               /* uninitialized                */
 182 #define T_UNBND         1               /* unbound                      */
 183 #define T_IDLE          2               /* idle                         */
 184 #define T_OUTCON        3               /* outgoing connection pending  */
 185 #define T_INCON         4               /* incoming connection pending  */
 186 #define T_DATAXFER      5               /* data transfer                */
 187 #define T_OUTREL        6               /* outgoing release pending     */
 188 #define T_INREL         7               /* incoming release pending     */
 189 #define T_BADSTATE      8               /* illegal state */
 190 
 191 /*
 192  * Flags for t_getname.
 193  */
 194 #define LOCALNAME       0
 195 #define REMOTENAME      1
 196 


 197 extern int t_accept(int fildes, int resfd, struct t_call *call);
 198 extern char *t_alloc(int fildes, int struct_type, int fields);
 199 extern int t_bind(int fildes, struct t_bind *req, struct t_bind *ret);
 200 extern int t_close(int fildes);
 201 extern int t_connect(int fildes, struct t_call *sndcall,
 202                     struct t_call *rcvcall);
 203 extern void t_error(const char *errmsg);
 204 extern int t_free(char *ptr, int struct_type);
 205 extern int t_getinfo(int fildes, struct t_info *info);
 206 extern int t_getname(int fildes, struct netbuf *name, int type);
 207 extern int t_getstate(int fildes);
 208 extern int t_listen(int fildes, struct t_call *call);
 209 extern int t_look(int fildes);
 210 extern int t_open(const char *path, int oflag, struct t_info *info);
 211 extern int t_optmgmt(int fildes, struct t_optmgmt *req,
 212                     struct t_optmgmt *ret);
 213 extern int t_rcv(int fildes, char *buf, unsigned nbytes, int *flags);
 214 extern int t_rcvconnect(int fildes, struct t_call *call);
 215 extern int t_rcvdis(int fildes, struct t_discon *discon);
 216 extern int t_rcvrel(int fildes);
 217 extern int t_rcvudata(int fildes, struct t_unitdata *unitdata, int *flags);
 218 extern int t_rcvuderr(int fildes, struct t_uderr *uderr);
 219 extern int t_snd(int fildes, char *buf, unsigned nbytes, int flags);
 220 extern int t_snddis(int fildes, struct t_call *call);
 221 extern int t_sndrel(int fildes);
 222 extern int t_sndudata(int fildes, struct t_unitdata *unitdata);
 223 extern char *t_strerror(int errnum);
 224 extern int t_sync(int fildes);
 225 extern int t_unbind(int fildes);
 226 
 227 /*
 228  *      N.B.:  this interface is deprecated.  Use t_strerror() instead.
 229  */
 230 extern char *t_errlist[];
 231 extern int t_nerr;
 232 


 233 #ifdef  __cplusplus
 234 }
 235 #endif
 236 
 237 #endif  /* _SYS_TIUSER_H */