Commit Graph

148 Commits

Author SHA1 Message Date
christos 7dfafee4b6 Search the new common framework. 2005-12-20 20:39:15 +00:00
elad 345a69e003 Move rmd160.h to crypto/ to keep in sync with recent changes.
Noted by xtraeme@.
2005-09-24 21:58:36 +00:00
elad 3fcecfe373 Sync with recent MD2 changes. 2005-09-24 20:52:22 +00:00
elad efa664c42a Sync with recent changes. 2005-09-24 19:06:20 +00:00
tron 41bb2c9889 Make cross compiling NetBSD under Linux work again. Problem noted by
R. Huvendiek on "current-users" mailing list.
2005-09-14 14:06:11 +00:00
christos d69a9593f3 We don't need any ndbm sources. 2005-09-13 15:32:48 +00:00
christos 25f2b410ca don't use the _foo.c files; all the code is in foo.c now. 2005-09-13 13:52:23 +00:00
christos 478e2d98de compat reorg. 2005-09-13 02:30:23 +00:00
uwe b0e7a6ada3 UINT8_MAX and UINT16_MAX are needed for disklabel. 2005-08-27 22:08:58 +00:00
elad 8eac896be6 Pull in SHA2 routines from libc to nbcompat. 2005-08-26 15:59:00 +00:00
elad 994154b2ab Add nbcompat SHA2 header. 2005-08-26 15:57:17 +00:00
tron ff5245dd05 Define "_PATH_VI" if necessary to make cross-building work again under
Solaris (and potentially other platforms) after "disklabel" has been
added to the hosts tools.
2005-08-22 15:27:11 +00:00
christos c4ee9f6d2e 64 bit inode changes 2005-08-19 02:07:18 +00:00
christos 4de0ea44a5 Replace the original fgetln with a simpler one that:
1. Works if the last line does not end up in \n
2. Does not scan the string multiple times.
3. Does not copy the string, but writes it directly in the buffer.
4. Handles out of memory conditions gracefully.
2005-05-15 21:31:26 +00:00
jmc 2b4f5f9782 Update notes for testing on linux, OS/X 2005-04-05 00:21:22 +00:00
wiz 1dc296553a Remove commas in AC_CHECK_FUNCS that shouldn't be there.
Closes PR 29577 by Valeriy E. Ushakov.
2005-03-02 18:08:43 +00:00
jmc 0a58d4b08d Define LOGIN_NAME_MAX explicitly here and override any system provided one
since the compat tools need to use the NetBSD limits, not the local system
ones (and some systems don't provide this yet anyways). Fixes PR#29170
2005-02-01 05:26:03 +00:00
jmc f7b3f12b97 Turns out some platforms (freebsd5) expose st_birthtime but not
st_birthtimensec. Make sure and check for both so programs can deal w. it
2005-01-13 00:52:40 +00:00
jmc 427a8339c4 Provide a definition for __UNCONST since there's no guarentee our sys/cdefs.h
gets pulled in
2004-12-11 09:34:08 +00:00
jmc 9da9dc64b7 Add heapsort to libnbcompat 2004-11-28 06:57:14 +00:00
jmc 7a47cf149b Check for fstatvfs and provide/use it only if the host system has it.
Fixes PR#27221
2004-10-12 03:28:30 +00:00
dbj 46ea8fc0f8 check for HAVE_STRUCT_STATVFS_F_IOSIZE
addresses PR toolchain/26415
2004-07-24 16:32:01 +00:00
dbj a7a2f3a478 remove HAVE_STRUCT_STATFS_F_IOSIZE
this is not currently being used and should be replaced with
HAVE_STRUCT_STATVFS_F_IOSIZE, but that will be done separately.
This commit should be able to be safely pulled up to
the netbsd-2-0 branch to address PR toolchain/26415
2004-07-24 12:24:59 +00:00
tron ecde30ce9a Define "_ISOC99_SOURCE" when building under NetBSD to get the prototypes
for strtoll() and strtoull(). This fixes PR toolchain/26021.
2004-06-23 11:08:01 +00:00
jmc 3cc9c970a3 Redo the last commit. _NETBSD_SOURCE should never be used/referenced anymore.
So, don't wrap definitions in it, and instead check for it and #error out
if it somehow leaks into scope.

Tested a complete build to sets on x86 from a clean source tree.
2004-06-22 04:36:23 +00:00
jmc fe74c8aaed Note on NetBSD that _NETBSD_SOURCE should never be defined and it's an error
if it is
2004-06-22 01:51:22 +00:00
christos e71f17c257 - Wrap around #if !_NETBSD_SOURCE the definitions of u_{long,int,short,char}
- Protect dirfd() macro so that we don't re-define it.

These changes make my build proceed further.

The problem is that automatically generated files, might include system
files before they include anything else (for example our yacc skeleton
includes <stdlib.h> before it does anything else). This foils the scheme
of defining _POSIX_SOURCE and friends so that _NETBSD_SOURCE does not
get defined; in fact, we include many files with _NETBSD_SOURCE defined,
enough to cause confusion in compat_defs.h which tries to re-define things.
2004-06-21 23:14:42 +00:00
jmc 0a6d68b570 On NetBSD boxes make sure and provide prototypes for strtouq since quad_t gets
exposed all the time, but routines which use it do not. Otherwise callers
of strtouq will lose.
XXX: Need to come back through here and clean up the configure tests better
for this
2004-06-21 22:13:32 +00:00
jmc b2f782612f Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
2004-06-20 22:20:14 +00:00
thorpej b45be21f86 Use ${_TOOL_PREFIX} as appropriate. 2004-06-18 20:26:51 +00:00
thorpej a72980c494 Oops, missed a spot where we need to handle group_from_gid() separately. 2004-06-18 20:24:03 +00:00
thorpej 08248e74c7 Regen. 2004-06-18 20:17:12 +00:00
thorpej 594733dd5a Handle group_from_gid() on its own. 2004-06-18 20:17:01 +00:00
thorpej e1df38d43a Check for group_from_gid(). 2004-06-18 20:07:31 +00:00
jmc 09709f97dd Before sucking in stdlib.h check if this is NetBSD. If so, explicitly make
sure to use _POSIX_C_SOURCE and undef _NETBSD_SOURCE so the myriad of NetBSD
extentions don't get pulled into scope (and likely conflict at some point
with branched code trying to build on -current due to drift). Fixes PR#25533

