1 /* $XConsortium: sfdisc.h /main/2 1996/05/08 19:43:47 drk $ */
2 /***************************************************************
6 * THIS IS PROPRIETARY SOURCE CODE LICENSED BY *
9 * Copyright (c) 1995 AT&T Corp. *
10 * All Rights Reserved *
12 * This software is licensed by AT&T Corp. *
13 * under the terms and conditions of the license in *
14 * http://www.research.att.com/orgs/ssr/book/reuse *
16 * This software was created by the *
17 * Software Engineering Research Department *
18 * AT&T Bell Laboratories *
20 * For further information contact *
21 * gsf@research.att.com *
23 ***************************************************************/
25 /* : : generated by proto : : */
28 * AT&T Bell Laboratories
30 * sfio discipline interface definitions
34 #if !defined(__PROTO__)
35 #if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
36 #if defined(__cplusplus)
37 #define __MANGLE__ "C"
42 #define __PROTO__(x) x
44 #define __PARAM__(n,o) n
45 #if !defined(__STDC__) && !defined(__cplusplus)
46 #if !defined(c_plusplus)
57 #define __PROTO__(x) ()
58 #define __OTORP__(x) x
59 #define __PARAM__(n,o) o
67 #if defined(__cplusplus) || defined(c_plusplus)
68 #define __VARARG__ ...
72 #if defined(__STDARG__)
73 #define __VA_START__(p,a) va_start(p,a)
75 #define __VA_START__(p,a) va_start(p)
84 * %(...) printf support
87 typedef int (*Sf_key_lookup_t) __PROTO__((__V_*, const char*, const char*, int, char**, long*));
88 typedef char* (*Sf_key_convert_t) __PROTO__((__V_*, const char*, const char*, int, char*, long));
90 extern __MANGLE__ int sfkeyprintf __PROTO__((Sfio_t*, __V_*, const char*, Sf_key_lookup_t, Sf_key_convert_t));
93 * slow io exception discipline
96 extern __MANGLE__ int sfslowio __PROTO__((Sfio_t*));