From 958f803fc021993cc2ee1d4157d0092b830368aa Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 26 Jul 1995 07:10:58 +0000 Subject: Wed Jul 26 02:00:29 1995 Roland McGrath * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim if possible. * mach/shortcut.awk: Emit decls for RPC. * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol, weak_alias, strong_alias): Define using GCC __attribute__ syntax. * Makerules ($(installed-libcs)): Depend on `lib' (only). --- mach/shortcut.awk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mach') diff --git a/mach/shortcut.awk b/mach/shortcut.awk index d6090d7bf7..987cebe325 100644 --- a/mach/shortcut.awk +++ b/mach/shortcut.awk @@ -35,11 +35,14 @@ echo == 1 { print $0; } print "{"; print " kern_return_t err;"; print " extern kern_return_t " syscall " (" proto ");"; + print " extern kern_return_t " rpc " (" proto ");"; print " err = " syscall " (" arglist ");"; print " if (err == MACH_SEND_INTERRUPTED)"; print " err = " rpc " (" arglist ");"; print " return err;" print "}"; - print "weak_alias (" call ", " alias ")" + print "weak_alias (" call ", " alias ")"; + # Declare RPC so the weak_alias that follows will work. + print "extern __typeof (" call ") " rpc ";"; echo = 1; } -- cgit 1.4.1