Print this page
remove support for non-ANSI compilation


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*


  23  * Copyright 1989 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  */
  26 
  27 /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
  28 /*        All Rights Reserved   */
  29 
  30 /*
  31  * Portions of this source code were derived from Berkeley 4.3 BSD
  32  * under license from the Regents of the University of California.
  33  */
  34 
  35 #ifndef _RPCSVC_YPCLNT_H
  36 #define _RPCSVC_YPCLNT_H
  37 
  38 #pragma ident   "%Z%%M% %I%     %E% SMI"
  39 
  40 #ifdef  __cplusplus
  41 extern "C" {
  42 #endif
  43 
  44 /*
  45  * ypclnt.h
  46  * This defines the symbols used in the c language
  47  * interface to the yp client functions.  A description of this interface
  48  * can be read in ypclnt(3N).
  49  */
  50 
  51 /*
  52  * Failure reason codes.  The success condition is indicated by a functional
  53  * value of "0".
  54  */
  55 #define YPERR_BADARGS 1                 /* Args to function are bad */
  56 #define YPERR_RPC 2                     /* RPC failure */
  57 #define YPERR_DOMAIN 3                  /* Can't bind to a server which */
  58                                         /*   serves this domain. */
  59 #define YPERR_MAP 4                     /* No such map in server's domain */


  83 
  84 /*
  85  * Data definitions
  86  */
  87 
  88 /*
  89  * struct ypall_callback * is the arg which must be passed to yp_all
  90  */
  91 
  92 struct ypall_callback {
  93         int (*foreach)();               /* Return non-0 to stop getting */
  94                                         /*   called */
  95         char *data;                     /* Opaque pointer for use of callback */
  96                                         /*   function */
  97 };
  98 
  99 /*
 100  * External yp client function references.
 101  */
 102 
 103 #ifdef __STDC__
 104 extern int yp_bind(char *);
 105 extern void yp_unbind(char *);
 106 extern int yp_get_default_domain(char **);
 107 extern int yp_match(char *, char *, char *, int, char **, int *);
 108 extern int yp_first(char *, char *, char **, int *, char **, int *);
 109 extern int yp_next(char *, char *, char *, int, char **, int *, char **, int *);
 110 extern int yp_master(char *, char *, char **);
 111 extern int yp_order(char *, char *, unsigned long *);
 112 extern int yp_all(char *, char *, struct ypall_callback *);
 113 extern char *yperr_string(int);
 114 extern int ypprot_err(int);
 115 extern int yp_update(char *, char *, unsigned,  char *, int, char *, int);
 116 
 117 #else
 118 
 119 extern int yp_bind();
 120 extern int __yp_dobind();
 121 extern void yp_unbind();
 122 extern int yp_get_default_domain();
 123 extern int yp_match();
 124 extern int yp_first();
 125 extern int yp_next();
 126 extern int yp_master();
 127 extern int yp_order();
 128 extern int yp_all();
 129 extern char *yperr_string();
 130 extern int ypprot_err();
 131 extern int yp_update();
 132 #endif  /* __STDC__ */
 133 
 134 /*
 135  * Global yp data structures
 136  */
 137 
 138 #ifdef  __cplusplus
 139 }
 140 #endif
 141 
 142 #endif  /* _RPCSVC_YPCLNT_H */


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License, Version 1.0 only
   6  * (the "License").  You may not use this file except in compliance
   7  * with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 /*
  23  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  24  *
  25  * Copyright 1989 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
  30 /*        All Rights Reserved   */
  31 
  32 /*
  33  * Portions of this source code were derived from Berkeley 4.3 BSD
  34  * under license from the Regents of the University of California.
  35  */
  36 
  37 #ifndef _RPCSVC_YPCLNT_H
  38 #define _RPCSVC_YPCLNT_H
  39 


  40 #ifdef  __cplusplus
  41 extern "C" {
  42 #endif
  43 
  44 /*
  45  * ypclnt.h
  46  * This defines the symbols used in the c language
  47  * interface to the yp client functions.  A description of this interface
  48  * can be read in ypclnt(3N).
  49  */
  50 
  51 /*
  52  * Failure reason codes.  The success condition is indicated by a functional
  53  * value of "0".
  54  */
  55 #define YPERR_BADARGS 1                 /* Args to function are bad */
  56 #define YPERR_RPC 2                     /* RPC failure */
  57 #define YPERR_DOMAIN 3                  /* Can't bind to a server which */
  58                                         /*   serves this domain. */
  59 #define YPERR_MAP 4                     /* No such map in server's domain */


  83 
  84 /*
  85  * Data definitions
  86  */
  87 
  88 /*
  89  * struct ypall_callback * is the arg which must be passed to yp_all
  90  */
  91 
  92 struct ypall_callback {
  93         int (*foreach)();               /* Return non-0 to stop getting */
  94                                         /*   called */
  95         char *data;                     /* Opaque pointer for use of callback */
  96                                         /*   function */
  97 };
  98 
  99 /*
 100  * External yp client function references.
 101  */
 102 

 103 extern int yp_bind(char *);
 104 extern void yp_unbind(char *);
 105 extern int yp_get_default_domain(char **);
 106 extern int yp_match(char *, char *, char *, int, char **, int *);
 107 extern int yp_first(char *, char *, char **, int *, char **, int *);
 108 extern int yp_next(char *, char *, char *, int, char **, int *, char **, int *);
 109 extern int yp_master(char *, char *, char **);
 110 extern int yp_order(char *, char *, unsigned long *);
 111 extern int yp_all(char *, char *, struct ypall_callback *);
 112 extern char *yperr_string(int);
 113 extern int ypprot_err(int);
 114 extern int yp_update(char *, char *, unsigned,  char *, int, char *, int);
 115 

















 116 /*
 117  * Global yp data structures
 118  */
 119 
 120 #ifdef  __cplusplus
 121 }
 122 #endif
 123 
 124 #endif  /* _RPCSVC_YPCLNT_H */