2.3.3-74
[glibc.git] / sysdeps / unix / bsd / vax / sysdep.h
blob563ad26c182ea5be4441b1aed93c9098fc1f7884
1 /* Copyright (C) 1991, 1992, 1995, 1997 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
19 #include <sysdeps/unix/sysdep.h>
21 #ifdef __ASSEMBLER__
23 #ifdef __STDC__
24 #define ENTRY(name) \
25 .globl _##name; \
26 .even; \
27 _##name##:
28 #else
29 #define ENTRY(name) \
30 .globl _/**/name; \
31 .even; \
32 _/**/name/**/:
33 #endif
35 #ifdef __STDC__
36 #define PSEUDO(name, syscall_name, args) \
37 .even; \
38 .globl syscall_error \
39 error: jmp syscall_error; \
40 ENTRY (name) \
41 chmk $SYS_##syscall_name \
42 bcs error
43 #else
44 #define PSEUDO(name, syscall_name, args) \
45 .even; \
46 .globl syscall_error \
47 error: jmp syscall_error; \
48 ENTRY (name) \
49 chmk $SYS_/**/syscall_name \
50 bcs error
51 #endif
53 #define MOVE(x,y) movl x , y
55 #endif /* __ASSEMBLER__ */