summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat/files/nbcompat.h
AgeCommit message (Collapse)AuthorFilesLines
2004-08-23Update pkgtools/libnbcompat to 20040822. Changes from version 20040814jlam1-79/+25
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-9/+15
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-08-10Update pkgtools/libnbcompat to 20040809. Changes from version 20040805jlam1-293/+15
include: * Re-adding a default value for pkg_use_nbcompat_vis; this was causing the configure script to fail on platforms that had funky versions of vis(). This should fix reported problems on Solaris 8 and on IRIX 5.3. * Added setgroupent() and setpassent() compatibility functions so that pwcache.c will build without complaining about an incompatible pointer type assignment. * Remove unused tests for <arpa/nameser.h>, <netdb.h>, h_errno and hstrerror(). These were originally used to bootstrap lukemftp, but tnftp doesn't need libnbcompat to build nowadays, so we don't need these anymore. * Cleanup: in cases where we test for a function using AC_REPLACE_FUNCS, move the function prototype into a nbcompat header that is the same name as the NetBSD header that contains that declaration, and include that file in place of the original one within nbcompat.h. This version has been tested to build on the following systems: FreeBSD-4.8/i386 NetBSD-1.6.2/i386 FreeBSD-5.2.1/i386 NetBSD-2.0_BETA/i386 IRIX 6.5 Red Hat Linux 8.0 MacOS X 10.3.4 Solaris 8 MacOS X 10.3.5 Solaris 9
2004-08-06Update pkgtools/libnbcompat to 20040805. Changes from version 20040512jlam1-178/+43
include: (1) Add a statvfs() implementation based on statfs(), and remove the statfs() NetBSD-compatibility implementation. statvfs() is used in src/usr.sbin/pkg_install on the HEAD branch. (2) Add a fnmatch() implementation, needed by IRIX. fnmatch() is used in src/usr.sbin/pkg_install on the HEAD branch. (3) Remove fseeko(), inet_ntop(), inet_pton(), sl_*() strptime(), and timegm() as they're not used by any of the bootstrap packages that require libnbcompat (pax, mtree, pkg_install). All that's left is what's necessary to bootstrap those three packages.
2004-05-12don't include poll.h or sys/poll.h, but instead, undefine HAVE_POLL_Hgrant1-8/+4
and HAVE_SYS_POLL_H if we don't have a native poll() implementation. prevents including of libnbcompat's poll.h as well as the system's poll.h where we should be ignoring the system's poll.h. fix tested by Jeff Rizzo on MacOSX 10.3.3.
2004-04-20workaround poll() being a compatibility function on Darwin 7grant1-5/+7
(MacOSX 10.3) by adding a custom test for _POLL_EMUL_H_ which is defined in poll.h on some MacOSX 10.3 systems. not all 10.3 systems have poll.h, so only do the poll() test if at least one of the header files is found.
2004-03-11catch up with bootstrap-pkgsrc changes.grant1-1/+8
- check for existence of fsid_t type, and typedef it if missing - check for existence of struct statvfs.f_basetype field - if <sys/mkdev.h> is included and makedev() is missing, try to use mkdev() - add replacement library file for utimes() by wrappering utime()
2004-01-14use LL for long long suffix.grant1-3/+3
2003-12-19* Rename HAVE_QUAD_SUPPORT to the more mnemonic HAVE_WORKING_LONG_LONG.grant1-8/+16
* Don't bother providing compat defs for QUAD_{MIN,MAX} since they're not used anymore.
2003-12-10always use local glob() as some glob() implementations have securitygrant1-10/+4
issues. suggested by lukem.
2003-12-08always use local glob.[ch] if GLOB_NOMATCH or GLOB_ABORTED aren'tgrant1-1/+7
defined.
2003-12-05On AIX h_errno is a function call. Don't try to redefine it.erh1-1/+3
2003-10-10use !defined instead of ! for testing if {,U}LLONG_MAX is defined.grant1-3/+3
fixes build on bsdi, noted by Jeremy C. Reed on tech-pkg.
2003-09-23Provide prototypes for setmode and getmode functions if necessary.jschauma1-1/+9
This fixes build problems of mtree and pax on Irix.
2003-09-16test that md5.h can be compiled and that it provides MD5Init(),grant1-1/+7
otherwise, pretend we don't have it. fixes build on some RedHat systems where md5.h is incompatible with NetBSD's. bump to 20030916.
2003-09-14define _PATH_DEFTAPE in nbcompat.h to avoid redefining it when paths.hgrant1-1/+9
is included.
2003-09-14sl_add() returns void on some systems, so don't include <stringlist.h>,grant1-5/+1
always use local prototypes.
2003-09-14define the maximum values for `long long' (LLONG_MAX) andgrant1-1/+9
`unsigned long long' (ULLONG_MAX) if we don't have them. as seen on (a) Linux.
2003-09-11ensure GID_MAX and UID_MAX are defined, fixing build of mtree and paxgrant1-1/+11
after latest rototill.
2003-09-11ensure S_ISTXT is defined if not defined in sys/stat.h.grant1-2/+6
2003-09-06Also check for presence of <sys/statfs.h>, and pretend we don't have it ifjlam1-2/+5
we use libnbcompat's statfs.
2003-09-06Ensure that struct option is defined properly before accepting that havingjlam1-2/+4
getopt.h implies having getopt_long. Also Fix checks for setmode, pwcache, and vis so that if any of a list of functions is missing, then use the nbcompat versions.
2003-09-06Update pkgtools/libnbcompat to 20030830. Changes from the previousjlam1-7/+1
version are removing sha2* object files from libnbcompat.a. It turns out that the functions defined there aren't provided by NetBSD, so it makes no sense for libnbcompat to define them, and none of the utilities in pkgsrc that link against libnbcompat actually use these functions anyway.
2003-09-05Update pkgtools/libnbcompat to 20030829. Changes from previous versionjlam1-10/+60
include: * Move headers out of the global namespace and into the nbcompat directory. Since there are no headers other than nbcompat.h in ${PREFIX}/include/libnbcompat, just install it directly in ${PREFIX}/include. Using libnbcompat is now a matter of including nbcompat.h at the top of *.c files and linking against -lnbcompat. * Only build functions into libnbcompat.a if they aren't already in the system libraries. * Move several *.[ch] files that are pax- or mtree-specific out of libnbcompat (they should belong with those packages). On NetBSD 1.6 systems, libnbcompat.a now contains just the bare minimum: the sha2 routines.
2003-09-03Update pkgtools/libnbcompat to 20030826. Changes from previous version:jlam1-18/+60
* 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-03Update pkgtools/libnbcompat to 20030825. Changes from version 20030824jlam1-7/+9
are moving the definitions of the TAILQ accessor methods into the top level of nbcompat.h. This should fix using nbcompat.h to replace sys/queue.h on Linux systems.
2003-09-03Use '#if !HAVE_xxx' instead of '#ifndef HAVE_xxx' to cover cases whenjlam1-35/+35
-DHAVE_xxx=0 is set on the command-line.
2003-09-01Bump version to 20030823:jlam1-3/+69
* 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-07-31Add the err.h header, so we can use it on systems that don't provide err.hjschauma1-4/+1
(functionality already in the library, just the header was missing). Bumpt date to today.
2003-07-19test for time.h, sys/time.h and inclusion of both.grant1-0/+6
include system fts.h if we have one, or our own.
2003-07-13setenv.c - include strings.h for bcopy prototypegrant1-0/+12
add prototypes for getmode, lchmod, lchown eliminates implicit declaration warnings building pax and mtree with Forte compiler on Solaris.
2003-06-30s/#if !/#ifndef/, since the former confuses some C pre-processorsgrant1-30/+30
2003-06-24add prototype for isblank() to avoid implicit declarationgrant1-0/+4
add RCS Id
2003-06-23not all systems define all of the time related constants wegrant1-9/+33
need in tzfile.h, avoid redefinition warnings.
2003-06-23add getopt, getopt_long.grant1-0/+8
include tzfile.h and sys/mkdev.h in nbcompat.h. bump to 20030622.
2003-06-10protect against multiple inclusiongrant1-0/+5
2003-04-03make sure LIST_EMPTY, LIST_FIRST and LIST_NEXT are defined (linuxgrant1-0/+8
doesn't have these in sys/queue.h). noted by Jeremy C. Reed on tech-pkg.
2003-03-31Initial import of libnbcompat-20030331, a portable NetBSD compatibilitygrant1-0/+330
library for use by the pkgsrc tools and other sources from NetBSD.