aboutsummaryrefslogtreecommitdiff
path: root/mach/shortcut.awk
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-07-26 07:10:58 +0000
committerRoland McGrath <roland@gnu.org>1995-07-26 07:10:58 +0000
commit958f803fc021993cc2ee1d4157d0092b830368aa (patch)
tree0e5939ccad4bb5a551b81f344843613455c12bb8 /mach/shortcut.awk
parent9f2233e81a0eb06e7278584654cfbdd313d8c228 (diff)
downloadglibc-958f803fc021993cc2ee1d4157d0092b830368aa.tar
glibc-958f803fc021993cc2ee1d4157d0092b830368aa.tar.gz
glibc-958f803fc021993cc2ee1d4157d0092b830368aa.tar.bz2
glibc-958f803fc021993cc2ee1d4157d0092b830368aa.zip
Wed Jul 26 02:00:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>cvs/bind-493b24
* 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).
Diffstat (limited to 'mach/shortcut.awk')
-rw-r--r--mach/shortcut.awk5
1 files changed, 4 insertions, 1 deletions
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;
}