bjh21
a3112ce1b9
Rather than hardcoding two possible locations of the POSIX shell (for
...
Solaris and everything else), set _PATH_BSHELL to the first occurrence of
"sh" on the path. This should be rather more portable.
2002-04-24 19:41:58 +00:00
bjh21
6d3e84cc85
src/tools/dbsym has been buildable on non-NetBSD systems for some time.
2002-04-24 16:28:55 +00:00
bjh21
a64574e0e7
Add test for alloca() and <alloca.h>, since Sun Workshop C 5.0 needs this.
2002-04-23 00:13:50 +00:00
bjh21
bfebd5429d
<stdint.h> belongs before <sys/endian.h>.
2002-04-22 23:40:10 +00:00
bjh21
35d3ac9968
Define __CONCAT if the host doesn't.
2002-04-22 23:39:38 +00:00
bjh21
c5b9549c5f
Create sys/endian.h if it doesn't exist, since rmd160.c includes it directly.
2002-04-22 19:23:33 +00:00
lukem
7de4309228
add UINT32_MAX if it's not defined
2002-04-22 15:09:19 +00:00
tv
bcde44453d
Emit an empty <stdint.h> if the host doesn't have one. Should fix PR 16416.
2002-04-19 22:47:11 +00:00
tv
42f04dab1c
Actually put the include directory timestamp under the "include" directory,
...
such that nuking the dir by hand also nukes the timestamp.
2002-04-18 21:15:08 +00:00
tv
25252c9a84
Re-add test for <sys/endian.h>; it disappeared somewhere along the way.
2002-04-18 21:05:22 +00:00
bjh21
6619533896
Add a stub issetugid() for platforms that don't have it. For now, we assume
...
that no host program will be installed set-id, so the stub function always
returns 0.
2002-04-18 15:31:51 +00:00
bjh21
833d114dfc
Add HAVE_SYS_ENDIAN_H.
2002-04-04 17:52:04 +00:00
bjh21
55b93a6461
Add htobe16() and friends, #ifndef HAVE_SYS_ENDIAN_H.
2002-04-04 17:49:20 +00:00
bjh21
79cd9fb3ab
Replace a spurious hard space (\xa0) with a normal one.
2002-04-04 17:28:33 +00:00
bjh21
c9e4965681
Revert addition of mkdtemp() to libnbcompat. I don't think we need mktemp(1)
...
after all.
2002-04-01 13:59:34 +00:00
bjh21
58017a564d
Add mkdtemp to libnbcompat, since glibc doesn't have it an mktemp(1) will
...
need it.
2002-03-31 18:04:11 +00:00
bjh21
bcaedc129c
Add the md[245], sha1 and rmd160 functions to libnbcompat, conditional on their
...
not being in the host libc.
This will be necessary to make cksum into a host tool.
2002-03-31 12:58:54 +00:00
tv
d6c76879a7
fcntl locking works much better when the `struct flock' is actually given
...
to fcntl....
2002-03-07 23:14:02 +00:00
tv
d29f17612e
Don't gratuitously touch the replacement headers in ${.OBJDIR}/include;
...
instead, touch them only if they're changed.
2002-03-07 22:48:07 +00:00
tv
fa8abf3083
Need DEV_BSIZE and roundup() for makefs on non-NetBSD hosts.
2002-03-07 22:46:07 +00:00
tv
866eb28f53
Move inttypes.h to list of auto-generated-empty headers.
2002-03-07 19:18:25 +00:00
tv
fa2ae538c9
Add compat defns for uint*_t (the non-underscored ones).
...
[The logic in all of this is ugly, and should instead be fixed up to use
AC_CHECK_SIZEOF to use primitives if the counterpart type is unavailable.]
2002-03-07 18:28:46 +00:00
tv
259a2ab95f
Add some more bits of host compatibility.
2002-02-26 22:29:38 +00:00
lukem
64d97711a2
remove btodb() hack now that makefs doesn't need it anymore.
...
the #define was wrong anyway; it was x<<9 instead of x>>9
2002-02-06 15:39:01 +00:00
tv
6bd56c8eda
Cross-hosting notes for foreign OS's. (Currently Linux, Solaris, and older
...
releases of NetBSD.)
2002-02-01 04:43:39 +00:00
tv
9fbd88883c
Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
...
round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
tv
2004638500
Include config.h unconditionally; clean up.
2002-01-31 19:23:14 +00:00
tv
4ada663465
Provide a default string so host tools that forget to call setprogname()
...
won't accidentally segfault just trying to print a usage message.
2002-01-31 19:21:58 +00:00
tv
f4554f775d
Make sure there are no weak references in libnbcompat (avoids linker
...
confusion issues).
2002-01-31 19:20:14 +00:00
tv
a328e34106
Make almost all tools compile and run properly on non-NetBSD hosts. (In
...
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
lukem
2b616edfca
- Replace pwcache(3) if necessary (pwcache_userdb(3) is checked for).
...
Tested on -current and 1.5.3.
- Wrap some long lines.
2002-01-24 04:05:27 +00:00
lukem
1fdf0d0e12
remove
2002-01-23 02:31:33 +00:00
thorpej
d00b294ffa
Split compat definitions into a separate file so that autoconf
...
doesn't comment out #undef's that we want to keep.
2002-01-22 20:42:59 +00:00
lukem
60eebeccec
reachover to ../../lib/libutil for fparseln.c
2002-01-21 23:35:14 +00:00
tv
9a14a10fb6
Somewhere along the line, the _DIAGASSERT was lost. Re-add it (as a macro
...
that expands to nothing); only NetBSD hosts really have this.
2002-01-21 23:22:17 +00:00
tv
9d5d28c26f
Make many host tools compile on non-NetBSD hosts. Not complete, but
...
very nearly there.
2002-01-21 20:04:36 +00:00
lukem
729f9d86cc
rcsid
2002-01-13 12:45:23 +00:00
lukem
96119ca83f
- act more like lib/libc/gen/setprogname.c, and store the basename of
...
the argument to setprogname()
- knf
2002-01-10 05:35:42 +00:00
lukem
c6934ce7ad
regen from configure.ac 1.3 for <inttypes.h> change
2002-01-10 04:32:18 +00:00
lukem
fe4a1b3537
look for <inttypes.h> and #include if found (for uint*_t)
2002-01-10 04:31:15 +00:00
lukem
07fae6dedd
Add replacement fgetln(3) (from lukemftp/libukem), as fparseln(3) uses it
2002-01-04 14:39:06 +00:00
lukem
cd2127f548
remove lukemftp comment; this is just as close to the libutil version
2002-01-04 14:30:51 +00:00
lukem
85b0720ce9
need <errno.h> and <stdarg.h>
2002-01-04 14:28:05 +00:00
tv
87d14ee4ac
Add the framework for autoconf-based src/tools/compat structure. This will
...
(after it is more fleshed out) allow the host tools to work more cleanly
on non-NetBSD hosts.
2001-12-11 21:17:56 +00:00
jmc
6dda1d498c
Pull the rmd160 stuff out as mtree now has options to selectively compile
...
pieces out we won't need during a build.
2001-11-11 01:36:15 +00:00
jmc
67de198df5
XXX...Complete hack for now.
...
Add a stub for RMD160File which prints out a warning and returns NULL.
This allows mtree to be built when hosting from a 1.5.x box.
The real solution is to convert the src/tools bits into clean portable tools
and not have them so NetBSD-current centric.
2001-11-08 20:30:54 +00:00
tv
c5d597ce98
Bootstrap toolchain framework, first pass.
2001-08-14 11:01:55 +00:00