Skip to content

Commit

Permalink
Made this header self-sufficent. It had unnecessary dependencies on
Browse files Browse the repository at this point in the history
<sys/cdefs.h>, <sys/types.h>, <rpcsvc/yp_prot.h>, and on the latter's
prerequisites (5 more).
  • Loading branch information
Bruce Evans authored and Bruce Evans committed Jan 16, 1998
1 parent 25776f4 commit cb4b2fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions include/rpcsvc/ypclnt.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: ypclnt.h,v 1.4 1996/12/30 14:01:12 peter Exp $
* $Id: ypclnt.h,v 1.9 1997/05/28 04:38:25 wpaul Exp $
*/

#ifndef _RPCSVC_YPCLNT_H_
#define _RPCSVC_YPCLNT_H_

#include <sys/cdefs.h>

#define YPERR_BADARGS 1 /* args to function are bad */
#define YPERR_RPC 2 /* RPC failure */
#define YPERR_DOMAIN 3 /* can't bind to a server for domain */
Expand Down Expand Up @@ -59,10 +61,12 @@

struct ypall_callback {
/* return non-0 to stop getting called */
int (*foreach) __P((u_long, char *, int, char *, int, void *));
int (*foreach) __P((unsigned long, char *, int, char *, int, void *));
char *data; /* opaque pointer for use of callback fn */
};

struct dom_binding;

__BEGIN_DECLS
int yp_bind __P((char *dom));
int _yp_dobind __P((char *dom, struct dom_binding **ypdb));
Expand Down

0 comments on commit cb4b2fb

Please sign in to comment.