Commit graph

243 commits

Author SHA1 Message Date
rillig
ed9f7c753d Updated libnbcompat to 20070531.
Changes since 20070507:

Completely rewrote the fgetln implementation, since the previous version
couldn't handle files that don't end with a '\n' character. Tested on IRIX,
NetBSD and Solaris.
2007-05-31 10:18:49 +00:00
tnn
40a096eee2 Add a couple of success reports. 2007-05-22 18:06:39 +00:00
joerg
953c56fd09 Fix bug in configure script, noticed by Thorsten Glaser. 2007-05-07 21:41:33 +00:00
joerg
a71c676de2 Add SHA256/SHA384/SHA512 to libnbcompat. Update version to 20070507. 2007-05-07 16:38:47 +00:00
joerg
1b6ca55b58 Sync config.{guess,sub} with mk/gnu-configure. 2007-03-12 00:48:28 +00:00
jschauma
ef55401d33 note a few platforms where I've confirmed this version of libnbcompat to
be working
2006-12-17 19:27:57 +00:00
seb
7abfde914a For the benefit of Mr. Kite^W^Wsnprint.c add long double type detection. 2006-08-26 21:28:21 +00:00
joerg
70affd6c4b Update AC_C___ATTRIBUTE__ macro from heimdal, fixes detection with
GCC 4.
2006-03-01 16:47:54 +00:00
schwarz
68b7d980c7 added support for systems such as IRIX 5 that do not have _POSIX2_RE_DUP_MAX
defined. Changes approved by grant.
2005-11-28 20:47:29 +00:00
grant
f1ad5d68f5 revert last, and apply the simpler fix to the MAKEEXTRALIST macro in
NetBSD libc from martin@
2005-11-18 09:03:06 +00:00
grant
6e2b4f07ec pass const empty string to MAKEEXTRALIST macro instead of the
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.
2005-11-18 03:31:11 +00:00
reed
3f94d58331 Instead of using hard-coded 555 mode for installing library,
use BINMODE setting. This helps with non-privileged pkgsrc use.
2005-10-10 18:28:08 +00:00
grant
c6169cc95b don't use the implied source in the `bits' rule, just specify the
source. appeases make(1) on Solaris.
2005-02-20 05:55:51 +00:00
grant
5285b5ad9c redo previous in a slightly different way to appease NetBSD make(1). 2005-02-15 23:35:42 +00:00
wiz
d47bf7c083 Revert previous, since it breaks compilation on 2.0 and -current.
See PR 29387.
2005-02-15 16:04:42 +00:00
grant
a0c0ad2340 honour LDFLAGS when linking the `bits' binary. 2005-02-15 08:55:55 +00:00
jlam
6721ca445b src2nbcompat uses \n backreferences in gensub, which isn't supported in
the NetBSD 2.0 awk, so make explicit that we're using gawk.
2005-02-04 00:43:42 +00:00
grant
495ab8cee9 update config.{sub,guess} for various bootstrap tools. fixes build on
newer platforms such as DragonFly.

fixes PR pkg/28579 from Todd Willey.
2004-12-12 00:46:28 +00:00
grant
2066da3966 re-work workaround for __unvis13 namespace clash by renaming it to
__nbcompat_unvis13. fixes build on older NetBSD and Linux/sparc.
2004-12-04 23:31:40 +00:00
grant
72937576a9 fix previous. 2004-12-03 13:19:09 +00:00
grant
0d916fad86 backout previous; it causes build failure on Solaris. must investigate
further...
2004-12-03 13:12:55 +00:00
grant
322fb324cd add workaround for __unvis13 symbol clash on NetBSD 1.4.3. bootstrap
now builds successfully on NetBSD 1.4.3.
2004-12-03 00:09:02 +00:00
grant
92f150c93f fix detection of poll() for Darwin 7.x which has a poll()
compatibility function, but none of the required headers.

fixes bootstrap on Darwin 7.5.0 with gcc and xlc.
2004-10-24 11:18:33 +00:00
jlam
436503fdba Update pkgtools/libnbcompat to 20040911. Changes from version 20040822
include fixing fgetln() to account for \0 characters due to implementing
it using fgets() (analysis provided by Urban Boquist).  Also add a
definition for __restrict if not present since it is used in the regex
implementation code from src HEAD.

This has been tested to work correctly on:

	FreeBSD-4.8/i386
	NetBSD-1.6.2/i386
	Solaris 9
2004-09-11 19:01:36 +00:00
jlam
4315850032 Change the way that we disable unwanted code regions... just #undef _LIBC. 2004-08-31 17:55:17 +00:00
jlam
01441c804d Fix minor problem in #if condition. 2004-08-23 03:49:05 +00:00
jlam
f8dd961144 Update pkgtools/libnbcompat to 20040822. Changes from version 20040814
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-23 03:32:12 +00:00
jlam
d8c0df9fe5 Fix error in the use of "next"... it means to skip the line, not skip to
the next pattern.
2004-08-21 18:21:47 +00:00
jlam
a44209eeac Fix the version number of the package in the configure script, and modify
the Makefiles so that they can be built by really basic make programs.
Move the awk script in the Makefile into a separate file for clarity, and
so that really basick make programs won't choke on the continuation lines.
2004-08-21 06:36:13 +00:00
schmonz
f97318a24f Fix a spell-o and add a strategically valuable comma. 2004-08-20 23:30:30 +00:00
jlam
5840d5f65d Deal with HAVE_NBTOOL_CONFIG_H in some sources on the HEAD. 2004-08-20 23:10:32 +00:00
jlam
1a0833e181 Allow copying individual files instead of whole directory trees. 2004-08-20 22:22:24 +00:00
schmonz
d84a5f8de7 Works on Interix 3.5. 2004-08-19 22:15:31 +00:00
schmonz
3a05906cf0 Works on Red Hat Enterprise Linux 3. 2004-08-17 23:38:21 +00:00
jlam
80739d5835 Update pkgtools/libnbcompat to 20040814. Changes from version 20040813
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-16 17:24:42 +00:00
jlam
bf82bab34a Note working status on Solaris 2.7 (from PR pkg/26625). 2004-08-13 14:18:44 +00:00
jlam
9005f5c368 Update pkgtools/libnbcompat to 20040813. Changes from version 20040809
include working around an apparent bug in an autoconf macro defined in
aclocal.m4.  This should now cause getopt_long() to be built on systems
that are missing getopt.h.  This version of libnbcompat has been tested
on the following platforms:

	FreeBSD-4.8/i386
	MacOS X 10.2.8
	NetBSD-1.6.2/i386
2004-08-13 04:38:02 +00:00
jlam
7ed2eb6ab1 Verified to build on OpenBSD-3.3/i386. 2004-08-11 21:20:30 +00:00
jlam
079bcd0779 Update pkgtools/libnbcompat to 20040809. Changes from version 20040805
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-10 18:47:55 +00:00
jlam
d80f435723 Update pkgtools/libnbcompat to 20040805. Changes from version 20040512
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-08-06 16:55:06 +00:00
grant
57355eed05 don't include poll.h or sys/poll.h, but instead, undefine HAVE_POLL_H
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-05-12 21:50:43 +00:00
grant
c7c360f8eb make sure we define HAVE_POLL if a usable poll() implementation is
found, and re-arrange the test a little for clarity.

fixes build on (at least) FreeBSD 5.x.
2004-04-23 11:42:46 +00:00
grant
5ff49d0108 workaround poll() being a compatibility function on Darwin 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-04-20 12:13:05 +00:00
grant
89ad0dbc4e no need to test for poll() twice. 2004-04-20 10:45:48 +00:00
heinz
afc767e6bc Include limits.h if available to shut down warnings about UINT_MAX on
Unixware.
Also tested on Linux, Solaris and NetBSD.
2004-04-18 06:02:19 +00:00
heinz
0f9f9185be Use statvfs on UnixWare, similar to Solaris and IRIX. 2004-04-16 23:59:32 +00:00
bouyer
d5416af48d Some compilers (e.g. Sunpro) emit one char[] per string, even when
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-21 00:31:54 +00:00
grant
6a9f504b28 #if 0 out the __weak_alias stuff, which isn't needed here. should fix
build on OpenBSD ELF platforms.
2004-03-12 15:21:13 +00:00
sketch
4fa0de7b5c Solaris has fsid_t in sys/vfs.h, so include appropriately.
This gets the new pkgsrc bootstrap working on Solaris.
2004-03-11 18:35:29 +00:00
grant
e9479deda9 adding a file to cvs requires "cvs add". duh. 2004-03-11 14:11:04 +00:00
grant
361bc94452 catch up with bootstrap-pkgsrc changes.
- 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-03-11 13:28:45 +00:00
grant
875ec1ebf8 catch up with bootstrap-pkgsrc changes.
Protect from multiple inclusion, in case system headers try to pull it in
(happens on Interix).
2004-03-11 13:17:34 +00:00
simonb
9aef326f45 When checking for the <sys/mount.h> header, include <sys/param.h> if
it exists to stop a warning that comes from including <sys/mount.h> by
itself.

Fix from Love Hornquist Astrand in PR pkg/24419.
2004-02-14 04:47:13 +00:00
snj
445af1efbf s/seperate/separate/; s/independantly/independently/;
s/dependancies/dependencies/
2004-02-01 00:07:56 +00:00
grant
661b403916 relax the requirement for a >= 64bit off_t to enable long long
support, as some systems with a < 64bit off_t have long long support.
2004-01-14 08:59:31 +00:00
grant
7a12876daa use LL for long long suffix. 2004-01-14 08:58:41 +00:00
grant
b043fa59b4 regen for HAVE_WORKING_LONG_LONG rename 2003-12-19 22:46:01 +00:00
grant
0784cb96bf * Rename HAVE_QUAD_SUPPORT to the more mnemonic HAVE_WORKING_LONG_LONG.
* Don't bother providing compat defs for QUAD_{MIN,MAX} since
  they're not used anymore.
2003-12-19 22:45:14 +00:00
grant
d324f0f468 Sync to lib/libc/stdlib/strtoll.c 1.6:
*	Use LLONG_{MIN,MAX} instead of QUAD_{MIN,MAX}
    *	Use "long long int" instead of "long long"
    *	Appease lint
    *	Use "long long" instead of "quad" in comments.
2003-12-19 22:40:04 +00:00
grant
93098e6d36 sync to NetBSD for Todd's latest license 2003-12-19 22:27:01 +00:00
grant
e06a4eead8 sync to NetBSD for Todd's latest license, and fix for potential SEGV 2003-12-19 22:26:46 +00:00
grant
134f0eab0f Apply change from src/include/fts.h 1.10:
Make fts_pathlen and fts_nitems unsigned.
2003-12-19 22:23:00 +00:00
grant
2c8b5142eb Convert the 4 clause UCB license to the 3 clause license. 2003-12-19 22:16:14 +00:00
grant
a6fea9e8b2 always use local glob() as some glob() implementations have security
issues. suggested by lukem.
2003-12-10 07:21:20 +00:00
grant
b54024e198 shut up another escaping warning from gawk. 2003-12-08 15:28:54 +00:00
grant
4b9a7b94e1 always use local glob.[ch] if GLOB_NOMATCH or GLOB_ABORTED aren't
defined.
2003-12-08 14:52:02 +00:00
grant
f700dc3a03 kill some superfluous escaping to shut up warnings from gawk. 2003-12-08 13:39:11 +00:00
erh
d5b08e455b Check for setenv and unsetenv independantly since setenv presence doesn't
always imply unsetenv.
2003-12-05 15:43:10 +00:00
erh
059ec43e2d AIX needs getopt_long. 2003-12-05 15:42:13 +00:00
erh
92da59fed3 On AIX h_errno is a function call. Don't try to redefine it. 2003-12-05 15:41:06 +00:00
jlam
db20aa3e21 Fix typo. 2003-10-12 08:58:04 +00:00
grant
6764a676b9 name jlam as the guilty party who wrote this. 2003-10-12 01:19:08 +00:00
grant
caeb81ba77 move src2nbcompat from pkg_install to libnbcompat. 2003-10-12 01:17:50 +00:00
grant
2c562cc1b8 use !defined instead of ! for testing if {,U}LLONG_MAX is defined.
fixes build on bsdi, noted by Jeremy C. Reed on tech-pkg.
2003-10-10 10:15:09 +00:00
jschauma
fbfb7c1963 Provide prototypes for setmode and getmode functions if necessary.
This fixes build problems of mtree and pax on Irix.
2003-09-23 02:03:36 +00:00
grant
b55c2bb5b1 test that md5.h can be compiled and that it provides MD5Init(),
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-16 16:48:22 +00:00
grant
f0d05394e2 add prototypes for v{err,warn}{,x}. 2003-09-15 08:29:51 +00:00
grant
3fb4cc8435 add v{err,warn}{,x}. 2003-09-15 07:39:34 +00:00
grant
e40162e638 add nbcompat/config.h to distclean target. 2003-09-14 14:41:23 +00:00
grant
4b107be2da define _PATH_DEFTAPE in nbcompat.h to avoid redefining it when paths.h
is included.
2003-09-14 14:24:12 +00:00
grant
efa6f88bac sl_add() returns void on some systems, so don't include <stringlist.h>,
always use local prototypes.
2003-09-14 14:10:17 +00:00
itohy
6296166f8e Add dummy object not to become totally empty
(a.out ld will fail on an empty library).
2003-09-14 07:38:12 +00:00
grant
ef72c2b1c7 bump version for latest changes. 2003-09-14 07:36:12 +00:00
grant
506a54ae42 define the maximum values for `long long' (LLONG_MAX) and
`unsigned long long' (ULLONG_MAX) if we don't have them.

as seen on (a) Linux.
2003-09-14 05:35:57 +00:00
jlam
ce04d82646 Don't escape '#' within a print statement as it seems to break with some
awks.  Thanks to Hubert Feyrer for the fix!
2003-09-13 17:07:47 +00:00
jschauma
ddacbe098a Unbreak pkg_install on Irix by adding irix to the statvfs dance in libnbcompat,
as suggested by Grant.
2003-09-13 16:17:40 +00:00
jlam
93c459d2f8 Allow libnbcompat to be used without being installed. Also remove the
unused header file util.h.
2003-09-13 03:50:12 +00:00
grant
6078a6d2e6 ensure GID_MAX and UID_MAX are defined, fixing build of mtree and pax
after latest rototill.
2003-09-11 11:27:38 +00:00
grant
a77ed0a130 back out revision 1.22 which broke statfs() on Linux and FreeBSD
systems which have both statfs() and statvfs().

while it would be nice to have an OS-independent way of testing
whether to use our statfs() implementation, in reality it is much more
reliable to only use it where required.
2003-09-11 11:26:09 +00:00
grant
fb5ee43622 ensure S_ISTXT is defined if not defined in sys/stat.h. 2003-09-11 10:57:20 +00:00
grant
122e470b55 update version according to autoconf to match reality 2003-09-06 23:05:40 +00:00
grant
8e24fcd47f fix some rcsids 2003-09-06 23:03:00 +00:00
jlam
573a9192d0 Also check for presence of <sys/statfs.h>, and pretend we don't have it if
we use libnbcompat's statfs.
2003-09-06 12:45:47 +00:00
jlam
7943cdd0f8 Modify autoconf tests so that we'll reliably implement BSD statfs()
using statvfs() on systems that provide it.  I'm assuming that the
SVR4 statvfs() is a standardized call across systems that have it.
This should allow IRIX to build the statfs call into libnbcompat.
2003-09-06 12:21:45 +00:00
jlam
d722e66da4 Ensure that struct option is defined properly before accepting that having
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-06 06:13:46 +00:00
grant
8b31674747 fix missing include of getopt.h by including nbcompat.h. 2003-09-06 04:28:16 +00:00
jlam
def1651b81 nbcompat/sha2.h is no more in libnbcompat-20030830. 2003-09-06 01:37:17 +00:00
jlam
880fe6e4f7 Update pkgtools/libnbcompat to 20030830. Changes from the previous
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-06 01:35:07 +00:00
jlam
5685de4d03 Add back setmode.c which is still needed on systems that don't have
{get,set}mode() that was accidentally deleted.
2003-09-05 22:19:30 +00:00
jlam
60207a145d Update pkgtools/libnbcompat to 20030829. Changes from previous version
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-05 18:35:49 +00:00
jlam
4e37479c34 Use AH_TEMPLATE when we use AC_DEFINE so that autoheader can generate the
symbol and comment in nbconfig.h.in for us in the correct place.  The
previous way of using AH_BOTTOM also worked but separated the symbol
definition from the accompanying C comment text, which was a little harder
to maintain.
2003-09-04 20:20:08 +00:00
jlam
a4fd047c90 Update pkgtools/libnbcompat to 20030828. Changes from previous version
include making mkdtemp() return the correct values on systems that use
libnbcompat's mkdtemp.  Fix by jschauma@netbsd.org.
2003-09-04 01:51:15 +00:00
jlam
ee4ef77170 Update pkgtools/libnbcompat to 20030827. Changes from previous version
include only building __fts13.o into libnbcompat.a if the fts_*()
functions aren't present in the system.
2003-09-03 16:38:36 +00:00
jlam
5fe1f0551a Add and remove some files I forgot to in the last commit. 2003-09-03 13:35:54 +00:00
jlam
deadfb61c8 Add and remove some files I forgot to in the last commit. 2003-09-03 13:35:45 +00:00
jlam
16ddd24bdb Update pkgtools/libnbcompat to 20030826. Changes from previous version:
* 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-03 13:11:11 +00:00
jlam
f8184589ff Update pkgtools/libnbcompat to 20030825. Changes from version 20030824
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-03 07:07:04 +00:00
jlam
5619137743 Actually, extern.h and stat_flags.h are used by pkgtools/mtree.
XXX This should really be done in a different way than installing some
XXX globally-accessible header called "extern.h".
2003-09-03 03:43:45 +00:00
jlam
63ea2414a6 Update pkgtools/libnbcompat to 20030824. Changes from previous version:
* Don't install namespace.h, extern.h and stat_flags.h, which are
      only used internally.

    * Clean up util.h by using '#if !HAVE_xxx' instead of
      '#ifndef !HAVE_xxx', removing some LIST_* definitions that are
      defined by <nbcompat.h>, and removing static declarations.

    * If fparseln is in libutil (as it is in NetBSD), then don't build
      it into libnbcompat.a.
2003-09-03 03:28:23 +00:00
jlam
eecbe2144e Use '#if !HAVE_xxx' instead of '#ifndef HAVE_xxx' to cover cases when
-DHAVE_xxx=0 is set on the command-line.
2003-09-03 01:55:56 +00:00
jlam
fa35a58150 Solaris needs to include <sys/vfs.h> to get definitions for statvfs(). 2003-09-02 02:05:22 +00:00
jlam
ecf2225023 Older awks don't like gensub() so use sub() instead. 2003-09-02 01:54:39 +00:00
jlam
3319ebf79b We only need to step carefully in the Solaris case for statfs(), but
otherwise we can trust statfs() if it's on the system.
2003-09-02 01:45:14 +00:00
jlam
0c71abea7b Bump version to 20030823:
* 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-09-01 15:31:14 +00:00
jmmv
d34c1dce87 Drop advertising clause from UCB licensed code, following changes done in
NetBSD's source files.
2003-08-27 12:25:40 +00:00
jschauma
7fe8dcf6a6 Add the err.h header, so we can use it on systems that don't provide err.h
(functionality already in the library, just the header was missing).
Bumpt date to today.
2003-07-31 22:40:26 +00:00
grant
c1356280a6 test for time.h, sys/time.h and inclusion of both.
include system fts.h if we have one, or our own.
2003-07-19 03:05:00 +00:00
grant
a046577418 don't test for fparseln in libutil for now. 2003-07-17 19:53:54 +00:00
grant
aec55e892f force nbtypes.h to be built, and run ranlib after building the static
archive.
2003-07-17 19:36:43 +00:00
grant
1a0804c285 move stuff from deprecated acconfig.h to configure.ac. 2003-07-17 06:22:32 +00:00
grant
ac5af43e48 do away with AC_CONFIG_SRCDIR 2003-07-15 05:36:03 +00:00
grant
8c13cfdcce fix getopt_long() test to avoid overriding it. 2003-07-15 05:33:04 +00:00
grant
394bcaacf9 setenv.c - include strings.h for bcopy prototype
add prototypes for getmode, lchmod, lchown

eliminates implicit declaration warnings building pax and mtree with
Forte compiler on Solaris.
2003-07-13 02:36:17 +00:00
grant
6c0c7208c7 setenv() returns an int, so make it believe that. 2003-07-12 19:43:53 +00:00
grant
0bdef15848 s/#if !/#ifndef/, since the former confuses some C pre-processors 2003-06-30 15:14:46 +00:00
grant
d0b0537213 fix rcsid 2003-06-30 15:13:17 +00:00
grant
79aba7a3d8 remove config.h in distclean target, not clean. 2003-06-30 14:48:00 +00:00
jschauma
0e81cc9882 Make pax compile on Irix by including pwcache.h, which now includes
forward declarations of the uid_from_user functions.
2003-06-24 14:09:21 +00:00
grant
47276e6a4b add prototype for isblank() to avoid implicit declaration
add RCS Id
2003-06-24 06:22:23 +00:00
grant
fc4ac99b0b not all systems define all of the time related constants we
need in tzfile.h, avoid redefinition warnings.
2003-06-23 13:15:59 +00:00
grant
6c5b7cfc7a add getopt, getopt_long.
include tzfile.h and sys/mkdev.h in nbcompat.h.

bump to 20030622.
2003-06-23 11:33:06 +00:00
grant
a6d4a8363a protect against multiple inclusion 2003-06-10 06:33:24 +00:00
grant
f332b2a802 test for both getmode() and setmode(). 2003-06-10 05:59:16 +00:00
grant
7ea7d74ab1 regen after bumping date 2003-06-09 17:21:15 +00:00
grant
09187eb341 add isblank() and strmode().
bump to 20030609.
2003-06-09 17:19:48 +00:00
jschauma
1c848ef71f Commit the recent 'setmode' change here, too, as pointed out by grant. 2003-05-25 18:54:34 +00:00
jschauma
68800f0751 Add some more protoypes in extern.h and check for setmode to shut up some
warnings.
2003-05-22 18:10:43 +00:00
grant
a6c6bcd860 work around the need for rpl_malloc (induced by config.h), since we
don't need a GNU compatible malloc() here.

a GNU compatible malloc() is still used in libnbcompat.a if it is
required.

fixes build on (at least) Tru64.
2003-04-27 16:42:29 +00:00
grant
8c72cb472c make sure LIST_EMPTY, LIST_FIRST and LIST_NEXT are defined (linux
doesn't have these in sys/queue.h).

noted by Jeremy C. Reed on tech-pkg.
2003-04-03 12:48:45 +00:00
grant
01609239ae change around some #ifdefs, since Darwin has only some vis functions. 2003-03-31 08:52:58 +00:00
grant
94d3410739 run ranlib in the install target, to appease Darwin's linker. 2003-03-31 08:41:06 +00:00
grant
a17d644a29 test for fparseln in libutil. 2003-03-31 05:34:35 +00:00
grant
706e3fa728 Initial import of libnbcompat-20030331, a portable NetBSD compatibility
library for use by the pkgsrc tools and other sources from NetBSD.
2003-03-31 05:02:17 +00:00