~ubuntu-branches/ubuntu/quantal/libfs/quantal-updates

« back to all changes in this revision

Viewing changes to src/FSlibint.h

  • Committer: Package Import Robot
  • Author(s): Julien Cristau
  • Date: 2012-03-25 17:43:10 UTC
  • mfrom: (1.1.5) (2.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20120325174310-mfnal6atqin47bgk
Tags: 2:1.0.4-1
* New upstream release.
* Delete debian/xsfbs/, it's no longer used in this package.
* Don't require fakeroot for debian/rules clean.
* Remove David Nusinow and Brice Goglin from Uploaders.
* Run autoreconf at build time.
* Add build-arch and build-indep debian/rules targets.
* Build for multiarch.
* Install FSlib.txt in libfs-dev.
* Bump Standards-Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Copyright 1990 Network Computing Devices;
3
3
 * Portions Copyright 1987 by Digital Equipment Corporation
4
4
 *
5
 
 * Permission to use, copy, modify, distribute, and sell this software 
6
 
 * and its documentation for any purpose is hereby granted without fee, 
7
 
 * provided that the above copyright notice appear in all copies and 
8
 
 * that both that copyright notice and this permission notice appear 
9
 
 * in supporting documentation, and that the names of Network Computing 
10
 
 * Devices or Digital not be used in advertising or publicity pertaining 
11
 
 * to distribution of the software without specific, written prior 
12
 
 * permission. Network Computing Devices or Digital make no representations 
13
 
 * about the suitability of this software for any purpose.  It is provided 
 
5
 * Permission to use, copy, modify, distribute, and sell this software
 
6
 * and its documentation for any purpose is hereby granted without fee,
 
7
 * provided that the above copyright notice appear in all copies and
 
8
 * that both that copyright notice and this permission notice appear
 
9
 * in supporting documentation, and that the names of Network Computing
 
10
 * Devices or Digital not be used in advertising or publicity pertaining
 
11
 * to distribution of the software without specific, written prior
 
12
 * permission. Network Computing Devices or Digital make no representations
 
13
 * about the suitability of this software for any purpose.  It is provided
14
14
 * "as is" without express or implied warranty.
15
15
 *
16
16
 * NETWORK COMPUTING DEVICES AND  DIGITAL DISCLAIM ALL WARRANTIES WITH
17
 
 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF 
 
17
 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
18
18
 * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES
19
 
 * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES 
20
 
 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
21
 
 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 
22
 
 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 
 
19
 * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
 
20
 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 
21
 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
 
22
 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
23
23
 * SOFTWARE.
24
24
 */
25
25
 
61
61
#include        <errno.h>
62
62
#include        <stddef.h>
63
63
 
64
 
typedef int (* FSIOErrorHandler)(FSServer *);
 
64
typedef int (* FSIOErrorHandler)(FSServer *) _X_NORETURN;
65
65
typedef int (* FSErrorHandler)(FSServer *, FSErrorEvent *);
66
66
 
67
67
extern FSIOErrorHandler _FSIOErrorFunction;
74
74
extern void _FSRead ( FSServer *svr, char *data, long size );
75
75
extern void _FSReadEvents ( FSServer *svr );
76
76
extern void _FSReadPad ( FSServer *svr, char *data, long size );
77
 
extern void _FSSend ( FSServer *svr, char *data, long size );
 
77
extern void _FSSend ( FSServer *svr, const char *data, long size );
78
78
extern void _FSEnq ( FSServer *svr, fsEvent *event );
79
79
extern void _FSFreeServerStructure ( FSServer *svr );
80
80
extern int _FSError ( FSServer *svr, fsError *rep );
83
83
extern void _FSDisconnectServer ( XtransConnInfo trans_conn );
84
84
extern void _FSSendClientPrefix ( FSServer *svr, fsConnClientPrefix *client );
85
85
extern int _FSEventsQueued ( FSServer *svr, int mode );
86
 
extern unsigned long _FSSetLastRequestRead ( FSServer *svr, 
 
86
extern unsigned long _FSSetLastRequestRead ( FSServer *svr,
87
87
                                             fsGenericReply *rep );
88
88
extern int _FSUnknownWireEvent ( FSServer *svr, FSEvent *re, fsEvent *event );
89
 
extern int _FSUnknownNativeEvent ( FSServer *svr, FSEvent *re, 
 
89
extern int _FSUnknownNativeEvent ( FSServer *svr, FSEvent *re,
90
90
                                   fsEvent *event );
91
91
extern int _FSWireToEvent ( FSServer *svr, FSEvent *re, fsEvent *event );
92
 
extern int _FSDefaultIOError ( FSServer *svr );
93
 
extern int _FSPrintDefaultError ( FSServer *svr, FSErrorEvent *event, 
 
92
extern int _FSDefaultIOError ( FSServer *svr ) _X_NORETURN;
 
93
extern int _FSPrintDefaultError ( FSServer *svr, FSErrorEvent *event,
94
94
                                  FILE *fp );
95
95
extern int _FSDefaultError ( FSServer *svr, FSErrorEvent *event );
96
96
extern char * _FSAllocScratch ( FSServer *svr, unsigned long nbytes );
108
108
#endif
109
109
 
110
110
/*
111
 
 * server flags 
 
111
 * server flags
112
112
 */
113
113
#define FSlibServerIOError      (1L << 0)
114
114
#define FSlibServerClosing      (1L << 1)