Back to index

glibc  2.9
vismod1.c
Go to the documentation of this file.
00001 /* Copyright (C) 2000 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 #include "vismod.h"
00020 
00021 int
00022 protlocal (void)
00023 {
00024   return 0x4;
00025 }
00026 asm (".protected protlocal");
00027 
00028 
00029 int
00030 calllocal1 (void)
00031 {
00032   return protlocal () + 0x10;
00033 }
00034 
00035 int
00036 (*getlocal1 (void)) (void)
00037 {
00038   return protlocal;
00039 }
00040 
00041 int
00042 protinmod (void)
00043 {
00044   return 0x400;
00045 }
00046 asm (".protected protinmod");
00047 
00048 int
00049 callinmod1 (void)
00050 {
00051   return protinmod () + 0x1000;
00052 }
00053 
00054 int
00055 (*getinmod1 (void)) (void)
00056 {
00057   return protinmod;
00058 }
00059 
00060 int
00061 protitcpt (void)
00062 {
00063   return 0x40000;
00064 }
00065 asm (".protected protitcpt");
00066 
00067 int
00068 callitcpt1 (void)
00069 {
00070   return protitcpt () + 0x100000;
00071 }
00072 
00073 int
00074 (*getitcpt1 (void)) (void)
00075 {
00076   return protitcpt;
00077 }
00078 
00079 const char *protvarlocal = __FILE__;
00080 asm (".protected protvarlocal");
00081 
00082 const char **
00083 getvarlocal1 (void)
00084 {
00085   return &protvarlocal;
00086 }
00087 
00088 const char *protvarinmod = __FILE__;
00089 asm (".protected protvarinmod");
00090 
00091 const char **
00092 getvarinmod1 (void)
00093 {
00094   return &protvarinmod;
00095 }
00096 
00097 const char *protvaritcpt = __FILE__;
00098 asm (".protected protvaritcpt");
00099 
00100 const char **
00101 getvaritcpt1 (void)
00102 {
00103   return &protvaritcpt;
00104 }