Commit Graph

174516 Commits

Author SHA1 Message Date
tteras
3ff331469e From Francis Dupont (sent by Arnaud Ebalard):
recognize RTM_IFANNOUNCE
2008-10-27 06:24:27 +00:00
tteras
a06fc42a2e From Arnaud Ebalard:
Fix indentation issues for readability
2008-10-27 06:21:29 +00:00
tteras
b186d55b63 From Arnaud Ebalard:
initfds() needs to be called only if monitored file descriptor numbers
have changed
2008-10-27 06:18:08 +00:00
tteras
38962f77a8 From Arnaud Ebalard:
Remove duplicate declaration
2008-10-27 06:14:04 +00:00
mrg
2e90d9c30d parse LIBDPLIBS out of each subdir Makefile, and set it in the compat
Makefile if so.  force early eval of LIBDPLIBS.  now compat libs that
need to link against other libs will find them at build time.
2008-10-27 03:17:58 +00:00
uwe
55247fa322 Fix typo in comment. 2008-10-27 00:52:07 +00:00
uwe
47cd7b4502 Pull down revision 1.3.6.1 by skrll@ (adapted to include reg::r_gbr).
struct mcontext != struct reg on sh3.

    Fix PTHREAD_UCONTEXT_TO_REG / PTHREAD_REG_TO_UCONTEXT to deal with this.
2008-10-27 00:47:22 +00:00
uwe
70eb15d9df Teach gdb about reg::r_gbr. From mjf@
XXX: We should probably properly conditionalize these changes by
introducing HAVE_STRUCT_REG_R_GBR
2008-10-27 00:33:19 +00:00
joerg
fd06786f0c Raise correct interrupt on division errors. 2008-10-27 00:20:22 +00:00
apb
9af4e3ff5b Try harder to guess the correct TOOLDIR.
Adapted from a proposal by Izumi Tsutsui in tech-toolchain.
2008-10-26 23:40:06 +00:00
apb
2962a4be8e Always define TOOL_* variables in bsd.own.mk, not in bsd.sys.mk.
Previously, they were defined in bsd.own.mk if USETOOLS=yes, but in
bsd.sys.mk if USETOOLS!=yes.  This caused makefiles that did this:

	.include <bsd.own.mk>
	FOO != ${TOOL_BAR} args...

to work in the USETOOLS=yes case but not in the USETOOLS!=yes case.
2008-10-26 23:13:24 +00:00
joerg
f1481725b6 Remove logic to compute relative pathes to chroots. It breaks the
default case of ptyfs mounted under /dev/pts as any chroot would get
/%d as slave names. This allows null mounts of ptyfs to work.
To allow pty allocation from within chroots, either no ptyfs must be
mounted or a null mount exist.
2008-10-26 23:06:41 +00:00
jmcneill
1b69e667f6 Need opt_multiprocessor.h for MULTIPROCESSOR definition. 2008-10-26 22:33:03 +00:00
christos
fbc6c6a8e6 changes from pengo that make initializing skype more reliable. 2008-10-26 20:46:05 +00:00
christos
3ce1cee82d regen. 2008-10-26 20:26:53 +00:00
christos
b5a45a5fad catch up with i386 changes. 2008-10-26 20:25:49 +00:00
christos
1b9e833438 multiprocessor fixes, from rmind 2008-10-26 20:22:01 +00:00
uwe
6dd6ba05bf Fix typo in comment inherited from i386 (spotted by mjf@). 2008-10-26 19:53:03 +00:00
uwe
ccef70cded process_read_regs, process_write_regs - handle reg::r_gbr 2008-10-26 19:43:20 +00:00
uwe
2d5078daa2 Add r_gbr to struct reg. Provide old definition as struct __reg40.
Rename old PT_GETREG to PT___GETREG40, PT_SETREG to PT___SETREG40.
2008-10-26 19:37:59 +00:00
uwe
70b97564f4 Oops, make #endif comment properly reflect the test. 2008-10-26 19:16:51 +00:00
jmcneill
e143becdb6 linux_sys_get_robust_list: copyout the entire struct, not the size of the
pointer to it.
2008-10-26 19:13:16 +00:00
uwe
ebee56aef0 Multiple inclusion protection. 2008-10-26 19:10:10 +00:00
minskim
13a938dd6c Remove trailing whitespace. 2008-10-26 18:39:01 +00:00
christos
1b618d0f6e use a symbolic constant instead of 6. 2008-10-26 17:57:49 +00:00
christos
60485d403e use GUGS_SEL instead of 3. 2008-10-26 17:42:37 +00:00
christos
2aa2273679 use a macro to get to d_type. 2008-10-26 17:41:11 +00:00
christos
68a065aac1 regen 2008-10-26 16:38:41 +00:00
christos
5dfa1e6b4a futex support fixes from FreeBSD via cube+pengo. 2008-10-26 16:38:22 +00:00
matt
f9d9dd1c9f Fix DO_PENDING_SOFTINTS (remove pasto, remove a branch, use movs)
pasto spotted by mjf
2008-10-26 16:23:29 +00:00
apb
0f98f9af22 HOST_SH should always be an absolute path, so don't bother searching for
/bin/${HOST_SH} or /usr/bin/${HOST_SH}.

