home *** CD-ROM | disk | FTP | other *** search
- /*
- * @(#) timod.h 1.1 88/05/18
- *
- * Copyright (C) The Santa Cruz Operation, 1984, 1985, 1986, 1987, 1988.
- * Copyright (C) Microsoft Corporation, 1984, 1985, 1986, 1987, 1988.
- * This Module contains Proprietary Information of
- * The Santa Cruz Operation, Microsoft Corporation
- * and AT&T, and should be treated as Confidential.
- */
-
- /*
- * THIS FILE CONTAINS CODE WHICH IS DESIGNED TO BE
- * PORTABLE BETWEEN DIFFERENT MACHINE ARCHITECTURES
- * AND CONFIGURATIONS. IT SHOULD NOT REQUIRE ANY
- * MODIFICATIONS WHEN ADAPTING XENIX TO NEW HARDWARE.
- */
-
- /* internal flags */
- #define USED 0x01 /* data structure in use */
- #define FATAL 0x02 /* fatal error M_ERROR occurred */
- #define WAITIOCACK 0x04 /* waiting for info for ioctl act */
- #define MORE 0x08 /* more data */
- #define EXPEDITED 0x10 /* processing expedited TSDU */
-
-
-
- /* timod ioctls */
- #define TIMOD ('T'<<8)
- #define TI_GETINFO (TIMOD|100)
- #define TI_OPTMGMT (TIMOD|101)
- #define TI_BIND (TIMOD|102)
- #define TI_UNBIND (TIMOD|103)
-
- #ifdef M_I386
- #pragma pack(4)
- #endif
-
- /* TI interface user level structure - one per open file */
-
- struct _ti_user {
- ushort ti_flags; /* flags */
- int ti_rcvsize; /* rcv buffer size */
- char *ti_rcvbuf; /* rcv buffer */
- int ti_ctlsize; /* ctl buffer size */
- char *ti_ctlbuf; /* ctl buffer */
- char *ti_lookdbuf; /* look data buffer */
- char *ti_lookcbuf; /* look ctl buffer */
- int ti_lookdsize; /* look data buf size */
- int ti_lookcsize; /* look ctl buf size */
- int ti_maxpsz; /* TIDU size */
- long ti_servtype; /* service type */
- int ti_lookflg; /* buffered look flag */
- int ti_state; /* user level state */
- int ti_ocnt; /* # outstanding connect indications */
- };
-
- /* old TI interface user level structure - needed for compatibility */
-
- struct _oldti_user {
- ushort ti_flags; /* flags */
- int ti_rcvsize; /* rcv buffer size */
- char *ti_rcvbuf; /* rcv buffer */
- int ti_ctlsize; /* ctl buffer size */
- char *ti_ctlbuf; /* ctl buffer */
- char *ti_lookdbuf; /* look data buffer */
- char *ti_lookcbuf; /* look ctl buffer */
- int ti_lookdsize; /* look data buf size */
- int ti_lookcsize; /* look ctl buf size */
- int ti_maxpsz; /* TIDU size */
- long ti_servtype; /* service type */
- int ti_lookflg; /* buffered look flag */
- };
-
- #ifdef M_I386
- #pragma pack()
- #endif
-
-
- #ifdef M_I86
- #define OPENFILES NOFILE
- #else
- /* This should be replaced */
- extern long ulimit();
- #define OPENFILES ulimit(4, 0)
- #endif
-