1 /* Parameters for the architecture specific system call. amd64 version.
2 Copyright (C) 2002 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
25 /* Function that can be used as first argument to 'sysarch'. */
29 #define I386_GET_LDT I386_GET_LDT
31 #define I386_SET_LDT I386_SET_LDT
33 #define I386_GET_IOPERM I386_GET_IOPERM
35 #define I386_SET_IOPERM I386_SET_IOPERM
37 #define I386_GET_FSBASE I386_GET_FSBASE
39 #define I386_SET_FSBASE I386_SET_FSBASE
41 #define I386_GET_GSBASE I386_GET_GSBASE
43 #define I386_SET_GSBASE I386_SET_GSBASE
44 AMD64_GET_FSBASE
= 128,
45 #define AMD64_GET_FSBASE AMD64_GET_FSBASE
46 AMD64_SET_FSBASE
= 129,
47 #define AMD64_SET_FSBASE AMD64_SET_FSBASE
48 AMD64_GET_GSBASE
= 130,
49 #define AMD64_GET_GSBASE AMD64_GET_GSBASE
50 AMD64_SET_GSBASE
= 131
51 #define AMD64_SET_GSBASE AMD64_SET_GSBASE
54 /* Argument struct for I386_GET_IOPERM and I386_SET_IOPERM. */
55 struct i386_ioperm_args
64 extern int sysarch (int __cmd
, void *__arg
);
67 extern int __sysarch (int __cmd
, void *__arg
);
72 #endif /* _SYSARCH_H */