XXX: The entire process here is just wacky and the entire cross tools process
needed to be reviewed to build clean w. just _POSIX_C_SOURCE or the equiv
set on NetBSD hosts or this will lose again somewhere..
2004-06-14 06:13:15 +00:00
sjg 5d1af908f6 Apply patch from OGAWA Takaya to fix FreeBSD hosted builds.
The trick is to force use of the NetBSD versions of user_from_{uid,gid}().

PR: 24843
2004-05-18 22:14:35 +00:00
jmc 7a3a50551c Make this build on non-NetBSD again (specifically linux). Exclude __ndbm13.c
from the imported db sources as well
2004-05-03 03:20:20 +00:00
matt d4793b28a9 Add a compat definition of __packed. 2004-04-24 15:46:24 +00:00
christos dbe056a805 more constification suggested by kleink. 2004-04-23 14:46:31 +00:00
christos 5c424ffc08 adjust to constification of cget*() 2004-04-23 14:38:16 +00:00
simonb fa7a1046d3 White space nit. 2004-01-13 00:53:06 +00:00
simonb c7fb30805a Use the first argument of getmode() to modify the second arg, instead of
just replacing the second arg.  This lets the higher order file type bits
survive.  Fixes problems with the tools version of mknod(8).
2004-01-12 02:23:37 +00:00
simonb a5c6a6feac KNF. 2004-01-08 12:16:09 +00:00
jmc a2aecee228 List that all hosts require a posix sh and override with HOST_SH if needed.
Start a list of any other general tools assumed (gzip being the only one
right now).
Note that redhat8 works with no special settings.
2003-12-29 07:09:44 +00:00
dbj 8547b2b628 note successful build on Mac OS 10.3 with xcode 1.0 developer tools 2003-11-17 05:42:58 +00:00
dbj f26617b6f6 regen after HAVE_SYS_POLL_H change 2003-11-12 19:44:33 +00:00
dbj a473896520 use sys/poll.h and HAVE_SYS_POLL_H instead of just HAVE_POLL_H
HAVE_SYS_POLL_H is used by src/include/roken.h needed by the host tool asn1_compile
2003-11-12 19:43:58 +00:00
lukem 444edb22a9 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 01:42:50 +00:00
lukem 171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
lukem f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00