summaryrefslogtreecommitdiff
path: root/mach/mach_shortcuts.c
blob: ef1792b0030130e11383cdc7cbb85ae2950c1ad9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <mach/mach_types.h>
#include <mach/mach_port.h>

#define	SHORTCUT(name, number, args, typed_args)			      \
kern_return_t __##name typed_args					      \
{									      \
  kern_return_t ret = __syscall_##name args;				      \
  if (ret == MACH_SEND_INTERRUPTED)					      \
    ret = __mig_##name args;						      \
  return ret;								      \
}

#include "mach_shortcuts.h"