If the HOST_SH sanity check fails, do not continue regardless.
2008-10-26 15:54:19 +00:00
apb
6710f563cb Set HOST_SH?=/bin/sh unconditionally. Previously, it was conditionally
set to /usr/bin/bash if HOST_CYGWIN was defined, but now build.sh
tries to set HOST_SH appropriately.

Remove the HOST_CYGWIN variable, which was not used for any other purpose.

Document that HOST_SH should be an absolute path.

THis was proposed in tech-toolchain.
2008-10-26 15:51:20 +00:00
apb
07103d0363 Pass SED=${TOOL_SED:Q} in the environment to scripts run during the build. 2008-10-26 14:55:17 +00:00
mrg
f6f31614b1 regenerate 2008-10-26 13:00:35 +00:00
mrg
84800db5ca make this almost output almost identical to what is about to be checked in. 2008-10-26 12:58:38 +00:00
mrg
8e1af7403c remove a no longer necessary piece of makefile code that was
wrong for amd64 anyway.  spotted by ad.
2008-10-26 12:46:32 +00:00
blymn
811c38a41c Extend the information that MALLOCLOG outputs to include the preceding
buffer.  This can be helpful in the case where a buffer overrun in the
preceding region stomps on the following regions data.
2008-10-26 12:23:28 +00:00
ad
49169f6211 Assert that the segment descriptors we generate for TLS will not allow
privilege elevation.
2008-10-26 11:02:14 +00:00
bjs
5353e20987 "sparce" -> "sparse" + commas after "large", prior to "sparse" 2008-10-26 08:32:02 +00:00
mrg
48ca1b1f37 XXX: fix compat/libpam static build -- find the right libc via _CURDIR
XXX: not .CURDIR, if _CURDIR exists.
2008-10-26 07:44:12 +00:00
mrg
2f0d0e12bf define and use LIBCDIR in terms of .CURDIR. fixes compat/lib/libc build. 2008-10-26 07:43:07 +00:00
mrg
5019a04ee2 use libcincludes.mk 2008-10-26 07:42:09 +00:00
mrg
28d618d682 build 32 bit compat libraries and ld.elf_so for amd64 and sparc64 builds.
two issues remain:
- LIBDPLIBS isn't working correctly, requiring hand-holding builds
- libc, libipsec, and libpcap have yacc issues, also requiring hand holding


ideally this will be replaced with a better method that can handle more
than one compat target, but i can't get that working yet.  see the README
file for mroe details.
2008-10-26 07:38:27 +00:00
mrg
8f194ab1e6 add files built with MKCOMPAT != "no". 2008-10-26 07:31:40 +00:00
mrg
72f26e4440 support MKCRYPTO. 2008-10-26 07:31:00 +00:00
mrg
45ce2feab7 use libc/libcincludes.mk. 2008-10-26 07:28:49 +00:00
mrg
7bee40559f put the code to find the libc include directories and define ARCHSUBDIR
and ARCHDIR in a common place.

this will be used by libc, libposix and librt.
2008-10-26 07:28:06 +00:00
mrg
4c0ca913b1 look for COMMON_MACHINE_ARCH before MACHINE_ARCH or MACHINE_CPU. 2008-10-26 07:22:50 +00:00
mrg
8679e33545 if LD32DIR is defined:
- look in src/compat/lib/libc for libc_pic.
- define RTLD_ARCH_SUBDIR to "i386" or "sparc" for amd64 and sparc64
  builds, respectively
if RTLD_ARCH_SUBDIR is defined, add this path before
RTLD_DEFAULT_LIBRARY_PATH in the default search path.
2008-10-26 07:11:54 +00:00
mrg
e365204b08 add MKCOMPAT, to build 32 bit libs. default to no for now for everyone. 2008-10-26 07:09:11 +00:00