From f8993d06db83e3f4bc8648caad919b9c970d3a34 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 07:05:16 +0000 Subject: [PATCH] 2003/09/07 08:02:30 darcs-hash:20040130070516-2ba56-9982582cb2d2c59bbc58a5af93e7d1ae79cc7383.gz --- upstream/darwin-linker/patches/cctools.patch | 686 ++++++++++++++++++++++++++ 1 file changed, 686 insertions(+) diff --git a/upstream/darwin-linker/patches/cctools.patch b/upstream/darwin-linker/patches/cctools.patch index 7c5e114..3c3fb20 100644 --- a/upstream/darwin-linker/patches/cctools.patch +++ b/upstream/darwin-linker/patches/cctools.patch @@ -1409,3 +1409,689 @@ diff -rub ./misc/Makefile ./misc/Makefile + return msg_result; + } +} +diff -bur ./Makefile /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/Makefile +--- as/Makefile Fri Sep 6 18:27:10 2002 ++++ as/Makefile Sat Sep 6 23:52:22 2003 +@@ -2,7 +2,7 @@ + export USE_APPLE_PB_SUPPORT = all + OFLAG = -O + ifeq "macos" "$(RC_OS)" +- X_CFLAGS := $(shell if [ "$(RC_RELEASE)" != "Beaker" ] && \ ++ X_CFLAGS := $(shell if [ `uname` != "Linux" ] && [ "$(RC_RELEASE)" != "Beaker" ] && \ + [ "$(RC_RELEASE)" != "Bunsen" ] && \ + [ "$(RC_RELEASE)" != "Gonzo" ] && \ + [ "$(RC_RELEASE)" != "Kodiak" ]; then \ +@@ -11,10 +11,14 @@ + endif + + ifneq "mwccppc" "$(notdir $(CC))" ++ ifeq "Linux" "$(shell uname)" ++ GCC_FLAGS = -Wall $(X_CFLAGS) -D__LITTLE_ENDIAN__ -U__BIG_ENDIAN__ -D__ppc__ -I/usr/include -I../../../macosx-include ++ else + GCC_FLAGS = -Wall -Wno-precomp $(X_CFLAGS) ++ endif + endif + +-USE_DEPENDENCY_FILE := $(shell if [ "$(notdir $(CC))" != "mwccppc" ]; then \ ++USE_DEPENDENCY_FILE := $(shell if [ `uname` != "Linux" ] && [ "$(notdir $(CC))" != "mwccppc" ]; then \ + echo YES ; else echo NO ; \ + fi; ) + +diff -bur ./app.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/app.h +--- as/app.h Tue Apr 30 00:37:17 2002 ++++ as/app.h Sat Sep 6 23:49:28 2003 +@@ -1,4 +1,4 @@ +-#import ++#include + + extern FILE *scrub_file; + extern char *scrub_string; +diff -bur ./as.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/as.h +--- as/as.h Tue Apr 30 00:37:17 2002 ++++ as/as.h Sat Sep 6 23:49:28 2003 +@@ -43,10 +43,10 @@ + */ + #undef SUSPECT + +-/* These #imports are for type definitions etc. */ +-#import +-#import +-#import ++/* These #includes are for type definitions etc. */ ++#include ++#include ++#include + + /* These defines are potentially useful */ + #undef FALSE +Only in /home/megacz/xwt/upstream/darwin-linker/src/cctools/as: asparc_dir +diff -bur ./atof-ieee.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/atof-ieee.h +--- as/atof-ieee.h Tue Apr 30 00:37:17 2002 ++++ as/atof-ieee.h Sat Sep 6 23:49:28 2003 +@@ -1,4 +1,4 @@ +-#import "flonum.h" ++#include "flonum.h" + + extern char *atof_ieee( + char *str, +diff -bur ./bignum.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/bignum.h +--- as/bignum.h Tue Apr 30 00:37:17 2002 ++++ as/bignum.h Sat Sep 6 23:53:27 2003 +@@ -28,6 +28,8 @@ + * Bignums are >= 0. * + * * + \***********************************************************************/ ++#ifndef __BIGNUM_H__ ++#define __BIGNUM_H__ + + #define LITTLENUM_NUMBER_OF_BITS (16) + #define LITTLENUM_RADIX (1 << LITTLENUM_NUMBER_OF_BITS) +@@ -44,3 +46,4 @@ + /* JF truncated this to get around a problem with GCC */ + #define LOG_TO_BASE_2_OF_10 (3.3219280948873623478703194294893901758651) + /* WARNING: I haven't checked that the trailing digits are correct! */ ++#endif +diff -bur ./expr.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/expr.h +--- as/expr.h Fri Sep 6 18:27:10 2002 ++++ as/expr.h Sat Sep 6 23:49:28 2003 +@@ -19,9 +19,9 @@ + along with GAS; see the file COPYING. If not, write to + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +-#import "struc-symbol.h" +-#import "bignum.h" +-#import "flonum.h" ++#include "struc-symbol.h" ++#include "bignum.h" ++#include "flonum.h" + + /* + * This table describes the use of segments as EXPRESSION types. +diff -bur ./flonum.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/flonum.h +--- as/flonum.h Fri Sep 6 18:27:10 2002 ++++ as/flonum.h Sat Sep 6 23:49:28 2003 +@@ -32,7 +32,7 @@ + * * + \***********************************************************************/ + +-#import "bignum.h" ++#include "bignum.h" + + /***********************************************************************\ + * * +diff -bur ./frags.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/frags.h +--- as/frags.h Tue Jan 14 23:35:18 2003 ++++ as/frags.h Sat Sep 6 23:49:28 2003 +@@ -19,8 +19,8 @@ + along with GAS; see the file COPYING. If not, write to + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +-#import "relax.h" +-#import "struc-symbol.h" ++#include "relax.h" ++#include "struc-symbol.h" + + /* + * A code fragment (frag) is some known number of chars, followed by some +diff -bur ./md.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/md.h +--- as/md.h Tue Apr 30 00:37:17 2002 ++++ as/md.h Sat Sep 6 23:49:29 2003 +@@ -19,13 +19,13 @@ + in a file named COPYING. Among other things, the copyright + notice and this notice must be preserved on all copies. */ + +-#import +-#import "stuff/bytesex.h" +-#import "frags.h" +-#import "relax.h" +-#import "struc-symbol.h" +-#import "fixes.h" +-#import "read.h" ++#include ++#include "stuff/bytesex.h" ++#include "frags.h" ++#include "relax.h" ++#include "struc-symbol.h" ++#include "fixes.h" ++#include "read.h" + + /* These are the default cputype and cpusubtype for this target MACHINE */ + extern const cpu_type_t md_cputype; +diff -bur ./read.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/read.h +--- as/read.h Fri Sep 6 18:27:13 2002 ++++ as/read.h Sat Sep 6 23:49:29 2003 +@@ -19,7 +19,7 @@ + along with GAS; see the file COPYING. If not, write to + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +-#import "expr.h" ++#include "expr.h" + + #define PERMIT_WHITESPACE /* Define to make whitespace be allowed in */ + /* many syntactically unnecessary places. */ +diff -bur ./relax.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/relax.h +--- as/relax.h Tue Apr 30 00:37:17 2002 ++++ as/relax.h Sat Sep 6 23:53:35 2003 +@@ -1,3 +1,5 @@ ++#ifndef __RELAX_H__ ++#define __RELAX_H__ + /* The type used for a target address */ + typedef unsigned long relax_addressT; + +@@ -42,3 +44,4 @@ + relax_substateT rlx_more; /* Next longer relax-state. */ + /* 0 means there is no 'next' relax-state. */ + } relax_typeS; ++#endif +diff -bur ./sections.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/sections.h +--- as/sections.h Tue Apr 30 00:37:17 2002 ++++ as/sections.h Sat Sep 6 23:49:29 2003 +@@ -17,8 +17,8 @@ + along with GAS; see the file COPYING. If not, write to + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +-#import +-#import "struc-symbol.h" ++#include ++#include "struc-symbol.h" + + /* + * For every section the user mentions in the assembley program, we make one +diff -bur ./struc-symbol.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/struc-symbol.h +--- as/struc-symbol.h Fri Sep 6 18:27:14 2002 ++++ as/struc-symbol.h Sat Sep 6 23:49:29 2003 +@@ -20,7 +20,7 @@ + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + + #ifdef NeXT_MOD +-#import ++#include + #else /* !defined(NeXT_MOD) */ + #ifndef VMS + #include "a.out.h" /* Needed to define struct nlist. Sigh. */ +diff -bur ./symbols.h /home/megacz/xwt/upstream/darwin-linker/src/cctools/as/symbols.h +--- as/symbols.h Tue Apr 30 00:37:17 2002 ++++ as/symbols.h Sat Sep 6 23:49:29 2003 +@@ -17,8 +17,8 @@ + along with GAS; see the file COPYING. If not, write to + the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ + +-#import "struc-symbol.h" +-#import "hash.h" ++#include "struc-symbol.h" ++#include "hash.h" + + extern struct hash_control *sy_hash; + extern struct obstack notes; +--- as/make.h Sun Sep 7 00:01:26 2003 ++++ as/make.h Sat Sep 6 23:55:11 2003 +@@ -0,0 +1,161 @@ ++#ifndef _make_user_ ++#define _make_user_ ++ ++/* Module make */ ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++#ifdef AUTOTEST ++#ifndef FUNCTION_PTR_T ++#define FUNCTION_PTR_T ++typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t); ++typedef struct { ++ char *name; ++ function_ptr_t function; ++} function_table_entry; ++typedef function_table_entry *function_table_t; ++#endif /* FUNCTION_PTR_T */ ++#endif /* AUTOTEST */ ++ ++#ifndef make_MSG_COUNT ++#define make_MSG_COUNT 2 ++#endif /* make_MSG_COUNT */ ++ ++#include ++#include ++#include "make_defs.h" ++ ++#ifdef __BeforeMigUserHeader ++__BeforeMigUserHeader ++#endif /* __BeforeMigUserHeader */ ++ ++ ++/* SimpleRoutine alert_old */ ++#ifdef mig_external ++mig_external ++#else ++extern ++#endif /* mig_external */ ++kern_return_t make_alert_old ++( ++ mach_port_t makePort, ++ int eventType, ++ make_string_t functionName, ++ mach_msg_type_number_t functionNameCnt, ++ make_string_t fileName, ++ mach_msg_type_number_t fileNameCnt, ++ int line, ++ make_string_t message, ++ mach_msg_type_number_t messageCnt ++); ++ ++/* SimpleRoutine alert */ ++#ifdef mig_external ++mig_external ++#else ++extern ++#endif /* mig_external */ ++kern_return_t make_alert ++( ++ mach_port_t makePort, ++ int eventType, ++ make_string_t functionName, ++ mach_msg_type_number_t functionNameCnt, ++ make_string_t fileName, ++ mach_msg_type_number_t fileNameCnt, ++ make_string_t directory, ++ mach_msg_type_number_t directoryCnt, ++ int line, ++ make_string_t message, ++ mach_msg_type_number_t messageCnt ++); ++/* typedefs for all requests */ ++ ++#ifndef __Request__make_subsystem__defined ++#define __Request__make_subsystem__defined ++ typedef struct { ++ mach_msg_header_t Head; ++ NDR_record_t NDR; ++ int eventType; ++ mach_msg_type_number_t functionNameCnt; ++ char functionName[1024]; ++ mach_msg_type_number_t fileNameCnt; ++ char fileName[1024]; ++ int line; ++ mach_msg_type_number_t messageCnt; ++ char message[1024]; ++ } __Request__alert_old_t; ++ ++ typedef struct { ++ mach_msg_header_t Head; ++ NDR_record_t NDR; ++ int eventType; ++ mach_msg_type_number_t functionNameCnt; ++ char functionName[1024]; ++ mach_msg_type_number_t fileNameCnt; ++ char fileName[1024]; ++ mach_msg_type_number_t directoryCnt; ++ char directory[1024]; ++ int line; ++ mach_msg_type_number_t messageCnt; ++ char message[1024]; ++ } __Request__alert_t; ++ ++#endif /* !__Request__make_subsystem__defined */ ++ ++/* union of all requests */ ++ ++#ifndef __RequestUnion__make_make_subsystem__defined ++#define __RequestUnion__make_make_subsystem__defined ++union __RequestUnion__make_make_subsystem { ++ __Request__alert_old_t Request_make_alert_old; ++ __Request__alert_t Request_make_alert; ++}; ++#endif /* !__RequestUnion__make_make_subsystem__defined */ ++/* typedefs for all replies */ ++ ++#ifndef __Reply__make_subsystem__defined ++#define __Reply__make_subsystem__defined ++ typedef struct { ++ mach_msg_header_t Head; ++ NDR_record_t NDR; ++ kern_return_t RetCode; ++ } __Reply__alert_old_t; ++ ++ typedef struct { ++ mach_msg_header_t Head; ++ NDR_record_t NDR; ++ kern_return_t RetCode; ++ } __Reply__alert_t; ++ ++#endif /* !__Reply__make_subsystem__defined */ ++ ++/* union of all replies */ ++ ++#ifndef __ReplyUnion__make_make_subsystem__defined ++#define __ReplyUnion__make_make_subsystem__defined ++union __ReplyUnion__make_make_subsystem { ++ __Reply__alert_old_t Reply_make_alert_old; ++ __Reply__alert_t Reply_make_alert; ++}; ++#endif /* !__RequestUnion__make_make_subsystem__defined */ ++ ++#ifndef subsystem_to_name_map_make ++#define subsystem_to_name_map_make \ ++ { "alert_old", 100 },\ ++ { "alert", 101 } ++#endif ++ ++#ifdef __AfterMigUserHeader ++__AfterMigUserHeader ++#endif /* __AfterMigUserHeader */ ++ ++#endif /* _make_user_ */ +--- as/makeUser.c Sun Sep 7 00:01:26 2003 ++++ as/makeUser.c Sat Sep 6 23:55:11 2003 +@@ -0,0 +1,305 @@ ++/* ++ * IDENTIFICATION: ++ * stub generated Sat Sep 6 23:50:34 2003 ++ * with a MiG generated Tue Nov 5 01:17:50 PST 2002 by root@brixen ++ * OPTIONS: ++ */ ++#include "make.h" ++ ++ ++#ifndef mig_internal ++#define mig_internal static ++#endif /* mig_internal */ ++ ++#ifndef mig_external ++#define mig_external ++#endif /* mig_external */ ++ ++#ifndef TypeCheck ++#define TypeCheck 0 ++#endif /* TypeCheck */ ++ ++#ifndef LimitCheck ++#define LimitCheck 0 ++#endif /* LimitCheck */ ++ ++#ifndef min ++#define min(a,b) ( ((a) < (b))? (a): (b) ) ++#endif /* min */ ++ ++#ifndef UseStaticTemplates ++#define UseStaticTemplates 0 ++#endif /* UseStaticTemplates */ ++ ++#define _WALIGN_(x) (((x) + 3) & ~3) ++#define _WALIGNSZ_(x) _WALIGN_(sizeof(x)) ++#ifndef __MachMsgErrorWithTimeout ++#define __MachMsgErrorWithTimeout(_R_) { \ ++ switch (_R_) { \ ++ case MACH_SEND_INVALID_REPLY: \ ++ case MACH_RCV_INVALID_NAME: \ ++ case MACH_RCV_PORT_DIED: \ ++ case MACH_RCV_PORT_CHANGED: \ ++ case MACH_RCV_TIMED_OUT: \ ++ mig_dealloc_reply_port(InP->Head.msgh_reply_port); \ ++ break; \ ++ default: \ ++ mig_put_reply_port(InP->Head.msgh_reply_port); \ ++ } \ ++} ++#endif /* __MachMsgErrorWithTimeout */ ++ ++#ifndef __MachMsgErrorWithoutTimeout ++#define __MachMsgErrorWithoutTimeout(_R_) { \ ++ switch (_R_) { \ ++ case MACH_SEND_INVALID_REPLY: \ ++ case MACH_RCV_INVALID_NAME: \ ++ case MACH_RCV_PORT_DIED: \ ++ case MACH_RCV_PORT_CHANGED: \ ++ mig_dealloc_reply_port(InP->Head.msgh_reply_port); \ ++ break; \ ++ default: \ ++ mig_put_reply_port(InP->Head.msgh_reply_port); \ ++ } \ ++} ++#endif /* __MachMsgErrorWithoutTimeout */ ++ ++#ifndef __DeclareSendRpc ++#define __DeclareSendRpc(_NUM_, _NAME_) ++#endif /* __DeclareSendRpc */ ++ ++#ifndef __BeforeSendRpc ++#define __BeforeSendRpc(_NUM_, _NAME_) ++#endif /* __BeforeSendRpc */ ++ ++#ifndef __AfterSendRpc ++#define __AfterSendRpc(_NUM_, _NAME_) ++#endif /* __AfterSendRpc */ ++ ++#ifndef __DeclareSendSimple ++#define __DeclareSendSimple(_NUM_, _NAME_) ++#endif /* __DeclareSendSimple */ ++ ++#ifndef __BeforeSendSimple ++#define __BeforeSendSimple(_NUM_, _NAME_) ++#endif /* __BeforeSendSimple */ ++ ++#ifndef __AfterSendSimple ++#define __AfterSendSimple(_NUM_, _NAME_) ++#endif /* __AfterSendSimple */ ++ ++#define msgh_request_port msgh_remote_port ++#define msgh_reply_port msgh_local_port ++ ++ ++ ++/* SimpleRoutine alert_old */ ++mig_external kern_return_t make_alert_old ++( ++ mach_port_t makePort, ++ int eventType, ++ make_string_t functionName, ++ mach_msg_type_number_t functionNameCnt, ++ make_string_t fileName, ++ mach_msg_type_number_t fileNameCnt, ++ int line, ++ make_string_t message, ++ mach_msg_type_number_t messageCnt ++) ++{ ++ { ++ typedef struct { ++ mach_msg_header_t Head; ++ NDR_record_t NDR; ++ int eventType; ++ mach_msg_type_number_t functionNameCnt; ++ char functionName[1024]; ++ mach_msg_type_number_t fileNameCnt; ++ char fileName[1024]; ++ int line; ++ mach_msg_type_number_t messageCnt; ++ char message[1024]; ++ } Request; ++ ++ /* ++ * typedef struct { ++ * mach_msg_header_t Head; ++ * NDR_record_t NDR; ++ * kern_return_t RetCode; ++ * } mig_reply_error_t; ++ */ ++ ++ union { ++ Request In; ++ } Mess; ++ ++ register Request *InP = &Mess.In; ++ ++ mach_msg_return_t msg_result; ++ unsigned int msgh_size; ++ unsigned int msgh_size_delta; ++ __DeclareSendSimple(100, "alert_old") ++ ++ InP->NDR = NDR_record; ++ ++ InP->eventType = eventType; ++ ++ if (functionNameCnt > 1024) { ++ { return MIG_ARRAY_TOO_LARGE; } ++ } ++ (void)memcpy((char *) InP->functionName, (const char *) functionName, functionNameCnt); ++ ++ InP->functionNameCnt = functionNameCnt; ++ ++ msgh_size_delta = _WALIGN_(functionNameCnt); ++ msgh_size = (sizeof(Request) - 3072) + msgh_size_delta; ++ InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024); ++ ++ if (fileNameCnt > 1024) { ++ { return MIG_ARRAY_TOO_LARGE; } ++ } ++ (void)memcpy((char *) InP->fileName, (const char *) fileName, fileNameCnt); ++ ++ InP->fileNameCnt = fileNameCnt; ++ ++ msgh_size_delta = _WALIGN_(fileNameCnt); ++ msgh_size += msgh_size_delta; ++ InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024); ++ ++ InP->line = line; ++ ++ if (messageCnt > 1024) { ++ { return MIG_ARRAY_TOO_LARGE; } ++ } ++ (void)memcpy((char *) InP->message, (const char *) message, messageCnt); ++ ++ InP->messageCnt = messageCnt; ++ ++ msgh_size += _WALIGN_(messageCnt); ++ InP = &Mess.In; ++ InP->Head.msgh_bits = ++ MACH_MSGH_BITS(19, 0); ++ /* msgh_size passed as argument */ ++ InP->Head.msgh_request_port = makePort; ++ InP->Head.msgh_reply_port = MACH_PORT_NULL; ++ InP->Head.msgh_id = 100; ++ ++ __BeforeSendSimple(100, "alert_old") ++ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_MSG_OPTION_NONE, msgh_size, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); ++ __AfterSendSimple(100, "alert_old") ++ return msg_result; ++ } ++} ++ ++/* SimpleRoutine alert */ ++mig_external kern_return_t make_alert ++( ++ mach_port_t makePort, ++ int eventType, ++ make_string_t functionName, ++ mach_msg_type_number_t functionNameCnt, ++ make_string_t fileName, ++ mach_msg_type_number_t fileNameCnt, ++ make_string_t directory, ++ mach_msg_type_number_t directoryCnt, ++ int line, ++ make_string_t message, ++ mach_msg_type_number_t messageCnt ++) ++{ ++ { ++ typedef struct { ++ mach_msg_header_t Head; ++ NDR_record_t NDR; ++ int eventType; ++ mach_msg_type_number_t functionNameCnt; ++ char functionName[1024]; ++ mach_msg_type_number_t fileNameCnt; ++ char fileName[1024]; ++ mach_msg_type_number_t directoryCnt; ++ char directory[1024]; ++ int line; ++ mach_msg_type_number_t messageCnt; ++ char message[1024]; ++ } Request; ++ ++ /* ++ * typedef struct { ++ * mach_msg_header_t Head; ++ * NDR_record_t NDR; ++ * kern_return_t RetCode; ++ * } mig_reply_error_t; ++ */ ++ ++ union { ++ Request In; ++ } Mess; ++ ++ register Request *InP = &Mess.In; ++ ++ mach_msg_return_t msg_result; ++ unsigned int msgh_size; ++ unsigned int msgh_size_delta; ++ __DeclareSendSimple(101, "alert") ++ ++ InP->NDR = NDR_record; ++ ++ InP->eventType = eventType; ++ ++ if (functionNameCnt > 1024) { ++ { return MIG_ARRAY_TOO_LARGE; } ++ } ++ (void)memcpy((char *) InP->functionName, (const char *) functionName, functionNameCnt); ++ ++ InP->functionNameCnt = functionNameCnt; ++ ++ msgh_size_delta = _WALIGN_(functionNameCnt); ++ msgh_size = (sizeof(Request) - 4096) + msgh_size_delta; ++ InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024); ++ ++ if (fileNameCnt > 1024) { ++ { return MIG_ARRAY_TOO_LARGE; } ++ } ++ (void)memcpy((char *) InP->fileName, (const char *) fileName, fileNameCnt); ++ ++ InP->fileNameCnt = fileNameCnt; ++ ++ msgh_size_delta = _WALIGN_(fileNameCnt); ++ msgh_size += msgh_size_delta; ++ InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024); ++ ++ if (directoryCnt > 1024) { ++ { return MIG_ARRAY_TOO_LARGE; } ++ } ++ (void)memcpy((char *) InP->directory, (const char *) directory, directoryCnt); ++ ++ InP->directoryCnt = directoryCnt; ++ ++ msgh_size_delta = _WALIGN_(directoryCnt); ++ msgh_size += msgh_size_delta; ++ InP = (Request *) ((pointer_t) InP + msgh_size_delta - 1024); ++ ++ InP->line = line; ++ ++ if (messageCnt > 1024) { ++ { return MIG_ARRAY_TOO_LARGE; } ++ } ++ (void)memcpy((char *) InP->message, (const char *) message, messageCnt); ++ ++ InP->messageCnt = messageCnt; ++ ++ msgh_size += _WALIGN_(messageCnt); ++ InP = &Mess.In; ++ InP->Head.msgh_bits = ++ MACH_MSGH_BITS(19, 0); ++ /* msgh_size passed as argument */ ++ InP->Head.msgh_request_port = makePort; ++ InP->Head.msgh_reply_port = MACH_PORT_NULL; ++ InP->Head.msgh_id = 101; ++ ++ __BeforeSendSimple(101, "alert") ++ msg_result = mach_msg(&InP->Head, MACH_SEND_MSG|MACH_MSG_OPTION_NONE, msgh_size, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); ++ __AfterSendSimple(101, "alert") ++ return msg_result; ++ } ++} -- 1.7.10.4