summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat/files/vis.c
AgeCommit message (Collapse)AuthorFilesLines
2008-10-06libnbcompat-20080922:joerg1-4/+4
- DESTDIR support - Add check for inttypes.h and sys/socket.h - Provide compatibility fallback for netdb.h and the RFC2553 API (getaddrinfo), supoprting IPv4 only. Code from OpenSSH. - Use normal autoconf checks for fixed size bit types. Stop using the older BSD types (u_intXX_t) in libnbcompat. - Add implementation of shquote (from NetBSD). - Fix a buglet in the getenv/setenv/unsetenv detection. - Fix a buglet in the mkdtemp/mkstemp detection.
2007-07-31Don't use u_{char,short,int,long} as they are non-standard.joerg1-5/+5
Bump version to 20070731.
2005-11-18revert last, and apply the simpler fix to the MAKEEXTRALIST macro ingrant1-9/+7
NetBSD libc from martin@
2005-11-18pass const empty string to MAKEEXTRALIST macro instead of thegrant1-5/+8
anonymous empty string. the macro uses the argument multiple times and the logic relies on identical strings having the same address, which is compiler dependent and not guaranteed to be the case. problem observed with pax(1) built with sunpro 11 on Solaris. from segv@netctl.net in PR pkg/32097.
2004-08-23Update pkgtools/libnbcompat to 20040822. Changes from version 20040814jlam1-96/+99
include: * Rework the way that poll() is detected so that it more closely follows how the rest of the replacement functions are detected. * Split err*() and warn*() functions into separate err.c and warn.c files so that we can more finely isolate the objects files pulled in by the linker. This should fix building textproc/nbsed on Solaris. * Move more definitions from nbcompat.h into nbcompat/*.h. This makes it more clear which NetBSD headers are expected to provide which function declarations and macro definitions. * Clean out nbconfig.h by moving all of the relevant definitions into the correct nbcompat/*.h files. * Update all of the library functions to the latest from src HEAD. Also change the way that sources are modified when imported -- we now include <nbcompat.h> before the first system header, include <nbcompat/*.h> versions of headers instead of system ones where available, and "#if 0" the sections that make no sense when being built outside of the NetBSD source tree. This should make future updates from src HEAD, e.g. for security updates or bug fixes, easier. * Move all private headers into a subdirectory and include the headers from the private directory. This avoids any nameclashes with system headers with the same name.
2004-08-16Update pkgtools/libnbcompat to 20040814. Changes from version 20040813jlam1-6/+3
include: * Adding a regex(3) implementation for those platforms that don't have one, e.g. IRIX 5.3. * Allow nbcompat.h to be included multiple times in case it's needed to override values of set by config.h in bootstrap packages. This should fix problems with building pkg_install and pax on platforms that have /usr/include/glob.h. * Remove namespace.h, which should be a no-op since we're building a userland library separate from the NetBSD sources. * Remove HAVE_CONFIG_H checks from sources since we're always going to have and and we're always going to be including it. * Rename all inclusion guards in nbcompat/*.h to be _NBCOMPAT_*_H_ so that it won't get triggered by any settings in system headers. This has been tested on: FreeBSD-4.8/i386 Debian Linux 3.0 (woody) IRIX 6.5 MacOS X 10.2.8 MacOS X 10.3.5 NetBSD-1.6.2/i386 NetBSD-2.0_BETA/i386 Red Hat Linux 7.3 Solaris 7/sparc Solaris 8/sparc Solaris 9/sparc
2004-03-21Some compilers (e.g. Sunpro) emit one char[] per string, even whenbouyer1-5/+7
multiple identical strings appear in a source file. As a result, comparing char *o to the "" pointer gives the wrong result in vis.c, as the "" pointer we're checking against isn't the same as the "" which initialised char *o. Use a global pointer initialised to "", and use it for MAKEEXTRALIST() calls. Thanks to Christos Zoulas for suggesting the right solution :)
2004-03-12#if 0 out the __weak_alias stuff, which isn't needed here. should fixgrant1-2/+4
build on OpenBSD ELF platforms.
2003-09-03Update pkgtools/libnbcompat to 20030826. Changes from previous version:jlam1-6/+6
* Properly declare statfs() and fstatfs() if we use the libnbcompat versions. * Move some headers into a private directory in the installed location so that they don't override headers of the same name on the system. * Define TAILQ_HEAD_INITIALIZER if it doesn't exist. * Add a poll() implementation using select() for poll()-less systems. Thanks for Charles Blundell for the implementation! * Fix the vis.h check for systems whose vis() is not as featureful as NetBSD's.
2003-09-01Bump version to 20030823:jlam1-6/+6
* Add mkdtemp, TAILQ_*, and statfs. * Install a nbconfig.h file containing the discovered system information and include it directly in nbcompat.h. Make all files use nbconfig.h instead of config.h. Ensure that all installed headers don't include any local header files. This makes libnbcompat more self-contained. * Consistently use "#if HAVE_HEADER_H" instead of "#ifdef HAVE_HEADER_H" since sometimes people put -DHAVE_HEADER_H=0 on their command lines.
2003-03-31Initial import of libnbcompat-20030331, a portable NetBSD compatibilitygrant1-0/+375
library for use by the pkgsrc tools and other sources from NetBSD.