/usr/include/audio/Astreams.h is in libaudio-dev 1.9.4-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | /* $NCDId: @(#)Astreams.h,v 1.2 1994/05/02 17:41:16 greg Exp $ */
/* $XConsortium: Xstreams.h,v 1.6 91/07/19 23:22:53 gildea Exp $ */
/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of AT&T or USL not be used in advertising
* or publicity pertaining to distribution of the software without specific,
* written prior permission. AT&T and USL make no representations about the
* suitability of this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
* AT&T and USL DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
* NO EVENT SHALL AT&T or USL BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef _ASTREAMS_H_
#define _ASTREAMS_H_
/*
Xstreams.h (C header file)
Acc: 575304412 Tue Apr 26 09:46:52 1988
Mod: 574017273 Tue Apr 26 12:14:33 1988
Sta: 574017273 Tue Apr 26 12:14:33 1988
Owner: 2011
Group: 1985
Permissions: 644
*/
/*
START USER STAMP AREA
*/
/*
END USER STAMP AREA
*/
#define MEM_ALLIGN(ptr) ((((unsigned) (ptr + 3)) >> 2) << 2)
#define CONNECT_TIMEOUT 60
#define MAX_AUTO_BUF_LEN 256
#define MAX_DISP_DIGITS 20
#define MAX_NETS 8
typedef struct _host {
char host_name[32];
int host_len;
struct _host *next;
} HOST;
/*
* Structure for handling multiple connection requests on the same stream.
*/
struct listenCall {
struct t_call *CurrentCall;
struct listenCall *NextCall;
};
struct listenQue {
struct listenCall *QueHead;
struct listenCall *QueTail;
};
#define EMPTY(p) (p->QueHead == (struct listenCall *) NULL)
typedef struct {
int flags;
char type;
int display;
char *inputbuf;
int buflen;
int bufptr;
int msglen;
} IOBUFFER;
typedef struct {
int _nnets;
#ifdef SVR4
struct netconfig *_net[MAX_NETS];
#else
char *_net[MAX_NETS];
#endif
struct listenQue FreeList[MAX_NETS];
struct listenQue PendingQue[MAX_NETS];
int _npeers;
char **_peer;
int *_peerlen;
HOST *_validhosts;
} networkInfo;
typedef struct _Austream {
int (*SetupTheListener)();
int (*ConnectNewClient)();
int (*CallTheListener)();
int (*ReadFromStream)();
int (*BytesCanBeRead)();
int (*WriteToStream)();
int (*CloseStream)();
int (*CreateAddress)();
union ext {
int (*NameServer)();
networkInfo *NetInfo;
} u;
} Austream;
extern Austream _AusStream[];
#define NO_BUFFERING 0
#define BUFFERING 1
/* Network services */
#define OpenDaemonConnection 0
#define PEER_NAME 1
#define PEER_ALLOC 2
#define PEER_FREE 3
#define ConvertNetAddrToName 4
#define ConvertNameToNetAddr 5
#define ConvertNameToTliCall 6
#define ConvertTliCallToName 7
#define ConvertNameToTliBind 8
#define UNAME_LENGTH 14
#define Au_LOCAL_STREAM 0
#define Au_NAMED_STREAM 1
/* Enhanced Application Compatibility Support */
#define Au_SP_STREAM 2
/* End Enhanced Application Compatibility Support */
#define Au_TLI_STREAM 3
#define CLOSED_STREAM -1
/*
The following are defined in X.h. Any changes to FamilyUname
should take X.h into consideration.
*/
/* protocol families */
/*
#define FamilyInternet 0
#define FamilyDECnet 1
#define FamilyChaos 2
*/
#define FamilyUname 3
#define Au_TCP_PORT 8000
/* JET - these need to agree with dia/connection.c */
#define NAMED_LISTENER "/dev/Au/Nserver"
#define LOCAL_LISTENER "/dev/Au/server"
/* Enhanced Application Compatibility Support */
/* End Enhanced Application Compatibility Support */
#define NAME_SERVER_NODE "/dev/X/nameserver"
#define MAX_SIMUL_TLI_CALLS 20
#define SetupNetworkInfo() _AusStream[Au_LOCAL_STREAM].u.NetInfo = &Network; \
_AusStream[Au_NAMED_STREAM].u.NetInfo = &Network; \
/* Enhanced Application Compatibility Support */ \
/* End Enhanced Application Compatibility Support */ \
_AusStream[Au_TLI_STREAM].u.NameServer = nameserver
#define NetworkInfo (_AusStream[Au_LOCAL_STREAM].u.NetInfo)
#define GetNetworkInfo (*_AusStream[Au_TLI_STREAM].u.NameServer)
#define validhosts _AusStream[Au_LOCAL_STREAM].u.NetInfo->_validhosts
/*
* header of messages sent by Au to the nameserver
* 1st int: the size of the entire message.
* 2nd int: the size of the header itself.
* 3rd int: the service number.
* 4th int: the display number.
* 5th int: the length of the network name.
*/
#define HEADERSIZE (5*sizeof(int))
#endif /* _ASTREAMS_H_ */
|