Index: head/lang/smlnj/Makefile =================================================================== --- head/lang/smlnj/Makefile (revision 472448) +++ head/lang/smlnj/Makefile (revision 472449) @@ -1,399 +1,393 @@ # $FreeBSD$ PORTNAME= smlnj PORTVERSION= 110.77 CATEGORIES= lang MASTER_SITES= http://smlnj.cs.uchicago.edu/dist/working/${PORTVERSION}/ \ ftp://mirror.free.de/http/smlnj.cs.uchicago.edu/dist/working/${PORTVERSION}/ DISTFILES= config.tgz runtime.tgz DIST_SUBDIR= smlnj/${PORTVERSION} EXTRACT_ONLY= config.tgz MAINTAINER= joemann@beefree.free.de COMMENT= Compiler and tools for Standard ML (SML '97) LICENSE= SMLNJ LICENSE_NAME= Standard ML of New Jersey License LICENSE_TEXT= The text of the license can be obtained from the following URL:\ http://www.smlnj.org/license.html LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept ONLY_FOR_ARCHS= i386 amd64 LLD_UNSAFE= yes NO_WRKSUBDIR= yes SUB_FILES= pkg-install SUB_LIST= EXEBINDIR=${MLBINRELATIVE} EXENAMES="${MLEXE}" PKGDEINSTALL= ${PKGINSTALL} # Calm portlint CALM= OPTIONS_RADIO= RG1 OPTIONS_RADIO_RG1= EVERYTHING RECOMPILE POSITION64 OPTIONS_EXCLUDE_amd64= RECOMPILE POSITION64 EVERYTHING_DESC= install${CALM} everything from the SML/NJ distribution RECOMPILE_DESC= recompile the SML compiler - implies EVERYTHING POSITION64_DESC= use 64bit file${CALM} positions - implies RECOMPILE .include # Recompiling the compiler currently fails on amd64 .if ${ARCH} == "i386" ML_RECOMPILE_OPTIONS= RECOMPILE POSITION64 .endif .if (${ARCH} == "amd64") CFLAGS+= -m32 AS?= as AS+= --32 .endif .if (${ARCH} == "i386" || ${ARCH} == "amd64") MLARCH= x86 DISTFILES+= boot.x86-unix.tgz .endif DISTFILES+= MLRISC.tgz ckit.tgz cml.tgz doc.tgz heap2asm.tgz \ ml-burg.tgz ml-lpt.tgz ml-lex.tgz ml-yacc.tgz nlffi.tgz \ smlnj-lib.tgz trace-debug-profile.tgz PLIST_SUB= MLARCH=${MLARCH} .if ${PORT_OPTIONS:MPOSITION64} || defined(ML_POSITION64) ML_POSITION64?= ${PORT_OPTIONS:MPOSITION64} ML_RECOMPILE?= ${ML_POSITION64} ML_EVERYTHING?= ${ML_POSITION64} CMB_COMMAND= '(\#set o CMB.symval) "USE_64_BIT_POSITIONS" (SOME 1);' .else CMB_COMMAND= .endif .if ${PORT_OPTIONS:MRECOMPILE} || defined(ML_RECOMPILE) ML_RECOMPILE?= ${PORT_OPTIONS:MRECOMPILE} ML_EVERYTHING?= ${ML_RECOMPILE} .endif .if ${PORT_OPTIONS:MEVERYTHING} || defined(ML_EVERYTHING) ML_EVERYTHING?= ${PORT_OPTIONS:MEVERYTHING} DISTFILES+= cm.tgz compiler.tgz eXene.tgz \ pgraph.tgz smlnj-c.tgz system.tgz PLIST_SUB+= EVERYTHING="" .else PLIST_SUB+= EVERYTHING="@comment " .endif MLROOTRELATIVE= smlnj MLROOT= ${PREFIX}/${MLROOTRELATIVE} MLBINRELATIVE= ${MLROOTRELATIVE}/bin MLBIN= ${MLROOT}/bin MLLIB= ${MLROOT}/lib MLSTDSRCDIRS= cml doc heap2asm ml-burg ml-lex ml-lpt ml-yacc nlffi smlnj-lib MLSRCDIRS= base ${MLSTDSRCDIRS} \ ckit eXene pgraph smlnj-c MLSRCS= .for srcdir in ${MLSRCDIRS} MLSRCS+= ${MLROOT}/${srcdir} .endfor MLTARGETS= heap2asm MLEXE= heap2exec ml-antlr ml-build ml-burg ml-lex ml-makedepend \ ml-nlffigen ml-ulex ml-yacc sml .if defined(ML_EVERYTHING) MLTARGETS+= eXene mlrisc-tools nowhere pgraph-util src-smlnj MLEXE+= nowhere PLIST= ${WRKDIR}/.PLIST MLRUNTIMEPLIST= ${WRKDIR}/.PLIST-runtime MLSRCPLIST= ${WRKDIR}/.PLIST-src MLPLISTFILES= ${.CURDIR}/pkg-plist ${MLRUNTIMEPLIST} ${MLSRCPLIST} .endif pre-fetch: @${ECHO} .if ! defined(ML_EVERYTHING) @${ECHO} 'Use make ML_EVERYTHING=yes to also build/install' @${ECHO} ' eXene (X Windows toolkit),' @${ECHO} ' nowhere (preprocessor for conditional patterns),' @${ECHO} ' various libraries, and all the sources.' .endif .if !empty(ML_RECOMPILE_OPTIONS:MRECOMPILE) && !defined(ML_RECOMPILE) @${ECHO} 'Use make ML_RECOMPILE=yes to recompile the compiler.' @${ECHO} ' This implies ML_EVERYTHING.' .endif .if !empty(ML_RECOMPILE_OPTIONS:MPOSITION64) && !defined(ML_POSITION64) @${ECHO} 'Use make ML_POSITION64=yes to use 64bit file positions.' @${ECHO} ' This implies ML_RECOMPILE.' .endif @${ECHO} # make symlinks to the dist files post-extract: cd ${WRKSRC} && ${LN} -sf ${_DISTDIR}/* . # Configuring is done by uncommenting the appropriate #request # lines of config/targets. Dependency details are handled by # base/system/smlnj/installer using config/dependencies and # config/actions. do-configure: .if defined(MLTARGETS) ${ECHO_CMD} -n > "${WRKDIR}/.tmp.sed" .for t in ${MLTARGETS} ${ECHO_CMD} '/^#request[ ]+${t}$$/s/^#//' >> "${WRKDIR}/.tmp.sed" .endfor ${SED} -i .default -E -f "${WRKDIR}/.tmp.sed" "${WRKSRC}/config/targets" .endif # Recompilation requires ml-lex and ml-yacc. All requested targets # will be built later using the recompiled core system after # removing targets.customized. See "do-build" below. .if defined(ML_RECOMPILE) ( ${ECHO_CMD} "request ml-yacc" && \ ${ECHO_CMD} "request ml-lex" && \ ${ECHO_CMD} "request ml-lex-mllex-tool" && \ ${ECHO_CMD} "request src-smlnj" ) \ > "${WRKSRC}/config/targets.customized" .endif # The build target patches, builds, and installs the system within WRKDIR. # base/runtime is not cleaned afterwards to avoid its recompilation during # a subsequent make install. # See base/system/README for information on recompiling the compiler. .if defined(ML_RECOMPILE) RECOMPILEDIR= base/system .else RECOMPILEDIR= .endif -.if (${ARCH} == "amd64") && (${OSVERSION} < 1000029) MLRUNTIMEPATCHES_CMD= cd ${FILESDIR} && \ - ( ${LS} do-patch-base_runtime_* extra-patch-base_runtime_* 2>&- || \ - ${TRUE} ) -.else -MLRUNTIMEPATCHES_CMD= cd ${FILESDIR} && \ ( ${LS} do-patch-base_runtime_* 2>&- || \ ${TRUE} ) -.endif MLSTANDARDPATCHES_CMD= cd ${FILESDIR} && \ ( for srcdir in ${MLSTDSRCDIRS} ; \ do ${LS} do-patch-$${srcdir}_* 2>&- ; \ done ) || ${TRUE} MLSTANDARDPATCHDIRS_CMD= cd ${FILESDIR} && \ ( for srcdir in ${MLSTDSRCDIRS} ; \ do if ${LS} do-patch-$${srcdir}_* 1>&- 2>&- ; \ then ${ECHO_CMD} -n $${srcdir} " " ; break ; fi ; \ done ) || ${TRUE} .if defined(ML_EVERYTHING) MLSOURCEPATCHES_CMD= cd ${FILESDIR} && \ ( ${LS} do-patch-* 2>&- || \ ${TRUE} ) .else MLSOURCEPATCHES_CMD= ${TRUE} .endif do-build: cd ${WRKSRC} && unset PWD && \ FILESDIR="${FILESDIR}" PATCH="${PATCH}" PATCH_ARGS="-d ${PATCH_WRKSRC} ${PATCH_ARGS}" \ MLNORUNTIMECLEAN=yes \ MLRUNTIMEPATCHES=`${MLRUNTIMEPATCHES_CMD}` \ MLSTANDARDPATCHES=`${MLSTANDARDPATCHES_CMD}` \ MLSTANDARDPATCHDIRS=`${MLSTANDARDPATCHDIRS_CMD}` \ MLSOURCEPATCHES=`${MLSOURCEPATCHES_CMD}` \ CFLAGS='${CFLAGS}' AS='${AS}' EXTRA_DEFS='${EXTRA_DEFS}' \ ./config/install.sh .if defined(ML_RECOMPILE) -${RM} ${WRKSRC}/config/targets.customized @${ECHO} '(* Recompiling the core system: *)' cd ${WRKSRC}/${RECOMPILEDIR} && ( \ ${ECHO_CMD} 'CM.autoload "$$smlnj/cmb.cm";' ; \ ${ECHO_CMD} ${CMB_COMMAND} ; \ ${ECHO_CMD} 'CMB.make ();' ) | \ ../../bin/sml @${ECHO} '(* Building the recompiled heap: *)' cd ${WRKSRC}/${RECOMPILEDIR} && \ ./makeml @${ECHO} '(* Removing old libs and heaps: *)' cd ${WRKSRC}/${RECOMPILEDIR} && \ ${RM} -r ../../lib && ${MKDIR} ../../lib && \ ${FIND} ../../bin/.heap -name '*.${MLARCH}-bsd' \ \! -name 'sml.${MLARCH}-bsd' -delete -print @${ECHO} '(* Installing the recompiled libs and heap: *)' cd ${WRKSRC}/${RECOMPILEDIR} && \ ./installml @${ECHO} '(* Building requested targets: *)' cd ${WRKSRC} && unset PWD && \ FILESDIR="${FILESDIR}" PATCH="${PATCH}" PATCH_ARGS="-d ${PATCH_WRKSRC} ${PATCH_ARGS}" \ MLNORUNTIMECLEAN=yes RECOMPILEDIR="${RECOMPILEDIR}" \ CFLAGS='${CFLAGS}' AS='${AS}' EXTRA_DEFS='${EXTRA_DEFS}' \ ./config/install.sh .endif # If Mac OS X resource files make it into the distribution tarballs, # then we have to remove them at several points during the # installation process. This is no longer necessary with FreeBSD 10 # as it uses libarchive 3.x (via bsdtar), but earlier versions # don't ignore such resource files and hence WRKSRC and STAGEDIR # are full of them. Once FreeBSD 9 will be out of service, all # lines in this Makefile can be removed which contain a pattern # for the prefix "._" of the resource files. Background information: # post-build: ${FIND} ${WRKSRC} -type f -name '\._*' -delete # Nowadays PLIST has to be computed before installation. We do it in # "pre-install" because source extraction happens during "build". .if defined(ML_EVERYTHING) MLNOINSTALL= .cm .if defined(ML_RECOMPILE) MLNOINSTALL+= sml.bin.${MLARCH}-unix sml.boot.${MLARCH}-unix \ sml.lib sml.${MLARCH}-bsd .endif .for excl in ${MLNOINSTALL} MLSRCEXCLUDEREGEX+= -e '/${excl}$$' -e '/${excl}/' .endfor MLPATCHPATHREGEX= -E -e 's%(^|[^_])_([^_]|$$)%\1/\2%g' \ -e 's%(^|[^_])__([^_]|$$)%\1_\2%g' \ -e 's%(^|[^_])___([^_]|$$)%\1/_\2%g' .endif pre-install: .if defined(ML_EVERYTHING) @${ECHO} -n '(* Computing package list ...' @${TAR} -tzf ${WRKSRC}/runtime.tgz | \ ${GREP} -E -v '(^|/)\._.*' | \ ${SED} -E -n -e 's%^(.*[^/])$$%${MLROOTRELATIVE}/base/\1%p' \ > ${MLRUNTIMEPLIST} @${MLRUNTIMEPATCHES_CMD} | \ ${SED} ${MLPATCHPATHREGEX} | \ ${SED} -E -e 's%^(do|extra)-patch-(base/.*)%${MLROOTRELATIVE}/\2%' \ > ${MLRUNTIMEPLIST}.patched -@${GREP} -F -v -f ${MLRUNTIMEPLIST} ${MLRUNTIMEPLIST}.patched \ > ${MLRUNTIMEPLIST}.patchednew @${CAT} ${MLRUNTIMEPLIST}.patchednew >> ${MLRUNTIMEPLIST} @${MLRUNTIMEPATCHES_CMD} | \ ${SED} ${MLPATCHPATHREGEX} | \ ${SED} -E -e 's%^(do|extra)-patch-(base/.*)%${MLROOTRELATIVE}/\2.orig%' \ >> ${MLRUNTIMEPLIST} @cd "${WRKSRC}" && ( \ ( ${FIND} -s -d ${MLSRCDIRS} \! -type d | \ ${AWK} '{ print "${MLROOTRELATIVE}/" $$0 }' ) ; \ ( ${FIND} -s -d ${MLSRCDIRS} -type d -empty | \ ${AWK} '{ print "@dir ${MLROOTRELATIVE}/" $$0 }' ) ) | \ ${EGREP} -v ${MLSRCEXCLUDEREGEX} > ${MLSRCPLIST} @${SED} -e 's/^%%EVERYTHING%%//' ${MLPLISTFILES} | \ ${GREP} -h -v "^@dir" | ${SORT} -u > ${PLIST} @${SED} -e 's/^%%EVERYTHING%%//' ${MLPLISTFILES} | \ ${GREP} -h "^@dir" | ${SORT} -r -u >> ${PLIST} @${ECHO} ' done. *)' .endif # ${PKGINSTALL} contains multiexec-wrapper, which is used to select # between executables of the same name that have been installed by # different packages (like smlnj and smlnj-devel). The source of # multiexec-wrapper is extracted from ${PKGINSTALL}, and inserted # into ${PKGINSTALL} in compressed and encoded form. So it is still # available when being installed from a binary package, even if # ${PKGINSTALL} is no file at that time (but only input to a shell). @${SED} -e '/^#%%PKG-INSTALL-START%%$$/,/^#%%PKG-INSTALL-END%%$$/d' \ ${PKGINSTALL} > ${PKGINSTALL}.script @${GZIP_CMD} ${PKGINSTALL}.script @b64encode ${PKGINSTALL}.script.gz script.gz > ${PKGINSTALL}.script.gz.b64 @${SED} -n -e '1,/~EOF~.$$/p' ${PKGINSTALL} > ${PKGINSTALL}.pre @${SED} -n -e '/^~EOF~$$/,$$p' ${PKGINSTALL} > ${PKGINSTALL}.post @${CAT} ${PKGINSTALL}.pre ${PKGINSTALL}.script.gz.b64 ${PKGINSTALL}.post > ${PKGINSTALL}.full @${DIFF} -q ${PKGINSTALL} ${PKGINSTALL}.full >/dev/null || ${CP} ${PKGINSTALL}.full ${PKGINSTALL} # The install target installs the heaps and libraries to their final # location in ${MLBIN} and ${MLLIB}. # In case of recompilation, installml installs the sml heap and the # libraries built during compiler bootstrap to ${MLBIN} and ${MLLIB}. # When staging CM_PATHCONFIG has to point to the final # ${MLLIB}/pathconfig (in ${PREFIX}) while building the compiler. .if defined(ML_EVERYTHING) MLSRCEXCLUDES= .for excl in ${MLNOINSTALL} MLSRCEXCLUDES+= --exclude "${excl}" .endfor .endif do-install: ${MKDIR} "${STAGEDIR}${MLROOT}" .if ! defined(ML_RECOMPILE) cd ${WRKSRC} && unset PWD && \ FILESDIR="${FILESDIR}" PATCH="${PATCH}" PATCH_ARGS="-d ${PATCH_WRKSRC} ${PATCH_ARGS}" \ STAGEDIR="${STAGEDIR}" MLLIB="${MLLIB}" \ INSTALLDIR="${STAGEDIR}${MLROOT}" \ CFLAGS='${CFLAGS}' AS='${AS}' EXTRA_DEFS='${EXTRA_DEFS}' \ ./config/install.sh .else @${ECHO} '(* Rebuilding the recompiled libs: *)' cd ${WRKSRC}/${RECOMPILEDIR} && ( \ ${ECHO_CMD} 'CM.autoload "$$smlnj/cmb.cm";' ; \ ${ECHO_CMD} ${CMB_COMMAND} ; \ ${ECHO_CMD} 'CMB.make ();' ) | \ ../../bin/sml @${ECHO} '(* Rebuilding the recompiled heap: *)' cd ${WRKSRC}/${RECOMPILEDIR} && \ ./makeml @${ECHO} '(* Installing into ${MLROOT}: *)' cd ${WRKSRC} && unset PWD && \ FILESDIR="${FILESDIR}" PATCH="${PATCH}" PATCH_ARGS="-d ${PATCH_WRKSRC} ${PATCH_ARGS}" \ STAGEDIR="${STAGEDIR}" MLLIB="${MLLIB}" \ INSTALLDIR="${STAGEDIR}${MLROOT}" RECOMPILEDIR="${RECOMPILEDIR}" \ CFLAGS='${CFLAGS}' AS='${AS}' EXTRA_DEFS='${EXTRA_DEFS}' \ ./config/install.sh .endif [ ! -d ${STAGEDIR} ] || \ ${FIND} ${STAGEDIR} -type f -name '\._*' -delete @${ECHO} '(* Installing man pages. *)' .for mansect in 1 2 3 4 5 6 7 8 9 @[ ! -d ${WRKSRC}/doc/man/man${mansect} ] || \ { cd ${WRKSRC}/doc/man/man${mansect} && ls *.${mansect} | \ ${XARGS} -J % \ ${INSTALL_MAN} % ${STAGEDIR}${MANPREFIX}/man/man${mansect} ; } .endfor @${ECHO} '(* Stripping runtime executable: *)' MLARCHOPSYS=`${STAGEDIR}${MLBIN}/.arch-n-opsys` && \ ( eval $${MLARCHOPSYS} ; \ ${STRIP_CMD} "${STAGEDIR}${MLBIN}/.run/run.$${ARCH}-$${OPSYS}" \ "${STAGEDIR}${MLBIN}/.run/run.$${ARCH}-$${OPSYS}.so" ) .if defined(ML_EVERYTHING) @${ECHO} '(* Cleaning base/runtime: *)' cd ${WRKSRC}/base/runtime/objs && ${MAKE_CMD} clean @${ECHO} -n '(* Installing sources into ${STAGEDIR}${MLROOT} ...' @cd ${WRKSRC} && ${TAR} -cf - ${MLSRCEXCLUDES} ${MLSRCDIRS} | \ ${TAR} -xf - -C "${STAGEDIR}${MLROOT}" @${ECHO} ' done. *)' .endif # Only execute ${PKGINSTALL} when installing to ${PREFIX}, # but not when staging. .ifmake install${CALM} PKG_PREFIX=${PREFIX} MULTIEXEC_WRAPPER_VERBOSE=yes \ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .endif ${FIND} ${STAGEDIR} -type f -name '\._*' -delete MLARCHOPSYS=`${STAGEDIR}${MLBIN}/.arch-n-opsys` && \ ( eval $${MLARCHOPSYS} ; \ ${STRIP_CMD} "${STAGEDIR}${MLBIN}/.run/run.$${ARCH}-$${OPSYS}" \ "${STAGEDIR}${MLBIN}/.run/run.$${ARCH}-$${OPSYS}.so" ) .ifndef MULTIEXEC_WRAPPER_VERBOSE deinstall: export MULTIEXEC_WRAPPER_VERBOSE=yes && \ cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} deinstall .endif # This target may be used by dependent ports to set SMLNJ_VERSION # either to the currently installed smlnj package's version # or else to this port's version. SMLNJ_VERSION is an environment # variable used by multiexec-wrapper to select the executable # from that smlnj-* package matching SMLNJ_VERSION. smlnj-version: @{ ${PKG_INFO} -e smlnj && \ ${EXPR} `${PKG_INFO} -E smlnj` : '.*-\(.*\)' 2>/dev/null ; } || \ ${ECHO_CMD} ${PKGVERSION} .include Index: head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-9-i386-__types.h =================================================================== --- head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-9-i386-__types.h (revision 472448) +++ head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-9-i386-__types.h (nonexistent) @@ -1,131 +0,0 @@ ---- base/runtime/include/freebsd-9-i386-_types.h.orig 1970-01-01 01:00:00.000000000 +0100 -+++ base/runtime/include/freebsd-9-i386-_types.h 2013-06-19 16:07:03.000000000 +0200 -@@ -0,0 +1,128 @@ -+/*- -+ * Copyright (c) 2002 Mike Barcroft -+ * Copyright (c) 1990, 1993 -+ * The Regents of the University of California. All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 3. All advertising materials mentioning features or use of this software -+ * must display the following acknowledgement: -+ * This product includes software developed by the University of -+ * California, Berkeley and its contributors. -+ * 4. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ * -+ * From: @(#)ansi.h 8.2 (Berkeley) 1/4/94 -+ * From: @(#)types.h 8.3 (Berkeley) 1/5/94 -+ * $FreeBSD: stable/9/sys/i386/include/_types.h 222813 2011-06-07 08:46:13Z attilio $ -+ */ -+ -+#ifndef _MACHINE__TYPES_H_ -+#define _MACHINE__TYPES_H_ -+ -+#ifndef _SYS_CDEFS_H_ -+#error this file needs sys/cdefs.h as a prerequisite -+#endif -+ -+#define __NO_STRICT_ALIGNMENT -+ -+/* -+ * Basic types upon which most other types are built. -+ */ -+typedef __signed char __int8_t; -+typedef unsigned char __uint8_t; -+typedef short __int16_t; -+typedef unsigned short __uint16_t; -+typedef int __int32_t; -+typedef unsigned int __uint32_t; -+#ifndef lint -+__extension__ -+#endif -+/* LONGLONG */ -+typedef long long __int64_t; -+#ifndef lint -+__extension__ -+#endif -+/* LONGLONG */ -+typedef unsigned long long __uint64_t; -+ -+/* -+ * Standard type definitions. -+ */ -+typedef unsigned long __clock_t; /* clock()... */ -+typedef __int32_t __critical_t; -+typedef long double __double_t; -+typedef long double __float_t; -+typedef __int32_t __intfptr_t; -+typedef __int64_t __intmax_t; -+typedef __int32_t __intptr_t; -+typedef __int32_t __int_fast8_t; -+typedef __int32_t __int_fast16_t; -+typedef __int32_t __int_fast32_t; -+typedef __int64_t __int_fast64_t; -+typedef __int8_t __int_least8_t; -+typedef __int16_t __int_least16_t; -+typedef __int32_t __int_least32_t; -+typedef __int64_t __int_least64_t; -+typedef __int32_t __ptrdiff_t; /* ptr1 - ptr2 */ -+typedef __int32_t __register_t; -+typedef __int32_t __segsz_t; /* segment size (in pages) */ -+typedef __uint32_t __size_t; /* sizeof() */ -+typedef __int32_t __ssize_t; /* byte count or error */ -+typedef __int32_t __time_t; /* time()... */ -+typedef __uint32_t __uintfptr_t; -+typedef __uint64_t __uintmax_t; -+typedef __uint32_t __uintptr_t; -+typedef __uint32_t __uint_fast8_t; -+typedef __uint32_t __uint_fast16_t; -+typedef __uint32_t __uint_fast32_t; -+typedef __uint64_t __uint_fast64_t; -+typedef __uint8_t __uint_least8_t; -+typedef __uint16_t __uint_least16_t; -+typedef __uint32_t __uint_least32_t; -+typedef __uint64_t __uint_least64_t; -+typedef __uint32_t __u_register_t; -+typedef __uint32_t __vm_offset_t; -+typedef __int64_t __vm_ooffset_t; -+#ifdef PAE -+typedef __uint64_t __vm_paddr_t; -+#else -+typedef __uint32_t __vm_paddr_t; -+#endif -+typedef __uint64_t __vm_pindex_t; -+typedef __uint32_t __vm_size_t; -+ -+/* -+ * Unusual type definitions. -+ */ -+#ifdef __GNUCLIKE_BUILTIN_VARARGS -+typedef __builtin_va_list __va_list; /* internally known to gcc */ -+#else -+typedef char * __va_list; -+#endif /* __GNUCLIKE_BUILTIN_VARARGS */ -+#if defined(__GNUC_VA_LIST_COMPATIBILITY) && !defined(__GNUC_VA_LIST) \ -+ && !defined(__NO_GNUC_VA_LIST) -+#define __GNUC_VA_LIST -+typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/ -+#endif -+ -+#endif /* !_MACHINE__TYPES_H_ */ Property changes on: head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-9-i386-__types.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-__types.h =================================================================== --- head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-__types.h (revision 472448) +++ head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-__types.h (nonexistent) @@ -1,137 +0,0 @@ ---- base/runtime/include/freebsd-8-i386-_types.h.orig 1970-01-01 01:00:00.000000000 +0100 -+++ base/runtime/include/freebsd-8-i386-_types.h 2013-06-19 16:14:57.000000000 +0200 -@@ -0,0 +1,134 @@ -+/*- -+ * Copyright (c) 2002 Mike Barcroft -+ * Copyright (c) 1990, 1993 -+ * The Regents of the University of California. All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 3. All advertising materials mentioning features or use of this software -+ * must display the following acknowledgement: -+ * This product includes software developed by the University of -+ * California, Berkeley and its contributors. -+ * 4. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ * -+ * From: @(#)ansi.h 8.2 (Berkeley) 1/4/94 -+ * From: @(#)types.h 8.3 (Berkeley) 1/5/94 -+ * $FreeBSD: stable/8/sys/i386/include/_types.h 176827 2008-03-05 11:21:14Z bde $ -+ */ -+ -+#ifndef _MACHINE__TYPES_H_ -+#define _MACHINE__TYPES_H_ -+ -+#ifndef _SYS_CDEFS_H_ -+#error this file needs sys/cdefs.h as a prerequisite -+#endif -+ -+#define __NO_STRICT_ALIGNMENT -+ -+/* -+ * Basic types upon which most other types are built. -+ */ -+typedef __signed char __int8_t; -+typedef unsigned char __uint8_t; -+typedef short __int16_t; -+typedef unsigned short __uint16_t; -+typedef int __int32_t; -+typedef unsigned int __uint32_t; -+ -+#if defined(lint) -+/* LONGLONG */ -+typedef long long __int64_t; -+/* LONGLONG */ -+typedef unsigned long long __uint64_t; -+#elif defined(__GNUCLIKE_ATTRIBUTE_MODE_DI) -+typedef int __attribute__((__mode__(__DI__))) __int64_t; -+typedef unsigned int __attribute__((__mode__(__DI__))) __uint64_t; -+#else -+/* LONGLONG */ -+typedef long long __int64_t; -+/* LONGLONG */ -+typedef unsigned long long __uint64_t; -+#endif -+ -+/* -+ * Standard type definitions. -+ */ -+typedef unsigned long __clock_t; /* clock()... */ -+typedef unsigned int __cpumask_t; -+typedef __int32_t __critical_t; -+typedef long double __double_t; -+typedef long double __float_t; -+typedef __int32_t __intfptr_t; -+typedef __int64_t __intmax_t; -+typedef __int32_t __intptr_t; -+typedef __int32_t __int_fast8_t; -+typedef __int32_t __int_fast16_t; -+typedef __int32_t __int_fast32_t; -+typedef __int64_t __int_fast64_t; -+typedef __int8_t __int_least8_t; -+typedef __int16_t __int_least16_t; -+typedef __int32_t __int_least32_t; -+typedef __int64_t __int_least64_t; -+typedef __int32_t __ptrdiff_t; /* ptr1 - ptr2 */ -+typedef __int32_t __register_t; -+typedef __int32_t __segsz_t; /* segment size (in pages) */ -+typedef __uint32_t __size_t; /* sizeof() */ -+typedef __int32_t __ssize_t; /* byte count or error */ -+typedef __int32_t __time_t; /* time()... */ -+typedef __uint32_t __uintfptr_t; -+typedef __uint64_t __uintmax_t; -+typedef __uint32_t __uintptr_t; -+typedef __uint32_t __uint_fast8_t; -+typedef __uint32_t __uint_fast16_t; -+typedef __uint32_t __uint_fast32_t; -+typedef __uint64_t __uint_fast64_t; -+typedef __uint8_t __uint_least8_t; -+typedef __uint16_t __uint_least16_t; -+typedef __uint32_t __uint_least32_t; -+typedef __uint64_t __uint_least64_t; -+typedef __uint32_t __u_register_t; -+typedef __uint32_t __vm_offset_t; -+typedef __int64_t __vm_ooffset_t; -+#ifdef PAE -+typedef __uint64_t __vm_paddr_t; -+#else -+typedef __uint32_t __vm_paddr_t; -+#endif -+typedef __uint64_t __vm_pindex_t; -+typedef __uint32_t __vm_size_t; -+ -+/* -+ * Unusual type definitions. -+ */ -+#ifdef __GNUCLIKE_BUILTIN_VARARGS -+typedef __builtin_va_list __va_list; /* internally known to gcc */ -+#else -+typedef char * __va_list; -+#endif /* __GNUCLIKE_BUILTIN_VARARGS */ -+#if defined(__GNUC_VA_LIST_COMPATIBILITY) && !defined(__GNUC_VA_LIST) \ -+ && !defined(__NO_GNUC_VA_LIST) -+#define __GNUC_VA_LIST -+typedef __va_list __gnuc_va_list; /* compatibility w/GNU headers*/ -+#endif -+ -+#endif /* !_MACHINE__TYPES_H_ */ Property changes on: head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-__types.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-9-i386-endian.h =================================================================== --- head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-9-i386-endian.h (revision 472448) +++ head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-9-i386-endian.h (nonexistent) @@ -1,148 +0,0 @@ ---- base/runtime/include/freebsd-9-i386-endian.h.orig 1970-01-01 01:00:00.000000000 +0100 -+++ base/runtime/include/freebsd-9-i386-endian.h 2013-06-19 16:13:50.000000000 +0200 -@@ -0,0 +1,145 @@ -+/*- -+ * Copyright (c) 1987, 1991 Regents of the University of California. -+ * All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 4. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ * -+ * @(#)endian.h 7.8 (Berkeley) 4/3/91 -+ * $FreeBSD: stable/9/sys/i386/include/endian.h 219819 2011-03-21 09:40:01Z jeff $ -+ */ -+ -+#ifndef _MACHINE_ENDIAN_H_ -+#define _MACHINE_ENDIAN_H_ -+ -+#include -+#include -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+/* -+ * Define the order of 32-bit words in 64-bit words. -+ */ -+#define _QUAD_HIGHWORD 1 -+#define _QUAD_LOWWORD 0 -+ -+/* -+ * Definitions for byte order, according to byte significance from low -+ * address to high. -+ */ -+#define _LITTLE_ENDIAN 1234 /* LSB first: i386, vax */ -+#define _BIG_ENDIAN 4321 /* MSB first: 68000, ibm, net */ -+#define _PDP_ENDIAN 3412 /* LSB first in word, MSW first in long */ -+ -+#define _BYTE_ORDER _LITTLE_ENDIAN -+ -+/* -+ * Deprecated variants that don't have enough underscores to be useful in more -+ * strict namespaces. -+ */ -+#if __BSD_VISIBLE -+#define LITTLE_ENDIAN _LITTLE_ENDIAN -+#define BIG_ENDIAN _BIG_ENDIAN -+#define PDP_ENDIAN _PDP_ENDIAN -+#define BYTE_ORDER _BYTE_ORDER -+#endif -+ -+#if defined(__GNUCLIKE_ASM) && defined(__GNUCLIKE_BUILTIN_CONSTANT_P) -+ -+#define __bswap64_const(_x) \ -+ (((_x) >> 56) | \ -+ (((_x) >> 40) & (0xffULL << 8)) | \ -+ (((_x) >> 24) & (0xffULL << 16)) | \ -+ (((_x) >> 8) & (0xffULL << 24)) | \ -+ (((_x) << 8) & (0xffULL << 32)) | \ -+ (((_x) << 24) & (0xffULL << 40)) | \ -+ (((_x) << 40) & (0xffULL << 48)) | \ -+ ((_x) << 56)) -+ -+#define __bswap32_const(_x) \ -+ (((_x) >> 24) | \ -+ (((_x) & (0xff << 16)) >> 8) | \ -+ (((_x) & (0xff << 8)) << 8) | \ -+ ((_x) << 24)) -+ -+#define __bswap16_const(_x) (__uint16_t)((_x) << 8 | (_x) >> 8) -+ -+static __inline __uint64_t -+__bswap64_var(__uint64_t __x) -+{ -+ -+ return __bswap64_const(__x); -+} -+ -+ -+static __inline __uint32_t -+__bswap32_var(__uint32_t _x) -+{ -+ -+ __asm ("bswap %0" : "+r" (_x)); -+ return (_x); -+} -+ -+static __inline __uint16_t -+__bswap16_var(__uint16_t _x) -+{ -+ -+ return (__bswap16_const(_x)); -+} -+ -+#define __bswap64(_x) \ -+ (__builtin_constant_p(_x) ? \ -+ __bswap64_const((__uint64_t)(_x)) : __bswap64_var(_x)) -+ -+#define __bswap32(_x) \ -+ (__builtin_constant_p(_x) ? \ -+ __bswap32_const((__uint32_t)(_x)) : __bswap32_var(_x)) -+ -+#define __bswap16(_x) \ -+ (__builtin_constant_p(_x) ? \ -+ __bswap16_const((__uint16_t)(_x)) : __bswap16_var(_x)) -+ -+#define __htonl(x) __bswap32(x) -+#define __htons(x) __bswap16(x) -+#define __ntohl(x) __bswap32(x) -+#define __ntohs(x) __bswap16(x) -+ -+#else /* !(__GNUCLIKE_ASM && __GNUCLIKE_BUILTIN_CONSTANT_P) */ -+ -+/* -+ * No optimizations are available for this compiler. Fall back to -+ * non-optimized functions by defining the constant usually used to prevent -+ * redefinition. -+ */ -+#define _BYTEORDER_FUNC_DEFINED -+ -+#endif /* __GNUCLIKE_ASM && __GNUCLIKE_BUILTIN_CONSTANT_P */ -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif /* !_MACHINE_ENDIAN_H_ */ Property changes on: head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-9-i386-endian.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-endian.h =================================================================== --- head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-endian.h (revision 472448) +++ head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-endian.h (nonexistent) @@ -1,139 +0,0 @@ ---- base/runtime/include/freebsd-8-i386-endian.h.orig 1970-01-01 01:00:00.000000000 +0100 -+++ base/runtime/include/freebsd-8-i386-endian.h 2013-06-19 16:14:56.000000000 +0200 -@@ -0,0 +1,136 @@ -+/*- -+ * Copyright (c) 1987, 1991 Regents of the University of California. -+ * All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 4. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ * -+ * @(#)endian.h 7.8 (Berkeley) 4/3/91 -+ * $FreeBSD: stable/8/sys/i386/include/endian.h 190854 2009-04-08 19:10:20Z ed $ -+ */ -+ -+#ifndef _MACHINE_ENDIAN_H_ -+#define _MACHINE_ENDIAN_H_ -+ -+#include -+#include -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+/* -+ * Define the order of 32-bit words in 64-bit words. -+ */ -+#define _QUAD_HIGHWORD 1 -+#define _QUAD_LOWWORD 0 -+ -+/* -+ * Definitions for byte order, according to byte significance from low -+ * address to high. -+ */ -+#define _LITTLE_ENDIAN 1234 /* LSB first: i386, vax */ -+#define _BIG_ENDIAN 4321 /* MSB first: 68000, ibm, net */ -+#define _PDP_ENDIAN 3412 /* LSB first in word, MSW first in long */ -+ -+#define _BYTE_ORDER _LITTLE_ENDIAN -+ -+/* -+ * Deprecated variants that don't have enough underscores to be useful in more -+ * strict namespaces. -+ */ -+#if __BSD_VISIBLE -+#define LITTLE_ENDIAN _LITTLE_ENDIAN -+#define BIG_ENDIAN _BIG_ENDIAN -+#define PDP_ENDIAN _PDP_ENDIAN -+#define BYTE_ORDER _BYTE_ORDER -+#endif -+ -+#if defined(__GNUCLIKE_ASM) && defined(__GNUCLIKE_BUILTIN_CONSTANT_P) -+ -+#define __byte_swap_int_var(x) \ -+__extension__ ({ register __uint32_t __X = (x); \ -+ __asm ("bswap %0" : "+r" (__X)); \ -+ __X; }) -+ -+#ifdef __OPTIMIZE__ -+ -+#define __byte_swap_int_const(x) \ -+ ((((x) & 0xff000000) >> 24) | \ -+ (((x) & 0x00ff0000) >> 8) | \ -+ (((x) & 0x0000ff00) << 8) | \ -+ (((x) & 0x000000ff) << 24)) -+#define __byte_swap_int(x) (__builtin_constant_p(x) ? \ -+ __byte_swap_int_const(x) : __byte_swap_int_var(x)) -+ -+#else /* __OPTIMIZE__ */ -+ -+#define __byte_swap_int(x) __byte_swap_int_var(x) -+ -+#endif /* __OPTIMIZE__ */ -+ -+static __inline __uint64_t -+__bswap64(__uint64_t _x) -+{ -+ -+ return ((_x >> 56) | ((_x >> 40) & 0xff00) | ((_x >> 24) & 0xff0000) | -+ ((_x >> 8) & 0xff000000) | ((_x << 8) & ((__uint64_t)0xff << 32)) | -+ ((_x << 24) & ((__uint64_t)0xff << 40)) | -+ ((_x << 40) & ((__uint64_t)0xff << 48)) | ((_x << 56))); -+} -+ -+static __inline __uint32_t -+__bswap32(__uint32_t _x) -+{ -+ -+ return (__byte_swap_int(_x)); -+} -+ -+static __inline __uint16_t -+__bswap16(__uint16_t _x) -+{ -+ return (_x << 8 | _x >> 8); -+} -+ -+#define __htonl(x) __bswap32(x) -+#define __htons(x) __bswap16(x) -+#define __ntohl(x) __bswap32(x) -+#define __ntohs(x) __bswap16(x) -+ -+#else /* !(__GNUCLIKE_ASM && __GNUCLIKE_BUILTIN_CONSTANT_P) */ -+ -+/* -+ * No optimizations are available for this compiler. Fall back to -+ * non-optimized functions by defining the constant usually used to prevent -+ * redefinition. -+ */ -+#define _BYTEORDER_FUNC_DEFINED -+ -+#endif /* __GNUCLIKE_ASM && __GNUCLIKE_BUILTIN_CONSTANT_P */ -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif /* !_MACHINE_ENDIAN_H_ */ Property changes on: head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-endian.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-ieeefp.h =================================================================== --- head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-ieeefp.h (revision 472448) +++ head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-ieeefp.h (nonexistent) @@ -1,262 +0,0 @@ ---- base/runtime/include/freebsd-8-i386-ieeefp.h.orig 1970-01-01 01:00:00.000000000 +0100 -+++ base/runtime/include/freebsd-8-i386-ieeefp.h 2013-06-19 16:14:57.000000000 +0200 -@@ -0,0 +1,259 @@ -+/*- -+ * Copyright (c) 2003 Peter Wemm. -+ * Copyright (c) 1990 Andrew Moore, Talke Studio -+ * All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 3. All advertising materials mentioning features or use of this software -+ * must display the following acknowledgement: -+ * This product includes software developed by the University of -+ * California, Berkeley and its contributors. -+ * 4. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ * -+ * from: @(#) ieeefp.h 1.0 (Berkeley) 9/23/93 -+ * $FreeBSD: stable/8/sys/i386/include/ieeefp.h 175234 2008-01-11 18:59:35Z bde $ -+ */ -+ -+#ifndef _MACHINE_IEEEFP_H_ -+#define _MACHINE_IEEEFP_H_ -+ -+/* -+ * IEEE floating point type, constant and function definitions. -+ * XXX: FP*FLD and FP*OFF are undocumented pollution. -+ */ -+ -+#ifndef _SYS_CDEFS_H_ -+#error this file needs sys/cdefs.h as a prerequisite -+#endif -+ -+/* -+ * Rounding modes. -+ */ -+typedef enum { -+ FP_RN=0, /* round to nearest */ -+ FP_RM, /* round down towards minus infinity */ -+ FP_RP, /* round up towards plus infinity */ -+ FP_RZ /* truncate */ -+} fp_rnd_t; -+ -+/* -+ * Precision (i.e., rounding precision) modes. -+ */ -+typedef enum { -+ FP_PS=0, /* 24 bit (single-precision) */ -+ FP_PRS, /* reserved */ -+ FP_PD, /* 53 bit (double-precision) */ -+ FP_PE /* 64 bit (extended-precision) */ -+} fp_prec_t; -+ -+#define fp_except_t int -+ -+/* -+ * Exception bit masks. -+ */ -+#define FP_X_INV 0x01 /* invalid operation */ -+#define FP_X_DNML 0x02 /* denormal */ -+#define FP_X_DZ 0x04 /* zero divide */ -+#define FP_X_OFL 0x08 /* overflow */ -+#define FP_X_UFL 0x10 /* underflow */ -+#define FP_X_IMP 0x20 /* (im)precision */ -+#define FP_X_STK 0x40 /* stack fault */ -+ -+/* -+ * FPU control word bit-field masks. -+ */ -+#define FP_MSKS_FLD 0x3f /* exception masks field */ -+#define FP_PRC_FLD 0x300 /* precision control field */ -+#define FP_RND_FLD 0xc00 /* rounding control field */ -+ -+/* -+ * FPU status word bit-field masks. -+ */ -+#define FP_STKY_FLD 0x3f /* sticky flags field */ -+ -+/* -+ * FPU control word bit-field offsets (shift counts). -+ */ -+#define FP_MSKS_OFF 0 /* exception masks offset */ -+#define FP_PRC_OFF 8 /* precision control offset */ -+#define FP_RND_OFF 10 /* rounding control offset */ -+ -+/* -+ * FPU status word bit-field offsets (shift counts). -+ */ -+#define FP_STKY_OFF 0 /* sticky flags offset */ -+ -+#ifdef __GNUCLIKE_ASM -+ -+#define __fldcw(addr) __asm __volatile("fldcw %0" : : "m" (*(addr))) -+#define __fldenv(addr) __asm __volatile("fldenv %0" : : "m" (*(addr))) -+#define __fnclex() __asm __volatile("fnclex") -+#define __fnstcw(addr) __asm __volatile("fnstcw %0" : "=m" (*(addr))) -+#define __fnstenv(addr) __asm __volatile("fnstenv %0" : "=m" (*(addr))) -+#define __fnstsw(addr) __asm __volatile("fnstsw %0" : "=m" (*(addr))) -+ -+/* -+ * Load the control word. Be careful not to trap if there is a currently -+ * unmasked exception (ones that will become freshly unmasked are not a -+ * problem). This case must be handled by a save/restore of the -+ * environment or even of the full x87 state. Accessing the environment -+ * is very inefficient, so only do it when necessary. -+ */ -+static __inline void -+__fnldcw(unsigned short _cw, unsigned short _newcw) -+{ -+ struct { -+ unsigned _cw; -+ unsigned _other[6]; -+ } _env; -+ unsigned short _sw; -+ -+ if ((_cw & FP_MSKS_FLD) != FP_MSKS_FLD) { -+ __fnstsw(&_sw); -+ if (((_sw & ~_cw) & FP_STKY_FLD) != 0) { -+ __fnstenv(&_env); -+ _env._cw = _newcw; -+ __fldenv(&_env); -+ return; -+ } -+ } -+ __fldcw(&_newcw); -+} -+ -+static __inline fp_rnd_t -+fpgetround(void) -+{ -+ unsigned short _cw; -+ -+ __fnstcw(&_cw); -+ return ((fp_rnd_t)((_cw & FP_RND_FLD) >> FP_RND_OFF)); -+} -+ -+static __inline fp_rnd_t -+fpsetround(fp_rnd_t _m) -+{ -+ fp_rnd_t _p; -+ unsigned short _cw, _newcw; -+ -+ __fnstcw(&_cw); -+ _p = (fp_rnd_t)((_cw & FP_RND_FLD) >> FP_RND_OFF); -+ _newcw = _cw & ~FP_RND_FLD; -+ _newcw |= (_m << FP_RND_OFF) & FP_RND_FLD; -+ __fnldcw(_cw, _newcw); -+ return (_p); -+} -+ -+static __inline fp_prec_t -+fpgetprec(void) -+{ -+ unsigned short _cw; -+ -+ __fnstcw(&_cw); -+ return ((fp_prec_t)((_cw & FP_PRC_FLD) >> FP_PRC_OFF)); -+} -+ -+static __inline fp_prec_t -+fpsetprec(fp_prec_t _m) -+{ -+ fp_prec_t _p; -+ unsigned short _cw, _newcw; -+ -+ __fnstcw(&_cw); -+ _p = (fp_prec_t)((_cw & FP_PRC_FLD) >> FP_PRC_OFF); -+ _newcw = _cw & ~FP_PRC_FLD; -+ _newcw |= (_m << FP_PRC_OFF) & FP_PRC_FLD; -+ __fnldcw(_cw, _newcw); -+ return (_p); -+} -+ -+/* -+ * Get or set the exception mask. -+ * Note that the x87 mask bits are inverted by the API -- a mask bit of 1 -+ * means disable for x87 and SSE, but for fp*mask() it means enable. -+ */ -+ -+static __inline fp_except_t -+fpgetmask(void) -+{ -+ unsigned short _cw; -+ -+ __fnstcw(&_cw); -+ return ((~_cw & FP_MSKS_FLD) >> FP_MSKS_OFF); -+} -+ -+static __inline fp_except_t -+fpsetmask(fp_except_t _m) -+{ -+ fp_except_t _p; -+ unsigned short _cw, _newcw; -+ -+ __fnstcw(&_cw); -+ _p = (~_cw & FP_MSKS_FLD) >> FP_MSKS_OFF; -+ _newcw = _cw & ~FP_MSKS_FLD; -+ _newcw |= (~_m << FP_MSKS_OFF) & FP_MSKS_FLD; -+ __fnldcw(_cw, _newcw); -+ return (_p); -+} -+ -+static __inline fp_except_t -+fpgetsticky(void) -+{ -+ unsigned _ex; -+ unsigned short _sw; -+ -+ __fnstsw(&_sw); -+ _ex = (_sw & FP_STKY_FLD) >> FP_STKY_OFF; -+ return ((fp_except_t)_ex); -+} -+ -+static __inline fp_except_t -+fpresetsticky(fp_except_t _m) -+{ -+ struct { -+ unsigned _cw; -+ unsigned _sw; -+ unsigned _other[5]; -+ } _env; -+ fp_except_t _p; -+ -+ _m &= FP_STKY_FLD >> FP_STKY_OFF; -+ _p = fpgetsticky(); -+ if ((_p & ~_m) == _p) -+ return (_p); -+ if ((_p & ~_m) == 0) { -+ __fnclex(); -+ return (_p); -+ } -+ __fnstenv(&_env); -+ _env._sw &= ~_m; -+ __fldenv(&_env); -+ return (_p); -+} -+ -+#endif /* __GNUCLIKE_ASM */ -+ -+/* Suppress prototypes in the MI header. */ -+#define _IEEEFP_INLINED_ 1 -+ -+#endif /* !_MACHINE_IEEEFP_H_ */ Property changes on: head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-ieeefp.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-signal.h =================================================================== --- head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-signal.h (revision 472448) +++ head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-signal.h (nonexistent) @@ -1,137 +0,0 @@ ---- base/runtime/include/freebsd-8-i386-signal.h.orig 1970-01-01 01:00:00.000000000 +0100 -+++ base/runtime/include/freebsd-8-i386-signal.h 2013-06-19 16:14:56.000000000 +0200 -@@ -0,0 +1,134 @@ -+/*- -+ * Copyright (c) 1986, 1989, 1991, 1993 -+ * The Regents of the University of California. All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 4. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ * -+ * @(#)signal.h 8.1 (Berkeley) 6/11/93 -+ * $FreeBSD: stable/8/sys/i386/include/signal.h 190623 2009-04-01 13:44:28Z kib $ -+ */ -+ -+#ifndef _MACHINE_SIGNAL_H_ -+#define _MACHINE_SIGNAL_H_ -+ -+#include -+#include -+ -+/* -+ * Machine-dependent signal definitions -+ */ -+ -+typedef int sig_atomic_t; -+ -+#if __BSD_VISIBLE -+#include /* codes for SIGILL, SIGFPE */ -+ -+/* -+ * Only the kernel should need these old type definitions. -+ */ -+#if defined(_KERNEL) && defined(COMPAT_43) -+/* -+ * Information pushed on stack when a signal is delivered. -+ * This is used by the kernel to restore state following -+ * execution of the signal handler. It is also made available -+ * to the handler to allow it to restore state properly if -+ * a non-standard exit is performed. -+ */ -+struct osigcontext { -+ int sc_onstack; /* sigstack state to restore */ -+ osigset_t sc_mask; /* signal mask to restore */ -+ int sc_esp; /* machine state follows: */ -+ int sc_ebp; -+ int sc_isp; -+ int sc_eip; -+ int sc_efl; -+ int sc_es; -+ int sc_ds; -+ int sc_cs; -+ int sc_ss; -+ int sc_edi; -+ int sc_esi; -+ int sc_ebx; -+ int sc_edx; -+ int sc_ecx; -+ int sc_eax; -+ int sc_gs; -+ int sc_fs; -+ int sc_trapno; -+ int sc_err; -+}; -+#endif -+ -+/* -+ * The sequence of the fields/registers in struct sigcontext should match -+ * those in mcontext_t. -+ */ -+struct sigcontext { -+ struct __sigset sc_mask; /* signal mask to restore */ -+ int sc_onstack; /* sigstack state to restore */ -+ int sc_gs; /* machine state (struct trapframe) */ -+ int sc_fs; -+ int sc_es; -+ int sc_ds; -+ int sc_edi; -+ int sc_esi; -+ int sc_ebp; -+ int sc_isp; -+ int sc_ebx; -+ int sc_edx; -+ int sc_ecx; -+ int sc_eax; -+ int sc_trapno; -+ int sc_err; -+ int sc_eip; -+ int sc_cs; -+ int sc_efl; -+ int sc_esp; -+ int sc_ss; -+ int sc_len; /* sizeof(mcontext_t) */ -+ /* -+ * XXX - See and for -+ * the following fields. -+ */ -+ int sc_fpformat; -+ int sc_ownedfp; -+ int sc_spare1[1]; -+ int sc_fpstate[128] __aligned(16); -+ -+ int sc_fsbase; -+ int sc_gsbase; -+ -+ int sc_spare2[6]; -+}; -+ -+#define sc_sp sc_esp -+#define sc_fp sc_ebp -+#define sc_pc sc_eip -+#define sc_ps sc_efl -+#define sc_eflags sc_efl -+ -+#endif /* __BSD_VISIBLE */ -+ -+#endif /* !_MACHINE_SIGNAL_H_ */ Property changes on: head/lang/smlnj/files/extra-patch-base_runtime_include_freebsd-8-i386-signal.h ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/lang/smlnj/files/extra-patch-base_runtime_c-libs_smlnj-math_ctlrndmode.c =================================================================== --- head/lang/smlnj/files/extra-patch-base_runtime_c-libs_smlnj-math_ctlrndmode.c (revision 472448) +++ head/lang/smlnj/files/extra-patch-base_runtime_c-libs_smlnj-math_ctlrndmode.c (nonexistent) @@ -1,22 +0,0 @@ ---- base/runtime/c-libs/smlnj-math/ctlrndmode.c.orig 2000-06-01 20:34:03.000000000 +0200 -+++ base/runtime/c-libs/smlnj-math/ctlrndmode.c 2013-06-18 15:08:01.715990633 +0200 -@@ -3,6 +3,19 @@ - * COPYRIGHT (c) 1996 AT&T Research. - */ - -+ #if defined(OPSYS_FREEBSD) -+ # if defined(INCLUDE_FREEBSD_I386__TYPES) -+ # include -+ # include INCLUDE_FREEBSD_I386__TYPES -+ # endif -+ # if defined(INCLUDE_FREEBSD_I386_ENDIAN) -+ # include INCLUDE_FREEBSD_I386_ENDIAN -+ # endif -+ # if defined(INCLUDE_FREEBSD_I386_IEEEFP) -+ # include INCLUDE_FREEBSD_I386_IEEEFP -+ # endif -+ #endif -+ - #include "ml-base.h" - #include "fp-dep.h" - #include "ml-objects.h" Property changes on: head/lang/smlnj/files/extra-patch-base_runtime_c-libs_smlnj-math_ctlrndmode.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property