Import of pkgsrc-2015Q3

This commit is contained in:
2015-10-03 03:37:01 -07:00
committed by Lionel Sambuc
parent f641581404
commit 9d819b6d54
7578 changed files with 228314 additions and 80018 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
dnl $NetBSD: configure.ac,v 1.85 2015/06/08 00:44:46 joerg Exp $
dnl $NetBSD: configure.ac,v 1.86 2015/09/01 23:17:51 kamil Exp $
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
@@ -7,6 +7,7 @@ AC_CONFIG_HEADER(nbcompat/config.h)
AC_ARG_PROGRAM
AC_CANONICAL_HOST
AC_GNU_SOURCE
CANONICAL_HOST=$host
AC_SUBST(CANONICAL_HOST)
AC_SUBST(INCLUDES)

View File

@@ -564,6 +564,28 @@
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# undef _ALL_SOURCE
#endif
/* Enable GNU extensions on systems that have them. */
#ifndef _GNU_SOURCE
# undef _GNU_SOURCE
#endif
/* Enable threading extensions on Solaris. */
#ifndef _POSIX_PTHREAD_SEMANTICS
# undef _POSIX_PTHREAD_SEMANTICS
#endif
/* Enable extensions on HP NonStop. */
#ifndef _TANDEM_SOURCE
# undef _TANDEM_SOURCE
#endif
/* Enable general extensions on Solaris. */
#ifndef __EXTENSIONS__
# undef __EXTENSIONS__
#endif
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
@@ -576,6 +598,16 @@
# endif
#endif
/* Define to 1 if on MINIX. */
#undef _MINIX
/* Define to 2 if the system does not provide POSIX.1 features except with
this defined. */
#undef _POSIX_1_SOURCE
/* Define to 1 if you need to in order for `stat' and other things to work. */
#undef _POSIX_SOURCE
/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
#define below would cause a syntax error. */

View File

@@ -1,4 +1,4 @@
/* $NetBSD: unvis.c,v 1.12 2007/07/31 13:17:34 joerg Exp $ */
/* $NetBSD: unvis.c,v 1.13 2015/09/03 09:05:54 joerg Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -35,7 +35,7 @@
#if 0
static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: unvis.c,v 1.12 2007/07/31 13:17:34 joerg Exp $");
__RCSID("$NetBSD: unvis.c,v 1.13 2015/09/03 09:05:54 joerg Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -83,23 +83,11 @@ __warn_references(unvis,
#define isoctal(c) (((unsigned char)(c)) >= '0' && ((unsigned char)(c)) <= '7')
#define xtod(c) (isdigit(c) ? (c - '0') : ((tolower(c) - 'a') + 10))
int
unvis(cp, c, astate, flag)
char *cp;
int c;
int *astate, flag;
{
return __nbcompat_unvis13(cp, (int)c, astate, flag);
}
/*
* unvis - decode characters previously encoded by vis
*/
int
__nbcompat_unvis13(cp, c, astate, flag)
char *cp;
int c;
int *astate, flag;
static int
__nbcompat_unvis13(char *cp, int c, int *astate, int flag)
{
_DIAGASSERT(cp != NULL);
@@ -275,6 +263,12 @@ __nbcompat_unvis13(cp, c, astate, flag)
}
}
int
unvis(char *cp, int c, int *astate, int flag)
{
return __nbcompat_unvis13(cp, (int)c, astate, flag);
}
/*
* strunvis - decode src into dst
*
@@ -283,10 +277,7 @@ __nbcompat_unvis13(cp, c, astate, flag)
*/
int
strunvisx(dst, src, flag)
char *dst;
const char *src;
int flag;
strunvisx(char *dst, const char *src, int flag)
{
char c;
char *start = dst;
@@ -318,9 +309,7 @@ strunvisx(dst, src, flag)
}
int
strunvis(dst, src)
char *dst;
const char *src;
strunvis(char *dst, const char *src)
{
return strunvisx(dst, src, 0);
}