-/* $OpenBSD: getaddrinfo_async.c,v 1.31 2014/11/18 20:51:00 krw Exp $ */
+/* $OpenBSD: getaddrinfo_async.c,v 1.32 2015/01/14 23:36:15 deraadt Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
#include <netinet/in.h>
#include <arpa/nameser.h>
#include <net/if.h>
-#ifdef YP
-#include <rpc/rpc.h>
-#include <rpcsvc/yp.h>
-#include <rpcsvc/ypclnt.h>
-#include "ypinternal.h"
-#endif
#include <netdb.h>
#include <asr.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <limits.h>
+
+#ifdef YP
+#include <rpc/rpc.h>
+#include <rpcsvc/yp.h>
+#include <rpcsvc/ypclnt.h>
+#include "ypinternal.h"
+#endif
#include "asr_private.h"
-/* $OpenBSD: gethostnamadr_async.c,v 1.32 2014/11/02 13:59:16 eric Exp $ */
+/* $OpenBSD: gethostnamadr_async.c,v 1.33 2015/01/14 23:36:15 deraadt Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
#include <netinet/in.h>
#include <arpa/inet.h>
#include <arpa/nameser.h>
-#ifdef YP
-#include <rpc/rpc.h>
-#include <rpcsvc/yp.h>
-#include <rpcsvc/ypclnt.h>
-#include "ypinternal.h"
-#endif
#include <netdb.h>
#include <asr.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <limits.h>
+
+#ifdef YP
+#include <rpc/rpc.h>
+#include <rpcsvc/yp.h>
+#include <rpcsvc/ypclnt.h>
+#include "ypinternal.h"
+#endif
#include "asr_private.h"
-/* $OpenBSD: yp_bind.c,v 1.20 2014/05/25 17:47:04 tedu Exp $ */
+/* $OpenBSD: yp_bind.c,v 1.21 2015/01/14 23:36:16 deraadt Exp $ */
/*
* Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com>
* All rights reserved.
#include "ypinternal.h"
struct dom_binding *_ypbindlist;
-char _yp_domain[MAXHOSTNAMELEN];
+char _yp_domain[HOST_NAME_MAX+1];
int _yplib_timeout = 10;
int
-/* $OpenBSD: ypinternal.h,v 1.7 2003/06/25 21:51:56 marc Exp $ */
+/* $OpenBSD: ypinternal.h,v 1.8 2015/01/14 23:36:16 deraadt Exp $ */
/*
* Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com>
void *ypresp_data;
extern struct dom_binding *_ypbindlist;
-extern char _yp_domain[MAXHOSTNAMELEN];
+extern char _yp_domain[HOST_NAME_MAX+1];
extern int _yplib_timeout;
void _yp_unbind(struct dom_binding *);