Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
/* $XConsortium: rpcextras.h /main/4 1995/11/09 12:51:20 rswiston $ */
/*
* (c) Copyright 1993, 1994 Hewlett-Packard Company
* (c) Copyright 1993, 1994 International Business Machines Corp.
* (c) Copyright 1993, 1994 Novell, Inc.
* (c) Copyright 1993, 1994 Sun Microsystems, Inc.
*/
#ifndef _RPCEXTRAS_H
#define _RPCEXTRAS_H
#include "ansi_c.h"
#define RPCGEN_ACTION(routine) routine
struct rpcgen_table {
char *(*proc)();
xdrproc_t xdr_arg;
unsigned len_arg;
xdrproc_t xdr_res;
unsigned len_res;
};
/* you might want to consider a program list rather than a table */
/* a list would be cleaner, a table easier. it's a table here for clarity */
typedef struct prog_table {
struct rpcgen_table *vers;
u_long nproc;
} program_table;
typedef struct prog_object {
program_table *prog;
u_long nvers;
u_long program_num;
} program_object;
typedef program_object *program_handle;
extern program_handle newph P(());
extern program_handle getph P(());
#endif