home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / RSTAT.TAR / rstat / rstat_clnt.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-11  |  3.8 KB  |  141 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #include <memory.h> /* for memset */
  7. #include "../rpcsvc/rstat.h"
  8. /*
  9.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  10.  * unrestricted use provided that this legend is included on all tape
  11.  * media and as a part of the software program in whole or part.  Users
  12.  * may copy or modify Sun RPC without charge, but are not authorized
  13.  * to license or distribute it to anyone else except as part of a product or
  14.  * program developed by the user or with the express written consent of
  15.  * Sun Microsystems, Inc.
  16.  *
  17.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  18.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  19.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  20.  *
  21.  * Sun RPC is provided with no support and without any obligation on the
  22.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  23.  * modification or enhancement.
  24.  *
  25.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  26.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  27.  * OR ANY PART THEREOF.
  28.  *
  29.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  30.  * or profits or other special, indirect and consequential damages, even if
  31.  * Sun has been advised of the possibility of such damages.
  32.  *
  33.  * Sun Microsystems, Inc.
  34.  * 2550 Garcia Avenue
  35.  * Mountain View, California  94043
  36.  */
  37. /*
  38.  * Copyright (c) 1985, 1990 by Sun Microsystems, Inc.
  39.  */
  40.  
  41. /* from @(#)rstat.x    1.9 91/03/11 TIRPC 1.0 */
  42.  
  43. /* Default timeout can be changed using clnt_control() */
  44. static struct timeval TIMEOUT = { 25, 0 };
  45.  
  46. statsvar *
  47. rstatproc_stats_4(void *argp, CLIENT *clnt)
  48. {
  49.     static statsvar clnt_res;
  50.  
  51.     memset((char *)&clnt_res, 0, sizeof(clnt_res));
  52.     if (clnt_call(clnt, RSTATPROC_STATS, xdr_void, argp, xdr_statsvar, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
  53.         return (NULL);
  54.     }
  55.     return (&clnt_res);
  56. }
  57.  
  58. u_int *
  59. rstatproc_havedisk_4(void *argp, CLIENT *clnt)
  60. {
  61.     static u_int clnt_res;
  62.  
  63.     memset((char *)&clnt_res, 0, sizeof(clnt_res));
  64.     if (clnt_call(clnt, RSTATPROC_HAVEDISK, xdr_void, argp, xdr_u_int, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
  65.         return (NULL);
  66.     }
  67.     return (&clnt_res);
  68. }
  69.  
  70. statstime *
  71. rstatproc_stats_3(void *argp, CLIENT *clnt)
  72. {
  73.     static statstime clnt_res;
  74.  
  75.     memset((char *)&clnt_res, 0, sizeof(clnt_res));
  76.     if (clnt_call(clnt, RSTATPROC_STATS, xdr_void, argp, xdr_statstime, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
  77.         return (NULL);
  78.     }
  79.     return (&clnt_res);
  80. }
  81.  
  82. u_int *
  83. rstatproc_havedisk_3(void *argp, CLIENT *clnt)
  84. {
  85.     static u_int clnt_res;
  86.  
  87.     memset((char *)&clnt_res, 0, sizeof(clnt_res));
  88.     if (clnt_call(clnt, RSTATPROC_HAVEDISK, xdr_void, argp, xdr_u_int, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
  89.         return (NULL);
  90.     }
  91.     return (&clnt_res);
  92. }
  93.  
  94. statsswtch *
  95. rstatproc_stats_2(void *argp, CLIENT *clnt)
  96. {
  97.     static statsswtch clnt_res;
  98.  
  99.     memset((char *)&clnt_res, 0, sizeof(clnt_res));
  100.     if (clnt_call(clnt, RSTATPROC_STATS, xdr_void, argp, xdr_statsswtch, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
  101.         return (NULL);
  102.     }
  103.     return (&clnt_res);
  104. }
  105.  
  106. u_int *
  107. rstatproc_havedisk_2(void *argp, CLIENT *clnt)
  108. {
  109.     static u_int clnt_res;
  110.  
  111.     memset((char *)&clnt_res, 0, sizeof(clnt_res));
  112.     if (clnt_call(clnt, RSTATPROC_HAVEDISK, xdr_void, argp, xdr_u_int, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
  113.         return (NULL);
  114.     }
  115.     return (&clnt_res);
  116. }
  117.  
  118. stats *
  119. rstatproc_stats_1(void *argp, CLIENT *clnt)
  120. {
  121.     static stats clnt_res;
  122.  
  123.     memset((char *)&clnt_res, 0, sizeof(clnt_res));
  124.     if (clnt_call(clnt, RSTATPROC_STATS, xdr_void, argp, xdr_stats, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
  125.         return (NULL);
  126.     }
  127.     return (&clnt_res);
  128. }
  129.  
  130. u_int *
  131. rstatproc_havedisk_1(void *argp, CLIENT *clnt)
  132. {
  133.     static u_int clnt_res;
  134.  
  135.     memset((char *)&clnt_res, 0, sizeof(clnt_res));
  136.     if (clnt_call(clnt, RSTATPROC_HAVEDISK, xdr_void, argp, xdr_u_int, &clnt_res, TIMEOUT) != RPC_SUCCESS) {
  137.         return (NULL);
  138.     }
  139.     return (&clnt_res);
  140. }
  141.